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 8cfbe63

Browse files
adjust sponsorship placement
1 parent a1b60e7 commit 8cfbe63

File tree

5 files changed

+41
-49
lines changed

5 files changed

+41
-49
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div id="ad">
2-
<span>Sponsored By</span><br>
2+
<!-- <span>Sponsored By</span><br>
33
<a href="http://www.thedifferenceengine.io/" target="_blank"
44
style="background-color: rgba(0,0,0,.85); padding: 10px 0">
55
<img src="/images/tde.png">
6-
</a>
7-
<!-- <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script> -->
6+
</a>-->
7+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
88
</div>

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
44
</ul>
55
<div class="list">
6-
<div id="donate" style="margin-bottom: 20px">
7-
<img src="/images/patreon.png">
8-
<a href="/support-vuejs">Support Vue.js</a>
6+
<div class="main-sponsor">
7+
<span>Sponsored By</span><br>
8+
<a href="http://www.thedifferenceengine.io/" target="_blank"
9+
style="background-color: #f3f3f3; padding: 10px 0">
10+
<img src="/images/tde.png">
11+
</a>
912
</div>
13+
<a class="become-backer" href="/support-vuejs">
14+
Become a Backer
15+
</a>
1016
<h2>
1117
<%- type === 'api' ? 'API' : (type.charAt(0).toUpperCase() + type.slice(1)) %>
1218
<% if (type !== 'cookbook') { %>

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

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ a.button
112112

113113
#ad
114114
width 125px
115-
text-align center
115+
//text-align center
116116
position fixed
117117
z-index 99
118118
bottom 10px
119119
right 10px
120120
padding 10px
121-
background-color rgba(255, 255, 255, .65)
121+
background-color #fff
122122
border-radius 3px
123123
font-size 13px
124124
a
@@ -131,14 +131,14 @@ a.button
131131
margin-bottom 5px
132132
img
133133
width 125px
134-
//.carbon-img, .carbon-text
135-
// display block
136-
// margin-bottom 6px
137-
// font-weight normal
138-
// color $medium
139-
//.carbon-poweredby
140-
// color #aaa
141-
// font-weight normal
134+
.carbon-img, .carbon-text
135+
display block
136+
margin-bottom 6px
137+
font-weight normal
138+
color $medium
139+
.carbon-poweredby
140+
color #aaa
141+
font-weight normal
142142

143143
#nav
144144
.nav-link
@@ -183,25 +183,3 @@ a.button
183183
border-left 4px solid transparent
184184
border-right 4px solid transparent
185185
border-top 5px solid #ccc
186-
187-
#donate
188-
display: inline-block
189-
line-height: 0;
190-
padding: 3px 6px
191-
border-radius: 3px
192-
cursor: pointer
193-
background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%)
194-
border: 1px solid #d4d4d4
195-
img
196-
display: inline-block
197-
vertical-align: bottom
198-
width 14px
199-
height 14px
200-
a
201-
font 700 14px/14px $body-font
202-
margin-left: 2px
203-
color #333333
204-
text-shadow 0 1px 0 #fff
205-
&:hover
206-
border-color: #ccc
207-
background-image: linear-gradient(to bottom, #eee 0, #ddd 100%)

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@
5757
margin-bottom 20px
5858
display none
5959
padding-left 0
60+
.main-sponsor
61+
color $light
62+
font-size .85em
63+
a
64+
margin 10px 0
65+
img, a
66+
width 125px
67+
display inline-block
68+
.become-backer
69+
border 1px solid $green
70+
border-radius 2em
71+
display inline-block
72+
color $green
73+
font-size .8em
74+
width 125px
75+
padding 4px 0
76+
text-align center
77+
margin-bottom 20px
6078

6179
@media screen and (max-width: 900px)
6280
.sidebar

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,7 @@
146146
bottom 0
147147
right 0
148148
float right
149-
margin 0 0 20px 30px
150-
// .carbon-wrap, .carbon-img, .carbon-text, .carbon-poweredby
151-
// display inline-block
152-
// vertical-align top
153-
// .carbon-text
154-
// width 140px
155-
// margin-left 15px
156-
// .carbon-poweredby
157-
// position absolute
158-
// bottom 12px
159-
// left 140px
149+
padding 0 0 20px 30px
160150

161151
@media screen and (max-width: 900px)
162152
body

0 commit comments

Comments
(0)

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