Improve appearance of CodeSponsor with new preludes

This commit is contained in:
Rico Sta. Cruz 2017-10-11 08:39:01 +08:00
parent a98d5269c8
commit 9fae72451d
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
3 changed files with 12 additions and 10 deletions

View File

@ -4,7 +4,7 @@
if (window.localStorage && window.localStorage._NOADS) return if (window.localStorage && window.localStorage._NOADS) return
var s=d.createElement('script'),r=d.getElementById(id) var s=d.createElement('script'),r=d.getElementById(id)
s.async=true s.async=true
s.src='https://app.codesponsor.io/scripts/{{ site.data.codesponsor.id }}?theme=light&image=hide&height=100&width=319' s.src='https://app.codesponsor.io/scripts/{{ site.data.codesponsor.id }}?theme=light&image=hide&height=130&width=319'
setTimeout(function(){r.parentNode.insertBefore(s,r)}) setTimeout(function(){r.parentNode.insertBefore(s,r)})
})(document, 'code-sponsor-embed')</script> })(document, 'code-sponsor-embed')</script>
</aside> </aside>

View File

@ -2,7 +2,7 @@
& { & {
text-align: center; text-align: center;
position: relative; position: relative;
height: 100px; height: 130px;
} }
/* Prelude */ /* Prelude */

View File

@ -41,14 +41,16 @@
margin-top: 16px; margin-top: 16px;
} }
& > .adbox > .ad.-codesponsor::before { // Horizontal line
content: ''; // (no need for now)
display: block; // & > .adbox > .ad.-codesponsor::before {
margin: 8px auto 24px auto; // content: '';
width: 64px; // display: block;
height: 1px; // margin: 8px auto 24px auto;
background: lighten($gray-text, 40%); // width: 64px;
} // height: 1px;
// background: lighten($gray-text, 40%);
// }
} }
/** /**