summaryrefslogtreecommitdiff
path: root/public/static/style.css
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-07 00:20:40 +0400
committerilotterytea <iltsu@alright.party>2025-06-07 00:20:40 +0400
commiteb0912a76decfff255c43d044ba553ee5a5f7521 (patch)
tree6a65aeb89757ec757b24045dba3f1afc2b9edfc6 /public/static/style.css
parent29d440b8687359952dc5b46d8230c9b1c0189b1e (diff)
feat: remove empty space in file pages
Diffstat (limited to 'public/static/style.css')
-rw-r--r--public/static/style.css33
1 files changed, 30 insertions, 3 deletions
diff --git a/public/static/style.css b/public/static/style.css
index 3edf252..7d2f173 100644
--- a/public/static/style.css
+++ b/public/static/style.css
@@ -3,6 +3,7 @@
--background-2: #f7f0f0;
--foreground: #800;
--box-tab-background: #efc2c2;
+ --box-tab-foreground: #800;
--box-border: #800;
--box-content-background: #fff;
--box-content-background-2: #e6d9d9;
@@ -115,6 +116,8 @@ button[type=submit]:hover {
flex-direction: row;
align-items: center;
gap: 8px;
+
+ color: var(--box-tab-foreground);
}
.tabs>.tab {}
@@ -128,6 +131,7 @@ button[type=submit]:hover {
.box:has(.content)>.tab,
.tabs>.tab:not(.disabled) {
background: var(--box-tab-background);
+ color: var(--box-tab-foreground);
border: 2px solid var(--box-border);
border-bottom: none;
padding: 8px;
@@ -145,15 +149,38 @@ button[type=submit]:hover {
background: var(--box-content-background-2);
}
+.box>.content.file-preview {
+ padding: 0;
+}
+
/** FILES */
+.file-preview-wrapper {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+}
+
+.file-preview-wrapper>.box {
+ max-width: 100%;
+}
+
+.file-preview:has(img),
+.file-preview:has(video) {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.file-preview img,
.file-preview video {
- width: 100%;
- max-height: 100%;
+ max-height: 80vh;
+ max-width: 100%;
+ border: 0.5px solid black;
}
.file-preview pre {
- width: 100%;
+ max-width: 100%;
overflow-x: scroll;
}