MediaWiki:Common.css: Difference between revisions
move imports to Common |
ReisuDesign (talk | contribs) No edit summary |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins (including the mobile skin) */ | ||
@import url("/index.php?title=MediaWiki:Mbox.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Mbox.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:FD_Mbox.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:FD_Mbox.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Quotes.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Quotes.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Font.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Font.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Item.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Item.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Gallery.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Gallery.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css&cb=3"); | ||
| Line 14: | Line 12: | ||
@import url("/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:StaffColors.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:StaffColors.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Attributes.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:Attributes.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:ChangeHistory.css&action=raw&ctype=text/css&cb=3"); | @import url("/index.php?title=MediaWiki:ChangeHistory.css&action=raw&ctype=text/css&cb=3"); | ||
@import url("/index.php?title=MediaWiki:Edios Infobox.css&action=raw&ctype=text/css&cb=3"); | |||
/* Import Font */ | /* Import Font */ | ||
| Line 25: | Line 23: | ||
:root { | :root { | ||
--theme-page-headings-font: 'Quicksand'; | --theme-page-headings-font: 'Quicksand'; | ||
} | |||
/* Class to add text hidden from view that is usable by screen readers */ | |||
.screen-reader-text { font-size: 0; } | |||
/* [[Template:Description]] styles */ | |||
div.description-wrapper { | |||
border: 1px solid var(--border-color); | |||
overflow: hidden; | |||
border-radius: 8px; | |||
background: var(--theme-color-9); | |||
} | |||
div.description-content { | |||
font-size: 15px; | |||
text-align: left; | |||
overflow: auto; | |||
line-height: 1.35em; | |||
padding: 12px 12px 12px 12px; | |||
} | |||
div.description-source { | |||
font-size: 15px; | |||
overflow: auto; | |||
padding: 5px 12px; | |||
} | |||
hr.description-separator { | |||
width: 97.5%; | |||
margin: auto; | |||
} | |||
div.description-title { | |||
font-size: 15px; | |||
text-align: left; | |||
overflow: auto; | |||
padding: 10px 12px 6px; | |||
} | |||
/* For [[Module:Formatting]] */ | |||
.custom-formatting-code { | |||
display: inline-block; | |||
line-height: 21px; | |||
} | |||
.custom-formatting-code.code-block-table { display: table; } | |||
span.variable { opacity: 0.65; } | |||
span.variable::after { | |||
opacity: 0.65; | |||
content: ">"; | |||
} | |||
span.variable::before { | |||
opacity: 0.65; | |||
content: "<"; | |||
} | |||
.custom-formatting-nested { display: none; } | |||
.custom-formatting-resulting { display: inline; } | |||
.custom-formatting-code .custom-formatting-nested { display: inline-block; } | |||
.custom-formatting-code .custom-formatting-resulting { display: none; } | |||
/* End for [[Module:Formatting]] */ | |||
/* Styling for [[Template:tt]] */ | |||
.text-tooltip { | |||
cursor: help; | |||
} | |||
.text-tooltip:not(.no-underline) { | |||
border-bottom-color: rgb(128, 128, 128); | |||
border-bottom-width: 1px; | |||
border-bottom-style: dotted; | |||
} | |||
/* Additional inverts and filters */ | |||
/* Default MediaWiki invert classes: .skin-invert and .skin-invert-image */ | |||
.skin-theme-clientpref-day .day-invert-image, | |||
.skin-theme-clientpref-day .light-invert-image { | |||
filter: invert(65%) hue-rotate(180deg); | |||
} | |||
.skin-theme-clientpref-night .night-invert-image, | |||
.skin-theme-clientpref-night .dark-invert-image { | |||
filter: invert(85%) hue-rotate(180deg); | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
.skin-theme-clientpref-os .night-invert-image, | |||
.skin-theme-clientpref-os .dark-invert-image { | |||
filter: invert(85%) hue-rotate(180deg); | |||
} | |||
} | } | ||