Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9ff127

Browse files
bencodezenphanan
authored andcommitted
2299 duplicate mobile menu items (vuejs#2300)
* fix (vuejs#2299): Remove duplicate entries on non-home pages * fix (vuejs#2299): Improve spacing for sponsors on mobile * fix (vuejs#2299): Align sponsors with content on desktop * refactor (vuejs#2299): Standardize content padding vertical * fix (vuejs#2299): Improve spacing for clicking on mobile for last sidebar item
1 parent fd85e12 commit e9ff127

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

‎themes/vue/layout/partials/sidebar.ejs‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
<% var isHomePage = page.path === 'index.html' %>
2+
13
<div class="sidebar">
24
<div class="sidebar-inner">
3-
<ul class="main-menu">
4-
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
5-
</ul>
5+
<% if (isHomePage) { %>
6+
<ul class="main-menu">
7+
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
8+
</ul>
9+
<% } %>
610
<div class="list">
711
<%- partial('partials/sponsors_sidebar') %>
812
<% if (type !== 'search') { %>

‎themes/vue/source/css/_settings.styl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ $red = #ff6666
1818
$info = #1C90F3
1919

2020
$radius = 2px
21-
$content-padding-top = 30px
21+
$content-padding-vertical = 35px
2222

2323
// header settings
2424
$header-inner-height = 41px
2525
$heading-padding-vertical = 10px
2626
$header-height = $header-inner-height + $heading-padding-vertical * 2
2727
$mobile-header-height = 40px
2828
// prevent headers from being covered by the top nav upon navigation
29-
$heading-link-padding-top = $header-height + $content-padding-top
30-
$mobile-heading-link-padding-top = $mobile-header-height + $content-padding-top
29+
$heading-link-padding-top = $header-height + $content-padding-vertical
30+
$mobile-heading-link-padding-top = $mobile-header-height + $content-padding-vertical
3131
$h2-margin-top = 45px
3232
$h3-margin-top = 52px
3333

‎themes/vue/source/css/_sidebar.styl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
margin-top: .5em
2222
.sidebar-inner
2323
width: 260px
24-
padding: $content-padding-top+40px 0px 60px 20px
24+
padding: $content-padding-vertical 0px 60px 20px
2525
.version-select
2626
vertical-align: middle
2727
margin-left: 5px
@@ -74,7 +74,7 @@
7474
-webkit-transform: translate(-280px, 0)
7575
transform: translate(-280px, 0)
7676
.sidebar-inner
77-
padding: 50px 10px 10px 20px
77+
padding: 60px 10px 30px 20px
7878
box-sizing: border-box
7979
.sidebar-inner-index
8080
padding: 10px 10px 10px 20px

‎themes/vue/source/css/_sponsors-sidebar.styl‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
text-align: center
2626
margin-bottom: 20px
2727

28-
#sidebar-sponsors-special
29-
margin-top -10px
30-
3128
#sidebar-sponsors-platinum-left
3229
display block
3330

‎themes/vue/source/css/page.styl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
.content
2525
position: relative
26-
padding: 2.2em 0
26+
padding: $content-padding-vertical 0
2727
max-width: 700px
2828
margin: 0 auto
2929
padding-left: 50px

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /