diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-01-11 13:34:40 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-01-11 13:34:40 -0500 |
| commit | ea0392a2bb12c158f9167105752f8fa315cff47d (patch) | |
| tree | dec4545ccbe44c8e2baf6e633308359f40ac610a /ui/styles/app-layout.css | |
| parent | 4e3ad13aca163e733724b205c250bdb67cc56c29 (diff) | |
| parent | 6d51f8568e337e768505ccfdef916b84dd6eb1b3 (diff) | |
Merge branch 'prop/stylize'
Diffstat (limited to 'ui/styles/app-layout.css')
| -rw-r--r-- | ui/styles/app-layout.css | 56 |
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..82d9914 --- /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; + + background-color: var(--colour-navbar-bg); + + @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); +} |
