Module:Documentation/styles.css: Difference between revisions
From WikiOasis Meta
More actions
mediawiki>Tactica Darken background color for the header in dark mode to pass at least the WCAG 2.2 AA check. |
m 20 revisions imported |
||
| (9 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
.ts-doc-sandbox .mbox-image { | /* {{PP-template}} */ | ||
.ts-doc-sandbox .mbox-image { | |||
padding:.75em 0 .75em .75em; | padding:.75em 0 .75em .75em; | ||
} | } | ||
.ts-doc-doc { | .ts-doc-doc { | ||
clear: both; | clear: both; | ||
background-color: # | background-color: #ecfcf4; | ||
border: 1px solid #a2a9b1; | |||
border: 1px solid # | |||
margin-top: 1em; | margin-top: 1em; | ||
padding: 5px; | |||
} | } | ||
.ts-doc-header { | .ts-doc-header { | ||
padding-bottom: 3px; | |||
border-bottom: 1px solid #a2a9b1; | |||
margin-bottom: 1ex; | |||
border- | |||
} | } | ||
.ts-doc- | .ts-doc-header .ts-tlinks-tlinks { | ||
display: inline-block; | display: inline-block; | ||
line-height: 24px; | line-height: 24px; | ||
margin-left: | margin-left: 1em; | ||
} | } | ||
.ts-doc-header .ts-tlinks-tlinks a | .ts-doc-header .ts-tlinks-tlinks a.external { | ||
color: | color: #0645ad; | ||
} | } | ||
.ts-doc-header .ts-tlinks-tlinks a:visited | .ts-doc-header .ts-tlinks-tlinks a.external:visited { | ||
color: | color: #0b0080; | ||
} | } | ||
.ts-doc- | .ts-doc-header .ts-tlinks-tlinks a.external:active { | ||
color: #faa700; | |||
} | } | ||
| Line 66: | Line 42: | ||
} | } | ||
.ts-doc-content > :first-child { | .ts-doc-heading { | ||
display: inline-block; | |||
padding-left: 55px; | |||
background: center left/50px no-repeat; | |||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png); | |||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg); | |||
font-size: 1.5em; | |||
} | |||
.ts-doc-content > *:first-child, | |||
.ts-doc-footer > *:first-child { | |||
margin-top: .5em; | margin-top: .5em; | ||
} | } | ||
.ts-doc-content > :last-child { | .ts-doc-content > *:last-child, | ||
.ts-doc-footer > *:last-child { | |||
margin-bottom: .5em; | margin-bottom: .5em; | ||
} | } | ||
.ts-doc-footer { | .ts-doc-footer { | ||
background-color: # | background-color: #ecfcf4; | ||
border: 1px solid #a2a9b1; | |||
border: 1px solid # | padding: .25em 1em; | ||
padding: . | margin-top: .2em; | ||
margin-top: . | |||
font-style: italic; | font-style: italic; | ||
} | } | ||
.ts-doc-footer small { | |||
font-style: normal; | |||
} | } | ||
.ts-doc-sandbox { | |||
clear: both; | |||
} | } | ||
html.skin-theme-clientpref-night .ts-doc- | @media screen { | ||
background- | html.skin-theme-clientpref-night .ts-doc-footer, | ||
html.skin-theme-clientpref-night .ts-doc-doc { | |||
background-color: #0b1e1c; | |||
} | |||
} | } | ||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref- | html.skin-theme-clientpref-os .ts-doc-footer, | ||
html.skin-theme-clientpref- | html.skin-theme-clientpref-os .ts-doc-doc { | ||
background-color: #0b1e1c; | |||
} | |||
} | |||
/* fix headers in dark mode */ | |||
.ts-doc-content .mw-headline { | |||
color:inherit; | |||
} | |||
.mw-templatedata-caption, | |||
.mw-templatedata-format { | |||
color:inherit; | |||
} | } | ||
/* fix icon for templatedata params (inline/block) in dark mode */ | |||
.mw-templatedata-doc-params .oo-ui-widget { | |||
filter: unset !important; | |||
} | } | ||
Latest revision as of 15:14, 28 April 2026
/* {{PP-template}} */
.ts-doc-sandbox .mbox-image {
padding:.75em 0 .75em .75em;
}
.ts-doc-doc {
clear: both;
background-color: #ecfcf4;
border: 1px solid #a2a9b1;
margin-top: 1em;
padding: 5px;
}
.ts-doc-header {
padding-bottom: 3px;
border-bottom: 1px solid #a2a9b1;
margin-bottom: 1ex;
}
.ts-doc-header .ts-tlinks-tlinks {
display: inline-block;
line-height: 24px;
margin-left: 1em;
}
.ts-doc-header .ts-tlinks-tlinks a.external {
color: #0645ad;
}
.ts-doc-header .ts-tlinks-tlinks a.external:visited {
color: #0b0080;
}
.ts-doc-header .ts-tlinks-tlinks a.external:active {
color: #faa700;
}
.ts-doc-content:after {
content: '';
clear: both;
display: block;
}
.ts-doc-heading {
display: inline-block;
padding-left: 55px;
background: center left/50px no-repeat;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png);
background-image: url(https://upload.wikimedia.org/wikipedia/commons/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg);
font-size: 1.5em;
}
.ts-doc-content > *:first-child,
.ts-doc-footer > *:first-child {
margin-top: .5em;
}
.ts-doc-content > *:last-child,
.ts-doc-footer > *:last-child {
margin-bottom: .5em;
}
.ts-doc-footer {
background-color: #ecfcf4;
border: 1px solid #a2a9b1;
padding: .25em 1em;
margin-top: .2em;
font-style: italic;
}
.ts-doc-footer small {
font-style: normal;
}
.ts-doc-sandbox {
clear: both;
}
@media screen {
html.skin-theme-clientpref-night .ts-doc-footer,
html.skin-theme-clientpref-night .ts-doc-doc {
background-color: #0b1e1c;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ts-doc-footer,
html.skin-theme-clientpref-os .ts-doc-doc {
background-color: #0b1e1c;
}
}
/* fix headers in dark mode */
.ts-doc-content .mw-headline {
color:inherit;
}
.mw-templatedata-caption,
.mw-templatedata-format {
color:inherit;
}
/* fix icon for templatedata params (inline/block) in dark mode */
.mw-templatedata-doc-params .oo-ui-widget {
filter: unset !important;
}