Update ad appearance
This commit is contained in:
parent
a8f6a29a7e
commit
3a55eaf231
|
@ -1,2 +1,2 @@
|
||||||
enabled: true
|
enabled: false
|
||||||
src: //cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom
|
src: //cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
enabled: false
|
enabled: true
|
||||||
id: R1EbPvY5DOvuC69kWMtpkA
|
id: R1EbPvY5DOvuC69kWMtpkA
|
||||||
|
|
|
@ -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."
|
tagline: "Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a modest collection of cheatsheets I've written."
|
||||||
|
|
||||||
top_nav:
|
top_nav:
|
||||||
title: "Rico's cheatsheets"
|
title: Devhints
|
||||||
edit: Edit
|
edit: Edit
|
||||||
edit_on_github: Edit this page on GitHub
|
edit_on_github: Edit this page on GitHub
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
@ -22,7 +22,14 @@
|
||||||
<p>
|
<p>
|
||||||
{{ site.data.content.home.tagline }}
|
{{ site.data.content.home.tagline }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% include 2017/search-form.html live=true %}
|
{% 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>
|
||||||
|
|
||||||
<div class='pages-list'>
|
<div class='pages-list'>
|
||||||
|
|
|
@ -8,9 +8,8 @@
|
||||||
|
|
||||||
<div class='adbox'>
|
<div class='adbox'>
|
||||||
{% if site.data.codesponsor.enabled %}
|
{% if site.data.codesponsor.enabled %}
|
||||||
<div class='code-sponsor ad -codesponsor'>
|
<div class='ad -codesponsor'>
|
||||||
<span>Also recommended:</span>
|
{% include 2017/code-sponsor.html %}
|
||||||
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,14 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > span {
|
/* Prelude */
|
||||||
|
& > .prelude {
|
||||||
display: block;
|
display: block;
|
||||||
@include font-size(-1);
|
@include font-size(-1);
|
||||||
color: lighten($gray-text, 20%);
|
color: lighten($gray-text, 20%);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: -8px;
|
margin-bottom: -8px;
|
||||||
text-transform: uppercase;
|
font-weight: normal;
|
||||||
letter-spacing: 0.05em;
|
|
||||||
font-weight: bold;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@include heading-style;
|
@include heading-style;
|
||||||
|
|
||||||
& {
|
& {
|
||||||
margin-top: 32px;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > h1 {
|
& > h1 {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
& > h1 {
|
& > h1 {
|
||||||
@include font-size(5);
|
@include font-size(7);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: $base-head;
|
color: $base-head;
|
||||||
|
@ -28,4 +28,8 @@
|
||||||
& > .action {
|
& > .action {
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& > .adbox {
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
& > .container {
|
||||||
@include gutter(padding-left);
|
@include gutter(padding-left);
|
||||||
@include gutter(padding-right);
|
@include gutter(padding-right);
|
||||||
|
|
Loading…
Reference in New Issue