Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 69: | Line 69: | ||
.mw-sidebar li { | .mw-sidebar li { | ||
padding: 2px 8px; | padding: 2px 8px; | ||
| + | } | ||
| + | |||
| + | /* Sidebar group headers */ | ||
| + | #mw-panel .portal .portal-title, | ||
| + | #mw-panel .vector-menu-heading, | ||
| + | #column-one h3, | ||
| + | .skin-timeless .ts-sidebar .ts-portlet h2, | ||
| + | .citizen-drawer .drawer__section-title, | ||
| + | .mw-sidebar h2 { | ||
| + | background: #63635B !important; /* muted block behind titles */ | ||
| + | color: #EEEDEB !important; | ||
| + | border-radius: 4px; | ||
| + | padding: 6px 10px; | ||
| + | margin: 14px 8px 6px; | ||
| + | font-weight: 700; | ||
| + | text-transform: none; | ||
| + | letter-spacing: .2px; | ||
| + | border: none !important; | ||
} | } | ||
Revision as of 09:14, 10 October 2025
/***** UNIVERSAL LEFT SIDEBAR STYLING (works across common skins) *****/
/* 1) Pick up the left column container across skins */
#mw-panel, /* Vector/Vector-legacy */
#column-one, /* Monobook / Modern */
.skin-timeless .ts-sidebar, /* Timeless */
.citizen-drawer, /* Citizen */
.mw-sidebar, /* Generic sidebars */
.skin-minerva .menu { /* Minerva (mobile) */
background: linear-gradient(to bottom, #2F2D2B 0%, #1E1E1D 100%) !important;
color: #EEEDEB !important;
border-right: none !important;
}
/* 2) Kill inner backgrounds so the gradient shows */
#mw-panel .vector-menu,
#mw-panel .vector-menu-content,
#mw-panel .vector-menu-content-list,
#column-one .portlet,
#column-one .pBody,
.skin-timeless .ts-sidebar * ,
.citizen-drawer *,
.mw-sidebar *,
.skin-minerva .menu * {
background: transparent !important;
color: inherit !important;
}
/* 3) Links inside the sidebar */
#mw-panel a,
#column-one a,
.skin-timeless .ts-sidebar a,
.citizen-drawer a,
.mw-sidebar a,
.skin-minerva .menu a {
color: #EEEDEB !important;
text-decoration: none;
}
#mw-panel a:hover,
#column-one a:hover,
.skin-timeless .ts-sidebar a:hover,
.citizen-drawer a:hover,
.mw-sidebar a:hover,
.skin-minerva .menu a:hover {
color: #5A65EA !important;
text-decoration: underline;
}
/* 4) Section headers in the sidebar (common title elements) */
#mw-panel .portal .portal-title,
#mw-panel .vector-menu-heading,
#column-one h3,
.skin-timeless .ts-sidebar .ts-portlet h2,
.citizen-drawer .drawer__section-title,
.mw-sidebar h2 {
background: #63635B !important; /* muted block behind group titles */
color: #EEEDEB !important;
border-radius: 4px;
padding: 6px 8px;
margin: 12px 8px 6px;
font-weight: 700;
}
/* 5) List items spacing */
#mw-panel .vector-menu-content-list > li,
#column-one .pBody ul li,
.skin-timeless .ts-sidebar li,
.citizen-drawer li,
.mw-sidebar li {
padding: 2px 8px;
}
/* Sidebar group headers */
#mw-panel .portal .portal-title,
#mw-panel .vector-menu-heading,
#column-one h3,
.skin-timeless .ts-sidebar .ts-portlet h2,
.citizen-drawer .drawer__section-title,
.mw-sidebar h2 {
background: #63635B !important; /* muted block behind titles */
color: #EEEDEB !important;
border-radius: 4px;
padding: 6px 10px;
margin: 14px 8px 6px;
font-weight: 700;
text-transform: none;
letter-spacing: .2px;
border: none !important;
}