Skip to content

Commit 6ac0791

Browse files
committed
RTL for NAVBAR --update --fix --style ..
1 parent 5c38a02 commit 6ac0791

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

themes/vue/layout/partials/header.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div id="header">
2+
<ul id="nav">
3+
<%- partial('partials/main_menu', { context: 'nav' }) %>
4+
</ul>
25
<a id="logo" href="<%- url_for("/") %>">
36
<img src="<%- url_for("/images/logo.png") %>" alt="vue logo">
47
<span>Vue.js</span>
58
</a>
6-
<ul id="nav">
7-
<%- partial('partials/main_menu', { context: 'nav' }) %>
8-
</ul>
99
</div>
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
<li>
2-
<form id="search-form">
3-
<input type="text" id="search-query-<%- context %>" class="search-query st-default-search-input">
4-
</form>
5-
</li>
1+
62
<%- partial('partials/learn_dropdown') %>
73
<%- partial('partials/ecosystem_dropdown') %>
84
<li>
95
<a href="<%- url_for("/v2/guide/team.html") %>" class="nav-link team<%- page.path.match(/team\.html/) ? ' current' : '' %>">Team</a>
106
</li>
117
<%- partial('partials/support_vue_dropdown') %>
128
<%- partial('partials/language_dropdown') %>
9+
10+
<li>
11+
<form id="search-form">
12+
<input type="text" id="search-query-<%- context %>" class="search-query st-default-search-input">
13+
</form>
14+
</li>

themes/vue/source/css/_common.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ input.button
105105
overflow-y: auto
106106
position: absolute
107107
top: 100%
108-
right: -15px
108+
left: -20px
109109
background-color: #fff
110110
padding: 10px 0
111111
border: 1px solid #ddd

themes/vue/source/css/_header.styl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body.docs
3030
margin: 0
3131
padding: 0
3232
position: absolute
33-
right: 30px
33+
left: 80px
3434
top: $heading-padding-vertical
3535
height: $header-height
3636
line-height: $header-height
@@ -94,7 +94,7 @@ body.docs
9494
color: $dark
9595
outline: none
9696
border-radius: 15px
97-
margin-right: 10px
97+
margin-left: 10%
9898
transition: border-color .2s ease
9999
background: #fff url(../images/search.png) 8px 5px no-repeat
100100
background-size: 20px
@@ -109,9 +109,11 @@ body.docs
109109
color: $dark
110110
font-family: $logo-font
111111
font-weight: 500
112+
position: absolute
113+
left: 89%
112114
img
113115
vertical-align: middle
114-
margin-right: 6px
116+
margin-left: 6px
115117
width: $header-height
116118
height: $header-height
117119

0 commit comments

Comments
 (0)