Skip to content

Commit

Permalink
Modify Carbon Ads placement
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Aug 1, 2017
1 parent 380a83e commit 383275c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 36 deletions.
1 change: 1 addition & 0 deletions themes/navy/layout/page.swig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</div>
<aside id="article-toc" role="navigation">
<div id="article-toc-inner">
{{ partial('partial/carbonads') }}
<strong class="sidebar-title">{{ __('page.contents') }}</strong>
{{ toc(page.content, {list_number: false}) }}
<a href="#" id="article-toc-top">{{ __('page.back_to_top') }}</a>
Expand Down
1 change: 1 addition & 0 deletions themes/navy/layout/partial/carbonads.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=carbonadsnet" id="_carbonads_js"></script>
1 change: 0 additions & 1 deletion themes/navy/layout/partial/sidebar.swig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<aside id="sidebar" role="navigation">
<div class="inner">
{{ doc_sidebar('sidebar') }}
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=carbonadsnet" id="_carbonads_js"></script>
</div>
</aside>
32 changes: 32 additions & 0 deletions themes/navy/source/css/_partial/carbonads.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#carbonads
display: block
overflow: hidden
margin-top: 40px
max-width: 130px
text-align: left
font-size: 13px
line-height: 1.5
a
color: inherit
text-decoration: none
&:hover
color: inherit
span
display: block
overflow: hidden

.carbon-img
display: block
margin: 0 auto 8px
line-height: 1

.carbon-text
display: block
margin-bottom: 8px

.carbon-poweredby
display: block
text-transform: uppercase
letter-spacing: 1px
font-size: 9px
line-height: 1
35 changes: 1 addition & 34 deletions themes/navy/source/css/_partial/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,4 @@
&.current
color: color-link
&:hover
color: color-link-hover

#carbonads
display: block
overflow: hidden
margin-top: 40px
max-width: 130px
text-align: left
font-size: 13px
line-height: 1.5
a
color: inherit
text-decoration: none
&:hover
color: inherit
span
display: block
overflow: hidden

.carbon-img
display: block
margin: 0 auto 8px
line-height: 1

.carbon-text
display: block
margin-bottom: 8px

.carbon-poweredby
display: block
text-transform: uppercase
letter-spacing: 1px
font-size: 9px
line-height: 1
color: color-link-hover
3 changes: 2 additions & 1 deletion themes/navy/source/css/navy.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
@import "_partial/archive"
@import "_partial/mobile_nav"
@import "_partial/footer"
@import "_partial/highlight"
@import "_partial/highlight"
@import "_partial/carbonads"

0 comments on commit 383275c

Please sign in to comment.