Skip to content

Commit 4c96d24

Browse files
author
Evan You
committed
trying out carbon
1 parent 9fa5bd9 commit 4c96d24

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

themes/vue/layout/layout.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@
2828
<% } %>
2929
</div>
3030
<script src="/js/common.js"></script>
31+
<div id="ad">
32+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
33+
</div>
3134
</body>
3235
</html>

themes/vue/layout/partials/sidebar.ejs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,5 @@
1212
src="//gttp.co/v1.js"></script>
1313
</li>
1414
</ul>
15-
<div class="ad">
16-
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
17-
</div>
1815
</div>
1916
</div>

themes/vue/source/css/_common.styl

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,24 @@ a.button
9898
#main
9999
position relative
100100
z-index 1
101-
padding 0 60px 30px
101+
padding 0 60px 30px
102+
103+
#ad
104+
width 130px
105+
position fixed
106+
z-index 99
107+
bottom 10px
108+
right 10px
109+
padding 10px
110+
background-color #fff
111+
border-radius 3px
112+
font-size 13px
113+
.carbon-img, .carbon-text
114+
display block
115+
margin-bottom 6px
116+
.carbon-poweredby
117+
color #aaa
118+
119+
@media screen and (max-width: 720px)
120+
#ad
121+
display none

themes/vue/source/css/page.styl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ $header-height = 40px
6666
color $green
6767
&:hover
6868
border-bottom 2px solid $green
69-
.ad
70-
margin-top 30px
71-
width 130px
72-
font-size 13px
73-
.carbon-img, .carbon-text
74-
display block
75-
margin-bottom 6px
76-
.carbon-poweredby
77-
color #aaa
7869

7970
.content
8071
padding 2.2em 0

0 commit comments

Comments
 (0)