1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-05-26 12:32:25 +00:00

Add theme support, light theme, and edgeless light

This commit is contained in:
Cadence Ember 2021-12-28 16:32:11 +13:00
parent 4e1f2b3607
commit 0d23d66700
45 changed files with 433 additions and 212 deletions

58
sass/includes/_nav.sass Normal file
View file

@ -0,0 +1,58 @@
$_theme: () !default
@use "sass:map"
@use "buttons" as *
@use "_dimensions" as dimensions
.main-nav
background-color: map.get($_theme, "bg-nav")
display: flex
padding: 8px
border-bottom: 1px solid map.get($_theme, "edge-grey")
+dimensions.thin
display: block
.links
display: flex
+dimensions.thin
margin-bottom: 4px
padding: 1px
.link
@include button-base
text-decoration: none
margin: 1px 8px 1px 0px
font-size: 20px
display: flex
align-items: center
&.home
font-weight: bold
&, &:visited
color: map.get($_theme, "fg-bright")
&:focus, &:hover
background-color: map.get($_theme, "bg-4")
&.icon-link
color: map.get($_theme, "fg-dim")
&:hover, &:focus
color: map.get($_theme, "fg-bright")
.search-form
display: flex
flex: 1
align-items: center
.search
@include button-bg
padding: 10px
flex: 1
border: 1px solid map.get($_theme, "bg-nav")
&:hover, &:focus
border-color: map.get($_theme, "edge-grey")