Simpler add style

This commit is contained in:
Rico Sta. Cruz 2017-09-19 15:09:02 +08:00
parent de6200d576
commit 8fb0989e0c
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
3 changed files with 9 additions and 13 deletions

View File

@ -38,8 +38,3 @@ not_found:
title: Not found
description: Sorry, we don't have a cheatsheet for this yet. Try searching!
home: Back to home
code_sponsor:
recommender_name: "@rstacruz"
recommender_url: "https://twitter.com/rstacruz"
recommender_suffix: "recommends:"

View File

@ -1,11 +1,3 @@
<aside class='code-sponsor'>
{% unless include.noprelude %}
<span class='prelude'>
<a href='{{ site.data.content.code_sponsor.recommender_url }}'>
{{ site.data.content.code_sponsor.recommender_name }}
</a>
{{ site.data.content.code_sponsor.recommender_suffix }}
</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>
</aside>

View File

@ -40,4 +40,13 @@
& > .adbox > .ad.-carbon {
margin-top: 16px;
}
& > .adbox > .ad.-codesponsor::before {
content: '';
display: block;
margin: 8px auto 24px auto;
width: 64px;
height: 1px;
background: lighten($gray-text, 40%);
}
}