Skip to content

Commit

Permalink
Try out text ad (experiment will be deleted if annoying)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Mar 11, 2017
1 parent 5dc8038 commit c240dd4
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
72 changes: 72 additions & 0 deletions server/files/stylesheets/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,10 @@ code .chunk {
}


/*******************************
Advertisements
*******************************/

/* Rail Ad */
#example .rail .advertisement {
display: block;
Expand All @@ -2050,6 +2054,74 @@ code .chunk {
width: auto;
}

#example .bsa-cpc #_default_ {
position: relative;
background-color: #FAFAFA;
border-bottom: solid 1px #dddddd;
text-align: center;
font-size: 14px;
line-height: 1.5;
}

#example .bsa-cpc .default-ad {
display: none;
}

#example .bsa-cpc ._default_ {
display: inline-block;
overflow: hidden;
padding: .5em 1em .4em;
line-height: 1.5;
}

#example .bsa-cpc ._default_ > * {
vertical-align: middle;
}

#example .bsa-cpc a {
text-decoration: none;
}

#example .bsa-cpc .default-image {
display: inline-block;
margin-right: 6px;
line-height: 0;
}

#example .bsa-cpc .default-image img {
height: 18px;
border-radius: 3px;
}

#example .bsa-cpc .default-title:after {
content: " — ";
}

#example .bsa-cpc .default-title,
#example .bsa-cpc .default-description {
display: inline;
}

#example .bsa-cpc .default-title {
position: relative;
font-weight: 600;
}

#example .bsa-cpc .default-description:after {
position: relative;
top: -1px;
right: -8px;
padding: 3px 6px;
border-radius: 3px;
background-color: #35bdb2;
color: #fff;
content: "Ad";
text-transform: uppercase;
font-size: 9px;
font-family: Verdana, sans-serif;
}



/*******************************
Responsive
Expand Down
15 changes: 15 additions & 0 deletions server/partials/header.html.eco
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,18 @@
<% end %>
</div>
</div>
<% unless 'development' in @getEnvironments(): %>
<script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
<div class="bsa-cpc"></div>
<script>
(function(){
if(typeof _bsa !== 'undefined' && _bsa) {
_bsa.init('default', 'CVAIKK7I', 'placement:semanticuicom', {
target: '.bsa-cpc',
align: 'horizontal',
disable_css: 'true'
});
}
})();
</script>
<% end %>

0 comments on commit c240dd4

Please sign in to comment.