Documentation/styles.css: Difference between revisions
From Aurora Wiki
More actions
Content deleted Content added
m 1 revision imported |
Template>Taavi use codex tokens for borders to improve dark mode support |
||
| Line 1: | Line 1: | ||
/* {{pp|small=yes}} */ |
|||
.ts-doc-sandbox .mbox-image { |
|||
.documentation, |
|||
padding:.75em 0 .75em .75em; |
|||
.documentation-metadata { |
|||
} |
|||
border: 1px solid var( --border-color-base, #a2a9b1 ); |
|||
background-color: #ecfcf4; |
|||
.ts-doc-doc { |
|||
clear: both; |
clear: both; |
||
background-color: #eaf3ff; |
|||
color: var(--color-base, #202122); |
|||
border: 1px solid #a3caff; |
|||
margin-top: 1em; |
|||
border-top-left-radius: 2px; |
|||
border-top-right-radius: 2px; |
|||
} |
} |
||
.documentation { |
|||
.ts-doc-header { |
|||
margin: 1em 0 0 0; |
|||
background-color: #cbd6f6; |
|||
padding: 1em; |
|||
color: var(--color-base, #202122); |
|||
padding: .642857em 1em .5em; |
|||
border-top-left-radius: 2px; |
|||
border-top-right-radius: 2px; |
|||
} |
} |
||
.documentation-metadata { |
|||
.ts-doc-heading { |
|||
margin: 0.2em 0; /* same margin left-right as .documentation */ |
|||
display: inline-block; |
|||
font-style: italic; |
|||
padding-left: 30px; |
|||
padding: 0.4em 1em; /* same padding left-right as .documentation */ |
|||
background: center left / 24px 24px no-repeat; |
|||
/* @noflip */ |
|||
background-image: url( //upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg ); |
|||
height: 24px; |
|||
line-height: 24px; |
|||
font-size: 13px; |
|||
font-weight: 600; |
|||
letter-spacing: 1px; |
|||
text-transform: uppercase; |
|||
} |
} |
||
.documentation-startbox { |
|||
.ts-doc-header .ts-tlinks-tlinks { |
|||
padding-bottom: 3px; |
|||
border-bottom: 1px solid var( --border-color-base, #a2a9b1 ); |
|||
margin-left: 0; |
|||
margin-bottom: 1ex; |
|||
} |
} |
||
.documentation-heading { |
|||
.ts-doc-header .ts-tlinks-tlinks a { |
|||
font-weight: bold; |
|||
color: var(--color-progressive, #36c); |
|||
font-size: 125%; |
|||
} |
} |
||
.documentation-clear { /* Don't want things to stick out where they shouldn't. */ |
|||
.ts-doc-header .ts-tlinks-tlinks a:active { |
|||
color: var(--color-progressive--active, #233566); |
|||
} |
|||
.ts-doc-header .ts-tlinks-tlinks a:visited { |
|||
color: var(--color-visited, #6a60b0); |
|||
} |
|||
.ts-doc-header .ts-tlinks-tlinks a:visited:active { |
|||
color: var(--color-visited--active, #233566); |
|||
} |
|||
.ts-doc-content { |
|||
padding: .214286em 1em; |
|||
} |
|||
.ts-doc-content:after { |
|||
content: ''; |
|||
clear: both; |
clear: both; |
||
display: block; |
|||
} |
} |
||
.documentation-toolbar { |
|||
.ts-doc-content > :first-child { |
|||
font-style: normal; |
|||
font-size: 85%; |
|||
} |
} |
||
.ts-doc-content > :last-child { |
|||
margin-bottom: .5em; |
|||
} |
|||
.ts-doc-footer { |
|||
background-color: #eaf3ff; |
|||
color: var(--color-base, #202122); |
|||
border: 1px solid #a3caff; |
|||
padding: .214286em 1em; |
|||
margin-top: .214286em; |
|||
font-style: italic; |
|||
border-bottom-left-radius: 2px; |
|||
border-bottom-right-radius: 2px; |
|||
} |
|||
@media |
@media screen { |
||
html.skin-theme-clientpref-night .documentation, |
|||
.ts-doc-header .ts-tlinks-tlinks { |
|||
html.skin-theme-clientpref-night .documentation-metadata { |
|||
float: right; |
|||
background-color: #0b1e1c; |
|||
} |
} |
||
} |
} |
||
html.skin-theme-clientpref-night .ts-doc-header { |
|||
background-color: #3056a9; |
|||
} |
|||
@media screen and ( prefers-color-scheme: dark ) { |
|||
html.skin-theme-clientpref-night .ts-doc-heading { |
|||
html.skin-theme-clientpref-os .documentation, |
|||
background-image: url( '//upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg' ); |
|||
html.skin-theme-clientpref-os .documentation-metadata { |
|||
} |
|||
background-color: #0b1e1c; |
|||
} |
|||
html.skin-theme-clientpref-night .ts-doc-doc, |
|||
html.skin-theme-clientpref-night .ts-doc-footer { |
|||
background-color: #1b223d; |
|||
} |
|||
@media screen and (prefers-color-scheme: dark) { |
|||
html.skin-theme-clientpref-os .ts-doc-header { |
|||
background-color: #3056a9; |
|||
} |
|||
html.skin-theme-clientpref-os .ts-doc-heading { |
|||
background-image: url( '//upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg' ); |
|||
} |
|||
html.skin-theme-clientpref-os .ts-doc-doc, |
|||
html.skin-theme-clientpref-os .ts-doc-footer { |
|||
background-color: #1b223d; |
|||
} |
|||
} |
} |
||
Revision as of 07:52, 22 February 2025
/* {{pp|small=yes}} */
.documentation,
.documentation-metadata {
border: 1px solid var( --border-color-base, #a2a9b1 );
background-color: #ecfcf4;
clear: both;
}
.documentation {
margin: 1em 0 0 0;
padding: 1em;
}
.documentation-metadata {
margin: 0.2em 0; /* same margin left-right as .documentation */
font-style: italic;
padding: 0.4em 1em; /* same padding left-right as .documentation */
}
.documentation-startbox {
padding-bottom: 3px;
border-bottom: 1px solid var( --border-color-base, #a2a9b1 );
margin-bottom: 1ex;
}
.documentation-heading {
font-weight: bold;
font-size: 125%;
}
.documentation-clear { /* Don't want things to stick out where they shouldn't. */
clear: both;
}
.documentation-toolbar {
font-style: normal;
font-size: 85%;
}
@media screen {
html.skin-theme-clientpref-night .documentation,
html.skin-theme-clientpref-night .documentation-metadata {
background-color: #0b1e1c;
}
}
@media screen and ( prefers-color-scheme: dark ) {
html.skin-theme-clientpref-os .documentation,
html.skin-theme-clientpref-os .documentation-metadata {
background-color: #0b1e1c;
}
}