MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 3: | Line 3: | ||
/* 1. | /* 1. FUNDO PRINCIPAL */ | ||
html, body | html, body { | ||
background-image: url('https://wiki.atronia.eu/images/7/7a/Texture_Background.svg') !important; | background-image: url('https://wiki.atronia.eu/images/7/7a/Texture_Background.svg') !important; | ||
background-attachment: fixed !important; | background-attachment: fixed !important; | ||
background-size: cover !important; | background-size: cover !important; | ||
background-position: center center !important; | background-position: center center !important; | ||
} | } | ||
/* 2. | /* 2. TORNAR TUDO TRANSPARENTE (A "Lasanha") */ | ||
/* Aqui atacamos todas as caixas brancas que estão a tapar o fundo */ | |||
.mw-page-container, | |||
.vector-header-container, | .vector-header-container, | ||
.vector-main-menu-content, | .vector-main-menu-content, | ||
.mw-content-container, | .mw-content-container, | ||
. | #content, | ||
# | .mw-body, | ||
#mw-page-base, | |||
#mw-head-base, | |||
.vector-sticky-pinned-container, | |||
.vector-column-start, | |||
.vector-column-end { | |||
.vector- | background: transparent !important; | ||
background-color: transparent !important; | background-color: transparent !important; | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* | /* 3. APLICAR UMA CAMADA DE LEITURA (Opcional) */ | ||
/* Se ficar difícil de ler o texto, esta regra cria um fundo leve apenas no texto */ | |||
. | .mw-body-content { | ||
background-color: | background-color: rgba(255, 255, 255, 0.6) !important; /* Branco com 60% de transparência */ | ||
padding: 20px !important; | |||
border-radius: 8px !important; | |||
} | } | ||
/* | /* 4. ÍNDICE (TOC) TRANSPARENTE */ | ||
. | .vector-toc { | ||
background-color: rgba(255, 255, 255, 0.5) !important; | |||
border: 1px solid rgba(0,0,0,0.1) !important; | |||
} | } | ||
Revision as of 17:39, 25 March 2026
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@0..1");
/* 1. FUNDO PRINCIPAL */
html, body {
background-image: url('https://wiki.atronia.eu/images/7/7a/Texture_Background.svg') !important;
background-attachment: fixed !important;
background-size: cover !important;
background-position: center center !important;
}
/* 2. TORNAR TUDO TRANSPARENTE (A "Lasanha") */
/* Aqui atacamos todas as caixas brancas que estão a tapar o fundo */
.mw-page-container,
.vector-header-container,
.vector-main-menu-content,
.mw-content-container,
#content,
.mw-body,
#mw-page-base,
#mw-head-base,
.vector-sticky-pinned-container,
.vector-column-start,
.vector-column-end {
background: transparent !important;
background-color: transparent !important;
border: none !important;
}
/* 3. APLICAR UMA CAMADA DE LEITURA (Opcional) */
/* Se ficar difícil de ler o texto, esta regra cria um fundo leve apenas no texto */
.mw-body-content {
background-color: rgba(255, 255, 255, 0.6) !important; /* Branco com 60% de transparência */
padding: 20px !important;
border-radius: 8px !important;
}
/* 4. ÍNDICE (TOC) TRANSPARENTE */
.vector-toc {
background-color: rgba(255, 255, 255, 0.5) !important;
border: 1px solid rgba(0,0,0,0.1) !important;
}
/* 1. Destacar o item principal ativo */
.vector-toc-list-item-active > .vector-toc-link .vector-toc-text {
font-weight: 700 !important; /* Força o negrito máximo */
color: #000000 !important; /* Cor preta forte para contraste */
}
/* Remove qualquer preenchimento extra de tags pre ou code que a wiki insira */
.variations-toggle pre,
.variations-toggle code {
display: contents !important;
background: none !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.arrow-icon {
display: inline-flex; /* important */
align-items: center; /* vertical centering */
justify-content: center;
width: 24px; /* lock size */
height: 24px;
line-height: 1; /* remove font baseline weirdness */
transition: transform 0.25s ease;
}
.arrow-icon.rotated {
transform: rotate(180deg);
}
.variations-list > pre,
.variations-toggle > pre {
display: flex;
flex-direction: column;
padding-top: 0;
}
.mw-highlight > pre {
margin: 1em 0;
padding: 12px 16px;
background-color: #f6f6f6; /* restore */
border: 1px solid #ddd;
border-radius: 6px;
overflow-x: auto;
white-space: pre;
font-family: "Roboto Mono", monospace;
font-size: 13px;
line-height: 1.5;
display: block; /* IMPORTANT */
}
pre {
margin: 0;
padding: 0;
padding-top: 1rem;
background-color: transparent;
border: transparent;
display: flex;
justify-content: space-around;
}
/* Limpeza profunda do collapsible na grelha de produtos */
.product-item .mw-collapsible {
background: transparent !important;
border: none !important;
width: 100% !important;
}
.product-item .mw-collapsible-content {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
/* Remove o ícone padrão de "seta" ou [Expandir] que o MediaWiki cria */
.product-item .mw-collapsible-toggle {
float: none !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
}
/* Esconde o link automático de texto que o MediaWiki pode injetar */
.product-item .mw-collapsible-toggle-default {
display: none !important;
}
.vector-dropdown-checkbox {
background-color: red !important;
color: red !important;
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 30px;
margin-top: 20px;
}
.product-item {
text-align: center;
}
.product-image {
display: block;
margin: 0 auto 10px;
}
.product-title {
font-weight: 600;
margin-top: 6px;
}
.product-subtitle {
font-size: 14px;
color: #666;
}
.product-item strong {
display: block;
}
.product-subtitle {
display: block;
}
/* Garante que o título do Datasheet e outros itens mantenham a consistência */
.vector-toc-link .vector-toc-text {
font-weight: normal !important;
}
/* Botão Técnico Atlas - Cores Customizadas */
.mw-parser-output .atlas-btn {
display: inline-block !important;
padding: 10px 22px !important;
background-color: #1b2826 !important; /* Cor base escura */
border: 1px solid #1b2826 !important;
border-radius: 4px !important;
transition: all 0.25s ease !important;
cursor: pointer !important;
text-align: center !important;
border-bottom: 1px solid #1b2826 !important; /* Remove qualquer traço de link */
}
/* Link dentro do botão - Forçar branco em todos os estados*/
.mw-parser-output .atlas-btn a,
.mw-parser-output .atlas-btn a:link,
.mw-parser-output .atlas-btn a:visited,
.mw-parser-output .atlas-btn a:hover,
.mw-parser-output .atlas-btn a:active {
color: #ffffff !important;
text-decoration: none !important;
border-bottom: none !important;
font-weight: bold !important;
font-size: 0.95em !important;
}
/* Efeito Hover: Versão levemente mais clara */
.mw-parser-output .atlas-btn:hover {
background-color: #3e524f !important; /* Tom mais claro */
border-color: #2a3b38 !important;
text-decoration: none !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Sombra leve para profundidade */
}
/* Garante que o link não mude de cor ou sublinhe no hover */
.mw-parser-output .atlas-btn a:hover {
text-decoration: none !important;
color: #ffffff !important;
}
/* Forçar a fonte Rubik no título principal */
#firstHeading {
font-family: "Rubik", sans-serif !important;
font-weight: 600 !important;
color: #202122 !important;
letter-spacing: -0.01em !important;
/* Removemos a nossa borda manual para usar apenas a da Wiki */
border-bottom: none !important;
margin-bottom: 0 !important;
padding-bottom: 5px !important;
}
/* Garante que o breadcrumb (< SENSBLUE ATLAS) também use a Rubik */
#contentSub,
#contentSub2 {
font-family: "Rubik", sans-serif !important;
font-size: 0.85em !important;
color: #54595d !important;
margin-top: 5px !important;
}
pre {
font-family: "Roboto", sans-serif !important;
}