MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
. | /* Hide nested items initially */ | ||
.portal .body ul { | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
. | .portal .body ul ul { | ||
. | display: none; /* Hide by default */ | ||
margin-left: 1em; | |||
} | |||
/* Style for collapsible headers */ | |||
.portal .collapsible-header { | |||
cursor: pointer; | |||
font-weight: bold; | |||
position: relative; | |||
padding-left: 15px; | |||
} | |||
.portal .collapsible-header::before { | |||
content: "▶"; | |||
position: absolute; | |||
left: 0; | |||
transition: transform 0.2s ease; | |||
} | |||
.portal .collapsible-header.open::before { | |||
transform: rotate(90deg); | |||
} | } |
Revision as of 10:05, 25 August 2025
/* Hide nested items initially */ .portal .body ul { list-style: none; margin: 0; padding: 0; } .portal .body ul ul { display: none; /* Hide by default */ margin-left: 1em; } /* Style for collapsible headers */ .portal .collapsible-header { cursor: pointer; font-weight: bold; position: relative; padding-left: 15px; } .portal .collapsible-header::before { content: "▶"; position: absolute; left: 0; transition: transform 0.2s ease; } .portal .collapsible-header.open::before { transform: rotate(90deg); }