Update styling

This commit is contained in:
Ramon Wenger 2022-01-13 10:48:07 +01:00
parent db35d407ca
commit 10a3b4fed3
4 changed files with 29 additions and 7 deletions

View File

@ -1,6 +1,7 @@
<template>
<label
:for="id"
:class="{'toggle--bordered': bordered}"
class="toggle">
<input
:id="id"
@ -26,6 +27,10 @@
type: Boolean,
default: false,
},
bordered: {
type: Boolean,
default: true
}
},
data() {
@ -43,13 +48,16 @@
@import '~styles/helpers';
.toggle {
@include default-box-shadow;
border-radius: $round-border-radius;
border: 1px solid $color-silver;
padding: $small-spacing $medium-spacing;
display: flex;
cursor: pointer;
&--bordered {
@include default-box-shadow;
border-radius: $round-border-radius;
border: 1px solid $color-silver;
padding: $small-spacing $medium-spacing;
}
&__toggle-wrapper {
background-color: $color-silver;
width: 42px;

View File

@ -4,7 +4,9 @@
class="container skillbox layout">
<navigation-sidebar/>
<profile-sidebar/>
<header-bar class="header layout__header"/>
<header-bar
class="header layout__header"
v-if="showHeader"/>
<router-view
:key="$route.fullPath"
@ -37,6 +39,9 @@
showFilter() {
return this.$route.meta.filter;
},
showHeader() {
return !this.$route.meta.hideHeader;
},
specialContainerClass() {
let cls = this.$store.state.specialContainerClass;
return [cls ? `layout--${cls}` : '', {'skillbox--show-filter': this.showFilter}];

View File

@ -26,7 +26,12 @@
},
computed: {
enableFooter: enableFooter,
enableFooter() {
if (this.$route.meta.hideFooter) {
return false;
}
return enableFooter();
}
},
methods: {

View File

@ -107,11 +107,15 @@
font-size: toRem(18px);
}
@mixin default-link {
@mixin link-base {
font-size: toRem(14px);
font-family: $sans-serif-font-family;
font-weight: $font-weight-regular;
cursor: pointer;
}
@mixin default-link {
@include link-base;
&--active {
color: $color-brand;