Skip to content

Commit 57f34af

Browse files
committed
chore: move special sponsors back to the left
1 parent 358d2fb commit 57f34af

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

themes/vue/layout/partials/sponsors_sidebar.ejs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
<div id="sidebar-sponsors">
1+
<div id="sidebar-sponsors-special">
22
<div class="main-sponsor">
3-
<span>Sponsors</span>
3+
<span>Special Sponsors</span>
44
<div>
5-
<%_ for (const sponsor of [...theme.special_sponsors, ...theme.platinum_sponsors]) {_%>
5+
<%_ for (const sponsor of theme.special_sponsors) {_%>
6+
<a href="<%- sponsor.url %>" target="_blank" class="logo">
7+
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>">
8+
</a>
9+
<%_ } _%>
10+
</div>
11+
</div>
12+
</div>
13+
14+
<div id="sidebar-sponsors-platinum">
15+
<div class="main-sponsor">
16+
<span>Patreon Sponsors</span>
17+
<div>
18+
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
619
<a href="<%- sponsor.url %>" target="_blank" class="logo">
720
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>">
821
</a>

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
font-size: .85em
44
.logo
55
color: $light
6-
margin-top: 6px
6+
margin-top: 10px
77
text-align: center
88
font-weight: bold
99
display block
1010
&:first-child
1111
margin-top: 12px
1212
&:last-child
13-
margin-bottom: 12px
13+
margin-bottom: 14px
1414
img, a
1515
width: 125px
1616

@@ -25,8 +25,11 @@
2525
text-align: center
2626
margin-bottom: 20px
2727

28+
#sidebar-sponsors-special
29+
margin-top -10px
30+
2831
@media screen and (min-width: 1300px)
29-
#sidebar-sponsors
32+
#sidebar-sponsors-platinum
3033
position fixed
3134
z-index 99
3235
top 90px

0 commit comments

Comments
 (0)