Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | /* | + | /***** UNIVERSAL LEFT SIDEBAR STYLING (works across common skins) *****/ |
| − | .skin- | + | |
| − | + | /* 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; | background: linear-gradient(to bottom, #2F2D2B 0%, #1E1E1D 100%) !important; | ||
| − | color: #EEEDEB !important; | + | color: #EEEDEB !important; |
border-right: none !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, | |
| − | .skin- | + | #column-one .portlet, |
| + | #column-one .pBody, | ||
| + | .skin-timeless .ts-sidebar * , | ||
| + | .citizen-drawer *, | ||
| + | .mw-sidebar *, | ||
| + | .skin-minerva .menu * { | ||
background: transparent !important; | background: transparent !important; | ||
color: inherit !important; | color: inherit !important; | ||
} | } | ||
| − | /* Links | + | /* 3) Links inside the sidebar */ |
| − | .skin- | + | #mw-panel a, |
| − | .skin- | + | #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; | ||
| + | } | ||
Revision as of 08:51, 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;
}