diff --git a/_data/content.yml b/_data/content.yml
index e37bbcea3..848e643ce 100644
--- a/_data/content.yml
+++ b/_data/content.yml
@@ -38,3 +38,8 @@ 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:"
diff --git a/_includes/2017/code-sponsor.html b/_includes/2017/code-sponsor.html
index 03001db27..0441b452c 100644
--- a/_includes/2017/code-sponsor.html
+++ b/_includes/2017/code-sponsor.html
@@ -1,6 +1,11 @@
-
+
diff --git a/_sass/2017/components/code-sponsor.scss b/_sass/2017/components/code-sponsor.scss
index 2f7b71d03..4e123e218 100644
--- a/_sass/2017/components/code-sponsor.scss
+++ b/_sass/2017/components/code-sponsor.scss
@@ -1,21 +1,50 @@
.code-sponsor {
& {
text-align: center;
+ position: relative;
}
/* Prelude */
& > .prelude {
+ position: relative;
+ z-index: 5;
display: block;
@include font-size(-1);
color: lighten($gray-text, 20%);
text-align: center;
- margin-bottom: -8px;
font-weight: normal;
user-select: none;
}
+ & > .prelude > a,
+ & > .prelude > a:visited {
+ text-decoration: none;
+ color: lighten($gray-text, 20%);
+ }
+
+ & > .prelude > a:hover,
+ & > .prelude > a:focus {
+ color: $gray-text;
+ }
+
+ /* Compensate padding to put it next to prelude */
+ & > div {
+ position: relative;
+ z-index: 1;
+ margin-top: -16px;
+ }
+
+ /* Extra line between prelude and ad? */
+ & > .prelude + div {
+ margin-top: -8px;
+ }
+
& > div > iframe {
display: inline-block;
opacity: 0.7;
}
+
+ & > div:hover > iframe {
+ opacity: 1;
+ }
}
diff --git a/_sass/2017/components/site-header.scss b/_sass/2017/components/site-header.scss
index 728f2475d..1d47a02a5 100644
--- a/_sass/2017/components/site-header.scss
+++ b/_sass/2017/components/site-header.scss
@@ -30,6 +30,7 @@
}
& > .adbox {
- margin-top: 16px;
+ margin-top: 32px;
+ margin-bottom: -16px;
}
}