Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (29 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Citizen skin */ | /* All CSS here will be loaded for users of the Citizen skin */ | ||
/* Import fonts from Google Fonts: Sofia Sans */ | |||
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Semi+Condensed:ital,wght@0,1..1000;1,1..1000&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap'); | |||
:root { | |||
/* Font */ | |||
/* Font family */ | |||
--font-family-citizen-base: 'Sofia Sans Semi Condensed', sans-serif; | |||
/*--font-family-citizen-serif*/ | |||
/*--font-family-citizen-monospace*/ | |||
--color-progressive-oklch__h: 245.24; | |||
/*--color-link: #3ca1ed; | |||
/*--color-progressive: #3ca1ed; | |||
} | |||
.mw-page-title-namespace { | |||
display: none !important; /* Hide elements completely */ | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
a.new { | |||
color: #f72a57 !important; | |||
} | |||
/* To make images responsive */ | /* To make images responsive */ | ||
| Line 17: | Line 39: | ||
backdrop-filter: blur(10px); | backdrop-filter: blur(10px); | ||
-webkit-backdrop-filter: blur(10px); | -webkit-backdrop-filter: blur(10px); | ||
} | } | ||
.mw-body-content { | .mw-body-content { | ||
padding: 20px; | |||
padding | margin: 20px; | ||
} | } | ||
} | } | ||
| Line 31: | Line 48: | ||
.mw-body::before { | .mw-body::before { | ||
content: ""; | content: ""; | ||
position: | position: fixed; | ||
pointer-events: none; | pointer-events: none; | ||
inset: 0; | inset: 0; | ||
background-size: cover; | |||
background-position: center top; | |||
background-repeat: no-repeat; | |||
z-index: -1; /* behind content */ | |||
pointer-events: none; /* avoid blocking clicks */ | |||
opacity: 0.75; | opacity: 0.75; | ||
Latest revision as of 08:28, 2 February 2026
/* All CSS here will be loaded for users of the Citizen skin */
/* Import fonts from Google Fonts: Sofia Sans */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Semi+Condensed:ital,wght@0,1..1000;1,1..1000&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');
:root {
/* Font */
/* Font family */
--font-family-citizen-base: 'Sofia Sans Semi Condensed', sans-serif;
/*--font-family-citizen-serif*/
/*--font-family-citizen-monospace*/
--color-progressive-oklch__h: 245.24;
/*--color-link: #3ca1ed;
/*--color-progressive: #3ca1ed;
}
.mw-page-title-namespace {
display: none !important; /* Hide elements completely */
margin: 0 !important;
padding: 0 !important;
}
a.new {
color: #f72a57 !important;
}
/* To make images responsive */
.res-img img {
max-width: 25vw;
height: auto;
}
.mw-special-Search label[for="mw-search-ns3"] {
display:none;
}
@media screen {
.citizen-body {
border-radius: 20px;
box-shadow: 40px 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.mw-body-content {
padding: 20px;
margin: 20px;
}
}
.mw-body::before {
content: "";
position: fixed;
pointer-events: none;
inset: 0;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
z-index: -1; /* behind content */
pointer-events: none; /* avoid blocking clicks */
opacity: 0.75;
/* Fade at bottom */
-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: cover;
-webkit-mask-position: center top;
}