Skip to content

Commit 9888463

Browse files
committed
adjust for browser 'feature' in Firefox/IE/Edge ignoring padding in sidebar
1 parent fcd4985 commit 9888463

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed
Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
<div class="sidebar">
2-
<ul class="main-menu">
3-
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
4-
</ul>
5-
<div class="list">
6-
<div class="main-sponsor">
7-
<span>Platinum Sponsor</span><br>
8-
<a href="https://stdlib.com" target="_blank" class="logo">
9-
<img src="<%- url_for("/images/stdlib.png") %>">
2+
<div class="sidebar-inner">
3+
<ul class="main-menu">
4+
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
5+
</ul>
6+
<div class="list">
7+
<div class="main-sponsor">
8+
<span>Platinum Sponsor</span><br>
9+
<a href="https://stdlib.com" target="_blank" class="logo">
10+
<img src="<%- url_for("/images/stdlib.png") %>">
11+
</a>
12+
</div>
13+
<a class="become-backer" href="<%- url_for("/support-vuejs") %>">
14+
Become a Sponsor
1015
</a>
16+
<h2>
17+
<%- type === 'api' ? 'API' : (type.charAt(0).toUpperCase() + type.slice(1)) %>
18+
<% if (type !== 'cookbook') { %>
19+
<select class="version-select">
20+
<option value="SELF" selected>2.x</option>
21+
<option value="v1">1.0</option>
22+
<option value="012">0.12</option>
23+
<option value="011">0.11</option>
24+
</select>
25+
<% } %>
26+
</h2>
27+
<%- partial('partials/toc', { type: type }) %>
1128
</div>
12-
<a class="become-backer" href="<%- url_for("/support-vuejs") %>">
13-
Become a Sponsor
14-
</a>
15-
<h2>
16-
<%- type === 'api' ? 'API' : (type.charAt(0).toUpperCase() + type.slice(1)) %>
17-
<% if (type !== 'cookbook') { %>
18-
<select class="version-select">
19-
<option value="SELF" selected>2.x</option>
20-
<option value="v1">1.0</option>
21-
<option value="012">0.12</option>
22-
<option value="011">0.11</option>
23-
</select>
24-
<% } %>
25-
</h2>
26-
<%- partial('partials/toc', { type: type }) %>
2729
</div>
2830
</div>

themes/vue/source/css/_sidebar.styl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
top $header-height
77
left 0
88
bottom 0
9-
padding $content-padding-top + 10px 0 60px 60px
10-
width 260px
11-
margin-right 20px
129
overflow-x hidden
1310
overflow-y auto
1411
-webkit-overflow-scrolling touch
@@ -22,6 +19,9 @@
2219
padding-left 1em
2320
li
2421
margin-top .5em
22+
.sidebar-inner
23+
width 260px
24+
padding $content-padding-top + 10px 20px 60px 60px
2525
.version-select
2626
vertical-align middle
2727
margin-left 5px
@@ -95,12 +95,13 @@
9595
height 100%
9696
top 0
9797
left 0
98-
padding 60px 30px 20px
9998
box-shadow 0 0 10px rgba(0,0,0,.2)
100-
box-sizing border-box
10199
transition all .4s cubic-bezier(0.4, 0, 0, 1)
102100
-webkit-transform translate(-280px, 0)
103101
transform translate(-280px, 0)
102+
.sidebar-inner
103+
padding 60px 30px 30px
104+
box-sizing border-box
104105
.search-query
105106
width 200px
106107
margin-bottom 10px

0 commit comments

Comments
 (0)