MediaWiki:Vector-2022.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 2,320: | Line 2,320: | ||
/* --- FIX | /* --- FIX DEFINITIVO: CABEÇALHO EM LINHA ÚNICA --- */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
/* 1. Força o | /* 1. Força o cabeçalho a não quebrar linha e reduz a altura */ | ||
.mw-header { | .mw-header { | ||
display: flex !important; | display: flex !important; | ||
flex-wrap: nowrap !important; | flex-wrap: nowrap !important; | ||
align-items: center !important; | align-items: center !important; | ||
height: 50px !important; | |||
padding: 0 8px !important; | |||
} | } | ||
/* 2. Esconde | /* 2. Reduz o logo para ganhar espaço horizontal */ | ||
.vector-user-links-main .mw-list-item span:not(.vector-icon) { | .mw-header .mw-logo-icon { | ||
width: 80px !important; /* Logo mais pequeno na vertical para caber tudo */ | |||
height: auto !important; | |||
max-height: 22px !important; | |||
} | |||
/* 3. Esconde qualquer texto de utilizador (como "WikiManagement" ou "Log in") */ | |||
/* Mantém apenas o ícone visual */ | |||
.vector-user-links-main .mw-list-item span:not(.vector-icon), | |||
#pt-login span, | |||
#pt-createaccount span { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 4. Garante que os ícones da direita fiquem alinhados e visíveis */ | ||
.vector-header-end { | .vector-header-end { | ||
display: flex !important; | display: flex !important; | ||
flex | flex: 1 !important; | ||
justify-content: flex-end !important; | justify-content: flex-end !important; | ||
gap: 12px !important; | |||
min-width: 100px !important; | |||
} | } | ||
/* | /* 5. Ajusta o botão de login para mostrar o ícone se ele estiver escondido */ | ||
#pt-login { | |||
display: inline-flex !important; | |||
} | } | ||
} | } | ||