forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_header.styl
169 lines (154 loc) Β· 3.24 KB
/
_header.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
@import "_settings"
$header-height = 40px
red-dot-before(leftPos = -8px)
content: ""
width: 0
height: 0
border 2px solid $red
border-radius 50%
position: absolute
top: calc(50% - 1px)
left: leftPos
#header
background-color: #fff
padding: $heading-padding-vertical 30px $heading-padding-vertical 60px
position: relative
z-index: $z-header
display: flex
justify-content: space-between
box-sizing: border-box
#v3-banner
background-color: $green
min-height: 40px
padding: $heading-padding-vertical 60px
z-index: $z-header - 1
box-sizing: border-box
text-align: center
color: #d6ffec
display: none
a
color: #fff
font-weight: bold
@media screen and (max-width: 900px)
.hidden-sm
display: none
body.docs
#header
position: fixed
width: 100%
top: 0
#nav
list-style-type: none
margin: 0
padding: 0
line-height: $header-height
.break
display: none
li
display: inline-block
position: relative
margin: 0 .6em
.nav-dropdown-container
padding-right: .8em
&:last-child
padding-right: 0
.nav-dropdown
.nav-link
&:hover, &.current
border-bottom: none
&.current
&::after
content: ""
width: 0
height: 0
border-left: 5px solid $green
border-top: 3px solid transparent
border-bottom: 3px solid transparent
position: absolute
top: 50%
transform: translateY(-50%)
left: 8px
&.new::before
red-dot-before(8px)
.nav-link
padding-bottom: 3px
white-space: nowrap
&:hover, &.current
border-bottom: 3px solid $green
&.new::before
red-dot-before()
.new-label
position: absolute
top: 3px
left: 110%
background-color: $green
color: #fff
line-height: 16px
height: 16px
font-size: 9px
font-weight: bold
font-family: $code-font
padding: 1px 4px 0 6px
border-radius: 4px
.search-query
height: 30px
line-height: 30px
box-sizing: border-box
padding: 0 15px 0 30px
border: 1px solid #e3e3e3
color: $dark
outline: none
border-radius: 15px
margin-right: 10px
transition: border-color .2s ease
background: #fff url(../images/search.png) 8px 5px no-repeat
background-size: 20px
vertical-align: middle !important
&:focus
border-color: $green
#logo
display: inline-block
font-size: 1.5em
line-height: $header-height
color: $dark
font-family: $logo-font
font-weight: 500
img
vertical-align: middle
margin-right: 6px
width: $header-height
height: $header-height
#mobile-bar
position: fixed
top: 0
left: 0
width: 100%
height: 40px
background-color: #fff
z-index: $z-header
display: none
box-shadow: 0 0 2px rgba(0,0,0,.25)
pointer-events: none
transition: background-color 0.25s ease-in
> *
pointer-events: auto
.menu-button
position: absolute
width: 24px
height: 24px
top: 8px
left: 12px
background: url(../images/menu.png) center center no-repeat
background-size: 24px
.logo
position: absolute
width: 30px
height: 30px
background: url(../images/logo.png) center center no-repeat
top: 5px
left: 50%
margin-left: -15px
background-size: 30px
@media print
#header
display: none