Update styling
This commit is contained in:
parent
db35d407ca
commit
10a3b4fed3
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<label
|
<label
|
||||||
:for="id"
|
:for="id"
|
||||||
|
:class="{'toggle--bordered': bordered}"
|
||||||
class="toggle">
|
class="toggle">
|
||||||
<input
|
<input
|
||||||
:id="id"
|
:id="id"
|
||||||
|
|
@ -26,6 +27,10 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
bordered: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -43,13 +48,16 @@
|
||||||
@import '~styles/helpers';
|
@import '~styles/helpers';
|
||||||
|
|
||||||
.toggle {
|
.toggle {
|
||||||
@include default-box-shadow;
|
|
||||||
border-radius: $round-border-radius;
|
|
||||||
border: 1px solid $color-silver;
|
|
||||||
padding: $small-spacing $medium-spacing;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
&--bordered {
|
||||||
|
@include default-box-shadow;
|
||||||
|
border-radius: $round-border-radius;
|
||||||
|
border: 1px solid $color-silver;
|
||||||
|
padding: $small-spacing $medium-spacing;
|
||||||
|
}
|
||||||
|
|
||||||
&__toggle-wrapper {
|
&__toggle-wrapper {
|
||||||
background-color: $color-silver;
|
background-color: $color-silver;
|
||||||
width: 42px;
|
width: 42px;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,9 @@
|
||||||
class="container skillbox layout">
|
class="container skillbox layout">
|
||||||
<navigation-sidebar/>
|
<navigation-sidebar/>
|
||||||
<profile-sidebar/>
|
<profile-sidebar/>
|
||||||
<header-bar class="header layout__header"/>
|
<header-bar
|
||||||
|
class="header layout__header"
|
||||||
|
v-if="showHeader"/>
|
||||||
|
|
||||||
<router-view
|
<router-view
|
||||||
:key="$route.fullPath"
|
:key="$route.fullPath"
|
||||||
|
|
@ -37,6 +39,9 @@
|
||||||
showFilter() {
|
showFilter() {
|
||||||
return this.$route.meta.filter;
|
return this.$route.meta.filter;
|
||||||
},
|
},
|
||||||
|
showHeader() {
|
||||||
|
return !this.$route.meta.hideHeader;
|
||||||
|
},
|
||||||
specialContainerClass() {
|
specialContainerClass() {
|
||||||
let cls = this.$store.state.specialContainerClass;
|
let cls = this.$store.state.specialContainerClass;
|
||||||
return [cls ? `layout--${cls}` : '', {'skillbox--show-filter': this.showFilter}];
|
return [cls ? `layout--${cls}` : '', {'skillbox--show-filter': this.showFilter}];
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
enableFooter: enableFooter,
|
enableFooter() {
|
||||||
|
if (this.$route.meta.hideFooter) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return enableFooter();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -107,11 +107,15 @@
|
||||||
font-size: toRem(18px);
|
font-size: toRem(18px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin default-link {
|
@mixin link-base {
|
||||||
font-size: toRem(14px);
|
font-size: toRem(14px);
|
||||||
font-family: $sans-serif-font-family;
|
font-family: $sans-serif-font-family;
|
||||||
font-weight: $font-weight-regular;
|
font-weight: $font-weight-regular;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin default-link {
|
||||||
|
@include link-base;
|
||||||
|
|
||||||
&--active {
|
&--active {
|
||||||
color: $color-brand;
|
color: $color-brand;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue