MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (81 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
@import url( | @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"); | ||
@import url( | @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@0..1"); | ||
/* Botão de Seta para o Topo */ | |||
.footer-top-button { | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
background-color: #d1ff00 !important; /* Mesmo verde */ | |||
color: #000 !important; | |||
width: 40px !important; | |||
height: 40px !important; | |||
border-radius: 50% !important; /* Circular */ | |||
font-weight: bold !important; | |||
font-size: 20px !important; | |||
text-decoration: none !important; | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; | |||
transition: transform 0.2s ease !important; | |||
cursor: pointer; | |||
} | |||
.footer-top-button:hover { | |||
transform: scale(1.1) !important; | |||
background-color: #e2ff33 !important; | |||
text-decoration: none !important; | |||
} | |||
/* Garante que o container se alinha bem no mobile */ | |||
@media screen and (max-width: 720px) { | |||
#footer-custom-buttons-container { | |||
justify-content: center !important; | |||
margin-top: 15px !important; | |||
} | |||
} | |||
/* 1. Contentor do botão Buy Now (MONARCH) - Alinhado à direita */ | |||
.buy-now-container { | |||
display: flex !important; | |||
justify-content: right !important; | |||
} | |||
/* 2. Estilo do Botão - Base e Centralização */ | |||
.button-buy-now a.external { | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
background-color: #d1ff00 !important; /* Verde néon */ | |||
color: #000 !important; /* Texto preto */ | |||
/* PADDING IGUAL DOS DOIS LADOS (Essencial para centrar) */ | |||
padding: 7px 25px !important; | |||
border-radius: 50px !important; | |||
font-weight: bold !important; | |||
text-decoration: none !important; | |||
font-size: 1.0em !important; | |||
font-family: "Rubik", sans-serif !important; | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; | |||
transition: transform 0.2s ease !important; | |||
/* Remove a seta e o espaço fantasma do MediaWiki */ | |||
background-image: none !important; | |||
margin-right: 0 !important; | |||
text-indent: 0 !important; | |||
letter-spacing: 0 !important; | |||
} | |||
/* 3. Forçar anulação de regras do sistema (mw-parser-output) */ | |||
.mw-parser-output .button-buy-now a.external { | |||
padding-right: 25px !important; /* Força a simetria com a esquerda */ | |||
background-image: none !important; | |||
} | |||
/* 4. Efeito ao passar o rato */ | |||
.button-buy-now a.external:hover { | |||
transform: scale(1.05) !important; | |||
background-color: #e2ff33 !important; | |||
text-decoration: none !important; | |||
} | |||
/* ========================================================================== | |||
RODAPÉ (Footer) - Versão Final Limpa | |||
========================================================================== */ | |||
/* 1. Contentor do Rodapé - Permite que os itens respirem e alinhem */ | |||
#footer-places { | |||
display: flex !important; | |||
width: 100% !important; | |||
align-items: center !important; | |||
flex-wrap: nowrap !important; | |||
padding: 10px 25px !important; | |||
} | |||
/* 2. Links da Esquerda (Privacy, About, etc) */ | |||
#footer-places li { | |||
margin-right: 15px !important; | |||
list-style: none !important; | |||
} | |||
/* 3. NOVO CONTENTOR DOS BOTÕES (Seta + Link) | |||
O "margin-left: auto" é o íman que empurra o grupo para a direita */ | |||
#footer-custom-buttons-container { | |||
display: flex !important; | |||
gap: 12px !important; /* Espaço entre a seta e o botão */ | |||
align-items: center !important; | |||
margin-left: auto !important; | |||
margin-right: 0 !important; | |||
list-style: none !important; | |||
} | |||
/* 4. Estilo Comum para Seta e Botão (Cápsula Verde) */ | |||
.footer-top-button, | |||
.footer-button-atronia-real { | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
background-color: #d1ff00 !important; | |||
color: #000 !important; | |||
font-weight: bold !important; | |||
text-decoration: none !important; | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; | |||
transition: all 0.2s ease-in-out !important; | |||
border-radius: 50px !important; | |||
} | |||
/* 5. Especificações da Seta (Circular) */ | |||
.footer-top-button { | |||
width: 40px !important; | |||
height: 40px !important; | |||
font-size: 18px !important; | |||
} | |||
/* 6. Especificações do Botão do Site */ | |||
.footer-button-atronia-real { | |||
padding: 7px 25px !important; | |||
font-size: 1.0em !important; | |||
font-family: "Rubik", sans-serif !important; | |||
white-space: nowrap !important; | |||
} | |||
/* 7. Hover para os dois */ | |||
.footer-top-button:hover, | |||
.footer-button-atronia-real:hover { | |||
background-color: #e2ff33 !important; | |||
transform: scale(1.05) !important; | |||
text-decoration: none !important; | |||
} | |||
/* 8. Remover ícones de link externo do MediaWiki */ | |||
.footer-button-atronia-real.external, | |||
.footer-button-atronia-real.external:after { | |||
background-image: none !important; | |||
padding-right: 25px !important; /* Mantém igual à esquerda para centrar */ | |||
} | |||
/* --- AJUSTE PARA MOBILE (Ecrãs até 720px) --- */ | |||
@media screen and (max-width: 720px) { | |||
#footer-places { | |||
flex-direction: column !important; | |||
align-items: center !important; | |||
text-align: center !important; | |||
width: auto !important; | |||
} | |||
#footer-places li { | |||
margin-right: 0 !important; | |||
margin-bottom: 10px !important; | |||
} | |||
/* No mobile, os botões ficam centrados em baixo dos textos */ | |||
#footer-custom-buttons-container { | |||
margin-left: 0 !important; | |||
margin-top: 15px !important; | |||
justify-content: center !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-list > pre, | ||
.variations-toggle > 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 { | 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; | |||
} | } | ||
/* 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 119: | Line 355: | ||
.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 { | |||
font-family: "Roboto", sans-serif !important; | |||
} | } | ||
Latest revision as of 15:34, 8 April 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");
/* Botão de Seta para o Topo */
.footer-top-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
background-color: #d1ff00 !important; /* Mesmo verde */
color: #000 !important;
width: 40px !important;
height: 40px !important;
border-radius: 50% !important; /* Circular */
font-weight: bold !important;
font-size: 20px !important;
text-decoration: none !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
transition: transform 0.2s ease !important;
cursor: pointer;
}
.footer-top-button:hover {
transform: scale(1.1) !important;
background-color: #e2ff33 !important;
text-decoration: none !important;
}
/* Garante que o container se alinha bem no mobile */
@media screen and (max-width: 720px) {
#footer-custom-buttons-container {
justify-content: center !important;
margin-top: 15px !important;
}
}
/* 1. Contentor do botão Buy Now (MONARCH) - Alinhado à direita */
.buy-now-container {
display: flex !important;
justify-content: right !important;
}
/* 2. Estilo do Botão - Base e Centralização */
.button-buy-now a.external {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
background-color: #d1ff00 !important; /* Verde néon */
color: #000 !important; /* Texto preto */
/* PADDING IGUAL DOS DOIS LADOS (Essencial para centrar) */
padding: 7px 25px !important;
border-radius: 50px !important;
font-weight: bold !important;
text-decoration: none !important;
font-size: 1.0em !important;
font-family: "Rubik", sans-serif !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
transition: transform 0.2s ease !important;
/* Remove a seta e o espaço fantasma do MediaWiki */
background-image: none !important;
margin-right: 0 !important;
text-indent: 0 !important;
letter-spacing: 0 !important;
}
/* 3. Forçar anulação de regras do sistema (mw-parser-output) */
.mw-parser-output .button-buy-now a.external {
padding-right: 25px !important; /* Força a simetria com a esquerda */
background-image: none !important;
}
/* 4. Efeito ao passar o rato */
.button-buy-now a.external:hover {
transform: scale(1.05) !important;
background-color: #e2ff33 !important;
text-decoration: none !important;
}
/* ==========================================================================
RODAPÉ (Footer) - Versão Final Limpa
========================================================================== */
/* 1. Contentor do Rodapé - Permite que os itens respirem e alinhem */
#footer-places {
display: flex !important;
width: 100% !important;
align-items: center !important;
flex-wrap: nowrap !important;
padding: 10px 25px !important;
}
/* 2. Links da Esquerda (Privacy, About, etc) */
#footer-places li {
margin-right: 15px !important;
list-style: none !important;
}
/* 3. NOVO CONTENTOR DOS BOTÕES (Seta + Link)
O "margin-left: auto" é o íman que empurra o grupo para a direita */
#footer-custom-buttons-container {
display: flex !important;
gap: 12px !important; /* Espaço entre a seta e o botão */
align-items: center !important;
margin-left: auto !important;
margin-right: 0 !important;
list-style: none !important;
}
/* 4. Estilo Comum para Seta e Botão (Cápsula Verde) */
.footer-top-button,
.footer-button-atronia-real {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
background-color: #d1ff00 !important;
color: #000 !important;
font-weight: bold !important;
text-decoration: none !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
transition: all 0.2s ease-in-out !important;
border-radius: 50px !important;
}
/* 5. Especificações da Seta (Circular) */
.footer-top-button {
width: 40px !important;
height: 40px !important;
font-size: 18px !important;
}
/* 6. Especificações do Botão do Site */
.footer-button-atronia-real {
padding: 7px 25px !important;
font-size: 1.0em !important;
font-family: "Rubik", sans-serif !important;
white-space: nowrap !important;
}
/* 7. Hover para os dois */
.footer-top-button:hover,
.footer-button-atronia-real:hover {
background-color: #e2ff33 !important;
transform: scale(1.05) !important;
text-decoration: none !important;
}
/* 8. Remover ícones de link externo do MediaWiki */
.footer-button-atronia-real.external,
.footer-button-atronia-real.external:after {
background-image: none !important;
padding-right: 25px !important; /* Mantém igual à esquerda para centrar */
}
/* --- AJUSTE PARA MOBILE (Ecrãs até 720px) --- */
@media screen and (max-width: 720px) {
#footer-places {
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
width: auto !important;
}
#footer-places li {
margin-right: 0 !important;
margin-bottom: 10px !important;
}
/* No mobile, os botões ficam centrados em baixo dos textos */
#footer-custom-buttons-container {
margin-left: 0 !important;
margin-top: 15px !important;
justify-content: center !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;
}