2019-08-15 17:40:13 +00:00
|
|
|
/*
|
|
|
|
* Framework
|
|
|
|
*/
|
|
|
|
html {
|
2023-03-01 21:08:07 +00:00
|
|
|
box-sizing: border-box;
|
2022-10-21 18:40:55 +00:00
|
|
|
// Not ideal but it works
|
2022-10-25 20:05:01 +00:00
|
|
|
scroll-padding-top: 6rem;
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
2022-10-03 17:20:46 +00:00
|
|
|
min-height: 100vh;
|
2020-02-06 19:44:22 +00:00
|
|
|
padding: 0;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0;
|
2022-05-12 01:40:27 +00:00
|
|
|
accent-color: var( --color-primary );
|
2021-07-25 23:16:05 +00:00
|
|
|
background: var( --color-surface-0 );
|
2021-01-12 19:31:35 +00:00
|
|
|
color: var( --color-base );
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 21:08:07 +00:00
|
|
|
// Apply border-box universally unless overwritten
|
|
|
|
*,
|
|
|
|
*::before,
|
|
|
|
*::after {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
|
2021-07-27 19:57:35 +00:00
|
|
|
:focus {
|
|
|
|
outline-color: var( --color-primary );
|
|
|
|
}
|
|
|
|
|
2023-01-26 01:20:46 +00:00
|
|
|
// For some reason just overriding the outline-color is not enough
|
|
|
|
:focus-visible {
|
|
|
|
outline: 2px solid var( --color-primary );
|
|
|
|
outline-offset: 1px;
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
2023-07-17 00:48:37 +00:00
|
|
|
border: 1px solid var( --border-color-base--darker );
|
|
|
|
background-color: transparent;
|
2022-11-30 21:10:48 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2021-01-09 21:56:28 +00:00
|
|
|
}
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
textarea {
|
2020-02-06 19:44:22 +00:00
|
|
|
width: 100%;
|
2020-02-06 19:44:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
2022-11-16 23:28:06 +00:00
|
|
|
margin: var( --space-md );
|
2021-02-21 05:43:39 +00:00
|
|
|
color: var( --color-base--subtle );
|
2020-02-06 19:44:22 +00:00
|
|
|
|
|
|
|
cite {
|
|
|
|
display: block;
|
2022-11-16 23:06:23 +00:00
|
|
|
margin-top: var( --space-sm );
|
2020-02-06 19:56:46 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2020-02-06 19:56:27 +00:00
|
|
|
content: '— ';
|
2020-02-06 19:56:46 +00:00
|
|
|
}
|
2020-02-06 19:44:22 +00:00
|
|
|
}
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
2021-06-10 23:26:05 +00:00
|
|
|
sup,
|
|
|
|
sub {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2022-12-06 20:06:22 +00:00
|
|
|
th {
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
}
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
td {
|
2020-02-06 19:44:22 +00:00
|
|
|
> p,
|
|
|
|
> ul,
|
|
|
|
> ol {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0; // Remove margin for the first element in td
|
|
|
|
}
|
|
|
|
}
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
2019-12-11 05:53:49 +00:00
|
|
|
.nowrap {
|
2020-02-06 19:44:22 +00:00
|
|
|
white-space: nowrap;
|
2019-12-11 05:53:49 +00:00
|
|
|
}
|
|
|
|
|
2023-07-10 20:23:48 +00:00
|
|
|
.citizen-button {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
appearance: none;
|
|
|
|
background: transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
/*
|
|
|
|
* Content
|
|
|
|
*/
|
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
2020-02-06 19:44:22 +00:00
|
|
|
direction: ltr;
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
2021-01-26 19:56:11 +00:00
|
|
|
// TODO: Think of better places to put indicators;
|
2020-06-12 17:44:24 +00:00
|
|
|
.mw-indicators {
|
2022-10-20 21:32:22 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-01-26 20:38:27 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
border-left: 1px solid var( --border-color-base );
|
|
|
|
margin-left: 10px;
|
2022-11-16 23:06:23 +00:00
|
|
|
font-size: 0.875rem;
|
2020-06-12 17:44:24 +00:00
|
|
|
}
|
2020-02-06 19:44:22 +00:00
|
|
|
|
2023-07-10 20:56:56 +00:00
|
|
|
.mw-indicator {
|
|
|
|
filter: var( --filter-invert );
|
|
|
|
}
|
|
|
|
|
2021-03-13 17:57:59 +00:00
|
|
|
video {
|
|
|
|
max-width: 100%; // Prevent overflow
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
2021-04-27 17:01:55 +00:00
|
|
|
color-scheme: dark;
|
|
|
|
|
2021-01-26 20:38:27 +00:00
|
|
|
.mw-indicator {
|
2021-05-04 15:56:32 +00:00
|
|
|
// Have to hardcode the color since the filter breaks the color
|
|
|
|
a {
|
2021-07-27 21:33:59 +00:00
|
|
|
color: @color-primary;
|
2021-05-04 15:56:32 +00:00
|
|
|
|
|
|
|
&:hover {
|
2021-07-27 21:33:59 +00:00
|
|
|
color: @color-primary--hover;
|
2021-05-04 15:56:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2021-07-27 21:33:59 +00:00
|
|
|
color: @color-primary--active;
|
2021-05-04 15:56:32 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-26 20:38:27 +00:00
|
|
|
}
|
2021-01-09 21:56:28 +00:00
|
|
|
}
|
2021-03-01 18:11:41 +00:00
|
|
|
|
2022-12-08 18:51:22 +00:00
|
|
|
@media ( hover: none ) {
|
|
|
|
a,
|
|
|
|
button,
|
|
|
|
label {
|
|
|
|
// Remove the 300ms delay in click event (T118509)
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-23 22:18:53 +00:00
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
2021-04-12 18:13:28 +00:00
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
2022-05-23 22:18:53 +00:00
|
|
|
overflow-x: hidden; // fallback if clip is not supported
|
|
|
|
overflow-x: clip; // avoid breaking layout in smaller screen sizes
|
2021-04-12 18:13:28 +00:00
|
|
|
}
|
2022-05-23 22:18:53 +00:00
|
|
|
}
|
2021-04-02 19:46:52 +00:00
|
|
|
|
2022-05-23 22:18:53 +00:00
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
2021-04-02 19:46:52 +00:00
|
|
|
// Delay scroll animation won't happen on load
|
|
|
|
// Use it only for larger viewport as it is very costly
|
|
|
|
// on mobile devices
|
|
|
|
html.citizen-animations-ready {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
2021-03-01 18:11:41 +00:00
|
|
|
}
|