transbeam/static/css/transbeam.css

290 lines
5.1 KiB
CSS

body {
text-align: center;
font-family: sans-serif;
max-width: 512px;
margin: 0.5em auto;
padding: 0 1em;
overflow-wrap: break-word;
}
#header h1 {
margin-top: 5px;
color: CanvasText;
}
#header a {
text-decoration: none;
}
#message {
border: 1px solid;
border-radius: 4px;
padding: 10px;
width: fit-content;
margin: 10px auto;
}
#progress_container {
margin: 10px auto;
}
#progress {
display: flex;
align-items: center;
column-gap: 15px;
row-gap: 5px;
flex-wrap: wrap;
}
#progress_percentage {
flex-grow: 2;
}
#progress_size {
flex-grow: 5;
}
#progress_rate {
flex-grow: 3;
}
#progress_eta {
flex-grow: 5;
}
#progress_bar {
height: 20px;
border-radius: 10px;
border: 1px solid var(--progress-secondary);
background-image: linear-gradient(0deg, var(--progress-primary), var(--progress-primary));
background-repeat: no-repeat;
background-size: 0;
}
#download_code_container {
border: 1px solid var(--border);
border-radius: 4px;
padding: 10px;
cursor: pointer;
width: fit-content;
margin: 10px auto;
position: relative;
}
#download_code_container:hover {
border-color: var(--border-active);
}
#download_code_main {
display: flex;
align-items: center;
gap: 10px;
}
.copy_button {
width: 18px;
height: 18px;
background-color: var(--icon-primary);
mask-image: url("../images/feather-icons/copy.svg");
mask-size: contain;
mask-repeat: no-repeat;
}
#download_code_container:hover .copy_button {
background-color: var(--icon-primary-active);
}
#copied_message {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
height: fit-content;
display: none;
}
#download_code_container.copied #copied_message {
display: revert;
}
#download_code_container.copied #download_code_main {
visibility: hidden;
}
table {
border-collapse: collapse;
margin: 20px auto;
table-layout: fixed;
width: 100%;
}
tr {
background-image: linear-gradient(0deg, var(--progress-tertiary), var(--progress-tertiary));
background-repeat: no-repeat;
background-size: 0;
}
tr + tr td {
border-top: 1px solid var(--border);
}
td {
padding: 10px;
}
td.file_unavailable {
display: none;
}
tr.unavailable td.file_unavailable {
display: revert;
}
tr.unavailable td.file_download {
display: none;
}
.delete_button {
background-color: var(--icon-secondary);
mask-image: url("../images/feather-icons/x.svg");
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
padding-left: 15px;
padding-right: 15px;
cursor: pointer;
}
.delete_button:hover {
background-color: var(--icon-warning);
}
#download_toplevel div {
margin-top: 5px;
margin-bottom: 5px;
}
#download_toplevel .file_name {
font-size: 24px;
font-weight: 500;
}
#download_toplevel .file_size {
font-size: 20px;
}
#download_toplevel .file_download {
width: 75px;
height: 75px;
margin-left: auto;
margin-right: auto;
}
#download_contents summary {
font-size: 24px;
font-weight: bold;
}
#download_contents table {
margin-top: 0;
}
.file_download {
position: relative;
}
.file_download .download_button {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
td.file_download {
padding: 15px;
}
.download_button {
background-color: var(--icon-ready);
mask-image: url("../images/feather-icons/download.svg");
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
padding-left: 15px;
padding-right: 15px;
cursor: pointer;
}
.download_button:hover {
background-color: var(--icon-ready-active);
}
summary {
cursor: pointer;
}
.file_unavailable {
background-color: var(--icon-unavailable);
mask-image: url("../images/feather-icons/clock.svg");
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
padding-left: 15px;
padding-right: 15px;
}
td.file_size {
text-align: right;
width: 5.12rem;
}
td.file_name {
text-align: left;
}
td.file_download, td.file_unavailable, td.delete_button {
width: 15px;
}
input[type="file"] {
display: none;
}
button, .fake_button, input[type="submit"] {
font-size: 18px;
color: var(--button-text);
background-color: var(--button-background);
border: 1px solid var(--button-border);
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
text-decoration: none;
}
button:hover, .fake_button:hover, input[type="submit"]:hover {
background-color: var(--button-background-active);
}
button:disabled, input:disabled + .fake_button, input[type="submit"]:disabled {
color: var(--button-disabled-text);
background-color: var(--button-disabled-background);
border-color: var(--button-disabled-border);
cursor: not-allowed;
}
#lifetime_container {
margin-top: 10px;
}
input[type="text"], input[type="password"] {
font-size: 18px;
margin-bottom: 10px;
}
.section {
margin: 30px auto;
}
#footer h5 {
margin: 5px auto;
}