Jump to content

MediaWiki:Vector-2022.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(34 intermediate revisions by the same user not shown)
Line 2,134: 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,301: Line 2,342:
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
     .mw-header .mw-logo-icon {
     .mw-header .mw-logo-icon {
         width: 100px !important;  /* Ajusta este valor para o tamanho que gostares */
         width: 120px !important;  /* Ajusta este valor para o tamanho que gostares */
         height: auto !important;
         height: auto !important;
         max-height: 24px !important; /* Limita a altura para não empurrar o cabeçalho */
         max-height: 24px !important; /* Limita a altura para não empurrar o cabeçalho */
Line 2,317: Line 2,358:




/* --- RECONSTRUÇÃO DO TOPO MOBILE --- */
 
/* --- REDUZIR ALTURA DA ZONA ROXA (Cabeçalho) --- */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
     /* 1. Força o cabeçalho a mostrar tudo o que sai das bordas */
     /* 1. Remove a altura mínima e reduz o padding vertical */
     .mw-header, .vector-header-container {
     .mw-header {
         overflow: visible !important;
        min-height: 50px !important; /* Estava em 72px ou mais */
         height: 54px !important;
        padding-top: 5px !important;
         padding-bottom: 5px !important;
         height: auto !important;
     }
     }


     /* 2. Reduz o logo ao máximo para ganhar espaço horizontal */
     /* 2. Ajusta o container do topo para não forçar espaço extra */
     .mw-header .mw-logo-icon {
     .vector-header-container {
         width: 70px !important;
         height: auto !important;
         max-height: 18px !important;
         min-height: 50px !important;
        margin-right: 0 !important;
     }
     }


     /* 3. O "Pulo do Gato": faz a pesquisa ocupar zero de espaço lateral */
     /* 3. Centraliza verticalmente o logo e os ícones para ficarem perfeitos */
    #p-search {
     .mw-header-start,
        position: relative !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        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;
         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;
    }
    /* Esconde o texto "Log in" e "WikiManagement" para caber tudo */
    .vector-user-links span:not(.vector-icon),
    .cdx-button__label {
        display: none !important;
     }
     }
}
}