2020-09-19 10:57:14 +00:00
|
|
|
$colors: (
|
2021-03-18 11:13:17 +00:00
|
|
|
background: #fff,
|
|
|
|
background-dark: #000,
|
|
|
|
primary: #000,
|
|
|
|
primary-dark: #fff
|
2020-09-19 10:57:14 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
@mixin color($property, $varName) {
|
|
|
|
#{$property}: map-get($colors, $varName);
|
|
|
|
#{$property}: var(--#{$varName}, map-get($colors, $varName));
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin color-border($property, $val1, $val2, $varName) {
|
|
|
|
#{$property}: #{$val1} #{$val2} map-get($colors, $varName);
|
|
|
|
#{$property}: #{$val1} #{$val2} var(--#{$varName}, map-get($colors, $varName));
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin lightmode {
|
|
|
|
--background: #{map-get($colors, background)};
|
|
|
|
--primary: #{map-get($colors, primary)};
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin darkmode {
|
|
|
|
--background: #{map-get($colors, background-dark)};
|
|
|
|
--primary: #{map-get($colors, primary-dark)};
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sans-serif {
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
|
|
|
|
2020-12-21 19:40:08 +00:00
|
|
|
.monospace {
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2020-09-19 10:57:14 +00:00
|
|
|
html {
|
|
|
|
@include lightmode;
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
@include darkmode;
|
|
|
|
}
|
|
|
|
scrollbar-color: var(--primary) transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
@extend .sans-serif;
|
|
|
|
@include color(background, background);
|
|
|
|
line-height: 1.5;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 700px;
|
|
|
|
padding: 10px;
|
|
|
|
word-break: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
|
|
* {
|
|
|
|
@include color(color, primary);
|
|
|
|
max-width: 100%;
|
2021-05-20 17:49:10 +00:00
|
|
|
|
|
|
|
&::selection {
|
|
|
|
@include color(color, background);
|
|
|
|
@include color(background, primary);
|
|
|
|
}
|
2020-09-19 10:57:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
@extend .border-bottom;
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
* {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 a, h2 a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2021-07-19 14:32:45 +00:00
|
|
|
img, audio {
|
|
|
|
@extend .fw;
|
2020-09-19 10:57:14 +00:00
|
|
|
}
|
|
|
|
|
2021-04-20 18:38:19 +00:00
|
|
|
button, input, textarea, select {
|
2020-09-19 10:57:14 +00:00
|
|
|
@include color-border(border, 1px, solid, primary);
|
2021-04-20 18:38:19 +00:00
|
|
|
border-radius: 0;
|
2020-09-19 10:57:14 +00:00
|
|
|
@include color(background, background);
|
|
|
|
@include color(color, primary);
|
|
|
|
@extend .sans-serif;
|
|
|
|
padding: 5px 10px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 1rem;
|
2021-03-18 11:13:17 +00:00
|
|
|
line-height: 1.5;
|
2021-05-20 17:49:10 +00:00
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include color-border(outline, 3px, solid, primary);
|
|
|
|
}
|
2020-09-19 10:57:14 +00:00
|
|
|
}
|
|
|
|
|
2021-04-20 18:38:19 +00:00
|
|
|
.button {
|
|
|
|
@extend button;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disable this because it causes CSS to break in Firefox ESR (check again in the future)
|
|
|
|
// input[type=file]::file-selector-button, input[type=file]::-webkit-file-upload-button {
|
|
|
|
// @extend .button;
|
|
|
|
// }
|
|
|
|
|
2021-03-18 11:13:17 +00:00
|
|
|
form {
|
|
|
|
input, textarea, select {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2020-12-13 10:01:19 +00:00
|
|
|
}
|
|
|
|
|
2021-07-22 11:41:52 +00:00
|
|
|
form.fw {
|
2020-09-19 10:57:14 +00:00
|
|
|
@extend .fw;
|
|
|
|
|
2021-06-28 20:17:18 +00:00
|
|
|
input:not([type]), input[type="submit"], input[type="button"], input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="file"], textarea, select {
|
2020-09-19 10:57:14 +00:00
|
|
|
@extend .fw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
@include color-border(border-left, 5px, solid, primary);
|
|
|
|
padding-left: 20px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
padding: 10px;
|
|
|
|
@include color-border(border, 1px, solid, primary);
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2021-05-20 17:49:10 +00:00
|
|
|
mark, :not(pre) > code {
|
2020-09-19 10:57:14 +00:00
|
|
|
font-size: 1rem;
|
2021-03-18 11:13:17 +00:00
|
|
|
// Invert
|
|
|
|
@include color(color, background);
|
|
|
|
@include color(background, primary);
|
2021-05-20 17:49:10 +00:00
|
|
|
&::selection {
|
|
|
|
@include color(color, primary);
|
|
|
|
@include color(background, background);
|
|
|
|
}
|
2020-09-19 10:57:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2021-01-04 19:14:44 +00:00
|
|
|
table {
|
2021-04-29 05:38:11 +00:00
|
|
|
@extend .p;
|
2021-01-04 19:14:44 +00:00
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
2021-04-29 05:38:11 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: auto;
|
2021-01-04 19:14:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tr, td, th {
|
|
|
|
@include color-border(border, 1px, solid, primary);
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
2020-09-19 10:57:14 +00:00
|
|
|
footer {
|
|
|
|
@extend .border-top;
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
* {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-top {
|
|
|
|
@include color-border(border-top, 1px, solid, primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-bottom {
|
|
|
|
@include color-border(border-bottom, 1px, solid, primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p {
|
|
|
|
display: block;
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-24 15:01:10 +00:00
|
|
|
.in {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2020-09-19 10:57:14 +00:00
|
|
|
.fw {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ct {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-12-21 19:40:08 +00:00
|
|
|
.h400p {
|
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
|
2021-01-23 16:24:47 +00:00
|
|
|
.captchaimg {
|
2021-03-18 11:13:17 +00:00
|
|
|
background-color: #fff;
|
2021-01-23 16:24:47 +00:00
|
|
|
}
|
|
|
|
|
2021-02-15 20:35:05 +00:00
|
|
|
.tal {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tar {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2021-06-09 20:00:33 +00:00
|
|
|
.turn-around {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.egg-anim {
|
|
|
|
transition: transform 2s ease;
|
|
|
|
}
|
|
|
|
|
2021-07-06 19:06:39 +00:00
|
|
|
#map {
|
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
|
2020-09-19 10:57:14 +00:00
|
|
|
/* Print */
|
|
|
|
@media print {
|
|
|
|
html {
|
|
|
|
@include lightmode;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: serif;
|
|
|
|
max-width: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav,
|
|
|
|
#post-actions,
|
|
|
|
#related,
|
2021-06-24 17:09:59 +00:00
|
|
|
#interactions,
|
|
|
|
#posteditactions,
|
|
|
|
#tor {
|
2020-09-19 10:57:14 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-06-24 17:09:59 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show link
|
|
|
|
.e-content a[href]:after {
|
|
|
|
content: " [" attr(href) "]";
|
|
|
|
}
|
2020-09-19 10:57:14 +00:00
|
|
|
}
|