diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-08 16:01:36 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-08 16:01:36 +1000 |
| commit | b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01 (patch) | |
| tree | fe3ede646c1a2f4f7abf3ba62cb3433113b35015 /scss | |
| parent | dev: use typescript 5.7.3 to fix jsx type errors (diff) | |
| download | caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.gz caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.bz2 caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.zip | |
feat: add navbar
For controlling sidebar panes + other stuff later
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/navbar.scss | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/scss/navbar.scss b/scss/navbar.scss new file mode 100644 index 0000000..213fc48 --- /dev/null +++ b/scss/navbar.scss @@ -0,0 +1,64 @@ +@use "sass:color"; +@use "scheme"; +@use "lib"; +@use "font"; + +.navbar { + @include font.mono; + + background-color: scheme.$mantle; + + button { + color: scheme.$subtext1; + + &:hover, + &:focus { + color: scheme.$subtext0; + } + + &:active { + color: color.change(scheme.$overlay2, $alpha: 1); + } + + &.current { + .pane-button { + background-color: scheme.$primary; + color: color.change(scheme.$base, $alpha: 1); + } + + &:hover .pane-button, + &:focus .pane-button { + background-color: color.mix(scheme.$primary, scheme.$base, 80%); + } + + &:active .pane-button { + background-color: color.mix(scheme.$primary, scheme.$base, 70%); + } + } + + &:first-child .pane-button { + margin-top: lib.s(10); + } + + &:last-child .pane-button { + margin-bottom: lib.s(10); + } + } + + .pane-button { + @include lib.rounded(20); + @include lib.element-decel; + + padding: lib.s(10) lib.s(8); + margin: lib.s(5) lib.s(8); + + .icon { + font-size: lib.s(28); + } + + .label { + font-size: lib.s(12); + margin-bottom: lib.s(5); + } + } +} |