summaryrefslogtreecommitdiff
path: root/src/components/AppHeader
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-07-09 01:46:43 +0300
committerDerick Montague <derick.montague@ibm.com>2020-07-21 01:28:16 +0300
commit01da81870818c364a67d9ba97ca84aec9afbcc4d (patch)
tree5962f489c9f86a46b3dab40734b882723a347f42 /src/components/AppHeader
parent330585760167d233a67a9301be991ba26b8e57df (diff)
downloadwebui-vue-01da81870818c364a67d9ba97ca84aec9afbcc4d.tar.xz
Update use of Sass variables for better theming
Use Bootstrap color functions for theme-colors and grays instead of directly referencing Sass variable to allow more flexible theming. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id08b77ff6df3bdf99400dcdfe964853706f1070f
Diffstat (limited to 'src/components/AppHeader')
-rw-r--r--src/components/AppHeader/AppHeader.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index a69d6d9f..7f18e1d2 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -179,7 +179,7 @@ export default {
}
.nav-item {
- fill: $light;
+ fill: theme-color('light');
}
.navbar {
@@ -194,7 +194,7 @@ export default {
.helper-menu {
@include media-breakpoint-down(sm) {
- background-color: $gray-800;
+ background-color: gray('800');
width: 100%;
justify-content: flex-end;
@@ -217,7 +217,7 @@ export default {
}
.nav-trigger {
- fill: $light;
+ fill: theme-color('light');
width: $header-height;
height: $header-height;
transition: none;
@@ -227,12 +227,12 @@ export default {
}
&:hover {
- fill: $light;
- background-color: $dark;
+ fill: theme-color('light');
+ background-color: theme-color('dark');
}
&.open {
- background-color: $gray-800;
+ background-color: gray('800');
}
@include media-breakpoint-up($responsive-layout-bp) {