MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
/* ========================================================================== | /* ========================================================================== | ||
ÍNDICE LATERAL (TOC) - | ÍNDICE LATERAL (TOC) - COMPORTAMENTO POR CLIQUE ISOLADO | ||
========================================================================== */ | ========================================================================== */ | ||
/* 1. Esconde as sublistas por padrão */ | /* 1. Esconde as sublistas numéricas por padrão */ | ||
.vector-toc- | .vector-toc-contents .vector-toc-list .vector-toc-list { | ||
.vector-toc-list | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* 2. Mostra | /* 2. Mostra a sublista unicamente quando o item pai tiver a classe expandida */ | ||
.vector-toc-list-item.toc-expanded > .vector-toc-list { | .vector-toc-list-item.toc-expanded > .vector-toc-list { | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* 3. | /* 3. Prepara o espaço relativo para o alinhamento perfeito da seta */ | ||
.vector-toc-list-item { | .vector-toc-contents .vector-toc-list .vector-toc-list-item { | ||
position: relative !important; | position: relative !important; | ||
} | } | ||
/* 4. | /* 4. Estilização e posicionamento absoluto da seta na margem esquerda */ | ||
.toc-toggle-arrow { | .toc-toggle-arrow { | ||
position: absolute !important; | position: absolute !important; | ||
left: - | left: -13px !important; /* Afasta a seta para fora do alinhamento do texto */ | ||
top: 5px !important; /* Centraliza com a | top: 5px !important; /* Centraliza verticalmente com a linha do texto */ | ||
display: inline-block !important; | display: inline-block !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
| Line 37: | Line 35: | ||
width: 10px !important; | width: 10px !important; | ||
text-align: center !important; | text-align: center !important; | ||
z-index: | z-index: 50 !important; | ||
transition: transform 0.2s ease !important; | transition: transform 0.2s ease !important; | ||
} | } | ||
/* 5. | /* 5. Rotação da seta ao expandir */ | ||
.vector-toc-list-item.toc-expanded > .toc-toggle-arrow { | .vector-toc-list-item.toc-expanded > .toc-toggle-arrow { | ||
transform: rotate(90deg) !important; | transform: rotate(90deg) !important; | ||
} | } | ||
/* 6. Indentação | /* 6. Indentação interna limpa para os subcapítulos abertos */ | ||
.vector-toc- | .vector-toc-contents .vector-toc-list .vector-toc-list { | ||
.vector-toc-list | padding-left: 12px !important; | ||
padding-left: | |||
margin-top: 4px !important; | margin-top: 4px !important; | ||
} | } | ||
/* 7. | /* 7. PROTEÇÃO TOTAL DO HEADING PRINCIPAL - Bloqueia qualquer modificação visual */ | ||
.vector-toc-header .toc-toggle-arrow, | |||
.vector-toc-title .toc-toggle-arrow, | .vector-toc-title .toc-toggle-arrow, | ||
#vector-toc-collapsed-button .toc-toggle-arrow { | |||
display: none !important; | display: none !important; | ||
opacity: 0 !important; | |||
visibility: hidden !important; | |||
} | } | ||