Jump to content

MediaWiki:Common.css: Difference between revisions

From TnPedia
No edit summary
Tag: Manual revert
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Esconde abas superiores para anônimos no Vector 2022 */
/******************************
* INTERFACE PARA USUÁRIOS ANÔNIMOS (Vector 2022)
******************************/


.skin-vector-2022.anon .vector-menu-tabs li#ca-talk, /* Discussion */
/* Esconde abas e menus específicos para anônimos */
.skin-vector-2022.anon .vector-menu-tabs li#ca-history, /* View history */
.skin-vector-2022.anon .vector-menu-tabs li#ca-talk,
.skin-vector-2022.anon .vector-menu-tabs li#ca-viewsource, /* View source */
.skin-vector-2022.anon .vector-menu-tabs li#ca-history,
.skin-vector-2022.anon .vector-page-tools-dropdown,
.skin-vector-2022.anon .vector-menu-tabs li#ca-viewsource,
.skin-vector-2022.anon #vector-page-tools,
.skin-vector-2022.anon #vector-page-tools,
.skin-vector-2022.anon #p-views,
.skin-vector-2022.anon #p-views,
Line 11: Line 13:
.skin-vector-2022.anon #n-randompage,
.skin-vector-2022.anon #n-randompage,
.skin-vector-2022.anon #n-help-mediawiki {
.skin-vector-2022.anon #n-help-mediawiki {
    display: none !important;
  display: none !important;
}
}


/* Esconde "Discussion" na aba superior */
/* Esconde "Discussion", "History" e "View source" globalmente */
.skin-vector-2022.anon #ca-talk,
#ca-talk,
.skin-vector-2022 #ca-talk {
#ca-history,
    display: none !important;
#ca-viewsource,
.skin-vector-2022 #n-recentchanges,
.skin-vector-2022 #n-randompage,
.skin-vector-2022 #n-help-mediawiki,
.vector-menu-content-list li#ca-talk {
  display: none !important;
}
}


/* Esconde "Discussion" dentro de menus colapsados */
.skin-vector-2022.anon .vector-menu-content-list li#ca-talk,
.skin-vector-2022 .vector-menu-content-list li#ca-talk {
    display: none !important;
}


/* Esconde "Recent changes" */
/******************************
.skin-vector-2022 #n-recentchanges {
* LOGOTIPO
    display: none !important;
******************************/
}


/* Esconde "Random page" */
.mw-wiki-logo {
.skin-vector-2022 #n-randompage {
  width: 350px;
    display: none !important;
  height: 350px;
  background-size: contain;
}
}


/* Esconde "Help about MediaWiki" */
.skin-vector-2022 #n-help-mediawiki {
    display: none !important;
}


#ca-viewsource,
/******************************
#ca-history {
* TABELAS (wikitable, sortable etc.)
    display: none !important;
******************************/
}


