diff options
author | tpart <tpart120@proton.me> | 2023-12-22 15:11:36 +0100 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2023-12-22 15:11:36 +0100 |
commit | 6ebdc915aa9204185ad8523f775de59f69106208 (patch) | |
tree | d53551c158b69e31b071d9e80c7cc910639dca17 | |
parent | 864423baf8b019d53f2d18d925d5df468dd5e2a0 (diff) | |
download | jellything-6ebdc915aa9204185ad8523f775de59f69106208.tar jellything-6ebdc915aa9204185ad8523f775de59f69106208.tar.bz2 jellything-6ebdc915aa9204185ad8523f775de59f69106208.tar.zst |
Improve node card style on small screens
-rw-r--r-- | web/style/layout.css | 8 | ||||
-rw-r--r-- | web/style/navbar.css | 1 | ||||
-rw-r--r-- | web/style/nodecard.css | 9 |
3 files changed, 17 insertions, 1 deletions
diff --git a/web/style/layout.css b/web/style/layout.css index 5b19114..d599abf 100644 --- a/web/style/layout.css +++ b/web/style/layout.css @@ -18,7 +18,7 @@ } :root { - --card-size: 17em; + --card-size: min(50vw, 17em); --bar-height: 5em; --port-poster-aspect: 1.41; --land-poster-aspect: (1.41 / 2); @@ -116,3 +116,9 @@ footer p { .homelist ul li { display: table-cell; } + +@media (max-width: 750px) { + .homelist ul { + padding-left: 0; + } +}
\ No newline at end of file diff --git a/web/style/navbar.css b/web/style/navbar.css index 1c18d4f..bec46cf 100644 --- a/web/style/navbar.css +++ b/web/style/navbar.css @@ -79,6 +79,7 @@ nav .back::before { .hybrid_button p { display: inline; } + @media (max-width: 1000px) { .hybrid_button p { display: none; diff --git a/web/style/nodecard.css b/web/style/nodecard.css index 2753083..7554649 100644 --- a/web/style/nodecard.css +++ b/web/style/nodecard.css @@ -112,3 +112,12 @@ bottom: 0px; left: 0px; } + +@media (max-width: 750px) { + nav .library { + display: none; + } + .children { + justify-content: center; + } +}
\ No newline at end of file |