Skip to content

Commit d95a842

Browse files
author
Evan You
committed
add style tweaks
1 parent 4c96d24 commit d95a842

File tree

7 files changed

+33
-8
lines changed

7 files changed

+33
-8
lines changed

themes/vue/layout/layout.ejs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,5 @@
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>
3431
</body>
3532
</html>

themes/vue/layout/page.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<% } %>
44
<div class="content <%- page.type ? page.type + ' with-sidebar' : '' %>">
55
<h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
6+
<div id="ad">
7+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
8+
</div>
69
<%- page.content %>
710
<div class="footer">Caught a mistake or want to contribute to the documentation? <a href="https://github.com/vuejs/vuejs.org" target="_blank">Fork this site on Github</a>!</div>
811
</div>

themes/vue/layout/partials/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</div>
3333
<div class="down"><img src="/images/down.png"></div>
3434
</div>
35+
3536
<div id="example">
3637
<h2>10 Second Example</h2>
3738
<div class="block">

themes/vue/layout/post.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
</div>
1919
<div class="content blog">
2020
<h1><%- page.title %></h1>
21+
<div id="ad">
22+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
23+
</div>
2124
<h4><%- page.date.format('MMM D[,] YYYY') %></h4>
2225
<%- page.content %>
2326
</div>

themes/vue/source/css/_common.styl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ a.button
113113
.carbon-img, .carbon-text
114114
display block
115115
margin-bottom 6px
116+
font-weight normal
117+
color $medium
116118
.carbon-poweredby
117119
color #aaa
118-
119-
@media screen and (max-width: 720px)
120-
#ad
121-
display none
120+
font-weight normal

themes/vue/source/css/index.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ html, body
282282
font-size 1.1em
283283
h2
284284
font-size 1.35em
285+
#ad
286+
position static
287+
.carbon-img, .carbon-text, .carbon-poweredby
288+
display inline-block
285289

286290
@media screen and (max-width: 860px)
287291
#features, #hero

themes/vue/source/css/page.styl

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,22 @@ $header-height = 40px
209209
margin-left 0
210210
.footer
211211
margin-left 0
212-
text-align center
212+
text-align center
213+
#ad
214+
position relative
215+
width auto
216+
height 100px
217+
padding 0
218+
bottom 0
219+
right 0
220+
margin 30px 0 35px
221+
.carbon-wrap, .carbon-img, .carbon-text, .carbon-poweredby
222+
display inline-block
223+
vertical-align top
224+
.carbon-text
225+
width 130px
226+
margin-left 15px
227+
.carbon-poweredby
228+
position absolute
229+
bottom 0
230+
left 145px

0 commit comments

Comments
 (0)