MediaWiki:Common.css: Difference between revisions

From SZ
Jump to navigation Jump to search
Replaced content with "# Replace the JAVASCRIPT_CODE section with this updated version: Sidebar collapsible sections: .collapsible-header { cursor: pointer; font-weight: bold; padding: 5px 8px; background: #f8f9fa; border-radius: 4px; margin-bottom: 2px; } .collapsible-content { display: none; margin: 0; padding-left: 15px; } .collapsible-section.active .collapsible-content { display: block; }"
Tag: Replaced
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
# Replace the JAVASCRIPT_CODE section with this updated version:


/* Sidebar collapsible sections */
/*
.collapsible-header {
#mw-panel.collapsed {
     cursor: pointer;
     width: 0;
    font-weight: bold;
     overflow: hidden;
    padding: 5px 8px;
     background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 2px;
}
}


.collapsible-content {
#mw-panel.collapsed .portal,
#mw-panel.collapsed .vector-menu-content {
     display: none;
     display: none;
    margin: 0;
    padding-left: 15px;
}
}
*/


.collapsible-section.active .collapsible-content {
 
    display: block;
 
/*
 
.vector-menu.mw-portlet li.collapsible-header,
.vector-menu-portal li.collapsible-header {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
}
 
.mw-collapsible-arrow {
  display: inline-block;
  width: 1em;
  margin-right: 4px;
  transform-origin: center;
  transition: transform 0.2s ease;
  user-select: none;
}
 
li.collapsible-header.open > .mw-collapsible-arrow {
  transform: rotate(90deg);
}
}
*/

Latest revision as of 15:30, 26 August 2025


/*
#mw-panel.collapsed {
    width: 0;
    overflow: hidden;
}

#mw-panel.collapsed .portal,
#mw-panel.collapsed .vector-menu-content {
    display: none;
}
*/



/*

.vector-menu.mw-portlet li.collapsible-header,
.vector-menu-portal li.collapsible-header {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.mw-collapsible-arrow {
  display: inline-block;
  width: 1em;
  margin-right: 4px;
  transform-origin: center;
  transition: transform 0.2s ease;
  user-select: none;
}

li.collapsible-header.open > .mw-collapsible-arrow {
  transform: rotate(90deg);
}
*/