Module:Hatnote/styles.css: Difference between revisions
From Amaranth Legacy, available at amaranth-legacy.community
More actions
Content deleted Content added
Tesinormed (talk | contribs) Created page with ".hatnote1 { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; text-align: left; } .hatnote1 > :first-child { flex: 0 2 90px; margin: 0 5px; } .hatnote1 img { max-width: 100%; height: 100%; } .hatnote1 > :last-child { flex: 1 1 fit-content; } .hatnote2 { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; text-align: center; } .hatnote2 > :first-child, .hatnote2 > :last-child { flex: 0 2 auto; margin:..." |
Tesinormed (talk | contribs) m Protected "Module:Hatnote/styles.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading] |
||
| (39 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
html.skin-theme-clientpref-day .hatnote-wrapper { |
|||
--color-link: var(--template-arg-color-link--light, inherit); |
|||
--color-link--hover: var(--template-arg-color-link--light, inherit); |
|||
--color-link--active: var(--template-arg-color-link--light, inherit); |
|||
--color-visited: var(--template-arg-color-link--light, inherit); |
|||
--color-visited--hover: var(--template-arg-color-link--light, inherit); |
|||
--color-visited--active: var(--template-arg-color-link--light, inherit); |
|||
--color-amaranth-legacy-scope: var(--template-arg-color--light, inherit); |
|||
} |
|||
@media (prefers-color-scheme: light) { |
|||
html.skin-theme-clientpref-os .hatnote-wrapper { |
|||
--color-link: var(--template-arg-color-link--light, inherit); |
|||
--color-link--hover: var(--template-arg-color-link--light, inherit); |
|||
--color-link--active: var(--template-arg-color-link--light, inherit); |
|||
--color-visited: var(--template-arg-color-link--light, inherit); |
|||
--color-visited--hover: var(--template-arg-color-link--light, inherit); |
|||
--color-visited--active: var(--template-arg-color-link--light, inherit); |
|||
--color-amaranth-legacy-scope: var(--template-arg-color--light, inherit); |
|||
} |
|||
} |
|||
html.skin-theme-clientpref-night .hatnote-wrapper { |
|||
--color-link: var(--template-arg-color-link--dark, inherit); |
|||
--color-link--hover: var(--template-arg-color-link--dark, inherit); |
|||
--color-link--active: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited--hover: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited--active: var(--template-arg-color-link--dark, inherit); |
|||
--color-amaranth-legacy-scope: var(--template-arg-color--dark, inherit); |
|||
} |
|||
@media (prefers-color-scheme: dark) { |
|||
html.skin-theme-clientpref-os .hatnote-wrapper { |
|||
--color-link: var(--template-arg-color-link--dark, inherit); |
|||
--color-link--hover: var(--template-arg-color-link--dark, inherit); |
|||
--color-link--active: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited--hover: var(--template-arg-color-link--dark, inherit); |
|||
--color-visited--active: var(--template-arg-color-link--dark, inherit); |
|||
--color-amaranth-legacy-scope: var(--template-arg-color--dark, inherit); |
|||
} |
|||
} |
|||
/* no images */ |
|||
.hatnote0 .hatnote-text { |
|||
text-align: center; |
|||
} |
|||
/* one image */ |
|||
.hatnote1 { |
.hatnote1 { |
||
display: flex; |
display: flex; |
||
| Line 7: | Line 57: | ||
} |
} |
||
.hatnote1 |
.hatnote1 .hatnote-image1 { |
||
flex: 0 |
flex: 0 1 auto; |
||
margin: 0 |
margin: 0 var(--space-sm); |
||
} |
} |
||
.hatnote1 img { |
.hatnote1 .hatnote-image1 img { |
||
max-width: 100%; |
max-width: 100%; |
||
height: 100%; |
height: 100%; |
||
} |
} |
||
.hatnote1 |
.hatnote1 .hatnote-text { |
||
flex: |
flex: 0 1 fit-content; |
||
} |
} |
||
/* two images */ |
|||
.hatnote2 { |
.hatnote2 { |
||
display: flex; |
display: flex; |
||
| Line 31: | Line 82: | ||
.hatnote2 > :first-child, |
.hatnote2 > :first-child, |
||
.hatnote2 > :last-child { |
.hatnote2 > :last-child { |
||
flex: 0 |
flex: 0 1 auto; |
||
margin: 0 |
margin: 0 var(--space-sm); |
||
} |
} |
||
| Line 42: | Line 93: | ||
.hatnote2 > :nth-child(2) { |
.hatnote2 > :nth-child(2) { |
||
flex: 1 1 fit-content; |
flex: 1 1 fit-content; |
||
} |
|||
.hatnote-primary { |
|||
color: var(--color-amaranth-legacy-scope); |
|||
font-family: var(--font-family-header-custom, var(--font-family-serif)); |
|||
font-size: var(--font-size-xx-large); |
|||
} |
|||
.hatnote-text ul { |
|||
margin-block: 0; |
|||
} |
} |
||
Latest revision as of 10:43, September 11, 2025
html.skin-theme-clientpref-day .hatnote-wrapper {
--color-link: var(--template-arg-color-link--light, inherit);
--color-link--hover: var(--template-arg-color-link--light, inherit);
--color-link--active: var(--template-arg-color-link--light, inherit);
--color-visited: var(--template-arg-color-link--light, inherit);
--color-visited--hover: var(--template-arg-color-link--light, inherit);
--color-visited--active: var(--template-arg-color-link--light, inherit);
--color-amaranth-legacy-scope: var(--template-arg-color--light, inherit);
}
@media (prefers-color-scheme: light) {
html.skin-theme-clientpref-os .hatnote-wrapper {
--color-link: var(--template-arg-color-link--light, inherit);
--color-link--hover: var(--template-arg-color-link--light, inherit);
--color-link--active: var(--template-arg-color-link--light, inherit);
--color-visited: var(--template-arg-color-link--light, inherit);
--color-visited--hover: var(--template-arg-color-link--light, inherit);
--color-visited--active: var(--template-arg-color-link--light, inherit);
--color-amaranth-legacy-scope: var(--template-arg-color--light, inherit);
}
}
html.skin-theme-clientpref-night .hatnote-wrapper {
--color-link: var(--template-arg-color-link--dark, inherit);
--color-link--hover: var(--template-arg-color-link--dark, inherit);
--color-link--active: var(--template-arg-color-link--dark, inherit);
--color-visited: var(--template-arg-color-link--dark, inherit);
--color-visited--hover: var(--template-arg-color-link--dark, inherit);
--color-visited--active: var(--template-arg-color-link--dark, inherit);
--color-amaranth-legacy-scope: var(--template-arg-color--dark, inherit);
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .hatnote-wrapper {
--color-link: var(--template-arg-color-link--dark, inherit);
--color-link--hover: var(--template-arg-color-link--dark, inherit);
--color-link--active: var(--template-arg-color-link--dark, inherit);
--color-visited: var(--template-arg-color-link--dark, inherit);
--color-visited--hover: var(--template-arg-color-link--dark, inherit);
--color-visited--active: var(--template-arg-color-link--dark, inherit);
--color-amaranth-legacy-scope: var(--template-arg-color--dark, inherit);
}
}
/* no images */
.hatnote0 .hatnote-text {
text-align: center;
}
/* one image */
.hatnote1 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: left;
}
.hatnote1 .hatnote-image1 {
flex: 0 1 auto;
margin: 0 var(--space-sm);
}
.hatnote1 .hatnote-image1 img {
max-width: 100%;
height: 100%;
}
.hatnote1 .hatnote-text {
flex: 0 1 fit-content;
}
/* two images */
.hatnote2 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: center;
}
.hatnote2 > :first-child,
.hatnote2 > :last-child {
flex: 0 1 auto;
margin: 0 var(--space-sm);
}
.hatnote2 img {
max-width: 100%;
height: 100%;
}
.hatnote2 > :nth-child(2) {
flex: 1 1 fit-content;
}
.hatnote-primary {
color: var(--color-amaranth-legacy-scope);
font-family: var(--font-family-header-custom, var(--font-family-serif));
font-size: var(--font-size-xx-large);
}
.hatnote-text ul {
margin-block: 0;
}