MediaWiki:Common.css: Difference between revisions

From SZ
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 1: Line 1:
.mw-collapsible-arrowtoggle {
/* Hide nested items initially */
 
.portal .body ul {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/4/41/MediaWiki_Vector_skin_right_arrow.png'); /* @noflip */
    list-style: none;
 
    margin: 0;
  background-position: left center;
    padding: 0;
 
  /* Add other styles as desired for the toggle arrow */
 
}
}


.mw-collapsible-toggle-collapsed.mw-collapsible-arrowtoggle {
.portal .body ul ul {
 
    display: none; /* Hide by default */
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/1e/MediaWiki_Vector_skin_left_arrow.png'); /* @noflip */
    margin-left: 1em;
 
  /* Add other styles for the collapsed state of the arrow */
 
}
}


/* Style for collapsible headers */
 
.portal .collapsible-header {
/* Adjustments for the toggle link */
     cursor: pointer;
 
     font-weight: bold;
.mw-collapsible span.mw-collapsible-toggle {
     position: relative;
 
     padding-left: 15px;
     float: left;
 
     margin-left: 0;
 
     margin-right: 1em;
 
     /* This example floats the toggle left and adjusts margins */
 
}
}


.portal .collapsible-header::before {
 
    content: "▶";
/* Hide the content within collapsed sections */
    position: absolute;
 
     left: 0;
.mw-collapsible-content {
    transition: transform 0.2s ease;
 
     display: none;
 
}
}


.mw-collapsible-toggle-expanded .mw-collapsible-content {
.portal .collapsible-header.open::before {
 
     transform: rotate(90deg);
     display: block;
 
}
}

Revision as of 20:16, 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);
}