datatrash/static/index.css

143 lines
1.7 KiB
CSS

:root {
--bg: #222222;
--fg: #e9e9e9;
}
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;
}
main {
color: var(--fg);
font-family: sans;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}
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);
color: var(--fg);
padding: 0.5rem;
border: 2px solid var(--fg);
border-radius: 5px;
margin-bottom: 1rem;
max-width: calc(100vw - 2rem);
}
textarea {
height: 30vh;
}
.hidden {
display: none;
}
input[type="checkbox"] {
margin-bottom: 1.5rem;
}
.button {
cursor: pointer;
font-family: sans;
font-weight: normal;
font-size: 1rem;
margin-right: 0.5rem;
user-select: none;
}
a.button {
text-decoration: none;
}
a.button:visited {
color: var(--fg);
}
.button:hover {
background-color: #444444;
}
.button.main {
background-color: #007600;
}
.button.main:hover {
background-color: forestgreen;
}
.usage {
margin-top: 2em;
overflow: auto;
}
.large-link {
display: block;
margin-bottom: 1em;
max-height: 60vh;
overflow-y: auto;
font-size: clamp(1rem, 3vw, 1.5rem);
overflow-wrap: anywhere;
}
footer {
flex-shrink: 0;
display: flex;
justify-content: flex-end;
padding: 0.5rem;
}
.repo {
padding: 0.5rem;
color: #b6b6b6;
text-decoration: none;
}
.repo:visited {
color: #b6b6b6;
}
.repo:hover {
color: var(--fg);
}