transbeam/static/css/transbeam.css

290 lines
5.1 KiB
CSS
Raw Normal View History

2022-04-27 23:52:45 -04:00
body {
text-align: center;
font-family: sans-serif;
max-width: 512px;
2022-04-28 00:01:16 -04:00
margin: 0.5em auto;
padding: 0 1em;
2022-05-24 16:50:03 -04:00
overflow-wrap: break-word;
2022-04-28 00:01:16 -04:00
}
#header h1 {
margin-top: 5px;
2022-05-26 14:43:21 -04:00
color: CanvasText;
}
#header a {
text-decoration: none;
2022-04-27 23:52:45 -04:00
}
2022-05-01 02:32:56 -04:00
#message {
border: 1px solid;
border-radius: 4px;
padding: 10px;
width: fit-content;
margin: 10px auto;
}
2022-04-27 23:52:45 -04:00
#progress_container {
margin: 10px auto;
}
2022-05-23 20:44:22 -04:00
#progress {
display: flex;
align-items: center;
column-gap: 15px;
row-gap: 5px;
flex-wrap: wrap;
}
#progress_percentage {
2022-05-23 20:55:01 -04:00
flex-grow: 2;
2022-05-23 20:44:22 -04:00
}
#progress_size {
2022-05-23 20:55:01 -04:00
flex-grow: 5;
2022-05-23 20:44:22 -04:00
}
#progress_rate {
2022-05-23 20:55:01 -04:00
flex-grow: 3;
2022-05-23 20:44:22 -04:00
}
#progress_eta {
2022-05-23 20:55:01 -04:00
flex-grow: 5;
2022-05-23 20:44:22 -04:00
}
2022-04-27 23:52:45 -04:00
#progress_bar {
2022-04-28 02:28:10 -04:00
height: 20px;
border-radius: 10px;
2022-05-25 20:34:53 -04:00
border: 1px solid var(--progress-secondary);
background-image: linear-gradient(0deg, var(--progress-primary), var(--progress-primary));
2022-04-28 02:28:10 -04:00
background-repeat: no-repeat;
background-size: 0;
2022-04-27 23:52:45 -04:00
}
#download_code_container {
2022-05-25 20:34:53 -04:00
border: 1px solid var(--border);
2022-04-28 03:24:05 -04:00
border-radius: 4px;
padding: 10px;
cursor: pointer;
width: fit-content;
margin: 10px auto;
position: relative;
}
#download_code_container:hover {
2022-05-25 20:34:53 -04:00
border-color: var(--border-active);
2022-04-28 03:24:05 -04:00
}
#download_code_main {
2022-04-28 03:24:05 -04:00
display: flex;
align-items: center;
gap: 10px;
}
.copy_button {
width: 18px;
height: 18px;
2022-05-25 20:34:53 -04:00
background-color: var(--icon-primary);
2022-05-03 19:21:03 -04:00
mask-image: url("../images/feather-icons/copy.svg");
2022-04-28 03:24:05 -04:00
mask-size: contain;
mask-repeat: no-repeat;
}
#download_code_container:hover .copy_button {
2022-05-25 20:34:53 -04:00
background-color: var(--icon-primary-active);
2022-04-28 03:24:05 -04:00
}
#copied_message {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
height: fit-content;
2022-05-01 02:32:56 -04:00
display: none;
}
#download_code_container.copied #copied_message {
2022-05-01 02:32:56 -04:00
display: revert;
2022-04-28 03:24:05 -04:00
}
#download_code_container.copied #download_code_main {
2022-05-01 02:32:56 -04:00
visibility: hidden;
}
2022-04-28 03:24:05 -04:00
2022-04-27 23:52:45 -04:00
table {
border-collapse: collapse;
margin: 20px auto;
2022-05-24 18:20:35 -04:00
table-layout: fixed;
width: 100%;
2022-04-27 23:52:45 -04:00
}
2022-04-28 02:19:43 -04:00
tr {
2022-05-25 20:34:53 -04:00
background-image: linear-gradient(0deg, var(--progress-tertiary), var(--progress-tertiary));
2022-04-28 02:19:43 -04:00
background-repeat: no-repeat;
background-size: 0;
}
2022-04-27 23:52:45 -04:00
tr + tr td {
2022-05-25 20:34:53 -04:00
border-top: 1px solid var(--border);
2022-04-27 23:52:45 -04:00
}
td {
padding: 10px;
}
td.file_unavailable {
display: none;
}
tr.unavailable td.file_unavailable {
display: revert;
}
tr.unavailable td.file_download {
display: none;
}
2022-05-01 02:32:56 -04:00
.delete_button {
2022-05-25 20:34:53 -04:00
background-color: var(--icon-secondary);
2022-05-03 19:21:03 -04:00
mask-image: url("../images/feather-icons/x.svg");
2022-04-28 03:35:02 -04:00
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
padding-left: 15px;
padding-right: 15px;
cursor: pointer;
}
2022-05-01 02:32:56 -04:00
.delete_button:hover {
2022-05-25 20:34:53 -04:00
background-color: var(--icon-warning);
2022-04-28 03:35:02 -04:00
}
#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;
}
2022-05-24 17:35:49 -04:00
#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 {
2022-05-25 20:34:53 -04:00
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 {
2022-05-25 20:34:53 -04:00
background-color: var(--icon-ready-active);
}
2022-05-24 22:31:25 -04:00
summary {
cursor: pointer;
}
.file_unavailable {
2022-05-25 20:34:53 -04:00
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;
}
2022-04-27 23:52:45 -04:00
td.file_size {
text-align: right;
2022-05-24 22:31:25 -04:00
width: 5.12rem;
2022-04-27 23:52:45 -04:00
}
td.file_name {
text-align: left;
}
2022-05-24 18:20:35 -04:00
td.file_download, td.file_unavailable, td.delete_button {
width: 15px;
}
2022-04-26 23:54:29 -04:00
input[type="file"] {
display: none;
}
button, .fake_button, input[type="submit"] {
2022-04-26 23:54:29 -04:00
font-size: 18px;
2022-05-25 20:34:53 -04:00
color: var(--button-text);
background-color: var(--button-background);
border: 1px solid var(--button-border);
2022-04-26 23:54:29 -04:00
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
text-decoration: none;
2022-04-26 23:54:29 -04:00
}
button:hover, .fake_button:hover, input[type="submit"]:hover {
2022-05-25 20:34:53 -04:00
background-color: var(--button-background-active);
2022-04-26 23:54:29 -04:00
}
button:disabled, input:disabled + .fake_button, input[type="submit"]:disabled {
2022-05-25 20:34:53 -04:00
color: var(--button-disabled-text);
background-color: var(--button-disabled-background);
border-color: var(--button-disabled-border);
2022-04-27 21:47:52 -04:00
cursor: not-allowed;
2022-04-26 23:54:29 -04:00
}
2022-04-27 23:52:45 -04:00
#lifetime_container {
margin-top: 10px;
}
input[type="text"], input[type="password"] {
font-size: 18px;
margin-bottom: 10px;
}
.section {
margin: 30px auto;
2022-04-27 23:52:45 -04:00
}
#footer h5 {
margin: 5px auto;
}