MediaWiki:Common.css: Difference between revisions
Appearance
mNo edit summary |
m revert to old selector |
||
Line 2: | Line 2: | ||
/************************************************/ | /************************************************/ | ||
.client-darkmode .mw-wiki-logo{ | |||
. | |||
filter: invert( 1 ) hue-rotate( 180deg ); | filter: invert( 1 ) hue-rotate( 180deg ); | ||
} | |||
.skin-theme-clientpref-night .client-darkmode .mw-wiki-logo{ | |||
filter: invert( 1 ) hue-rotate( 180deg ); | |||
} | } | ||
Revision as of 14:19, 28 January 2025
/* CSS placed here will be applied to all skins */ /************************************************/ .client-darkmode .mw-wiki-logo{ filter: invert( 1 ) hue-rotate( 180deg ); } .skin-theme-clientpref-night .client-darkmode .mw-wiki-logo{ filter: invert( 1 ) hue-rotate( 180deg ); } /** Category Page **/ .cat-but-container{ display:flex; flex-direction:column; justify-content:center; align-items:center; background-color: #e1e1e1; } .cat-but-row{ display:flex; flex-direction:row; flex-wrap:wrap justify-content:space-around; gap:8px; } .cat-but{ display: inline-block; box-sizing: border-box; margin: 0; padding:0.2rem; text-align: center; vertical-align: middle; line-height: 1.5em; font-size: 1em; background-color:#f8f8f8; border: solid 2px #aaa; border-radius: 0.25em; font-family: inherit; font-weight: bold; } .cat-but:active{ border-color: #4c4; background-color:#fff; text-color: #ffb238; } @media (hover: hover) { .cat-but:hover{ border-color: #4c4; background-color:#fff; } } /** Templates **/ /* Notices - Coloured boxes */ .cat-mw-box{ border: 1px solid #aaa; border-radius: 0.3rem; margin-bottom:2rem } .cat-mw-box-header{ font-size:1.5rem; line-height: 1.65rem; background:rgba(0,0,0,0.03); padding:0.2rem 1rem; } .cat-mw-box-body{ padding:0.2rem 1rem; } /* Infobox */ .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 24em; } .infobox-title { font-size: 2em; text-align: center; border-bottom: 0.2em solid #ccc; padding-bottom: .25em; } .infobox-image{ display: flex; aspect-ratio: 2 / 1; align-items: center; justify-content: center; } .infobox-table{ width:100%; table-layout:fixed; } .infobox-table td{ word-wrap:break-word; text-align: left; } .infobox-table th{ text-align: left; } .infobox-table-caption{ border-bottom: 0.1em solid #ccc; font-size:125%; } /* Hatnote - temp test */ /* {{pp|small=y}} */ .hatnote { font-style: italic; } /* Limit structure CSS to divs because of [[Module:Hatnote inline]] */ div.hatnote { /* @noflip */ padding-left: 1.6em; margin-bottom: 0.5em; } .hatnote i { font-style: normal; } /* The templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206 */ .hatnote + link + .hatnote { margin-top: -0.5em; } @media print { body.ns-0 .hatnote { display: none !important; } } /* Loosely based on https://en.wikipedia.org/wiki/Template:Infobox */ @media (min-width: 640px) { .infobox { float: right; clear: right; } } @media (max-width: 640px) { .infobox { width: 95%; } }