More actions
No edit summary |
(Automation: Update CSS file from SCSS file.) |
||
| Line 1: | Line 1: | ||
/* Style overrides for the Citizen skin */ | |||
/* Not to be edited in the wiki, see https://github.com/repair-wiki/content for instructions on how to contribute */ | |||
/* Overrides for third party extensions */ | |||
.editOptions { | |||
color: var(--color-base); | |||
background: var(--color-surface-0); | |||
border: 1px solid var(--border-color-base); | |||
border-radius: var(--border-radius--medium); | |||
} | |||
span.select2.select2-container.select2-container--default *, .select2-container * { | |||
color: var(--color-base); | |||
background: var(--color-surface-0); | |||
border-color: var(--border-color-base); | |||
border-radius: var(--border-radius--medium); | |||
} | |||
.select2-container--default .select2-results__option[aria-selected=true] { | |||
background: var(--active-bg-color); | |||
color: var(--active-text-color); | |||
} | |||
.pf-select2-dropdown .select2-results__options .select2-results__option--highlighted { | |||
background: var(--active-bg-color); | |||
} | |||
.pf-select2-dropdown .select2-results__options .select2-results__option--highlighted * { | |||
color: var(--active-text-color) !important; | |||
} | |||
span.select2-match-entire { | |||
background-color: transparent; | |||
} | |||
form#pfForm * { | |||
border-color: var(--border-color-base); | |||
} | |||
option { | |||
color: black; | |||
} | |||
.mw-ui-button-fw { | |||
width: 100%; | |||
} | |||
/* Infoboxes */ | |||
.infobox { | .infobox { | ||
margin-bottom: var( --space-md ); | font-size: 80%; | ||
background: var( --color-surface-2 ); | margin-bottom: var(--space-md); | ||
border-radius: var( --border-radius--medium ); | background: var(--color-surface-2); | ||
border-radius: var(--border-radius--medium); | |||
display: table; | display: table; | ||
min-width: 25em; | min-width: 25em; | ||
| Line 14: | Line 62: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.infobox tbody tr { | .infobox tbody tr { | ||
border-top: 1px solid var(--border-color-base); | border-top: 1px solid var(--border-color-base); | ||
} | } | ||
.infobox tbody tr * { | .infobox tbody tr * { | ||
vertical-align: middle; | vertical-align: middle; | ||
| Line 35: | Line 81: | ||
padding-left: 1em; | padding-left: 1em; | ||
} | } | ||
.infobox tbody tr td { | .infobox tbody tr td { | ||
width: 60%; | width: 60%; | ||
padding-right: 1em; | padding-right: 1em; | ||
} | |||
.infobox tbody tr:nth-child(1) { | |||
border: none; | |||
} | } | ||
@media only screen and (max-width: 1024px) { | |||
table.infobox { | |||
float: none; | |||
width: 100%; | |||
max-width: none; | |||
margin: 0; | |||
min-width: auto; | |||
overflow-x: scroll; | |||
} | |||
} | |||
/* Frontpage containers */ | |||
.frontpage-container-row { | .frontpage-container-row { | ||
display: flex; | display: flex; | ||
| Line 48: | Line 106: | ||
margin-bottom: 0.25em; | margin-bottom: 0.25em; | ||
} | } | ||
.frontpage-container-column { | .frontpage-container-column { | ||
flex: 1; | flex: 1; | ||
background: var( --color-surface-2 ); | background: var(--color-surface-2); | ||
border-radius: var( --border-radius--medium ); | border-radius: var(--border-radius--medium); | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
overflow: hidden; | overflow: hidden; | ||
margin: 0.5em; | margin: 0.5em; | ||
padding: 0; | padding: 0; | ||
font-weight: 200; | |||
} | } | ||
.frontpage-container-content { | .frontpage-container-content { | ||
padding: 0.5em; | padding: 0.5em; | ||
margin: var(--space-sm) | margin: var(--space-sm); | ||
} | |||
.frontpage-container-content ul { | |||
margin-top: 0; | |||
} | } | ||
| Line 69: | Line 133: | ||
border-bottom: 1px solid var(--border-color-base); | border-bottom: 1px solid var(--border-color-base); | ||
color: white; | color: white; | ||
padding: var(--space-sm) | padding: var(--space-sm); | ||
} | } | ||
.frontpage-container-heading h2 { | .frontpage-container-heading h2 { | ||
font-weight: 500 !important; | |||
margin: 0; | margin: 0; | ||
font-size: 1em; | font-size: 1em; | ||
padding: 0.5em; | padding: 0.5em; | ||
} | } | ||
.container-row-links-grid a { | .container-row-links-grid a { | ||
width: 20%; | width: 20%; | ||
| Line 82: | Line 148: | ||
padding: 0.5em; | padding: 0.5em; | ||
} | } | ||
.container-row-links-grid a .frontpage-container-column { | .container-row-links-grid a .frontpage-container-column { | ||
text-align: center; | |||
width: 100%; | |||
margin: 0; | |||
} | } | ||
. | .container-row-links-grid a .frontpage-container-column p { | ||
padding: var(--space-sm) 0; | |||
} | } | ||
.container-row-links-grid .frontpage-container-column p { | .container-row-links-grid .frontpage-container-column p { | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
.container-row-links-grid .frontpage-container-column p a { | |||
.container-row-links-grid | margin: 0; | ||
text-align: center; | |||
padding: var(--space-sm) 0; | padding: var(--space-sm) 0; | ||
width: 100%; | |||
display: block; | |||
} | } | ||
.frontpage-icon { | .frontpage-icon { | ||
display: inline-block; | display: inline-block; | ||
width: 1em; | width: 1em; | ||
height: 1em; | height: 1em; | ||
vertical-align: top; | |||
} | } | ||
/* Image buttons */ | |||
.frontpage-image-button { | .frontpage-image-button { | ||
flex: 1; | flex: 1; | ||
border-radius: 8px; | border-radius: 8px; | ||
border: 1px solid rgba(0,0,0,0.05); | border: 1px solid rgba(0, 0, 0, 0.05); | ||
overflow: hidden; | overflow: hidden; | ||
padding: 0; | padding: 0; | ||
| Line 174: | Line 185: | ||
position: relative; | position: relative; | ||
margin: 0.5em; | margin: 0.5em; | ||
background-color: hsl(210,17%,98%); | background-color: hsl(210, 17%, 98%); | ||
color: black; | color: black; | ||
} | |||
.frontpage-image-button.has-image { | |||
background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 200%); | |||
} | } | ||
| Line 181: | Line 196: | ||
color: white; | color: white; | ||
} | } | ||
.frontpage-image-button a { | .frontpage-image-button a { | ||
display: inline-block; | display: inline-block; | ||
text-decoration:none; | text-decoration: none; | ||
color: black; | color: black; | ||
padding: 1em; | padding: 1em; | ||
width: 100%; | width: 100%; | ||
font-family: "roboto"; | font-family: "roboto"; | ||
| Line 207: | Line 222: | ||
position: absolute; | position: absolute; | ||
width: 100%; | width: 100%; | ||
z-index: | z-index: -1; | ||
top: -57px; | top: -57px; | ||
left: 0; | left: 0; | ||
transition: background-color .6s ease, transform .6s; | transition: background-color 0.6s ease, transform 0.6s; | ||
} | } | ||
.frontpage-image-button | |||
.frontpage-image-button:hover > img { | |||
transform: scale(1.2); | |||
} | } | ||
.frontpage-image-button | |||
.frontpage-image-button-container { | |||
display: flex; | |||
} | } | ||
.frontpage- | |||
/* Main page */ | |||
.page-Main_Page header.mw-body-header { | |||
display: none; | |||
} | |||
.frontpage-title { | |||
padding: 2em; | |||
color: var(--color-base--subtle); | |||
font-weight: 300; | |||
} | |||
.frontpage-title .prefix, .frontpage-title .suffix { | |||
font-weight: 100; | |||
} | |||
.frontpage-title .prefix { | |||
margin-bottom: 0; | |||
} | |||
.frontpage-title h1 { | |||
margin-bottom: 0; | |||
margin-top: 0; | |||
font-weight: 800; | |||
color: var(--color-base--emphasized); | |||
} | |||
.frontpage-title .suffix { | |||
margin-top: 0; | |||
} | } | ||
Revision as of 21:42, 25 March 2024
/* Style overrides for the Citizen skin */
/* Not to be edited in the wiki, see https://github.com/repair-wiki/content for instructions on how to contribute */
/* Overrides for third party extensions */
.editOptions {
color: var(--color-base);
background: var(--color-surface-0);
border: 1px solid var(--border-color-base);
border-radius: var(--border-radius--medium);
}
span.select2.select2-container.select2-container--default *, .select2-container * {
color: var(--color-base);
background: var(--color-surface-0);
border-color: var(--border-color-base);
border-radius: var(--border-radius--medium);
}
.select2-container--default .select2-results__option[aria-selected=true] {
background: var(--active-bg-color);
color: var(--active-text-color);
}
.pf-select2-dropdown .select2-results__options .select2-results__option--highlighted {
background: var(--active-bg-color);
}
.pf-select2-dropdown .select2-results__options .select2-results__option--highlighted * {
color: var(--active-text-color) !important;
}
span.select2-match-entire {
background-color: transparent;
}
form#pfForm * {
border-color: var(--border-color-base);
}
option {
color: black;
}
.mw-ui-button-fw {
width: 100%;
}
/* Infoboxes */
.infobox {
font-size: 80%;
margin-bottom: var(--space-md);
background: var(--color-surface-2);
border-radius: var(--border-radius--medium);
display: table;
min-width: 25em;
max-width: 30em;
border-collapse: collapse;
float: right;
clear: right;
margin: 2em;
margin-right: 0;
margin-top: 0;
overflow: hidden;
}
.infobox tbody tr {
border-top: 1px solid var(--border-color-base);
}
.infobox tbody tr * {
vertical-align: middle;
padding: var(--space-sm) 0;
}
.infobox tbody tr .infobox-heading {
text-align: center;
padding-left: 1em;
padding-right: 1em;
background: var(--color-primary--hover);
color: white;
}
.infobox tbody tr th {
width: 40%;
text-align: left;
padding-left: 1em;
}
.infobox tbody tr td {
width: 60%;
padding-right: 1em;
}
.infobox tbody tr:nth-child(1) {
border: none;
}
@media only screen and (max-width: 1024px) {
table.infobox {
float: none;
width: 100%;
max-width: none;
margin: 0;
min-width: auto;
overflow-x: scroll;
}
}
/* Frontpage containers */
.frontpage-container-row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 0.25em;
}
.frontpage-container-column {
flex: 1;
background: var(--color-surface-2);
border-radius: var(--border-radius--medium);
border: 1px solid var(--border-color-base);
overflow: hidden;
margin: 0.5em;
padding: 0;
font-weight: 200;
}
.frontpage-container-content {
padding: 0.5em;
margin: var(--space-sm);
}
.frontpage-container-content ul {
margin-top: 0;
}
.frontpage-container-heading {
text-align: left;
margin: 0;
padding-left: 1em;
padding-right: 1em;
border-bottom: 1px solid var(--border-color-base);
color: white;
padding: var(--space-sm);
}
.frontpage-container-heading h2 {
font-weight: 500 !important;
margin: 0;
font-size: 1em;
padding: 0.5em;
}
.container-row-links-grid a {
width: 20%;
display: flex;
margin: 0;
padding: 0.5em;
}
.container-row-links-grid a .frontpage-container-column {
text-align: center;
width: 100%;
margin: 0;
}
.container-row-links-grid a .frontpage-container-column p {
padding: var(--space-sm) 0;
}
.container-row-links-grid .frontpage-container-column p {
padding: 0;
margin: 0;
}
.container-row-links-grid .frontpage-container-column p a {
margin: 0;
text-align: center;
padding: var(--space-sm) 0;
width: 100%;
display: block;
}
.frontpage-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: top;
}
/* Image buttons */
.frontpage-image-button {
flex: 1;
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.05);
overflow: hidden;
padding: 0;
font-family: "Sans-serif";
position: relative;
margin: 0.5em;
background-color: hsl(210, 17%, 98%);
color: black;
}
.frontpage-image-button.has-image {
background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 200%);
}
.frontpage-image-button.has-image a {
color: white;
}
.frontpage-image-button a {
display: inline-block;
text-decoration: none;
color: black;
padding: 1em;
width: 100%;
font-family: "roboto";
font-weight: 500;
}
.double-height a {
padding: 2em 1em;
}
.frontpage-container-row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 0.25em;
}
.frontpage-image-button.has-image img {
pointer-events: none;
position: absolute;
width: 100%;
z-index: -1;
top: -57px;
left: 0;
transition: background-color 0.6s ease, transform 0.6s;
}
.frontpage-image-button:hover > img {
transform: scale(1.2);
}
.frontpage-image-button-container {
display: flex;
}
/* Main page */
.page-Main_Page header.mw-body-header {
display: none;
}
.frontpage-title {
padding: 2em;
color: var(--color-base--subtle);
font-weight: 300;
}
.frontpage-title .prefix, .frontpage-title .suffix {
font-weight: 100;
}
.frontpage-title .prefix {
margin-bottom: 0;
}
.frontpage-title h1 {
margin-bottom: 0;
margin-top: 0;
font-weight: 800;
color: var(--color-base--emphasized);
}
.frontpage-title .suffix {
margin-top: 0;
}