datatrash/static/index.css

203 lines
2.8 KiB
CSS

:root {
--bg: #262824;
--bg-alt: #434742;
--accent: #007100;
--accent-alt: #228b22;
--fg: #dfe1de;
--fg-light: #afb3ab;
--radius: 5px;
--separators: 1px;
--separators-wide: 2px;
}
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: var(--bg);
min-height: 100vh;
margin: 0;
font-family: sans-serif;
}
main {
color: var(--fg);
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 1em;
}
h1 > a,
h1 > a:visited {
color: var(--fg);
}
a {
color: cornflowerblue;
}
a:visited {
color: mediumorchid;
}
label {
display: inline-block;
margin-right: 0.25em;
margin-bottom: 0.5em;
}
input,
select,
textarea,
.button {
display: inline-block;
background-color: var(--bg-alt);
color: var(--fg);
padding: 0.5em;
border: var(--separators) solid var(--fg-light);
border-radius: var(--radius);
margin-bottom: 1.5em;
max-width: calc(100vw - 2em);
}
details {
display: inline;
max-width: 100%;
}
details > pre {
margin: 0;
padding: 1rem 0.5rem;
overflow-x: scroll;
}
details summary {
cursor: pointer;
padding: 0.5em;
}
details[open] summary {
border-bottom: var(--separators) solid var(--fg-light);
}
input:focus-within,
select:focus-within,
textarea:focus-within,
.button:focus-within,
details:focus-within,
a:focus-within {
outline: solid cornflowerblue var(--separators);
border-radius: var(--radius);
}
textarea {
width: 100%;
height: 30vh;
}
h1 + textarea {
height: 60vh;
}
.hidden {
display: none;
}
input[type='checkbox'] {
margin-top: 0.5em;
margin-bottom: 1.5em;
}
.button {
cursor: pointer;
font-family: sans-serif;
font-weight: normal;
font-size: 1em;
margin-right: 0.5em;
margin-top: 1em;
user-select: none;
border-width: var(--separators-wide);
}
a.button {
text-decoration: none;
}
a.button:visited {
color: var(--fg);
}
.button:hover {
background-color: var(--bg-alt);
border-color: var(--fg);
}
.button.main {
background-color: var(--accent);
}
.button.main:hover {
background-color: var(--accent-alt);
}
.usage {
margin-top: 2em;
overflow: auto;
color: var(--fg-light);
}
.usage > p {
display: flex;
flex-direction: column;
}
.usage > p > label {
font-weight: 500;
}
.usage > p > code {
margin-left: 1rem;
}
.large-link {
display: inline-block;
margin-bottom: 1em;
max-height: 60vh;
overflow-y: auto;
font-size: clamp(1em, 3vw, 1.5em);
overflow-wrap: anywhere;
}
footer {
flex-shrink: 0;
display: flex;
justify-content: flex-end;
padding: 0.5em;
}
footer > * {
padding: 0.5em;
color: var(--fg-light);
text-decoration: none;
}
footer > *:visited {
color: var(--fg-light);
}
footer > *:hover {
color: var(--fg);
}