Jump to content

MediaWiki:Vector-2022.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* 1. Esconde os ícones originais do menu pessoal */
/* 2. CONFIGURAÇÃO PARA A ESTRELA (BARRA SUPERIOR) */
#ca-watch .vector-icon,
#ca-unwatch .vector-icon {
    display: none !important;
}
 
#ca-watch a::before,
#ca-unwatch a::before {
    font-family: 'Material Symbols Rounded' !important; /* Usando a Rounded que importaste */
    font-size: 24px;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}
 
#ca-watch a::before { content: "star"; font-variation-settings: 'FILL' 0; }
#ca-unwatch a::before { content: "star"; font-variation-settings: 'FILL' 1; } /* Estrela preenchida */
 
/* 3. CONFIGURAÇÃO PARA O MENU DROPDOWN (PERFIL) */
#p-personal .vector-icon,
#p-personal .vector-icon,
#p-user-menu-content .vector-icon {
#p-user-menu-content .vector-icon {
Line 5: Line 28:
}
}


/* 2. Estilo base para os novos ícones no menu */
#p-personal li a::before,
#p-personal li a::before,
#p-user-menu-content li a::before {
#p-user-menu-content li a::before {
     font-family: 'Material Symbols Rounded';
     font-family: 'Material Symbols Outlined' !important;
     font-size: 18px;
     font-size: 20px;
     color: #000000;
     color: #000000;
     margin-right: 10px;
     margin-right: 10px;
     display: inline-block;
     display: inline-block;
     vertical-align: middle;
     vertical-align: middle;
     width: 20px;
     width: 24px;
     text-align: center;
     text-align: center;
    font-variation-settings: 'FILL' 0;
}
}


/* 3. Define ícones específicos para cada item (IDs do MediaWiki) */
/* Ícones específicos usando os nomes das Symbols */
 
#pt-userpage a::before { content: "person"; }
/* Talk / Discussão */
#pt-mytalk a::before { content: "chat_bubble"; }
#pt-mytalk a::before { content: "chat_bubble_outline"; }
 
/* Preferences / Preferências */
#pt-preferences a::before { content: "settings"; }
#pt-preferences a::before { content: "settings"; }
/* Watchlist / Vigilância */
#pt-watchlist a::before { content: "visibility"; }
#pt-watchlist a::before { content: "visibility"; }
#pt-mycontris a::before { content: "history_edu"; }


/* Contributions / Contribuições */
/* 4. CORREÇÃO DEFINITIVA PARA O LOGOUT */
#pt-mycontris a::before { content: "list_alt"; }
#pt-logout a {
    font-size: 0 !important; /* Esconde o texto "logout" que a fonte usa para desenhar */
    display: flex !important;
    align-items: center;
}


/* Log out / Sair */
#pt-logout a::before {
#pt-logout a::before { content: "exit_to_app"; }
    content: "logout" !important;
    font-family: 'Material Symbols Outlined' !important;
    font-size: 20px !important;
    color: #000000 !important;
    margin-right: 10px;
    text-transform: none;
}


/* User Page / Perfil */
#pt-logout a span {
#pt-userpage a::before { content: "person"; }
    font-size: 14px !important; /* Devolve o tamanho ao texto real "Log out" */
    display: inline-block;
}