MediaWiki:Vector-2022.css: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Manual revert |
||
| (55 intermediate revisions by the same user not shown) | |||
| Line 41: | Line 41: | ||
#p-views li a:hover span { | #p-views li a:hover span { | ||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
| Line 443: | Line 441: | ||
background-color: rgba(146, 255, 0, 0.3) !important; /* ← reduzido */ | background-color: rgba(146, 255, 0, 0.3) !important; /* ← reduzido */ | ||
} | } | ||
/* ========================================================= */ | /* ========================================================= */ | ||
| Line 1,007: | Line 995: | ||
color: #202122 !important; | color: #202122 !important; | ||
} | } | ||
/* ===== FORÇAR COR DA SETA (DROPDOWN ARROW) ===== */ | /* ===== FORÇAR COR DA SETA (DROPDOWN ARROW) ===== */ | ||
| Line 1,032: | Line 1,012: | ||
background-color: rgba(146, 255, 0, 0.3) !important; /* ← reduzido */ | background-color: rgba(146, 255, 0, 0.3) !important; /* ← reduzido */ | ||
} | } | ||
/* ========================================================= */ | /* ========================================================= */ | ||
| Line 1,274: | Line 1,247: | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* Estado ativo (dropdown aberto) */ | /* Estado ativo (dropdown aberto) */ | ||
| Line 2,169: | Line 2,134: | ||
color: white; /* or currentColor */ | color: white; /* or currentColor */ | ||
} | } | ||
.mw-ui-icon-wikimedia-ellipsis { | |||
-webkit-mask-image: none !important; | |||
mask-image: none !important; | |||
background: none !important; | |||
width: 2rem !important; | |||
} | |||
/* Inject Material icon */ | |||
.mw-ui-icon-wikimedia-ellipsis::before { | |||
content: "account_circle"; | |||
font-family: "Material Symbols Rounded"; | |||
font-weight: normal; | |||
font-style: normal; | |||
font-size: 20px; | |||
display: inline-block; | |||
line-height: 1; | |||
font-variation-settings: | |||
"FILL" 1, | |||
"wght" 400, | |||
"GRAD" 0, | |||
"opsz" 24; | |||
color: white; /* or currentColor */ | |||
} | |||
.mw-ui-icon-wikimedia-ellipsis::after { | |||
content: "keyboard_arrow_down"; | |||
font-family: "Material Symbols Rounded"; | |||
font-weight: normal; | |||
font-style: normal; | |||
font-size: 20px; | |||
display: inline-block; | |||
line-height: 1; | |||
letter-spacing: normal; | |||
color: white; /* or currentColor */ | |||
} | |||
/* Remove MediaWiki mask system */ | /* Remove MediaWiki mask system */ | ||
#vector-page-titlebar-toc-label > .mw-ui-icon-wikimedia-listBullet { | #vector-page-titlebar-toc-label > .mw-ui-icon-wikimedia-listBullet { | ||
| Line 2,292: | Line 2,298: | ||
+ .cdx-button { | + .cdx-button { | ||
background: rgba(146, 255, 0, 0.3) !important; | background: rgba(146, 255, 0, 0.3) !important; | ||
} | |||
/*==========================================================*/ | |||
/* MOBILE */ | |||
/*==========================================================*/ | |||
.search-toggle { | |||
background: transparent !important; | |||
border-left: none !important; | |||
} | |||
/* --- FORÇAR LOGO NO MOBILE (Vector 2022) --- */ | |||
@media screen and (max-width: 720px) { | |||
/* 1. Garante que o container do logo é visível */ | |||
.mw-header .mw-logo { | |||
display: flex !important; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
width: auto !important; | |||
height: 32px !important; /* Ajusta conforme necessário */ | |||
} | |||
/* 2. Força a exibição da imagem do logo */ | |||
/* A Vector 2022 muitas vezes esconde o <img> original no mobile */ | |||
.mw-logo-icon, | |||
.mw-logo-container img { | |||
display: block !important; | |||
width: 120px !important; /* Largura do logo ATRONIA no tele */ | |||
height: auto !important; | |||
} | |||
/* 3. Ajusta o espaço entre o menu e o logo */ | |||
.mw-header-start { | |||
gap: 10px !important; | |||
} | |||
} | |||
/* AJUSTE DO TAMANHO DO LOGO NO MOBILE */ | |||
@media screen and (max-width: 720px) { | |||
.mw-header .mw-logo-icon { | |||
width: 120px !important; /* Ajusta este valor para o tamanho que gostares */ | |||
height: auto !important; | |||
max-height: 24px !important; /* Limita a altura para não empurrar o cabeçalho */ | |||
margin-left: 5px !important; | |||
} | |||
/* Garante que o container do logo não estique o topo */ | |||
.mw-header .mw-logo { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
align-items: center !important; | |||
} | |||
} | |||
/* --- REDUZIR ALTURA DA ZONA ROXA (Cabeçalho) --- */ | |||
@media screen and (max-width: 720px) { | |||
/* 1. Remove a altura mínima e reduz o padding vertical */ | |||
.mw-header { | |||
min-height: 50px !important; /* Estava em 72px ou mais */ | |||
padding-top: 5px !important; | |||
padding-bottom: 5px !important; | |||
height: auto !important; | |||
} | |||
/* 2. Ajusta o container do topo para não forçar espaço extra */ | |||
.vector-header-container { | |||
height: auto !important; | |||
min-height: 50px !important; | |||
} | |||
/* 3. Centraliza verticalmente o logo e os ícones para ficarem perfeitos */ | |||
.mw-header-start, | |||
.vector-header-end { | |||
align-items: center !important; | |||
display: flex !important; | |||
} | |||
} | } | ||