summaryrefslogtreecommitdiff
path: root/ui/styles/app-layout.css
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2025-01-01 18:09:46 -0500
committerKit La Touche <kit@transneptune.net>2025-01-01 18:09:46 -0500
commitc9b3394e9fc2cf6eb505ab03a6479eae996ed6e9 (patch)
treec536430d2fb2e4093fb3b09cbda04369b68a6911 /ui/styles/app-layout.css
parent628337f3afcd5125299cbf620832779ab209022b (diff)
Just oh so many styles
Diffstat (limited to 'ui/styles/app-layout.css')
-rw-r--r--ui/styles/app-layout.css56
1 files changed, 56 insertions, 0 deletions
diff --git a/ui/styles/app-layout.css b/ui/styles/app-layout.css
new file mode 100644
index 0000000..ef1eb10
--- /dev/null
+++ b/ui/styles/app-layout.css
@@ -0,0 +1,56 @@
+/* TODO: generally remove literals from this file. */
+
+#interface {
+ margin: unset;
+ display: grid;
+ grid-template:
+ 'side main' 1fr
+ / auto 1fr;
+ height: calc(100vh - var(--app-bar-height));
+
+ @media (width > 640px) {
+ --overlay: static;
+ --translate: 0;
+ }
+}
+
+nav#sidebar {
+ grid-area: side;
+ inset: auto auto 0 0;
+ padding-right: 0.5rem;
+ position: var(--overlay, absolute);
+ transition: translate 300ms ease-out;
+ width: var(--nav-width);
+ height: 100vh;
+ z-index: 10;
+
+ border-radius: 0 1.4rem 1.4rem 0;
+
+ background-color: var(--colour-background-alt);
+
+ @media (width > 640px) {
+ height: calc(100vh - var(--app-bar-height));
+ }
+}
+
+nav.list-nav {
+ height: calc(100vh - var(--input-row-height) - var(--interface-padding));
+ overflow: auto;
+
+ @media (width > 640px) {
+ height: calc(100vh - var(--app-bar-height) - var(--input-row-height) - var(--interface-padding));
+ }
+}
+
+main {
+ grid-area: main;
+ height: calc(100vh - var(--app-bar-height));
+}
+
+main textarea {
+ resize: none;
+}
+
+nav[data-expanded='false'] {
+ translate: var(--translate, -100% 0);
+}