Add macOS tweaks

This commit is contained in:
Samuel Elliott 2018-01-20 00:35:27 +00:00
parent 708b4e5e63
commit 4076da01c9
2 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="bd-settings-wrapper">
<div :class="['bd-settings-wrapper', 'platform-' + this.platform]">
<div class="bd-settings-button" :class="{active: this.isActive}" @click="showSettings">
<div class="bd-settings-button-btn"></div>
</div>
@ -14,7 +14,8 @@
},
data() {
return {
isActive: false
isActive: false,
platform: global.process.platform
}
},
methods: {
@ -29,4 +30,4 @@
}
}
}
</script>
</script>

View File

@ -70,6 +70,18 @@
&.active {
width: 900px;
}
.platform-darwin & {
top: 0px;
.bd-sidebar-view .bd-sidebar-region,
.bd-sidebar-view .bd-content-region {
padding-top: 22px;
}
.bd-settings-x {
top: 22px;
}
}
}
.bd-settings.active {