Skip to content

Commit f351a29

Browse files
committed
tweak button
1 parent e1ba0fb commit f351a29

File tree

4 files changed

+40
-29
lines changed

4 files changed

+40
-29
lines changed

themes/vue/layout/partials/sidebar.ejs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@
1818
</li>
1919
<% }) %>
2020
</ul>
21+
<div id="donate">
22+
<span class="wrapper" style="width: 110px">
23+
<img src="/images/paypal.png">
24+
<a href="https://www.paypal.me/evanyou" target="_blank">Buy Me Coffee</a>
25+
</span>
26+
</div>
2127
</div>
2228
</div>

themes/vue/source/css/_common.styl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,34 @@ a.button
164164
border-left 4px solid transparent
165165
border-right 4px solid transparent
166166
border-top 5px solid #ccc
167+
168+
#donate
169+
height 24px
170+
.wrapper
171+
vertical-align top
172+
height 20px
173+
border 1px solid #d4d4d4
174+
display inline-block
175+
box-sizing border-box
176+
line-height 16px
177+
border-radius 3px
178+
cursor pointer
179+
background-image linear-gradient(to bottom,#fcfcfc 0,#eee 100%)
180+
position relative
181+
width 72px
182+
&:hover
183+
border-color #ccc
184+
background-image linear-gradient(to bottom,#eee 0,#ddd 100%)
185+
img
186+
width 14px
187+
height 14px
188+
position absolute
189+
top 3px
190+
left 5px
191+
a
192+
font 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif
193+
color #333333
194+
text-shadow 0 1px 0 #fff
195+
position absolute
196+
top 2px
197+
left 24px

themes/vue/source/css/index.styl

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -251,36 +251,7 @@ html, body
251251
display none
252252

253253
#donate
254-
height 24px
255254
margin-left -2px !important
256-
.wrapper
257-
vertical-align top
258-
height 20px
259-
border 1px solid #d4d4d4
260-
display inline-block
261-
box-sizing border-box
262-
line-height 16px
263-
border-radius 3px
264-
cursor pointer
265-
background-image linear-gradient(to bottom,#fcfcfc 0,#eee 100%)
266-
position relative
267-
width 72px
268-
&:hover
269-
border-color #ccc
270-
background-image linear-gradient(to bottom,#eee 0,#ddd 100%)
271-
img
272-
width 14px
273-
height 14px
274-
position absolute
275-
top 3px
276-
left 5px
277-
a
278-
font 700 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif
279-
color #333333
280-
text-shadow 0 1px 0 #fff
281-
position absolute
282-
top 2px
283-
left 24px
284255

285256
@media screen and (max-width: 480px)
286257
body

themes/vue/source/css/page.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ $header-height = 40px
275275
bottom 0
276276
left 145px
277277

278+
#donate
279+
margin-top 15px
280+
278281
@media screen and (max-width: 560px)
279282
#downloads
280283
text-align center

0 commit comments

Comments
 (0)