aboutsummaryrefslogtreecommitdiff
path: root/src/static/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/style.css')
-rw-r--r--src/static/style.css356
1 files changed, 356 insertions, 0 deletions
diff --git a/src/static/style.css b/src/static/style.css
new file mode 100644
index 0000000..b24c197
--- /dev/null
+++ b/src/static/style.css
@@ -0,0 +1,356 @@
+:root {
+ --profile-width: 15rem;
+}
+
+body {
+ background-color: #1b1b1b;
+ color: lightgrey;
+ font-family: "Fira Sans";
+ margin: auto;
+ margin-bottom: 10rem;
+ max-width: 60rem;
+}
+
+header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem;
+}
+
+header h1 {
+ color: orange;
+}
+
+header img {
+ width: 2rem;
+ padding: 1rem;
+}
+
+a {
+ color: #7bf;
+ text-decoration: none;
+}
+
+button b {
+ vertical-align: middle;
+ font-size: 0.8rem;
+}
+
+label b {
+ font-size: 0.9rem;
+}
+
+button img, details img {
+ padding: 0.2rem;
+ width: 1rem;
+ vertical-align: middle;
+}
+
+#newdir-cb+label {
+ background-color: #2d60ba;
+ opacity: 0.6;
+ position: fixed;
+ bottom: 10%;
+ right: 10%;
+ border: 0;
+ border-radius: 60%;
+ padding: 0.6rem 0.85rem;
+ z-index: 11;
+}
+
+#newdir-cb +label:hover {
+ opacity: 1;
+ bottom: 10%;
+ right: 10%;
+ padding: 0.8rem 1.05rem;
+}
+
+#newdir-cb:checked +label {
+ opacity: 0.8;
+}
+
+#newdir-cb+label img {
+ width: 1.5rem;
+ margin-top: 0.2rem;
+}
+
+#newdir-bg {
+ cursor: pointer;
+ background-color: black;
+ opacity: 50%;
+ display: none;
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ z-index: 10;
+}
+
+#newdir-box {
+ color: white;
+ background: steelblue;
+ display: none;
+ position: fixed;
+ right: 10%;
+ bottom: 20%;
+ text-align: center;
+ width: 15rem;
+ padding: 1rem;
+ z-index: 11;
+}
+
+#newdir-box input[type="text"] {
+ width: 10rem;
+}
+
+#newdir-box button {
+ width: 2rem;
+ height: 1.6rem;
+}
+
+#newdir-box img {
+ height: 1.4rem;
+ width: 1.6rem;
+ margin-top: -0.2rem;
+ margin-left: -0.4rem;
+}
+
+#newdir-box img:hover {
+ background-color: lightgreen;
+}
+
+#newdir-cb { display: none; }
+#newdir-cb:checked ~ #newdir-box { display: block; }
+#newdir-cb:checked ~ #newdir-bg { display: block; }
+
+.form-header label img {
+ padding: 0.2rem;
+ width: 1rem;
+ vertical-align: middle;
+}
+
+.html-path {
+ padding: 1rem 0rem;
+ overflow-x: auto;
+ white-space: nowrap;
+}
+
+.html-path a {
+ background-color: #333;
+ border-radius: 0.5rem;
+ color: #add;
+ font: 1.5rem;
+ padding: 0.3rem 0.7rem;
+ margin: 0.5rem;
+}
+
+.form-actions {
+ white-space: nowrap;
+}
+
+.clickable::-moz-selection,
+.clickable::selection,
+.clickable *::-moz-selection,
+.clickable *::selection {
+ background-color: transparent;
+}
+
+.back-button img {
+ width: 1.8rem;
+ margin: -0.4rem;
+}
+
+#upload-button + label,
+.form-actions button,
+.form-actions a {
+ background-color: #bdd;
+ color: black;
+ padding: 0.3rem 0.5rem;
+ margin-right: 0.5rem;
+ vertical-align: middle;
+ border: none;
+}
+
+#upload-button + label:hover,
+.form-actions button:hover {
+ background-color: #8cc;
+}
+
+#upload-button { display: none; }
+#upload-button + label { display: inline-block; }
+#upload-button:checked + label { background-color: #7dd; }
+#upload-button:checked ~ #file-upload-box { display: block; }
+
+#file-upload-box {
+ background: steelblue;
+ display: none;
+ padding: 0.7rem 1rem;
+ margin: 1rem 0rem;
+}
+
+#file-upload-box button {
+ margin-top: -0.25rem;
+}
+
+#file-upload-box { display: none; }
+
+details { margin: 1rem 0rem; background-color: #aa3333; }
+details summary { padding: 0.5rem 1rem; background-color: #cc3333 }
+details[open] summary { color: #111; }
+details summary span { vertical-align: middle; margin: -0.2rem; }
+details .content { padding: 0.5rem 1rem; }
+ul { list-style-type: none; }
+
+.actions { float: right; }
+
+.table { display: table; }
+.thead { display: table-header-group; }
+.tbody { display: table-row-group; }
+.tr { display: table-row; }
+.th, .td { display: table-cell; }
+
+#file-list {
+ color: #dddddd;
+ width: 100%;
+ margin: 1rem 0rem;
+ overflow-x: auto;
+}
+#file-list .thead { background-color: #2b2b2b; }
+#file-list .thead:has(input[type=checkbox]:checked) { background-color: #557; }
+#file-list .th { font-weight: bold; }
+#file-list .tr:hover { background-color: #2b2b2b; }
+#file-list .tr:has(input[type=checkbox]:checked) { background-color: #1b2b3b; }
+#file-list .tr:has(input[type=checkbox]:checked):hover { background-color: #2b3b4b; }
+#file-list .td, #file-list .tr, #file-list .th {
+ border-bottom: 0.1rem solid #333;
+ overflow: hidden;
+ padding: 0.5rem;
+ font-size: 0.97em;
+}
+#file-list img { width: 1rem; }
+#file-list a {
+ color: #9cf;
+ display: block;
+ margin: -0.8rem;
+ padding: 1rem;
+ font-size: 1rem;
+}
+#file-list a:hover {
+ text-decoration-line: underline;
+}
+
+.info {
+ color: lightgray;
+ font-size: 0.92em;
+ text-align: center;
+ padding: 1rem 2rem;
+}
+
+.drives {
+ padding: 1rem;
+}
+
+.drives a {
+ background-color: #2b2b2b;
+ display: flex;
+ align-items: center;
+ padding: 0.5em;
+ margin: 1rem 0rem;
+}
+
+.drives a:hover {
+ background-color: #1b2b3b;
+}
+
+.drives a span { padding: 0.5rem; }
+.drives a img { width: 2rem; }
+.drives .desc { color: gray; }
+
+#profile {
+ background-color: #2b2b3b;
+ display: table;
+ align-items: center;
+ box-sizing: border-box;
+ padding: 3rem 5rem;
+ max-width: var(--profile-width);
+ margin: auto;
+ margin-top: 2rem;
+}
+
+#profile h2 {
+ text-align: center;
+}
+
+#profile label,
+#profile input {
+ height: 1.5rem;
+ margin: 0.3rem 0rem;
+ display: block;
+ width: 100%;
+}
+
+#profile label {
+ font-weight: bold;
+ margin: 2rem 0rem 0rem 0rem;
+}
+
+#profile input {
+ width: var(--profile-width);
+}
+
+#profile button {
+ color: black;
+ background-color: #f66;
+ font-weight: bold;
+ vertical-align: center;
+ height: 2rem;
+ width: 100%;
+ margin-top: 3rem;
+ border: none;
+}
+
+#profile button:hover {
+ background-color: #f88;
+ cursor: pointer;
+}
+
+#profile p {
+ max-width: var(--profile-width);
+}
+
+.warning { color: red; }
+.success { color: lightgreen; }
+
+
+@media screen and (min-width: 20rem) {
+ #upload-button+label { float: right; }
+}
+
+@media screen and (max-width: 60rem) {
+ #file-list .tr .th:nth-child(6),
+ #file-list .tr .td:nth-child(6) { display: none; }
+}
+
+@media screen and (max-width: 40rem) {
+ :root {
+ --profile-width: 10rem;
+ }
+ #profile { padding: 2rem 3rem; }
+
+ button b { display: none; }
+ button { margin-right: 0 !important; }
+ #file-list .tr .th:nth-child(7),
+ #file-list .tr .td:nth-child(7) { display: none; }
+ .hint { display: none; }
+}
+
+@media screen and (max-width: 25rem) {
+ label b { display: none; }
+ #file-list .tr .th:nth-child(5),
+ #file-list .tr .td:nth-child(5) { display: none; }
+}
+