aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-02-06 13:33:10 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-02-06 13:33:10 +0000
commit40b31a14b20cadb4961c9522161795ba965b2a03 (patch)
tree1b9d42622549aceea0895476e5a0a2e960fa7f7e /data
parentAdd CHANGELOG for #728 (diff)
downloadminiserve-40b31a14b20cadb4961c9522161795ba965b2a03.tar.gz
miniserve-40b31a14b20cadb4961c9522161795ba965b2a03.zip
Make more use of flex in mobile formatting (fixes #142)
Diffstat (limited to 'data')
-rw-r--r--data/style.scss28
1 files changed, 18 insertions, 10 deletions
diff --git a/data/style.scss b/data/style.scss
index e398c9e..c23bff4 100644
--- a/data/style.scss
+++ b/data/style.scss
@@ -251,6 +251,11 @@ table tbody tr td {
line-height: 1.125rem;
}
+table tbody tr td p {
+ display: flex;
+ align-items: center;
+}
+
table thead tr th {
padding: 0.5rem 0.625rem 0.625rem;
font-weight: bold;
@@ -329,8 +334,8 @@ th span.active span {
.back {
position: fixed;
- width: 3.8rem;
- height: 3.8rem;
+ width: 3rem;
+ height: 3rem;
align-items: center;
justify-content: center;
bottom: 3rem;
@@ -340,6 +345,8 @@ th span.active span {
box-shadow: 0 0 8px -4px #888888;
color: var(--back_button_link_color);
display: none;
+ padding: 0;
+ font-size: 2em;
}
.back:visited {
@@ -482,9 +489,9 @@ th span.active span {
}
.mobile-info {
- display: block;
- float: right;
- margin-top: 0.5rem;
+ display: inline-flex;
+ align-items: center;
+ margin: auto;
}
table tbody tr td {
@@ -492,20 +499,21 @@ th span.active span {
padding-bottom: 0;
}
- a.directory {
- display: block;
+ a {
padding: 0.5625rem 0;
}
+ a.directory {
+ flex-grow: 1;
+ }
+
.file-entry {
align-items: center;
}
a.root,
a.file {
- display: inline-block;
- flex: 1;
- padding: 0.5625rem 0;
+ flex-grow: 1;
}
.back {