MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (45 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
:root { | :root { | ||
--color-progressive-oklch__h: | --color-progressive-oklch__h: 270; | ||
--font-family-citizen-base: sans-serif; | --font-family-citizen-base: sans-serif; | ||
--space-unit: 1.2rem; | --space-unit: 1.2rem; | ||
| Line 55: | Line 55: | ||
} | } | ||
.citizen-menu__heading, .mw-list-item { | .citizen-menu__heading, | ||
.mw-list-item, | |||
.page-info__label, | |||
#footer-places { | |||
font-family: 'Libre Caslon'; | font-family: 'Libre Caslon'; | ||
} | } | ||
.citizen-menu__heading { | .citizen-menu__heading { | ||
margin-left: calc(var(--space-unit)); | /*margin-left: calc(var(--space-unit));*/ | ||
} | } | ||
| Line 72: | Line 75: | ||
#firstHeading { | #firstHeading { | ||
padding-bottom: calc(var(--space-unit) / 8); | padding-bottom: calc(var(--space-unit) / 8); | ||
} | |||
.firstHeading-container { | |||
position: relative; | |||
} | |||
.mw-indicators { | |||
position: absolute; | |||
right: 0; | |||
} | |||
@media (max-width: 640px) { | |||
.firstHeading-container { | |||
justify-content: center; | |||
text-align: center; | |||
} | |||
} | |||
.mw-heading { | |||
clear: both; | |||
} | } | ||
| Line 81: | Line 104: | ||
.mw-heading2 { | .mw-heading2 { | ||
border-bottom: 1px solid; | border-bottom: 1px solid; | ||
border-image: linear-gradient(90deg, transparent | border-image: linear-gradient(90deg, transparent var(--space-lg), var(--color-emphasized) calc(var(--space-unit) *3), transparent 90%) 30; | ||
} | } | ||
.mw-heading2 h2 { | .mw-heading2 h2 { | ||
margin-left: | margin-left: var(--space-unit); | ||
margin-bottom: | margin-bottom: var(--space-xxs); | ||
} | } | ||
| Line 93: | Line 116: | ||
display: none; | display: none; | ||
} | } | ||
#mw-content-text .new { | |||
text-decoration-line: underline; | |||
text-decoration-style: wavy; | |||
} | |||
#mw-content-text .new::hover { | |||
color: blue; | |||
} | |||
/* Image customisations. */ | /* Image customisations. */ | ||
figure[typeof~="mw:File/Thumb"] > figcaption, | |||
figure[typeof~="mw:File/Frame"] > figcaption { | |||
text-align: center; | text-align: center; | ||
font-style: italic; | font-style: italic; | ||
| Line 104: | Line 139: | ||
} | } | ||
figure[typeof~="mw:File/Thumb"] > *:first-child, | |||
figure[typeof~="mw:File/Frame"] > *:first-child { | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 112: | Line 147: | ||
padding: calc(var(--space-unit) / 2); | padding: calc(var(--space-unit) / 2); | ||
margin-bottom: calc(var(--space-unit) / 2); | /*margin-bottom: calc(var(--space-unit) / 2);*/ | ||
border: 1px solid; | border: 1px solid; | ||
border-image: linear-gradient(90deg, var(--color- | border-image: linear-gradient(90deg, var(--color-emphasized), transparent 30%, transparent 70%, var(--color-emphasized)) 3; | ||
background-image: repeating-conic-gradient(from 45deg at 50% 50%, | background-image: repeating-conic-gradient(from 45deg at 50% 50%, var(--color-absolute) 25% 50%, var(--color-surface-3) 50% 75%); | ||
background-clip: padding-box; | background-clip: padding-box; | ||
| Line 124: | Line 159: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* Table of Contents changes */ | /* Table of Contents changes */ | ||
| Line 161: | Line 195: | ||
#mw-editing-your-version { | #mw-editing-your-version { | ||
color: var(--color-surface-0); | color: var(--color-surface-0); | ||
} | |||
.mw-notification-area-overlay { | |||
z-index: 12; | |||
} | } | ||
| Line 177: | Line 215: | ||
flex-direction: row; | flex-direction: row; | ||
align-items: center; | align-items: center; | ||
position: relative; | |||
} | } | ||
#footer-sitetitle .mw-logo-wordmark { | #footer-sitetitle .mw-logo-wordmark { | ||
width: fit-content; | |||
height: 2.4rem; | height: 2.4rem; | ||
} | |||
#footer-sitetitle .mw-logo-icon { | |||
position: absolute; | |||
left: 3.5rem; | |||
} | |||
@media (max-width: 640px) { | |||
#footer-sitetitle { | |||
justify-content: center; | |||
} | |||
#footer-sitetitle .mw-logo-icon { | |||
left: calc(50% - 2.65rem); | |||
} | |||
#footer-desc { | |||
text-align: center; | |||
} | |||
} | } | ||
Latest revision as of 06:46, 13 November 2025
/* All CSS here will be loaded for users of the Citizen skin */
:root {
--color-progressive-oklch__h: 270;
--font-family-citizen-base: sans-serif;
--space-unit: 1.2rem;
--transform-image-hover: unset;
--border-radius-base: 0;
--color-alt-oklch__h: 80;
}
/* Setting color variables */
@media (prefers-color-scheme: dark) {
.skin-theme-clientpref-os {
--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
--color-absolute: #000
}
}
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os {
--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
--color-absolute: #fff
}
}
.skin-theme-clientpref-night {
--color-alt-1: oklch(0.8 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.9 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.95 0.05 var(--color-alt-oklch__h));
--color-absolute: #000
}
.skin-theme-clientpref-day {
--color-alt-1: oklch(0.5 0.15 var(--color-alt-oklch__h));
--color-alt-2: oklch(0.4 0.1 var(--color-alt-oklch__h));
--color-alt-3: oklch(0.3 0.05 var(--color-alt-oklch__h));
--color-absolute: #fff
}
@font-face {
font-family: 'Libre Caslon';
src:
url('resources/assets/Libre_Caslon_Text/LibreCaslonText-Regular.ttf');
}
.citizen-page-container {
background: var(--color-absolute);
}
.citizen-menu__heading,
.mw-list-item,
.page-info__label,
#footer-places {
font-family: 'Libre Caslon';
}
.citizen-menu__heading {
/*margin-left: calc(var(--space-unit));*/
}
/* Page headings */
.citizen-page-header-inner {
/*border-bottom: 3px solid var(--color-base);*/
padding-bottom: 0;
}
#firstHeading {
padding-bottom: calc(var(--space-unit) / 8);
}
.firstHeading-container {
position: relative;
}
.mw-indicators {
position: absolute;
right: 0;
}
@media (max-width: 640px) {
.firstHeading-container {
justify-content: center;
text-align: center;
}
}
.mw-heading {
clear: both;
}
h1, h2, h3 {
font-family: 'Libre Caslon';
font-weight: 400;
}
.mw-heading2 {
border-bottom: 1px solid;
border-image: linear-gradient(90deg, transparent var(--space-lg), var(--color-emphasized) calc(var(--space-unit) *3), transparent 90%) 30;
}
.mw-heading2 h2 {
margin-left: var(--space-unit);
margin-bottom: var(--space-xxs);
}
.mw-heading3 .mw-editsection,
.mw-heading4 .mw-editsection {
display: none;
}
#mw-content-text .new {
text-decoration-line: underline;
text-decoration-style: wavy;
}
#mw-content-text .new::hover {
color: blue;
}
/* Image customisations. */
figure[typeof~="mw:File/Thumb"] > figcaption,
figure[typeof~="mw:File/Frame"] > figcaption {
text-align: center;
font-style: italic;
padding-bottom: var(--space);
font-family: 'Shippori Mincho';
}
figure[typeof~="mw:File/Thumb"] > *:first-child,
figure[typeof~="mw:File/Frame"] > *:first-child {
display: flex;
flex-direction: column;
align-items: center;
padding: calc(var(--space-unit) / 2);
/*margin-bottom: calc(var(--space-unit) / 2);*/
border: 1px solid;
border-image: linear-gradient(90deg, var(--color-emphasized), transparent 30%, transparent 70%, var(--color-emphasized)) 3;
background-image: repeating-conic-gradient(from 45deg at 50% 50%, var(--color-absolute) 25% 50%, var(--color-surface-3) 50% 75%);
background-clip: padding-box;
background-size: 12px 12px;
background-position: 50% 50%;
box-sizing: border-box;
}
/* Table of Contents changes */
#mw-panel-toc-list {
border-left: none;
}
.citizen-toc-content {
display: flex;
flex-direction: row;
}
.citizen-toc-indicator {
display: none;
}
.citizen-toc-list-item--active > .citizen-toc-link .citizen-toc-content::before {
background-image: url(resources/assets/cursor-right.svg);
background-size: contain;
background-repeat: no-repeat;
background-position: bottom;
content: '';
width: 1rem;
flex-shrink: 0;
margin-right: var(--space-xxs);
margin-left: calc(var(--space-xxs) * -1);
}
/* Moves notification area down. */
.mw-notification-area {
margin-top: 6em;
}
/* Extension:Moderation adjustments. */
#mw-editing-your-version {
color: var(--color-surface-0);
}
.mw-notification-area-overlay {
z-index: 12;
}
/* Hides the UI icons from specific menus */
.citizen-menu__card-content .citizen-ui-icon {
display: none;
}
/* Hides the short description */
#siteSub {
display: none;
}
/* Adjusts the lower logo and wordmark */
#footer-sitetitle {
flex-direction: row;
align-items: center;
position: relative;
}
#footer-sitetitle .mw-logo-wordmark {
width: fit-content;
height: 2.4rem;
}
#footer-sitetitle .mw-logo-icon {
position: absolute;
left: 3.5rem;
}
@media (max-width: 640px) {
#footer-sitetitle {
justify-content: center;
}
#footer-sitetitle .mw-logo-icon {
left: calc(50% - 2.65rem);
}
#footer-desc {
text-align: center;
}
}