MediaWiki:Common.css: Difference between revisions
Notable slides card grid CSS |
Widen sidebar for longer Reading labels |
||
| Line 79: | Line 79: | ||
} | } | ||
/* Vector 2010 sidebar logo: source file is 1024px, | /* | ||
* Slightly wider left sidebar (default Vector is 10em) so labels like | |||
* "Congressional Gold Medal" fit on one line. | |||
*/ | |||
:root { | |||
--rb-sidebar-width: 13em; | |||
--rb-sidebar-gutter: 14em; /* matches Vector's +1em when panel has left pad */ | |||
} | |||
#mw-panel { | |||
width: var(--rb-sidebar-width) !important; | |||
} | |||
.mw-body, | |||
#mw-head-base, | |||
#left-navigation, | |||
#mw-data-after-content, | |||
.mw-footer { | |||
margin-left: var(--rb-sidebar-width) !important; | |||
} | |||
#p-personal ul { | |||
padding-left: var(--rb-sidebar-width) !important; | |||
} | |||
@media screen and (min-width: 982px) { | |||
.mw-body, | |||
#mw-head-base, | |||
#left-navigation, | |||
#mw-data-after-content, | |||
.mw-footer { | |||
margin-left: var(--rb-sidebar-gutter) !important; | |||
} | |||
} | |||
/* Vector 2010 sidebar logo: source file is 1024px; keep badge size, center in wider slot. */ | |||
#p-logo { | #p-logo { | ||
height: 160px !important; | height: 160px !important; | ||
width: | width: var(--rb-sidebar-width) !important; | ||
margin: 0 auto 0.6em auto; | margin: 0 auto 0.6em auto; | ||
} | } | ||
| Line 90: | Line 121: | ||
height: 160px !important; | height: 160px !important; | ||
width: 160px !important; | width: 160px !important; | ||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
background-size: contain !important; | background-size: contain !important; | ||
background-position: center center !important; | background-position: center center !important; | ||