MediaWiki:Tibiarpgbrasil.css: mudanças entre as edições
(Criou página com '→* Conteúdo para a página MediaWiki:Tibiarpgbrasil.css * (fonte versionada em skins/TibiaRPGBrasil/wiki-pages/). * * Carrega SOMENTE na skin TibiaRPGBrasil e DEPOIS do MediaWiki:Common.css. * Adapta à paleta da skin os estilos próprios da wiki (infobox, tabelas DPL, * cabeçalhos bgcolor="#CEDFF2", galerias), sem mudar nada no Vector. * As cores vêm das variáveis da skin (--tr-*).: /* Infobox: cabeçalho vinho com filete dourado no lugar do degradê ve...') |
(Bot: destaque ao passar o mouse pega o grupo de linhas com rowspan (ex.: outfit Feminino + Masculino)) |
||
| (Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
| Linha 29: | Linha 29: | ||
} | } | ||
/* Tabelas DPL | /* Tabelas de dados: um padrão só (wikitable, listas DPL e bestiário). | ||
* Corpo branco (não some no pergaminho), cabeçalho pergaminho com texto vinho, bordas douradas. | |||
* Fica no MediaWiki:Tibiarpgbrasil.css, que carrega depois do CSS do core e do Common.css: | |||
* com a mesma especificidade, vence os dois (o .wikitable do content.less da skin perde para o core). */ | |||
.wikitable, | |||
table#tabelaDPL, | table#tabelaDPL, | ||
table#tabelaBestiario { | table#tabelaBestiario { | ||
background-color: var( --tr- | border: 1px solid var( --tr-parchment-edge ); | ||
border-collapse: collapse; | |||
background-color: #fffdf8; | |||
color: var( --tr-ink ); | |||
box-shadow: 0 1px 3px rgba( 90, 60, 20, 0.12 ); | |||
} | } | ||
.wikitable > tr > th, | |||
.wikitable > * > tr > th, | |||
table#tabelaDPL th, | table#tabelaDPL th, | ||
table#tabelaBestiario th { | table#tabelaBestiario th { | ||
border-color: var( --tr-parchment- | border: 1px solid var( --tr-parchment-edge ); | ||
background-color: var( --tr-parchment-dark ); | |||
color: var( --tr-wine-dark ); | color: var( --tr-wine-dark ); | ||
} | } | ||
.wikitable > tr > td, | |||
.wikitable > * > tr > td, | |||
table#tabelaDPL tr td, | table#tabelaDPL tr td, | ||
table#tabelaBestiario tr td { | table#tabelaDPL td:first-child, | ||
border-color: | table#tabelaBestiario tr td, | ||
background-color: | table#tabelaBestiario td:first-child { | ||
border: 1px solid #e4d5af; | |||
background-color: #fffdf8; | |||
} | |||
.wikitable > * > tr:hover > td, | |||
table#tabelaDPL tr:hover td, | |||
table#tabelaBestiario tr:hover td { | |||
background-color: #fbf3df; | |||
} | } | ||
table#tabelaDPL td: | /* Linha com rowspan="2" + a linha seguinte formam um grupo (ex.: outfit Feminino + Masculino): | ||
table#tabelaBestiario td: | * o destaque pega as duas, passe o mouse em qualquer uma. Regra separada: sem suporte a :has(), só ela é ignorada. */ | ||
background-color: | .wikitable > * > tr:has( > td[ rowspan="2" ] ):hover + tr > td, | ||
.wikitable > * > tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td, | |||
table#tabelaDPL tr:has( > td[ rowspan="2" ] ):hover + tr > td, | |||
table#tabelaDPL tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td, | |||
table#tabelaBestiario tr:has( > td[ rowspan="2" ] ):hover + tr > td, | |||
table#tabelaBestiario tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td { | |||
background-color: #fbf3df; | |||
} | } | ||
Edição atual tal como às 19h43min de 14 de novembro de 2026
/*
* Conteúdo para a página MediaWiki:Tibiarpgbrasil.css
* (fonte versionada em skins/TibiaRPGBrasil/wiki-pages/).
*
* Carrega SOMENTE na skin TibiaRPGBrasil e DEPOIS do MediaWiki:Common.css.
* Adapta à paleta da skin os estilos próprios da wiki (infobox, tabelas DPL,
* cabeçalhos bgcolor="#CEDFF2", galerias), sem mudar nada no Vector.
* As cores vêm das variáveis da skin (--tr-*).
*/
/* Infobox: cabeçalho vinho com filete dourado no lugar do degradê vermelho */
.infobox-header {
background: linear-gradient( 120deg, var( --tr-wine-dark ) 0%, var( --tr-wine ) 55%, var( --tr-wine-light ) 100% );
border-bottom: 2px solid var( --tr-gold );
color: #fff;
font-family: var( --tr-font-display );
letter-spacing: 0.03em;
}
.infobox,
.infobox-main,
.infobox-sidebar {
background-color: rgba( 255, 252, 243, 0.6 );
box-shadow: 0 0 0 1px var( --tr-parchment-edge ), 0 2px 6px rgba( 90, 60, 20, 0.15 );
}
.infobox-main .infobox-separator {
border-top-color: var( --tr-parchment-edge );
}
/* Tabelas de dados: um padrão só (wikitable, listas DPL e bestiário).
* Corpo branco (não some no pergaminho), cabeçalho pergaminho com texto vinho, bordas douradas.
* Fica no MediaWiki:Tibiarpgbrasil.css, que carrega depois do CSS do core e do Common.css:
* com a mesma especificidade, vence os dois (o .wikitable do content.less da skin perde para o core). */
.wikitable,
table#tabelaDPL,
table#tabelaBestiario {
border: 1px solid var( --tr-parchment-edge );
border-collapse: collapse;
background-color: #fffdf8;
color: var( --tr-ink );
box-shadow: 0 1px 3px rgba( 90, 60, 20, 0.12 );
}
.wikitable > tr > th,
.wikitable > * > tr > th,
table#tabelaDPL th,
table#tabelaBestiario th {
border: 1px solid var( --tr-parchment-edge );
background-color: var( --tr-parchment-dark );
color: var( --tr-wine-dark );
}
.wikitable > tr > td,
.wikitable > * > tr > td,
table#tabelaDPL tr td,
table#tabelaDPL td:first-child,
table#tabelaBestiario tr td,
table#tabelaBestiario td:first-child {
border: 1px solid #e4d5af;
background-color: #fffdf8;
}
.wikitable > * > tr:hover > td,
table#tabelaDPL tr:hover td,
table#tabelaBestiario tr:hover td {
background-color: #fbf3df;
}
/* Linha com rowspan="2" + a linha seguinte formam um grupo (ex.: outfit Feminino + Masculino):
* o destaque pega as duas, passe o mouse em qualquer uma. Regra separada: sem suporte a :has(), só ela é ignorada. */
.wikitable > * > tr:has( > td[ rowspan="2" ] ):hover + tr > td,
.wikitable > * > tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td,
table#tabelaDPL tr:has( > td[ rowspan="2" ] ):hover + tr > td,
table#tabelaDPL tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td,
table#tabelaBestiario tr:has( > td[ rowspan="2" ] ):hover + tr > td,
table#tabelaBestiario tr:has( > td[ rowspan="2" ] ):has( + tr:hover ) > td {
background-color: #fbf3df;
}
/* Cabeçalhos com bgcolor="#CEDFF2" (padrão antigo dos templates, ex.: compra/venda de itens) */
th[ bgcolor="#CEDFF2" i ],
td[ bgcolor="#CEDFF2" i ] {
background-color: var( --tr-parchment-dark );
color: var( --tr-wine-dark );
}
#TabelaValores {
border-color: var( --tr-parchment-edge ) !important; /* a cor vem de style="" no template */
}
#TabelaValores th,
#TabelaValores td {
border-color: var( --tr-parchment-edge );
}
/* Galerias de pets/outfits */
.pet-outfit-gallery .gallerybox {
border-color: var( --tr-wine );
background-color: var( --tr-parchment-light );
}
.pet-outfit-gallery .gallerytext {
border-color: var( --tr-parchment-edge );
background-color: var( --tr-parchment );
}
/* Celular: infobox em coluna única */
@media ( max-width: 719px ) {
.infobox-holder {
flex-wrap: wrap;
}
.infobox-holder > div:first-child {
margin-right: 0;
}
.infobox-holder > div:nth-child( 2 ) {
flex: 1 1 100%;
width: 100%;
margin-top: 10px;
}
.infobox-main > tbody > tr > td:first-child {
width: auto;
min-width: 0;
}
}