datatrash/static/index.css

172 lines
2.2 KiB
CSS
Raw Normal View History

2020-08-03 00:41:36 +00:00
:root {
2020-08-19 14:25:03 +00:00
--bg: #222222;
2021-10-13 07:34:15 +00:00
--bg-alt: #444444;
--accent: #007600;
--accent-alt: #228b22;
2020-08-03 00:41:36 +00:00
--fg: #e9e9e9;
2021-10-13 07:34:15 +00:00
--fg-light: #b6b6b6;
--radius: 5px;
2020-08-03 00:41:36 +00:00
}
2020-08-19 14:25:03 +00:00
2021-06-27 23:11:10 +00:00
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
2020-07-08 19:26:46 +00:00
body {
display: flex;
flex-direction: column;
justify-content: space-between;
2020-08-19 14:25:03 +00:00
background-color: var(--bg);
2021-09-09 20:18:42 +00:00
min-height: 100vh;
margin: 0;
2021-12-10 19:31:04 +00:00
font-family: sans-serif;
2020-07-08 19:26:46 +00:00
}
main {
2020-08-03 00:41:36 +00:00
color: var(--fg);
width: 100%;
2022-01-29 12:16:04 +00:00
max-width: 1000px;
2020-07-08 19:26:46 +00:00
margin: 0 auto;
padding: 1rem;
2020-07-08 19:26:46 +00:00
}
2020-07-09 17:27:24 +00:00
h1 > a,
h1 > a:visited {
2020-08-03 00:41:36 +00:00
color: var(--fg);
2020-07-09 17:27:24 +00:00
}
a {
color: cornflowerblue;
}
a:visited {
color: mediumorchid;
}
label {
2020-08-03 00:41:36 +00:00
display: inline-block;
margin-right: 0.25em;
2020-08-03 00:41:36 +00:00
margin-bottom: 0.5em;
}
2020-07-09 17:27:24 +00:00
input,
select,
textarea,
.button {
display: inline-block;
2020-08-19 14:25:03 +00:00
background-color: var(--bg);
2020-08-03 00:41:36 +00:00
color: var(--fg);
2020-07-09 17:27:24 +00:00
padding: 0.5rem;
2020-08-03 00:41:36 +00:00
border: 2px solid var(--fg);
2021-10-13 07:34:15 +00:00
border-radius: var(--radius);
2020-07-09 17:27:24 +00:00
margin-bottom: 1rem;
max-width: calc(100vw - 2rem);
2020-07-09 17:27:24 +00:00
}
2021-10-13 07:34:15 +00:00
details {
display: inline;
}
details summary {
cursor: pointer;
}
2021-10-13 07:34:15 +00:00
input:focus-within,
select:focus-within,
textarea:focus-within,
.button:focus-within,
details:focus-within,
a:focus-within {
outline: solid cornflowerblue 2px;
border-radius: var(--radius);
}
textarea {
2022-01-29 12:16:04 +00:00
width: 100%;
height: 30vh;
}
2023-01-05 19:43:50 +00:00
h1 + textarea {
height: 60vh;
}
2021-09-09 20:18:42 +00:00
.hidden {
display: none;
}
2023-01-05 19:43:50 +00:00
input[type='checkbox'] {
margin-bottom: 1.5rem;
}
.button {
cursor: pointer;
2021-12-10 19:31:04 +00:00
font-family: sans-serif;
2021-08-18 21:22:50 +00:00
font-weight: normal;
font-size: 1rem;
2021-09-09 20:18:42 +00:00
margin-right: 0.5rem;
2021-12-20 00:06:45 +00:00
margin-top: 1rem;
2021-09-09 20:18:42 +00:00
user-select: none;
}
a.button {
text-decoration: none;
}
a.button:visited {
2020-08-03 00:41:36 +00:00
color: var(--fg);
}
.button:hover {
2021-10-13 07:34:15 +00:00
background-color: var(--bg-alt);
}
.button.main {
2021-10-13 07:34:15 +00:00
background-color: var(--accent);
2020-07-09 17:27:24 +00:00
}
.button.main:hover {
2021-10-13 07:34:15 +00:00
background-color: var(--accent-alt);
}
.usage {
margin-top: 2em;
overflow: auto;
}
2021-09-09 20:18:42 +00:00
.large-link {
2021-10-13 07:34:15 +00:00
display: inline-block;
2021-09-09 20:18:42 +00:00
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;
2021-10-13 07:34:15 +00:00
color: var(--fg-light);
text-decoration: none;
}
.repo:visited {
2021-10-13 07:34:15 +00:00
color: var(--fg-light);
}
.repo:hover {
color: var(--fg);
}