MediaWiki:Vector-2022.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Esconde | /* 1. Esconde o ícone original teimoso */ | ||
#ca-watch .vector-icon, | #ca-watch .vector-icon, | ||
#ca-unwatch .vector-icon { | #ca-unwatch .vector-icon { | ||
| Line 5: | Line 5: | ||
} | } | ||
/* | /* 2. Cria o novo ícone usando Material Icons */ | ||
#ca-watch a::before, | #ca-watch a::before, | ||
#ca-unwatch a::before { | #ca-unwatch a::before { | ||
content: ""; | font-family: 'Material Icons'; | ||
display: inline- | content: "star_border"; /* Ícone da estrela vazia */ | ||
font-size: 20px; | |||
color: #000000; | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 28px; | |||
height: 28px; | |||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
/* | /* 3. Muda para a estrela cheia quando a página já está vigiada */ | ||
#ca-unwatch a::before { | #ca-unwatch a::before { | ||
content: "star"; /* Ícone da estrela preenchida */ | |||
} | } | ||
/* 4. Ajuste para o botão não ficar estranho no hover */ | |||
.mw-watchlink.cdx-button { | |||
min-width: 32px; | |||
padding: 0 !important; | |||
} | |||