forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sidebar.styl
82 lines (80 loc) · 1.95 KB
/
_sidebar.styl
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
78
79
80
81
82
@import "_settings"
.sidebar
position absolute
z-index 10
top 0
left 60px
bottom 0
padding 2.2em 0
width 260px
margin-right 20px
overflow-x hidden
overflow-y auto
-webkit-overflow-scrolling touch
-ms-overflow-style none
h2
margin-top .2em
ul
list-style-type none
margin 0
line-height 1.8em
padding-left 1em
.version-select
vertical-align middle
margin-left 5px
.menu-root
padding-left 0
.menu-sub
font-size .85em
.sidebar-link
color $light
&.current
font-weight 600
color $green
&.new
&:after
content "NEW"
display inline-block
font-size 10px
font-weight 600
color #fff
background-color $green
line-height 14px
padding 0 4px
border-radius 3px
margin-left 5px
vertical-align middle
position relative
top -1px
&:hover
border-bottom 2px solid $green
.section-link
&.active
font-weight bold
color $green
.main-menu
margin-bottom 20px
display none
padding-left 0
@media screen and (max-width: 900px)
.sidebar
position fixed
z-index 8
background-color #f9f9f9
height 100%
top 0
left 0
padding 60px 30px 20px
box-shadow 0 0 10px rgba(0,0,0,.2)
box-sizing border-box
transition all .4s cubic-bezier(0.4, 0, 0, 1)
-webkit-transform translate(-280px, 0)
transform translate(-280px, 0)
.search-query
width 200px
margin-bottom 10px
.main-menu
display block
&.open
-webkit-transform translate(0, 0)
transform translate(0, 0)