MediaWiki:Vector-2022.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 2,317: | Line 2,317: | ||
/* --- | /* --- RECONSTRUÇÃO DO TOPO MOBILE --- */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
/* 1. Força o cabeçalho a | /* 1. Força o cabeçalho a mostrar tudo o que sai das bordas */ | ||
.mw-header { | .mw-header, .vector-header-container { | ||
overflow: visible !important; | overflow: visible !important; | ||
height: 54px !important; | |||
} | |||
/* 2. Reduz o logo ao máximo para ganhar espaço horizontal */ | |||
.mw-header .mw-logo-icon { | |||
width: 70px !important; | |||
max-height: 18px !important; | |||
margin-right: 0 !important; | |||
} | } | ||
/* | /* 3. O "Pulo do Gato": faz a pesquisa ocupar zero de espaço lateral */ | ||
#p-search | #p-search { | ||
position: relative !important; | |||
flex: 0 0 auto !important; | flex: 0 0 auto !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
width: | width: 35px !important; /* Apenas o tamanho do ícone da lupa */ | ||
} | } | ||
/* | /* 4. Alinha todos os ícones da direita num bloco colado */ | ||
.vector-header-end { | .vector-header-end { | ||
display: flex !important; | |||
flex-direction: row !important; | |||
justify-content: flex-end !important; | |||
align-items: center !important; | |||
gap: 0px !important; /* Cola os ícones uns aos outros */ | |||
flex: 1 !important; | |||
} | |||
/* 5. Força a cor branca em TODOS os ícones (lupa, chave, user) */ | |||
.mw-header .vector-icon { | |||
background-color: #ffffff !important; | |||
filter: none !important; | |||
} | |||
/* 6. Corrige o botão de Login/User que está "caído" ou cortado */ | |||
.vector-user-links { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
} | } | ||
/* Esconde o texto "Log in" e "WikiManagement" para caber tudo */ | |||
.vector-user-links span:not(.vector-icon), | |||
.cdx-button__label { | |||
display: none !important; | |||
} | |||
} | |||