2019-09-21 06:17:57 +00:00
|
|
|
@import './fonts.scss';
|
|
|
|
@import './variables.scss';
|
2019-09-21 20:45:48 +00:00
|
|
|
@import './focus.scss';
|
2018-11-21 06:41:32 +00:00
|
|
|
|
2018-01-12 16:36:31 +00:00
|
|
|
body {
|
|
|
|
margin: 0;
|
2018-11-21 06:41:32 +00:00
|
|
|
font-family: system-ui, -apple-system, PinaforeRegular, sans-serif;
|
2018-01-12 16:36:31 +00:00
|
|
|
font-size: 14px;
|
2018-02-11 00:22:12 +00:00
|
|
|
line-height: 1.4;
|
2018-01-12 17:05:03 +00:00
|
|
|
color: var(--body-text-color);
|
2018-01-12 17:01:46 +00:00
|
|
|
background: var(--body-bg);
|
2018-11-21 08:17:59 +00:00
|
|
|
-webkit-tap-highlight-color: transparent; // fix for blue background on spoiler tap on Chrome for Android
|
2018-12-02 19:22:18 +00:00
|
|
|
overflow-x: hidden; // Prevent horizontal scrolling on mobile Firefox on small screens
|
2019-09-21 20:45:48 +00:00
|
|
|
|
|
|
|
@media (max-width: 240px) {
|
|
|
|
font-size: 0.75em; /* tiny text for tiny screens */
|
|
|
|
}
|
|
|
|
|
2018-01-12 16:36:31 +00:00
|
|
|
}
|
|
|
|
|
2018-11-18 02:06:49 +00:00
|
|
|
.main-content {
|
2018-11-21 08:17:59 +00:00
|
|
|
contain: content; // see https://www.w3.org/TR/2018/CR-css-contain-1-20181108/#valdef-contain-content
|
2019-09-21 06:17:57 +00:00
|
|
|
padding-top: var(--main-content-pad-top);
|
2018-01-16 02:29:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2018-01-12 16:36:31 +00:00
|
|
|
position: relative;
|
2018-01-16 05:58:31 +00:00
|
|
|
width: 602px;
|
2019-04-13 18:02:25 +00:00
|
|
|
// take into account scrollbars;
|
|
|
|
// https://stackoverflow.com/a/34884924
|
|
|
|
max-width: 100%;
|
2018-01-28 02:25:49 +00:00
|
|
|
padding: 0;
|
2018-01-12 16:36:31 +00:00
|
|
|
box-sizing: border-box;
|
2020-05-20 14:07:47 +00:00
|
|
|
margin: 0 auto var(--main-margin-bottom);
|
2018-01-12 17:01:46 +00:00
|
|
|
background: var(--main-bg);
|
2020-05-20 14:07:47 +00:00
|
|
|
border: var(--main-border-size) solid var(--main-border);
|
2018-01-12 16:36:31 +00:00
|
|
|
border-radius: 1px;
|
2018-03-17 01:03:35 +00:00
|
|
|
min-height: 70vh;
|
2018-01-12 16:36:31 +00:00
|
|
|
}
|
|
|
|
|
2018-03-07 17:25:07 +00:00
|
|
|
footer {
|
|
|
|
width: 602px;
|
|
|
|
max-width: 100vw;
|
|
|
|
box-sizing: border-box;
|
2018-03-27 16:34:29 +00:00
|
|
|
margin: 15px auto;
|
2018-03-07 17:25:07 +00:00
|
|
|
border-radius: 1px;
|
|
|
|
background: var(--main-bg);
|
|
|
|
font-size: 0.9em;
|
2018-03-11 19:13:12 +00:00
|
|
|
padding: 20px;
|
2018-03-07 17:25:07 +00:00
|
|
|
border: 1px solid var(--main-border);
|
|
|
|
}
|
|
|
|
|
2018-01-12 16:36:31 +00:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin: 0 0 0.5em 0;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2018-01-12 17:01:46 +00:00
|
|
|
color: var(--anchor-text);
|
2018-01-12 16:36:31 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
2019-01-26 20:58:11 +00:00
|
|
|
&:visited {
|
|
|
|
color: var(--anchor-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2018-01-12 16:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
2018-01-12 17:01:46 +00:00
|
|
|
border: 1px solid var(--input-border);
|
2018-01-12 16:36:31 +00:00
|
|
|
padding: 5px;
|
2018-02-26 00:26:43 +00:00
|
|
|
box-sizing: border-box;
|
2018-01-12 16:36:31 +00:00
|
|
|
}
|
|
|
|
|
2018-09-23 21:17:48 +00:00
|
|
|
input[type=search] {
|
|
|
|
-webkit-appearance: none; // reset Safari user agent stylesheet
|
|
|
|
}
|
|
|
|
|
2018-09-22 23:26:53 +00:00
|
|
|
// Fixes gray/black background when using a dark GTK theme
|
|
|
|
input, textarea {
|
|
|
|
background: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2018-11-21 06:41:32 +00:00
|
|
|
textarea {
|
|
|
|
font-family: system-ui, -apple-system, PinaforeRegular, sans-serif, PinaforeEmoji;
|
|
|
|
}
|
|
|
|
|
2018-03-07 07:27:36 +00:00
|
|
|
button, .button {
|
2018-01-12 16:36:31 +00:00
|
|
|
font-size: 1.2em;
|
2018-01-12 17:01:46 +00:00
|
|
|
background: var(--button-bg);
|
2018-01-12 16:36:31 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
padding: 10px 15px;
|
2018-01-12 17:01:46 +00:00
|
|
|
border: 1px solid var(--button-border);
|
2018-01-12 16:36:31 +00:00
|
|
|
cursor: pointer;
|
2018-01-12 17:01:46 +00:00
|
|
|
color: var(--button-text);
|
2018-01-12 16:36:31 +00:00
|
|
|
|
2018-01-14 02:59:49 +00:00
|
|
|
&:hover {
|
|
|
|
background: var(--button-bg-hover);
|
2018-03-07 07:27:36 +00:00
|
|
|
text-decoration: none;
|
2018-01-14 02:59:49 +00:00
|
|
|
}
|
2018-01-12 16:36:31 +00:00
|
|
|
|
2018-01-14 02:59:49 +00:00
|
|
|
&:active {
|
|
|
|
background: var(--button-bg-active);
|
|
|
|
}
|
2018-01-12 16:36:31 +00:00
|
|
|
|
2018-01-14 02:59:49 +00:00
|
|
|
&[disabled] {
|
|
|
|
opacity: 0.35;
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2018-01-12 16:36:31 +00:00
|
|
|
|
2018-01-14 02:59:49 +00:00
|
|
|
&.primary {
|
|
|
|
border: 1px solid var(--button-primary-border);
|
|
|
|
background: var(--button-primary-bg);
|
|
|
|
color: var(--button-primary-text);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--button-primary-bg-hover);
|
|
|
|
}
|
2018-01-12 16:36:31 +00:00
|
|
|
|
2018-01-14 02:59:49 +00:00
|
|
|
&:active {
|
|
|
|
background: var(--button-primary-bg-active);
|
|
|
|
}
|
|
|
|
}
|
2018-01-12 16:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p, label, input {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul, li, p {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2018-01-14 04:33:14 +00:00
|
|
|
.hidden {
|
|
|
|
opacity: 0;
|
2018-01-21 18:53:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
button::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2018-02-07 04:54:49 +00:00
|
|
|
/* Firefox hacks to remove ugly red border.
|
|
|
|
Unnecessary since it gives a warning if you submit an empty field anyway. */
|
|
|
|
input:required, input:invalid {
|
|
|
|
box-shadow: none;
|
2018-02-26 04:45:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
box-sizing: border-box;
|
2018-03-03 05:55:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.spin {
|
2019-07-18 04:34:45 +00:00
|
|
|
animation: spin 0.6s steps(8) infinite;
|
2018-03-24 16:38:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ellipsis::after {
|
|
|
|
content: "\2026";
|
2018-04-11 05:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* via https://stackoverflow.com/a/19758620 */
|
|
|
|
.sr-only {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
border: 0;
|
2018-08-19 22:23:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* this gets injected as raw HTML, so it's easiest to just define it in global.scss */
|
|
|
|
.inline-custom-emoji {
|
|
|
|
width: 1.4em;
|
|
|
|
height: 1.4em;
|
|
|
|
margin: -0.1em 0;
|
|
|
|
object-fit: contain;
|
|
|
|
vertical-align: middle;
|
2018-09-22 23:26:53 +00:00
|
|
|
}
|
2018-11-20 08:01:23 +00:00
|
|
|
|
|
|
|
.inline-emoji {
|
2018-11-21 06:41:32 +00:00
|
|
|
font-family: PinaforeEmoji, sans-serif;
|
2018-12-02 19:22:18 +00:00
|
|
|
}
|