Skip to content

Commit

Permalink
Add carbon
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Jun 28, 2016
1 parent 0c0e0cb commit 1940c61
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 3 deletions.
1 change: 1 addition & 0 deletions _includes/carbon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div id="carbon" class="carbon"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=marksheetio" id="_carbonads_js"></script></div>
1 change: 1 addition & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ <h1>
{{ page.title }}
</h1>
<h2>{{ page.subtitle }}</h2>
{% include carbon.html %}
</div>
</section>

Expand Down
41 changes: 39 additions & 2 deletions _sass/elements.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@

.start
+replace(url("/images/button-start-reading.png"), 242px, 63px)
margin: 30px auto 0
margin: 60px auto 0

.heading
color: white
line-height: 1.2
text-align: center
text-shadow: 0 2px 3px rgba(black, .3)
.container
padding: 60px 30px
strong
Expand All @@ -50,6 +49,7 @@
font-weight: 300
h2
font-size: 48px
margin-bottom: 20px
margin-top: 20px
+desktop
h1
Expand Down Expand Up @@ -447,3 +447,40 @@
display: none
+desktop
margin: 30px 0

$carbon-space: 15px

#carbon
background: white
border-radius: 5px
box-shadow: 0 10px 20px rgba(black, .2)
margin-left: auto
margin-right: auto
max-width: 340px
min-height: 100px + ($carbon-space * 2)
min-width: 300px
padding: $carbon-space
+from(400px)
width: 340px

#carbonads
text-align: left
text-shadow: none
a:hover
text-decoration: underline
span
display: block
.carbon-img
float: left
height: 100px
width: 130px
img
display: block
.carbon-text
display: block
color: $strong
margin-bottom: 5px
margin-left: 130px + $carbon-space
.carbon-poweredby
font-size: $small
margin-left: $carbon-space
4 changes: 3 additions & 1 deletion _sass/index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
display: table-cell
vertical-align: middle
.share-buttons
margin: 30px 0 60px
margin: 30px 0
opacity: 0
+desktop
padding: 120px 0
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ <h2>a free HTML and CSS tutorial</h2>
</div>
</div>

{% include carbon.html %}

<a class="start" href="/introduction.html">
Start reading
</a>
Expand Down

0 comments on commit 1940c61

Please sign in to comment.