/* Ajusta as dimensões do logotipo */
table,
.mw-wiki-logo {
table.wikitable,
    width: 350px;
table.sortable {
    height: 350px;
   border-collapse: separate !important;
    background-size: contain;
}
 
 
/* Bordas arredondadas em tabelas */
table {
   border-collapse: separate;
   border-spacing: 0;
   border-spacing: 0;
  width: 100%;
  margin: 1em 0;
   border: 1px solid #ccc;
   border: 1px solid #ccc;
   border-radius: 10px;
   border-radius: 10px;
   overflow: hidden;
   background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
}


/* Bordas arredondadas em células das tabelas */
/* Células */
table th,
table th,
table td {
table td {
   border: 1px solid #ddd;
   border: 1px solid #ddd !important;
   padding: 0.4em;
   padding: 0.4em 0.6em;
  vertical-align: middle;
}
}


/* Bordas arredondadas em imagens com legenda (thumb) */
/* Cabeçalhos */
.thumb,
table th {
.thumbinner {
   background-color: #eaf4ff !important;
   border-radius: 10px;
  color: #003366;
   overflow: hidden;
   font-weight: bold;
   border: 1px solid #ccc;
   text-align: center;
}
}


/* Bordas arredondadas em frames (como <div class="frame">) */
/* Zebra striping */
.frame,
table tr:nth-child(even) td {
.gallerybox,
.tright,
.tleft {
  border-radius: 10px;
  border: 1px solid #ccc;
  overflow: hidden;
  padding: 0.5em;
   background-color: #f9f9f9;
   background-color: #f9f9f9;
}
}


/* Bordas suaves também em imagens soltas */
/* Números alinhados à direita */
img {
table td.number {
   border-radius: 6px;
   text-align: right;
}
}


/* Opcional: sombra leve */
 
table,
/******************************
.frame,
* IMAGENS (thumb, border etc.)
******************************/
 
/* Frame externo */
.thumb {
.thumb {
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
   margin: 0.5em;
  border: none;
}
}


 
/* Contêiner com imagem + legenda */
 
.thumbinner {
 
 
/* Estilo base para qualquer tabela */
table,
table.wikitable,
table.sortable {
  border-collapse: separate !important;
  border-spacing: 0;
   border: 1px solid #ccc;
   border: 1px solid #ccc;
   border-radius: 10px;
   border-radius: 10px;
   overflow: hidden;
   overflow: hidden;
  width: 100%;
   background-color: #fdfdfd;
  margin: 1em 0;
   background-color: #fff;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0 !important;
}
}


/* Células de cabeçalho e conteúdo */
/* Imagem */
table th,
.thumbimage {
table td {
   border: none !important;
   border: 1px solid #ddd !important;
   border-radius: 0 !important;
   padding: 0.4em 0.6em;
  display: block;
   vertical-align: middle;
   max-width: 100%;
}
}


/* Cabeçalhos: fundo azul claro e texto escuro */
/* Legenda */
table th {
.thumbcaption {
   background-color: #eaf4ff !important;
  border-top: 1px solid #ddd;
   color: #003366;
   background-color: #f8f8f8;
   font-weight: bold;
   padding: 0.4em 0.6em;
   font-size: 90%;
  color: #333;
   text-align: center;
   text-align: center;
  border-radius: 0 0 10px 10px;
}
}


/* Zebra stripes (linhas alternadas) */
 
table tr:nth-child(even) td {
/******************************
* OUTROS FRAMES (gallery, div.frame etc.)
******************************/
 
.frame,
.gallerybox,
.tright,
.tleft {
  border-radius: 10px;
  border: 1px solid #ccc;
  overflow: hidden;
  padding: 0.5em;
   background-color: #f9f9f9;
   background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
}


/* Alinha texto de células com números à direita */
/* Imagens soltas */
table td.number {
img {
   text-align: right;
   border-radius: 6px;
}
}

Latest revision as of 08:38, 30 May 2025

/******************************
 * INTERFACE PARA USUÁRIOS ANÔNIMOS (Vector 2022)
 ******************************/

/* Esconde abas e menus específicos para anônimos */
.skin-vector-2022.anon .vector-menu-tabs li#ca-talk,
.skin-vector-2022.anon .vector-menu-tabs li#ca-history,
.skin-vector-2022.anon .vector-menu-tabs li#ca-viewsource,
.skin-vector-2022.anon #vector-page-tools,
.skin-vector-2022.anon #p-views,
.skin-vector-2022.anon #p-navigation,
.skin-vector-2022.anon #n-recentchanges,
.skin-vector-2022.anon #n-randompage,
.skin-vector-2022.anon #n-help-mediawiki {
  display: none !important;
}

/* Esconde "Discussion", "History" e "View source" globalmente */
#ca-talk,
#ca-history,
#ca-viewsource,
.skin-vector-2022 #n-recentchanges,
.skin-vector-2022 #n-randompage,
.skin-vector-2022 #n-help-mediawiki,
.vector-menu-content-list li#ca-talk {
  display: none !important;
}


/******************************
 * LOGOTIPO
 ******************************/

.mw-wiki-logo {
  width: 350px;
  height: 350px;
  background-size: contain;
}


/******************************
 * TABELAS (wikitable, sortable etc.)
 ******************************/

table,
table.wikitable,
table.sortable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  margin: 1em 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Células */
table th,
table td {
  border: 1px solid #ddd !important;
  padding: 0.4em 0.6em;
  vertical-align: middle;
}

/* Cabeçalhos */
table th {
  background-color: #eaf4ff !important;
  color: #003366;
  font-weight: bold;
  text-align: center;
}

/* Zebra striping */
table tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* Números alinhados à direita */
table td.number {
  text-align: right;
}


/******************************
 * IMAGENS (thumb, border etc.)
 ******************************/

/* Frame externo */
.thumb {
  margin: 0.5em;
  border: none;
}

/* Contêiner com imagem + legenda */
.thumbinner {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fdfdfd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0 !important;
}

/* Imagem */
.thumbimage {
  border: none !important;
  border-radius: 0 !important;
  display: block;
  max-width: 100%;
}

/* Legenda */
.thumbcaption {
  border-top: 1px solid #ddd;
  background-color: #f8f8f8;
  padding: 0.4em 0.6em;
  font-size: 90%;
  color: #333;
  text-align: center;
  border-radius: 0 0 10px 10px;
}


/******************************
 * OUTROS FRAMES (gallery, div.frame etc.)
 ******************************/

.frame,
.gallerybox,
.tright,
.tleft {
  border-radius: 10px;
  border: 1px solid #ccc;
  overflow: hidden;
  padding: 0.5em;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Imagens soltas */
img {
  border-radius: 6px;
}