ufh/web/style.scss

171 lines
2.7 KiB
SCSS
Raw Permalink Normal View History

2023-07-03 15:54:31 +00:00
* {
margin: 0;
padding: 0;
font: inherit;
box-sizing: border-box;
}
:root {
--bg-primary: #1a1923;
2023-07-30 07:55:38 +00:00
--bg-secondary: #14131d;
--bg-tertiary: #100e18;
--bg-quartiary: #0a0e11;
2023-08-02 05:06:41 +00:00
--bg-light: #201e2a;
2023-07-30 07:55:38 +00:00
--never-see-this-color: #00ff1f;
--fg-text: #c7c6ca;
2023-07-08 11:17:28 +00:00
--fg-link: #b18cf3;
2023-08-02 05:06:41 +00:00
--fg-dimmed: #7f879b;
2023-07-30 07:55:38 +00:00
--color-accent: #b18cf3;
2023-07-08 11:17:28 +00:00
--borders: #222a30;
2023-08-12 16:46:52 +00:00
--font-normal: sans-serif;
--font-mono: monospace;
2023-07-03 15:54:31 +00:00
}
2023-07-09 19:30:09 +00:00
body {
overflow: hidden;
2023-07-30 07:55:38 +00:00
color: var(--fg-text);
2023-08-01 14:21:04 +00:00
background: var(--bg-tertiary);
2023-08-12 16:46:52 +00:00
font: 16px/1.3 var(--font-normal);
2023-07-09 19:30:09 +00:00
}
2023-07-03 15:54:31 +00:00
h1 { font-size: 2em }
h2 { font-size: 1.5em }
h3 { font-size: 1.3em }
a {
text-decoration: none;
color: var(--fg-link);
cursor: pointer;
2023-07-03 15:54:31 +00:00
}
2023-08-10 18:34:24 +00:00
a.broken {
cursor: not-allowed;
color: #e66e82;
}
2023-07-05 11:59:18 +00:00
a:hover, a:focus-visible {
2023-07-03 15:54:31 +00:00
text-decoration: underline;
}
2023-08-01 07:56:29 +00:00
b, strong {
font-weight: bold;
}
// yes, i know italic and oblique are different and i don't care
i, em {
font-style: italic;
}
// seems strange why they go off the page by default
ol, ul {
margin-left: 1em;
}
pre, code {
2023-08-12 16:46:52 +00:00
font-family: var(--font-mono);
2023-08-02 05:06:41 +00:00
&:not(.lang-mono) {
background: var(--bg-secondary);
padding: 0 4px;
2023-08-02 05:06:41 +00:00
border-radius: 2px;
}
2023-08-01 07:56:29 +00:00
}
pre:not(.lang-mono) {
padding: 4px;
}
2023-08-01 07:56:29 +00:00
pre {
overflow-x: auto;
padding: 4px;
}
table {
border: solid var(--borders) 1px;
// border-radius: 4px;
2023-08-01 07:56:29 +00:00
border-spacing: 0;
& > thead {
background: var(--bg-tertiary);
}
& > tbody > tr:nth-child(even) {
background: var(--bg-secondary);
}
& td, th {
padding: 8px;
}
}
2023-08-13 20:51:35 +00:00
input, textarea, button, select, label.button {
2023-07-03 15:54:31 +00:00
background: var(--bg-secondary);
color: inherit;
2023-07-08 11:17:28 +00:00
border: solid var(--borders) 1px;
2023-07-03 15:54:31 +00:00
border-radius: 2px;
padding: 0 2px;
2023-07-03 15:54:31 +00:00
}
2023-08-13 20:51:35 +00:00
button, input[type=submit], label.button {
2023-07-05 11:59:18 +00:00
color: var(--fg-link);
padding: 0 4px;
cursor: pointer;
}
button:hover, button:focus-visible,
2023-08-13 20:51:35 +00:00
input[type=submit]:hover, input[type=submit]:focus-visible,
label.button:hover, label.button:focus-visible {
2023-07-05 11:59:18 +00:00
text-decoration: underline;
background: var(--bg-primary);
}
summary {
cursor: pointer;
}
2023-08-02 05:06:41 +00:00
.description, span.info {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2023-07-05 11:59:18 +00:00
.description {
color: #b5b0c2;
2023-07-03 15:54:31 +00:00
}
2023-08-02 05:06:41 +00:00
span.info {
color: var(--fg-dimmed);
font-size: .8em;
2023-07-03 15:54:31 +00:00
}
.hidden {
display: none !important;
}
2023-08-01 14:21:04 +00:00
.nojs {
height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
padding: 1em;
& > main {
display: inline-block;
border: solid var(--borders) 1px;
padding: 8px;
border-radius: 4px;
background: var(--bg-secondary);
max-width: 550px;
& > p {
margin-top: 8px;
}
}
}
2023-08-03 08:42:31 +00:00
hr {
border: none;
border-bottom: solid var(--borders) 1px;
}