MediaWiki:Common.css: Difference between revisions

From SZ
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
.mw-custom-collapsible .vector-menu-heading::after,
/* Hide nested items initially */
.mw-custom-collapsible h3::after {
.portal .body ul {
  content: '▸';
    list-style: none;
  float: right;
    margin: 0;
  transition: transform 0.2s;
    padding: 0;
}
}


.mw-custom-collapsible.is-open .vector-menu-heading::after,
.portal .body ul ul {
.mw-custom-collapsible.is-open h3::after {
    display: none; /* Hide by default */
  transform: rotate(90deg);
    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);
}