MediaWiki:Common.css: diferenças entre revisões
Aparência
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
/* ===================================================== */ | |||
/* SUPORTE EXTRA PARA TEMPLATE {{Equipamento}} */ | |||
/* sem alterar a identidade visual da tua wiki */ | |||
/* ===================================================== */ | |||
/* caixas internas */ | |||
#mw-content .fondfenetre, | |||
.fondfenetre { | |||
background: url("https://pt-wiki.metin2.gameforge.com/images/a/a4/Fundo2.png") repeat; | |||
color: #fff; | |||
padding: 4px 8px; | |||
border-radius: 6px; | |||
} | |||
.fondfenetre a, | |||
.fondfenetre span { | |||
color: #fff; | |||
} | |||
/* tabelas usadas em equipamento / drops / refinamento */ | |||
table.pretty-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
} | |||
table.pretty-table th, | |||
table.pretty-table td { | |||
border: 1px solid rgba(0,0,0,0.35); | |||
} | |||
table.pretty-table td { | |||
padding: 5px 4px; | |||
} | |||
table.pretty-table th { | |||
padding: 2px 4px; | |||
font-weight: normal; | |||
font-size: 1.1em; | |||
background: url("https://pt-wiki.metin2.gameforge.com/images/a/a4/Fundo2.png") repeat; | |||
color: #fff; | |||
} | |||
table.pretty-table th a, | |||
table.pretty-table th span { | |||
color: #fff; | |||
} | |||
table.pretty-table tbody > *:nth-child(2n + 1) > td { | |||
background: rgba(0, 0, 0, 0.08); | |||
} | |||
table.pretty-table tr:hover { | |||
background: rgba(255, 255, 255, 0.04); | |||
} | |||
table.pretty-table caption { | |||
margin-top: 10px; | |||
font-weight: bold; | |||
} | |||
/* cabeçalho fixo em tabelas grandes */ | |||
table.sticky-header-row thead tr { | |||
position: sticky; | |||
top: 0; | |||
z-index: 10; | |||
} | |||
/* botões */ | |||
.button { | |||
border: 2px solid grey; | |||
padding: 0 12px; | |||
line-height: 25px; | |||
border-radius: 16px; | |||
background: rgba(234, 234, 234, 1); | |||
cursor: pointer; | |||
display: inline-block; | |||
position: relative; | |||
user-select: none; | |||
white-space: nowrap; | |||
} | |||
.button:hover { | |||
background: transparent; | |||
} | |||
.tabber-active.button { | |||
font-weight: bold; | |||
} | |||
/* separador de tabs / secções */ | |||
.tab-glob { | |||
display: flex; | |||
flex-direction: row; | |||
margin: 10px 0; | |||
column-gap: 2px; | |||
align-items: flex-start; | |||
} | |||
.tab-glob > :first-child { | |||
display: grid; | |||
grid-template-columns: max-content; | |||
row-gap: 2px; | |||
} | |||
.tab-glob > :first-child > * { | |||
border: 1px black solid; | |||
} | |||
.tab-glob > :first-child > *:not(.fondfenetre) { | |||
font-weight: bold; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
.tab-glob > :nth-child(2) { | |||
width: 100%; | |||
overflow-x: auto; | |||
} | |||
.tab-glob > :nth-child(2) > :first-child { | |||
display: grid; | |||
grid-template-columns: repeat(10, minmax(75px, 1fr)); | |||
gap: 2px; | |||
} | |||
.tab-glob > :nth-child(2) > :first-child > * { | |||
border: 1px black solid; | |||
} | |||
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) { | |||
display: flex; | |||
} | |||
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) > * { | |||
margin: auto; | |||
} | |||
/* lista visual de itens/equipamentos */ | |||
.list-equip { | |||
padding: 5px; | |||
border: 1px solid #2f1d1f; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
gap: 5px; | |||
} | |||
.list-equip > :first-child { | |||
width: 100%; | |||
line-height: 25px; | |||
} | |||
.list-equip > :first-child > * { | |||
padding: 0 5px; | |||
} | |||
/* imagens de item */ | |||
.image-sizing img, | |||
.image-sizing-200 img, | |||
.image-sizing-none img { | |||
height: auto; | |||
width: auto; | |||
max-height: 300px; | |||
max-width: 100%; | |||
} | |||
.image-sizing-200 img { | |||
max-height: 200px; | |||
} | |||
.image-sizing-none img { | |||
max-height: none; | |||
} | |||
/* texto longo em listas e colunas */ | |||
.texte-long, | |||
.texte-long-2 { | |||
text-overflow: ellipsis; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
} | |||
.texte-long:hover, | |||
.texte-long-2:hover { | |||
white-space: normal; | |||
} | |||
/* colapsáveis */ | |||
.improved-collapsible > .mw-collapsible-toggle { | |||
grid-area: 1 / -1; | |||
display: flex; | |||
justify-content: flex-end; | |||
align-items: center; | |||
float: initial; | |||
z-index: 1; | |||
padding-right: 5px; | |||
} | |||
.improved-collapsible .mw-collapsible-text { | |||
display: none; | |||
} | |||
.improved-collapsible .mw-collapsible-toggle:after { | |||
content: "▾"; | |||
font-size: 20px; | |||
transition: transform 0.2s ease-in-out; | |||
} | |||
.improved-collapsible .mw-collapsible-toggle-expanded:after { | |||
transform: rotate(-180deg); | |||
} | |||
/* esconder conteúdo de tabs inativas */ | |||
.tabber-container > :last-child > :not(.tabber-active), | |||
.tabber-noactive { | |||
display: none; | |||
} | |||
/* responsivo */ | |||
@media screen and (max-width: 768px) { | |||
.tab-glob { | |||
flex-direction: column; | |||
} | |||
.tab-glob > :first-child { | |||
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); | |||
} | |||
.texte-long { | |||
white-space: normal; | |||
overflow: visible; | |||
} | |||
} | |||
/* ===================================================== */ | /* ===================================================== */ | ||
/* CAIXAS ESTILO METIN2 (mapa / info / tabelas) */ | /* CAIXAS ESTILO METIN2 (mapa / info / tabelas) */ | ||
Revisão das 20h14min de 29 de março de 2026
/* ===================================================== */
/* SUPORTE EXTRA PARA TEMPLATE {{Equipamento}} */
/* sem alterar a identidade visual da tua wiki */
/* ===================================================== */
/* caixas internas */
#mw-content .fondfenetre,
.fondfenetre {
background: url("https://pt-wiki.metin2.gameforge.com/images/a/a4/Fundo2.png") repeat;
color: #fff;
padding: 4px 8px;
border-radius: 6px;
}
.fondfenetre a,
.fondfenetre span {
color: #fff;
}
/* tabelas usadas em equipamento / drops / refinamento */
table.pretty-table {
width: 100%;
border-collapse: collapse;
}
table.pretty-table th,
table.pretty-table td {
border: 1px solid rgba(0,0,0,0.35);
}
table.pretty-table td {
padding: 5px 4px;
}
table.pretty-table th {
padding: 2px 4px;
font-weight: normal;
font-size: 1.1em;
background: url("https://pt-wiki.metin2.gameforge.com/images/a/a4/Fundo2.png") repeat;
color: #fff;
}
table.pretty-table th a,
table.pretty-table th span {
color: #fff;
}
table.pretty-table tbody > *:nth-child(2n + 1) > td {
background: rgba(0, 0, 0, 0.08);
}
table.pretty-table tr:hover {
background: rgba(255, 255, 255, 0.04);
}
table.pretty-table caption {
margin-top: 10px;
font-weight: bold;
}
/* cabeçalho fixo em tabelas grandes */
table.sticky-header-row thead tr {
position: sticky;
top: 0;
z-index: 10;
}
/* botões */
.button {
border: 2px solid grey;
padding: 0 12px;
line-height: 25px;
border-radius: 16px;
background: rgba(234, 234, 234, 1);
cursor: pointer;
display: inline-block;
position: relative;
user-select: none;
white-space: nowrap;
}
.button:hover {
background: transparent;
}
.tabber-active.button {
font-weight: bold;
}
/* separador de tabs / secções */
.tab-glob {
display: flex;
flex-direction: row;
margin: 10px 0;
column-gap: 2px;
align-items: flex-start;
}
.tab-glob > :first-child {
display: grid;
grid-template-columns: max-content;
row-gap: 2px;
}
.tab-glob > :first-child > * {
border: 1px black solid;
}
.tab-glob > :first-child > *:not(.fondfenetre) {
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.tab-glob > :nth-child(2) {
width: 100%;
overflow-x: auto;
}
.tab-glob > :nth-child(2) > :first-child {
display: grid;
grid-template-columns: repeat(10, minmax(75px, 1fr));
gap: 2px;
}
.tab-glob > :nth-child(2) > :first-child > * {
border: 1px black solid;
}
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) {
display: flex;
}
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) > * {
margin: auto;
}
/* lista visual de itens/equipamentos */
.list-equip {
padding: 5px;
border: 1px solid #2f1d1f;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.list-equip > :first-child {
width: 100%;
line-height: 25px;
}
.list-equip > :first-child > * {
padding: 0 5px;
}
/* imagens de item */
.image-sizing img,
.image-sizing-200 img,
.image-sizing-none img {
height: auto;
width: auto;
max-height: 300px;
max-width: 100%;
}
.image-sizing-200 img {
max-height: 200px;
}
.image-sizing-none img {
max-height: none;
}
/* texto longo em listas e colunas */
.texte-long,
.texte-long-2 {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.texte-long:hover,
.texte-long-2:hover {
white-space: normal;
}
/* colapsáveis */
.improved-collapsible > .mw-collapsible-toggle {
grid-area: 1 / -1;
display: flex;
justify-content: flex-end;
align-items: center;
float: initial;
z-index: 1;
padding-right: 5px;
}
.improved-collapsible .mw-collapsible-text {
display: none;
}
.improved-collapsible .mw-collapsible-toggle:after {
content: "▾";
font-size: 20px;
transition: transform 0.2s ease-in-out;
}
.improved-collapsible .mw-collapsible-toggle-expanded:after {
transform: rotate(-180deg);
}
/* esconder conteúdo de tabs inativas */
.tabber-container > :last-child > :not(.tabber-active),
.tabber-noactive {
display: none;
}
/* responsivo */
@media screen and (max-width: 768px) {
.tab-glob {
flex-direction: column;
}
.tab-glob > :first-child {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.texte-long {
white-space: normal;
overflow: visible;
}
}
/* ===================================================== */
/* CAIXAS ESTILO METIN2 (mapa / info / tabelas) */
/* ===================================================== */
.mapa {
border: 1px solid #2f1d1f;
border-radius: 15px;
width: 100%;
box-shadow: 3px 3px 9px 0px #544e41;
overflow: hidden;
}
/* CABEÇALHO (tipo "Como obter?") */
.mapa > div:first-child {
background: url("https://pt-wiki.metin2.gameforge.com/images/8/87/Mapa.png");
color: white;
text-align: center;
line-height: 25px;
font-weight: bold;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
/* CONTEÚDO INTERNO */
.mapa > div:nth-child(2) {
background: transparent;
}
ul.subpage {
display: flex;
list-style: none;
margin: 0 0 10px;
padding: 0;
background: rgba(81, 36, 16, 0.3);
overflow: hidden;
line-height: 30px;
white-space: nowrap;
}
.subpage a {
padding-left: 20px;
background: #512410;
display: inline-block;
line-height: 30px;
position: relative;
color: #f1de8e;
cursor: pointer;
}
.subpage a:before,
.subpage a:after {
content: "";
position: absolute;
width: 0;
height: 0;
right: 0;
padding: 1px 0;
border-top: 14px solid transparent;
border-bottom: 14px solid transparent;
border-left: 14px solid white;
transform: translate(14px);
z-index: 1;
}
.subpage a:after {
border-left: 14px solid #512410;
transform: translate(13px);
z-index: 2;
}
.subpage > li:last-child {
padding-left: 20px;
}
ul.subpage > li:first-child {
flex-shrink: 0;
}
ul.subpage > li:first-child > a {
height: 100%;
display: flex;
align-items: center;
padding-left: 10px;
}
ul.subpage > li > a:hover {
background: #9d5b37;
}
ul.subpage > li > a:hover:after {
border-left-color: #9d5b37;
}
/* ===================================================== */
/* CONTROLO DE LARGURA */
/* ===================================================== */
:root {
--page-max-width: 1200px;
--content-max-width: 1180px;
--wrapper-width: calc(100% - 20px);
}
/* ===================================================== */
/* BASE */
/* ===================================================== */
html,
body {
min-height: 100%;
margin: 0;
padding: 0;
}
body {
background:
linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
url("/images/imagem_fundo.png") no-repeat center top fixed;
background-size: cover;
}
/* ===================================================== */
/* REMOVER SIDEBARS / COLUNAS LATERAIS */
/* ===================================================== */
.vector-column-start,
#mw-panel,
.vector-pinned-container,
.vector-sticky-pinned-container,
.vector-column-end,
.vector-page-tools,
.vector-page-tools-landmark {
display: none !important;
width: 0 !important;
min-width: 0 !important;
max-width: 0 !important;
flex: 0 0 0 !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
overflow: hidden !important;
}
/* ===================================================== */
/* TOPO */
/* ===================================================== */
#mw-head,
#mw-navigation,
.vector-header-container,
.vector-sticky-header-container,
.vector-header {
background: #2b1205 !important;
border-bottom: 2px solid #c28b2f !important;
box-shadow: none !important;
}
.vector-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
min-height: 48px;
}
.vector-header .mw-logo-container {
display: flex;
align-items: center;
justify-content: center;
min-width: 120px;
}
.vector-header .mw-logo img {
max-height: 36px;
width: auto;
}
.mw-logo-wordmark,
.mw-logo-tagline {
display: none !important;
}
/* ===================================================== */
/* PESQUISA */
/* ===================================================== */
.vector-search-box {
flex: 0 1 420px;
}
.vector-search-box,
.vector-search-box form,
.vector-search-box-inner {
background: transparent !important;
}
.vector-search-box-input {
background: #11161d !important;
color: #f3e2b0 !important;
border: 1px solid #8a5a16 !important;
}
.vector-search-box-input::placeholder {
color: #cdbb8b !important;
}
/* ===================================================== */
/* ÁREA CENTRAL */
/* ===================================================== */
.mw-page-container {
max-width: var(--page-max-width) !important;
margin: 0 auto !important;
background: #e9d7a8 !important;
border: 1px solid #7a3b12;
box-shadow: 0 0 12px rgba(0,0,0,0.45);
}
.mw-page-container-inner {
display: block !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
.vector-column-main,
.vector-body,
.vector-page-content,
.mw-body,
.mw-content-container,
#content {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
margin-right: 0 !important;
padding: 0 !important;
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
flex: 1 1 100% !important;
}
.mw-parser-output {
padding: 0 !important;
margin: 0 !important;
background: transparent !important;
}
/* ===================================================== */
/* BARRA DA PÁGINA / TABS */
/* ===================================================== */
.vector-page-titlebar,
.vector-page-titlebar-topped,
.vector-page-toolbar,
.vector-page-toolbar-container {
background: #e9d7a8 !important;
border-bottom: 1px solid #8b1e12 !important;
box-shadow: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
margin-right: 0 !important;
padding-right: 0 !important;
}
.vector-menu-tabs,
.vector-menu-tabs-legacy,
.vector-menu-tabs .vector-menu-content,
.vector-menu-tabs ul,
.vector-menu-tabs li {
background: #e9d7a8 !important;
border: none !important;
box-shadow: none !important;
}
.vector-menu-tabs a {
background: transparent !important;
color: #7b1a10 !important;
border: none !important;
}
.vector-menu-tabs .selected a {
color: #4e1208 !important;
font-weight: bold !important;
border-bottom: 2px solid #8b1e12 !important;
}
.vector-menu-tabs a:hover,
.vector-page-titlebar a:hover,
.vector-page-toolbar a:hover {
color: #c4311c !important;
text-decoration: none !important;
}
.vector-page-titlebar a,
.vector-page-toolbar a {
color: #a88942 !important;
}
/* ===================================================== */
/* TÍTULO */
/* ===================================================== */
.firstHeading {
color: #4e1208 !important;
font-family: Georgia, serif;
border-bottom: 2px solid #8b1e12;
padding: 8px 0;
margin: 0 0 8px 0 !important;
}
/* ===================================================== */
/* LINKS */
/* ===================================================== */
a {
color: #9d1f12;
}
a:visited {
color: #7b1a10;
}
a:hover {
color: #c4311c;
}
/* ===================================================== */
/* HOMEPAGE */
/* ===================================================== */
.mp-wrapper {
width: var(--wrapper-width);
max-width: var(--content-max-width);
margin: 12px auto 0 auto;
}
.mp-panel {
background: #efe4c8;
border: 2px solid #6b130e;
border-radius: 14px;
margin-bottom: 16px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0,0,0,0.35);
position: relative;
clear: both;
}
.mp-title {
background: linear-gradient(#8f1717, #4e0909);
color: #f5df9d;
text-align: center;
font-weight: bold;
padding: 10px;
font-size: 18px;
line-height: 1.2;
}
.mp-content,
.mp-links,
.mp-grid {
padding: 14px;
}
/* ===================================================== */
/* CLASSES */
/* ===================================================== */
.classes-flex {
display: flex;
gap: 8px;
justify-content: center;
align-items: flex-start;
width: 100%;
flex-wrap: nowrap;
overflow-x: auto;
padding: 0 6px;
box-sizing: border-box;
}
.container {
flex: 0 0 185px;
min-width: 185px;
max-width: 185px;
align-self: flex-start;
}
.container > div {
width: 100% !important;
}
.container table {
width: 100%;
margin: 0 !important;
border-collapse: separate;
border-spacing: 0;
background: #f6ecd6;
border: 1px solid #8e6a3a;
border-radius: 8px;
overflow: hidden;
}
.classes-flex > div[style*="border-right"] {
flex: 0 0 1px;
margin: 0 2px !important;
align-self: stretch;
}
.classe-top {
text-align: center;
color: #f5df9d;
background: linear-gradient(to right,#36040d,#851515,#36040d);
padding: 4px;
}
.classe-bottom {
text-align: center;
color: white;
background: linear-gradient(to right,#36040d,#851515,#36040d);
padding: 6px;
}
/* ===================================================== */
/* EQUIPAMENTOS */
/* ===================================================== */
.equip-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
gap: 0;
width: 100%;
}
.equip-item {
flex: 1 1 90px;
min-width: 90px;
max-width: 120px;
display: flex;
justify-content: center;
align-items: center;
padding: 4px 6px;
box-sizing: border-box;
}
.equip-inner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 4px;
text-align: center;
width: 100%;
}
.equip-label {
font-weight: bold;
}
.equip-divider {
width: 1px;
background: #35215f;
margin: 0 2px;
}
/* ===================================================== */
/* TAGS */
/* ===================================================== */
.tag-green { background:#43cc91; color:#000; padding:2px 6px; border-radius:4px; }
.tag-red { background:#ff8a8a; color:#000; padding:2px 6px; border-radius:4px; }
.tag-yellow { background:#ffc107; color:#000; padding:2px 6px; border-radius:4px; }
.tag-blue { background:#42a1c9; color:#000; padding:2px 6px; border-radius:4px; }
/* ===================================================== */
/* FOOTER */
/* ===================================================== */
#footer {
max-width: var(--page-max-width);
margin: 0 auto !important;
background: #e9d7a8 !important;
border-top: 1px solid #8b1e12;
padding: 20px;
box-sizing: border-box;
}
/* ===================================================== */
/* RESPONSIVO */
/* ===================================================== */
@media (max-width: 1000px) {
.classes-flex {
flex-wrap: wrap;
justify-content: center;
}
.container {
flex: 0 0 185px;
min-width: 185px;
max-width: 185px;
}
.equip-divider {
display: none;
}
.equip-item {
flex: 1 1 120px;
max-width: none;
}
}
@media (max-width: 700px) {
.container {
flex: 0 0 100%;
min-width: 100%;
max-width: 100%;
}
.equip-item {
flex: 1 1 100%;
min-width: 100%;
max-width: 100%;
}
}
/* ===================================================== */
/* TEMPLATES DE EQUIPAMENTO */
/* (adicionado sem mexer no visual global da wiki) */
/* ===================================================== */
#mw-content .fondfenetre,
.fondfenetre {
background: url("https://pt-wiki.metin2.gameforge.com/images/a/a4/Fundo2.png") repeat;
color: #fff;
}
.fondfenetre a,
.fondfenetre span {
color: #fff;
}
.button {
border: 2px solid grey;
padding: 0 12px;
line-height: 25px;
border-radius: 16px;
background: rgba(234, 234, 234, 1);
cursor: pointer;
display: inline-block;
position: relative;
user-select: none;
white-space: nowrap;
}
.button:hover {
background: transparent;
}
.tab-glob {
display: flex;
flex-direction: row;
margin: 10px 0;
column-gap: 2px;
align-items: flex-start;
}
.tab-glob > :first-child {
display: grid;
grid-template-columns: max-content;
row-gap: 2px;
}
.tab-glob > :first-child > * {
border: 1px black solid;
}
.tab-glob > :first-child > *:not(.fondfenetre) {
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.tab-glob > :nth-child(2) {
width: 100%;
overflow-x: auto;
}
.tab-glob > :nth-child(2) > :first-child {
display: grid;
grid-template-columns: repeat(10, minmax(75px, 1fr));
gap: 2px;
}
.tab-glob > :nth-child(2) > :first-child > * {
border: 1px black solid;
}
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) {
display: flex;
}
.tab-glob > :nth-child(2) > :first-child > :not(.fondfenetre) > * {
margin: auto;
}
.list-equip {
padding: 5px;
border: 1px solid #2f1d1f;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.list-equip > :first-child {
width: 100%;
line-height: 25px;
}
.list-equip > :first-child > * {
padding: 0 5px;
}
/* opção segura: manter os detalhes visíveis para teste */
.tabber-noactive {
display: none;
}