Update layout

This commit is contained in:
2020-09-19 20:49:56 +03:00
parent b2d4627650
commit d5068fb6fc
3 changed files with 21 additions and 10 deletions

View File

@@ -122,6 +122,7 @@ export default class App extends Vue {
@Watch('leftPanelClosed') @Watch('leftPanelClosed')
onLeftPanelClosedChange(val: boolean, oldValue: boolean) { onLeftPanelClosedChange(val: boolean, oldValue: boolean) {
this.changeLeftPanelStatus(val); this.changeLeftPanelStatus(val);
} }
} }
@@ -144,10 +145,15 @@ body, #app {
background-color: white!important; background-color: white!important;
} }
.close-btn {
z-index: 2;
}
.vertical-panel { .vertical-panel {
position: absolute; position: absolute;
height: 0px; height: 0px;
width: 0px; width: 0px;
z-index: 1;
} }
.content-body { .content-body {
@@ -172,7 +178,7 @@ body, #app {
} }
.close-btn-when-left-panel-open { .close-btn-when-left-panel-open {
background-color: black!important; background-color: transparent!important;
transition: background-color linear .3s; transition: background-color linear .3s;
} }
@@ -202,7 +208,6 @@ body, #app {
width: 58px; width: 58px;
height: 100%; height: 100%;
background: white!important; background: white!important;
z-index: 1;
} }
.close-btn-label-when-left-panel-open { .close-btn-label-when-left-panel-open {

View File

@@ -1,12 +1,12 @@
<template> <template>
<transition appear name="fade">
<div class="photo-wrapper" <div class="photo-wrapper"
:style="photoWrapperStyle" :style="photoWrapperStyle"
ref="element" ref="element"
@click="onClick"> @click="onClick">
<transition appear name="fade">
<div class="photo" :style="photoStyle"></div> <div class="photo" :style="photoStyle"></div>
</div>
</transition> </transition>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">

View File

@@ -3,3 +3,9 @@
<h1>This is an about page</h1> <h1>This is an about page</h1>
</div> </div>
</template> </template>
<style scoped>
.about {
background-color: white;
}
</style>