Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
|||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
.page-Main_Page .firstHeading { | .page-Main_Page .firstHeading { | ||
display: none; | display: none; | ||
| + | } | ||
| + | |||
| + | /* Upper left logo scaled for hi-res screens */ | ||
| + | #p-logo a { | ||
| + | background-size: contain; | ||
} | } | ||
| Line 56: | Line 61: | ||
background-color: #aaa; | background-color: #aaa; | ||
color: white; | color: white; | ||
| + | } | ||
| + | .rsSegmentSelected .rsSegmentFill .rsSegmentIcon { | ||
| + | filter: invert(); | ||
} | } | ||
.rsToggleContainer a { | .rsToggleContainer a { | ||
| Line 99: | Line 107: | ||
/* Bleeped curses */ | /* Bleeped curses */ | ||
| + | .rsCurse { | ||
| + | text-decoration: underline; | ||
| + | text-decoration-style: dotted; | ||
| + | background-color: #f6f6f6; | ||
| + | } | ||
.rsCurseMiddle { | .rsCurseMiddle { | ||
| − | background-color: | + | background-color: #808080; |
| − | color: | + | color: #787878; |
} | } | ||
| − | . | + | .rsCurse:hover .rsCurseMiddle { |
background-color: inherit; | background-color: inherit; | ||
color: inherit; | color: inherit; | ||
| + | } | ||
| + | |||
| + | /* Nav popup */ | ||
| + | /* Way too much metadata for a read-only wiki */ | ||
| + | .popupData { | ||
| + | display: none; | ||
| + | } | ||
| + | .popupTopLinks { | ||
| + | display: none; | ||
| + | } | ||
| + | .popupOtherLinks { | ||
| + | display: none; | ||
| + | } | ||
| + | .popupImage a img { | ||
| + | margin-left: 0.5em; | ||
| + | } | ||
| + | |||
| + | /* Hide extraneous whitespace */ | ||
| + | |||
| + | p:empty { | ||
| + | display: none; | ||
| + | } | ||
| + | |||
| + | /* Sticky data table headers */ | ||
| + | .rsStickyHeader thead th { | ||
| + | position: -webkit-sticky; | ||
| + | position: sticky; | ||
| + | top: 0; | ||
| + | z-index: 10; | ||
} | } | ||
Latest revision as of 05:53, 28 May 2020
/* CSS placed here will be applied to all skins */
/* Hide the title on Main Page */
.page-Main_Page .firstHeading {
display: none;
}
/* Upper left logo scaled for hi-res screens */
#p-logo a {
background-size: contain;
}
/* Toggle */
.rsToggleContainer {
margin-left: 5em;
}
.rsSegment {
display: inline-block;
border-top: 1px solid #999;
border-bottom: 1px solid black;
border-right: 1px solid #666;
}
.rsSegment:first-child {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
border-left: 1px solid #666;
}
.rsSegment:last-child {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.rsSegmentTitle {
display: block;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
}
.rsSegmentFill {
position: relative;
background-color: #ddd;
border-top: 1px solid white;
border-bottom: 2px solid #999;
width: 10em;
height: 2em;
}
.rsSegment:first-child .rsSegmentFill {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.rsSegment:last-child .rsSegmentFill {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.rsSegmentSelected .rsSegmentFill {
border-top: 3px solid #666;
border-bottom: none;
background-color: #aaa;
color: white;
}
.rsSegmentSelected .rsSegmentFill .rsSegmentIcon {
filter: invert();
}
.rsToggleContainer a {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
a:active .rsSegmentFill {
background-color: #bbb;
border-top: 2px solid #999;
border-bottom: 1px solid #bbb;
}
a .rsSegmentTitle,
a:active .rsSegmentTitle {
color: black;
}
.rsSegmentIcon {
display: inline-block;
width: 1em;
height: 1em;
background-size: 1em 1em;
background-repeat: no-repeat;
background-position: center;
vertical-align: -0.12em;
}
.rsSegmentIconTabular {
background-image: url(/w/images/b/b4/Icon-tabular.png);
}
.rsSegmentIconThumbnails {
background-image: url(/w/images/5/5a/Icon-thumbnails.png);
}
/* Main article note, copied from Wikipedia */
.hatnote {
padding-left: 1.6em;
margin-bottom: 0.5em;
font-style: italic;
}
/* Bleeped curses */
.rsCurse {
text-decoration: underline;
text-decoration-style: dotted;
background-color: #f6f6f6;
}
.rsCurseMiddle {
background-color: #808080;
color: #787878;
}
.rsCurse:hover .rsCurseMiddle {
background-color: inherit;
color: inherit;
}
/* Nav popup */
/* Way too much metadata for a read-only wiki */
.popupData {
display: none;
}
.popupTopLinks {
display: none;
}
.popupOtherLinks {
display: none;
}
.popupImage a img {
margin-left: 0.5em;
}
/* Hide extraneous whitespace */
p:empty {
display: none;
}
/* Sticky data table headers */
.rsStickyHeader thead th {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 10;
}