mediawiki-skins-Citizen/resources/skins.citizen.styles/common/common.less

187 lines
2.8 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
* Framework
*/
html {
box-sizing: border-box;
2019-08-15 17:40:13 +00:00
}
html,
body {
min-height: 100vh;
2020-02-06 19:44:22 +00:00
padding: 0;
margin: 0;
color: var( --color-base );
accent-color: var( --color-progressive );
background: var( --color-surface-0 );
2019-08-15 17:40:13 +00:00
}
// Apply border-box universally unless overwritten
*,
*::before,
*::after {
box-sizing: inherit;
border-color: var( --border-color-base );
border-style: solid;
border-width: 0;
}
:focus {
outline-color: var( --color-progressive );
}
// For some reason just overriding the outline-color is not enough
:focus-visible {
outline: var( --border-width-thick ) solid var( --color-progressive );
outline-offset: 1px;
}
::placeholder {
color: var( --color-subtle );
}
::selection {
color: var( --color-inverted-primary );
background-color: var( --color-progressive );
}
input,
select,
textarea {
color: var( --color-emphasized );
background-color: transparent;
border: var( --border-width-base ) solid var( --border-color-interactive );
}
select option {
background-color: var( --color-surface-1 );
}
2019-08-15 17:40:13 +00:00
textarea {
2020-02-06 19:44:22 +00:00
width: 100%;
}
blockquote {
margin: var( --space-md );
color: var( --color-subtle );
2020-02-06 19:44:22 +00:00
cite {
display: block;
margin-top: var( --space-sm );
&::before {
2020-02-06 19:56:27 +00:00
content: '— ';
}
2020-02-06 19:44:22 +00:00
}
2019-08-15 17:40:13 +00:00
}
button {
font-family: var( --font-family-base );
}
2021-06-10 23:26:05 +00:00
sup,
sub {
line-height: 1;
}
th {
font-weight: var( --font-weight-semibold );
color: var( --color-emphasized );
}
/* Remove outer margin in table cell */
th,
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;
}
&:last-child {
margin-bottom: 0;
2020-02-06 19:44:22 +00:00
}
}
2019-08-15 17:40:13 +00:00
}
.hidden,
.sr-only {
.sr-only;
}
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
}
.citizen-button {
padding: 0;
appearance: none;
cursor: pointer;
background: transparent;
border: 0;
}
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
}
// TODO: Think of better places to put indicators;
2020-06-12 17:44:24 +00:00
.mw-indicators {
display: flex;
align-items: center;
2021-01-26 20:38:27 +00:00
padding-left: 10px;
margin-left: 10px;
font-size: var( --font-size-small );
border-left: var( --border-width-base ) solid var( --border-color-base );
2020-06-12 17:44:24 +00:00
}
2020-02-06 19:44:22 +00:00
.mw-indicator {
filter: var( --filter-invert );
}
#mw-indicator-mw-helplink a {
font-size: 0; /* Hide the text because the color is weird */
}
2021-03-13 17:57:59 +00:00
video {
max-width: 100%; // Prevent overflow
}
.skin-theme-clientpref-night {
2021-01-26 20:38:27 +00:00
.mw-indicator {
// Have to hardcode the color since the filter breaks the color
a {
color: @color-primary;
&:hover {
color: @color-primary--hover;
}
&:active {
color: @color-primary--active;
}
}
2021-01-26 20:38:27 +00:00
}
}
@media ( hover: none ) {
a,
button,
label {
// Remove the 300ms delay in click event (T118509)
touch-action: manipulation;
}
}
@media ( max-width: @max-width-breakpoint-tablet ) {
.mw-body,
.parsoid-body {
overflow-x: hidden; // fallback if clip is not supported
overflow-x: clip; // avoid breaking layout in smaller screen sizes
}
}