Skip to content

Commit

Permalink
chore(ui): fixes code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed May 13, 2024
1 parent 06e8133 commit 82b6a25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
22 changes: 11 additions & 11 deletions src_assets/common/assets/web/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav class="navbar navbar-expand-lg navbar-background">
<nav class="navbar navbar-expand-lg navbar-background header">
<div class="container-fluid">
<a class="navbar-brand" href="/" title="Sunshine">
<img src="/images/logo-sunshine-45.png" height="45" alt="Sunshine">
Expand Down Expand Up @@ -56,25 +56,25 @@ export default {
</script>

<style>
[data-bs-theme=light] .navbar-background {
.navbar-background {
background-color: #ffc400
}
[data-bs-theme=dark] .navbar-background{
background-color: color-mix(in srgb, #ffc400, black 20%);
.header .nav-link {
color: var(--bs-dark);
}
@media (prefers-color-scheme: dark) {
.navbar-background{
background-color: color-mix(in srgb, #ffc400, black 20%);
}
.header .nav-link.active {
color: var(--bs-dark) !important;
font-weight: 500;
}
.nav-link.active {
font-weight: 500;
.header .nav-link:hover {
color: var(--bs-dark) !important;
font-weight: 500;
}
.form-control::placeholder {
opacity: 0.5;
opacity: 0.5;
}
</style>
4 changes: 1 addition & 3 deletions src_assets/common/assets/web/ThemeToggle.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup>
import { loadAutoTheme, setupThemeToggleListener } from './theme'
import { onMounted } from 'vue'
Expand Down Expand Up @@ -44,5 +43,4 @@ onMounted(() => {
</template>

<style scoped>
</style>
</style>
2 changes: 1 addition & 1 deletion src_assets/common/assets/web/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ export function loadAutoTheme() {
showActiveTheme(getPreferredTheme())
})
})()
}
}

0 comments on commit 82b6a25

Please sign in to comment.