Tidy settings wrapper SCSS

This commit is contained in:
Samuel Elliott 2018-02-17 01:39:43 +00:00
parent c7db7fc2a7
commit 36a2fb1ec5
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
8 changed files with 46 additions and 45 deletions

View File

@ -11,28 +11,6 @@
flex-grow: 1;
}
.bd-settingsWrap {
display: flex;
flex-direction: column;
flex-grow: 1;
.bd-scroller-wrap {
flex-grow: 1;
}
.bd-settingsWrap-header {
color: $colbdblue;
text-transform: uppercase;
font-weight: 600;
margin-top: 10px;
margin-bottom: 20px;
font-size: 100%;
outline: 0;
padding: 0;
vertical-align: baseline;
}
}
> div:not(.active) {
opacity: 0;
position: absolute;
@ -50,8 +28,4 @@
.animating {
animation: bd-fade-out .4s forwards;
}
.bd-settingsWrap {
padding: 20px 15px 15px 15px;
}
}

View File

@ -1,3 +1,4 @@
@import './main.scss';
@import './sidebar.scss';
@import './content.scss';
@import './settingswrap.scss';

View File

@ -19,16 +19,6 @@
z-index: 5;
max-width: 310px;
min-width: 310px;
.bd-settingsWrap {
display: flex;
height: 100%;
-webkit-box-flex: 1;
flex: 1;
min-height: 1px;
box-sizing: border-box;
padding: 80px 15px 15px 15px;
}
}
.bd-content-region {

View File

@ -0,0 +1,39 @@
.bd-sidebar-region {
.bd-settingswrap {
display: flex;
height: 100%;
-webkit-box-flex: 1;
flex: 1;
min-height: 1px;
box-sizing: border-box;
padding: 80px 15px 15px 15px;
}
}
.bd-content-region {
.bd-settingswrap {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 20px 15px 15px 15px;
.bd-scroller-wrap {
flex-grow: 1;
}
.bd-settingswrap-header {
outline: 0;
padding: 0;
margin-top: 10px;
margin-bottom: 20px;
vertical-align: baseline;
.bd-settingswrap-header-text {
color: $colbdblue;
text-transform: uppercase;
font-weight: 600;
font-size: 16px;
}
}
}
}

View File

@ -44,7 +44,7 @@
}
&.active {
color: #FFF;
color: #fff;
}
}
}

View File

@ -58,11 +58,6 @@
Setting,
Drawer
},
data() {
return {
active_scheme: 'scheme-1'
};
},
methods: {
checkSchemeActive(scheme) {
for (let schemeCategory of scheme.settings) {

View File

@ -9,8 +9,10 @@
*/
<template>
<div class="bd-settingsWrap">
<div class="bd-settingsWrap-header">{{headertext}}</div>
<div class="bd-settingswrap">
<div class="bd-settingswrap-header">
<span class="bd-settingswrap-header-text">{{ headertext }}</span>
</div>
<ScrollerWrap>
<slot />
</ScrollerWrap>

View File

@ -11,7 +11,7 @@
<template>
<div class="bd-sidebar-view" :class="{active: contentVisible, animating: animating}">
<div class="bd-sidebar-region bd-flex-col">
<div class="bd-settingsWrap">
<div class="bd-settingswrap">
<ScrollerWrap dark="true">
<slot name="sidebar" />
</ScrollerWrap>