Fix theme handling and auto theme

This commit fixes the client side theme selection being overwritten by the backend and adds a selectable auto theming option.
This commit is contained in:
Robert Smits
2023-10-01 15:25:11 +02:00
parent 0231ebfeef
commit c64dda8ca7
8 changed files with 101 additions and 36 deletions

View File

@@ -23,13 +23,11 @@ button.add-url
padding-left: 5px
padding-right: 5px
$metube-section-color-bg: rgba(0,0,0,.07)
.metube-section-header
font-size: 1.8rem
font-weight: 300
position: relative
background: $metube-section-color-bg
background: var(--bs-secondary-bg)
padding: 0.5rem 0
margin-top: 3.5rem
@@ -40,8 +38,8 @@ $metube-section-color-bg: rgba(0,0,0,.07)
bottom: 0
left: -9999px
right: 0
border-left: 9999px solid $metube-section-color-bg
box-shadow: 9999px 0 0 $metube-section-color-bg
border-left: 9999px solid var(--bs-secondary-bg)
box-shadow: 9999px 0 0 var(--bs-secondary-bg)
button:hover
text-decoration: none