Update ad appearance

This commit is contained in:
Rico Sta. Cruz 2017-09-19 14:44:25 +08:00
parent a8f6a29a7e
commit 3a55eaf231
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
10 changed files with 27 additions and 35 deletions

View File

@ -1,2 +1,2 @@
enabled: true
enabled: false
src: //cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom

View File

@ -1,2 +1,2 @@
enabled: false
enabled: true
id: R1EbPvY5DOvuC69kWMtpkA

View File

@ -3,7 +3,7 @@ home:
tagline: "Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a modest collection of cheatsheets I've written."
top_nav:
title: "Rico's cheatsheets"
title: Devhints
edit: Edit
edit_on_github: Edit this page on GitHub

View File

@ -0,0 +1,6 @@
<div class='code-sponsor'>
{% unless include.noprelude %}
<span class='prelude'>We recommend:</span>
{% endunless %}
<div id='code-sponsor-widget'></div><script src='https://app.codesponsor.io/scripts/{{ site.data.codesponsor.id }}?theme=light&image=hide&height=100&width=330'></script>
</div>

View File

@ -22,7 +22,14 @@
<p>
{{ site.data.content.home.tagline }}
</p>
{% include 2017/search-form.html live=true %}
{% if site.data.codesponsor.enabled %}
<div class='adbox'>
{% include 2017/code-sponsor.html noprelude=true %}
</div>
{% endif %}
</div>
<div class='pages-list'>

View File

@ -8,9 +8,8 @@
<div class='adbox'>
{% if site.data.codesponsor.enabled %}
<div class='code-sponsor ad -codesponsor'>
<span>Also recommended:</span>
<div id='code-sponsor-widget'></div><script src='https://app.codesponsor.io/scripts/{{ site.data.codesponsor.id }}?theme=light&image=hide&height=100&width=330'></script>
<div class='ad -codesponsor'>
{% include 2017/code-sponsor.html %}
</div>
{% endif %}

View File

@ -3,15 +3,14 @@
text-align: center;
}
& > span {
/* Prelude */
& > .prelude {
display: block;
@include font-size(-1);
color: lighten($gray-text, 20%);
text-align: center;
margin-bottom: -8px;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: bold;
font-weight: normal;
user-select: none;
}

View File

@ -6,7 +6,7 @@
@include heading-style;
& {
margin-top: 32px;
margin-top: 0;
}
& > h1 {

View File

@ -13,7 +13,7 @@
}
& > h1 {
@include font-size(5);
@include font-size(7);
margin: 0;
padding: 0;
color: $base-head;
@ -28,4 +28,8 @@
& > .action {
margin-top: 32px;
}
& > .adbox {
margin-top: 16px;
}
}

View File

@ -23,29 +23,6 @@
}
}
// Horiz line
@media (min-width: 481px) {
&::after {
content: '';
display: block;
position: absolute;
left: 40%;
right: 40%;
bottom: 0;
height: 1px;
background: linear-gradient(to right,
transparent,
$dark-line-color 20%,
$dark-line-color 80%,
transparent);
@media (max-width: 480px) {
left: 0;
right: 0;
}
}
}
& > .container {
@include gutter(padding-left);
@include gutter(padding-right);