MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
@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"); | |||
/* Remove qualquer preenchimento extra de tags pre ou code que a wiki insira */ | /* Remove qualquer preenchimento extra de tags pre ou code que a wiki insira */ | ||
.variations-toggle pre, | .variations-toggle pre, | ||
.variations-toggle code { | .variations-toggle code { | ||
display: contents !important; | |||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | } | ||
.arrow-icon { | .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 { | .arrow-icon.rotated { | ||
transform: rotate(180deg); | |||
} | } | ||
.variations-list > pre, | .variations-list > pre, | ||
.variations-toggle > pre { | .variations-toggle > pre { | ||
display: flex; | |||
flex-direction: column; | |||
padding-top: 0; | |||
} | } | ||
pre { | 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 */ | /* Limpeza profunda do collapsible na grelha de produtos */ | ||
.product-item .mw-collapsible { | .product-item .mw-collapsible { | ||
background: transparent !important; | |||
border: none !important; | |||
width: 100% !important; | |||
} | } | ||
.product-item .mw-collapsible-content { | .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 */ | /* Remove o ícone padrão de "seta" ou [Expandir] que o MediaWiki cria */ | ||
.product-item .mw-collapsible-toggle { | .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 */ | /* Esconde o link automático de texto que o MediaWiki pode injetar */ | ||
.product-item .mw-collapsible-toggle-default { | .product-item .mw-collapsible-toggle-default { | ||
display: none !important; | |||
} | } | ||
.vector-dropdown-checkbox { | .vector-dropdown-checkbox { | ||
background-color: red !important; | |||
color: red !important; | |||
} | } | ||
.products-grid { | .products-grid { | ||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |||
gap: 30px; | |||
margin-top: 20px; | |||
} | } | ||
.product-item { | .product-item { | ||
text-align: center; | |||
} | } | ||
.product-image { | .product-image { | ||
display: block; | |||
margin: 0 auto 10px; | |||
} | } | ||
.product-title { | .product-title { | ||
font-weight: 600; | |||
margin-top: 6px; | |||
} | } | ||
.product-subtitle { | .product-subtitle { | ||
font-size: 14px; | |||
color: #666; | |||
} | } | ||
.product-item strong { | .product-item strong { | ||
display: block; | |||
} | } | ||
.product-subtitle { | .product-subtitle { | ||
display: block; | |||
} | } | ||
/* Impedir que o item ativo no índice mude para negrito durante o scroll */ | /* Impedir que o item ativo no índice mude para negrito durante o scroll */ | ||
.vector-toc-list-item-active > .vector-toc-link .vector-toc-text { | .vector-toc-list-item-active > .vector-toc-link .vector-toc-text { | ||
font-weight: normal !important; | |||
} | } | ||
/* Garante que o título do Datasheet e outros itens mantenham a consistência */ | /* Garante que o título do Datasheet e outros itens mantenham a consistência */ | ||
.vector-toc-link .vector-toc-text { | .vector-toc-link .vector-toc-text { | ||
font-weight: normal !important; | |||
} | } | ||
/* Botão Técnico Atlas - Cores Customizadas */ | /* Botão Técnico Atlas - Cores Customizadas */ | ||
.mw-parser-output .atlas-btn { | .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 */ | |||
} | } | ||
| Line 145: | Line 139: | ||
.mw-parser-output .atlas-btn a:hover, | .mw-parser-output .atlas-btn a:hover, | ||
.mw-parser-output .atlas-btn a:active { | .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 */ | /* Efeito Hover: Versão levemente mais clara */ | ||
.mw-parser-output .atlas-btn:hover { | .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 */ | /* Garante que o link não mude de cor ou sublinhe no hover */ | ||
.mw-parser-output .atlas-btn a:hover { | .mw-parser-output .atlas-btn a:hover { | ||
text-decoration: none !important; | |||
color: #ffffff !important; | |||
} | } | ||
/* Forçar a fonte Rubik no título principal */ | /* Forçar a fonte Rubik no título principal */ | ||
#firstHeading { | #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 */ | /* Garante que o breadcrumb (< SENSBLUE ATLAS) também use a Rubik */ | ||
#contentSub, #contentSub2 { | #contentSub, | ||
#contentSub2 { | |||
font-family: "Rubik", sans-serif !important; | |||
font-size: 0.85em !important; | |||
color: #54595d !important; | |||
margin-top: 5px !important; | |||
} | } | ||
pre { | pre { | ||
font-family: "Roboto", sans-serif !important; | |||
} | } | ||
Revision as of 16:56, 19 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");
/* 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;
}
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;
}
/* Impedir que o item ativo no índice mude para negrito durante o scroll */
.vector-toc-list-item-active > .vector-toc-link .vector-toc-text {
font-weight: normal !important;
}
/* 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;
}