Files
minibin/static/css/main.css
T
whoswhip 2c342f63b3 every file sharing service needs qts
honestly this code might be kind of shit, and it needs to used on the other page(s) as well but im too lazy, fixed a styling issue with the upload result page though
2026-11-12 22:30:36 -05:00

236 lines
3.7 KiB
CSS

:root {
--bg: #191919;
--surface: #2a2a2a;
--surface-hover: #4a4a4a;
--text: #eee;
--text-muted: #aaa;
--border: #4e4e4e;
--border-strong: #7e7e7e;
}
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
background-color: var(--bg);
color: var(--text);
margin: 0;
font-family: Consolas, monospace;
font-size: 14px;
background-image:var(--qt-url);
background-repeat: no-repeat;
background-position: bottom right;
background-size: auto 256px;
}
h1,
h2 {
margin: 0;
font-weight: 400;
}
h1 {
font-size: 18px;
font-weight: 700;
}
a {
color: var(--text);
}
main {
width: min(100% - 36px, 720px);
margin: 0 auto;
padding: 11px 0 64px;
}
.site-header {
width: min(100% - 36px, 720px);
margin: 0 auto;
padding: 44px 0 0;
display: flex;
justify-content: space-between;
}
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"]:hover {
background-color: var(--surface);
}
input[type="file"]:hover::file-selector-button {
background-color: var(--surface-hover);
}
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;
}
.btn {
border-radius: 0;
border: none;
background-color: var(--text);
padding: 11px;
color: var(--surface);
font: inherit;
cursor: pointer;
}
.btn:hover {
background-color: var(--text-muted);
}
.link-btn {
border: none;
background: none;
padding: 0;
text-decoration: underline;
color: var(--text);
cursor: pointer;
font: inherit;
}
img,
video,
audio {
max-width: 100%;
}
.upload-links {
margin-top: 12px;
display: flex;
flex-direction: row;
gap: 12px;
align-items: baseline;
}
.upload-links form {
margin: 0;
}
body.dragging::after {
content: "drop file to select";
position: fixed;
inset: 0;
z-index: 100;
display: grid;
place-items: center;
background: rgb(0 0 0 / 30%);
color: var(--text);
font-size: 1.5rem;
pointer-events: none;
}
.upload-metadata {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}
.upload-metadata th,
.upload-metadata td {
padding: 8px 0;
border-bottom: 1px solid var(--border);
text-align: left;
vertical-align: top;
overflow-wrap: anywhere;
}
.upload-metadata th:first-child {
width: 20%;
padding-right: 16px;
}
.upload-metadata th[scope="row"] {
color: var(--text-muted);
font-weight: bold;
}