style the home page, get rid of nojs pages
instead of having dedicated nojs pages, i will instead just use javascript to enhance the already existing pages
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
:root {
|
||||
--bg: #191919;
|
||||
--surface: #2a2a2a;
|
||||
--text: #eee;
|
||||
--text-muted: #aaa;
|
||||
--border: #4e4e4e;
|
||||
--border-strong: #7e7e7e;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
font-family: Consolas, monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
main {
|
||||
width: min(100% - 36px, 720px);
|
||||
margin: 0 auto;
|
||||
padding: 44px 0 64px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: var(--bg);
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 120px;
|
||||
height: 120px;
|
||||
resize: vertical;
|
||||
border: 1px solid var(--border);
|
||||
font: inherit;
|
||||
padding: 12px;
|
||||
outline: none;
|
||||
color: var(--text);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.upload-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.upload-tabs > label {
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid transparent;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.upload-tabs > input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
}
|
||||
|
||||
.upload-tabs > input:checked + label {
|
||||
border-bottom-color: currentColor;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.upload-tabs > input:focus-visible + label {
|
||||
border: 1px solid currentColor;
|
||||
}
|
||||
|
||||
.file-panel,
|
||||
.paste-panel {
|
||||
display: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#type-file:checked ~ .file-panel,
|
||||
#type-paste:checked ~ .paste-panel {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
display: block;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin-bottom: 12px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
input[type="file"]::file-selector-button {
|
||||
background-color: var(--surface);
|
||||
border: none;
|
||||
color: var(--text);
|
||||
padding: 10px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
label[for="file-expiry"],
|
||||
label[for="paste-expiry"] {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
select {
|
||||
padding: 0 0 2px;
|
||||
background: var(--bg);
|
||||
border: none;
|
||||
color: var(--text);
|
||||
border-bottom: 1px solid var(--border-strong);
|
||||
border-radius: 0;
|
||||
font: inherit;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
option {
|
||||
background-color: var(--bg);
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button[type="submit"] {
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
background-color: var(--text);
|
||||
padding: 11px;
|
||||
color: var(--surface);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
Reference in New Issue
Block a user