Repository navigation
Expand file tree
/
Copy pathApp.vue
More file actions
77 lines (69 loc) · 1.41 KB
/
Copy pathApp.vue
File metadata and controls
77 lines (69 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template>
<div id="app">
<case-nav @openNav="openNav($event)"/>
<router-view></router-view>
<case-menu @openNav="openNav($event)"/>
</div>
</template>
<style>
/*::-webkit-scrollbar {
width: 2px;
height: 2px;
}
::-webkit-scrollbar:hover {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb:horizontal {
border-bottom: 1px solid #f2849e;
}
::-webkit-scrollbar-thumb:vertical {
border-right: 1px solid #f2849e;
}
::-webkit-scrollbar-thumb {
background: transparent;
min-height: 10px;
background-clip: content-box;
}
::-webkit-scrollbar-corner {
background: transparent;
}*/
::-webkit-scrollbar {
height: 5px;
width: 5px
}
::-webkit-scrollbar-button {
height: 0;
width: 0
}
::-webkit-scrollbar-thumb {
background: #f2849e;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, .1);
background-color: rgba(0, 0, 0, .05)
}
</style>
<script>
import Menu from 'components/Menu'
import Nav from 'components/Nav'
export default {
components: {
'case-menu': Menu,
'case-nav': Nav
},
methods: {
openNav (status) {
const body = document.querySelector('body')
if (status) {
body.setAttribute('class', 'is-menu-visible')
} else {
body.removeAttribute('class')
}
}
}
}
</script>