File tree Expand file tree Collapse file tree 5 files changed +44
-8
lines changed Expand file tree Collapse file tree 5 files changed +44
-8
lines changed Original file line number Diff line number Diff line change
1
+ <li class =" nav-dropdown-container learn" >
2
+ <a class =" nav-link<%- page.path.match(/(guide(?!\/team.html$)|api|examples|cookbook)/) ? ' current' : '' %>" >Learn</a ><span class =" arrow" ></span >
3
+ <ul class =" nav-dropdown" >
4
+ <li ><ul >
5
+ <li ><a href =" <%- url_for(" /v2 /guide /" ) %>" class =" nav-link<%- page.path.match(/guide/) ? ' current' : '' %>" >Guide</a ></li >
6
+ <li ><a href =" <%- url_for(" /v2 /api /" ) %>" class =" nav-link<%- page.path.match(/api/) ? ' current' : '' %>" >API</a ></li >
7
+ <li ><a href =" <%- url_for(" /v2 /examples /" ) %>" class =" nav-link<%- page.path.match(/examples/) ? ' current' : '' %>" >Examples</a ></li >
8
+ </ul ></li >
9
+ </ul >
10
+ </li >
Original file line number Diff line number Diff line change 3
3
<input type =" text" id =" search-query-<%- context %>" class =" search-query st-default-search-input" >
4
4
</form >
5
5
</li >
6
- <li ><a href =" <%- url_for(" /v2 /guide /" ) %>" class =" nav-link<%- page.path.match(/guide/) ? ' current' : '' %>" >Guide</a ></li >
7
- <li ><a href =" <%- url_for(" /v2 /api /" ) %>" class =" nav-link<%- page.path.match(/api/) ? ' current' : '' %>" >API</a ></li >
8
- <li ><a href =" <%- url_for(" /v2 /examples /" ) %>" class =" nav-link<%- page.path.match(/examples/) ? ' current' : '' %>" >Examples</a ></li >
6
+ <% - partial (' partials/learn_dropdown' ) %>
9
7
<% - partial (' partials/ecosystem_dropdown' ) %>
10
- <% - partial (' partials/language_dropdown' ) %>
11
8
<li >
12
- <a href =" https://vue.threadless.com " target = " _blank " class =" nav-link shop " >Shop </a >
9
+ <a href =" <%- url_for( " / v2 / guide / team.html " ) %> " class =" nav-link team<%- page.path.match(/team\.html/) ? ' current' : '' %> " >Team </a >
13
10
</li >
11
+ <% - partial (' partials/support_vue_dropdown' ) %>
12
+ <% - partial (' partials/language_dropdown' ) %>
Original file line number Diff line number Diff line change
1
+ <li class =" nav-dropdown-container support-vue" >
2
+ <a class =" nav-link" >Support Vue</a ><span class =" arrow" ></span >
3
+ <ul class =" nav-dropdown" >
4
+ <li ><ul >
5
+ <li ><a href =" https://vue.threadless.com" target =" _blank" class =" nav-link" >Shop</a ></li >
6
+ <li ><a href =" https://opencollective.com/vuejs" target =" _blank" class =" nav-link" >Support Us on OpenCollective</a ></li >
7
+ <li ><a href =" https://www.patreon.com/evanyou" target =" _blank" class =" nav-link" >Support Evan on Patreon</a ></li >
8
+ </ul ></li >
9
+ </ul >
10
+ </li >
Original file line number Diff line number Diff line change @@ -115,12 +115,12 @@ a.button
115
115
cursor : pointer
116
116
.nav-dropdown-container
117
117
.nav-link
118
- & :hover
118
+ & :hover :not ( .current )
119
119
border-bottom : none
120
120
& :hover
121
121
.nav-dropdown
122
122
display : block
123
- & .language
123
+ & .language , & .ecosystem
124
124
margin-left : 20px
125
125
.arrow
126
126
pointer-events : none
Original file line number Diff line number Diff line change @@ -35,9 +35,26 @@ body.docs
35
35
padding-bottom : 3px
36
36
& :hover , & .current
37
37
border-bottom : 3px solid $green
38
- & .shop
38
+ & .team
39
39
margin-left : 10px
40
40
41
+ .nav-dropdown
42
+ .nav-link
43
+ & :hover , & .current
44
+ border-bottom : none
45
+ & .current
46
+ & ::after
47
+ content : ''
48
+ width : 0
49
+ height : 0
50
+ border-left : 5px solid $green
51
+ border-top : 3px solid transparent
52
+ border-bottom : 3px solid transparent
53
+ position : absolute ;
54
+ top : 50% ;
55
+ margin-top : - 4px ;
56
+ left : 8px ;
57
+
41
58
.new-label
42
59
position : absolute
43
60
top : 3px
You can’t perform that action at this time.
0 commit comments