Skip to content

Commit c240dd4

Browse files
committed
Try out text ad (experiment will be deleted if annoying)
1 parent 5dc8038 commit c240dd4

2 files changed

Lines changed: 87 additions & 0 deletions

File tree

server/files/stylesheets/docs.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,10 @@ code .chunk {
20372037
}
20382038

20392039

2040+
/*******************************
2041+
Advertisements
2042+
*******************************/
2043+
20402044
/* Rail Ad */
20412045
#example .rail .advertisement {
20422046
display: block;
@@ -2050,6 +2054,74 @@ code .chunk {
20502054
width: auto;
20512055
}
20522056

2057+
#example .bsa-cpc #_default_ {
2058+
position: relative;
2059+
background-color: #FAFAFA;
2060+
border-bottom: solid 1px #dddddd;
2061+
text-align: center;
2062+
font-size: 14px;
2063+
line-height: 1.5;
2064+
}
2065+
2066+
#example .bsa-cpc .default-ad {
2067+
display: none;
2068+
}
2069+
2070+
#example .bsa-cpc ._default_ {
2071+
display: inline-block;
2072+
overflow: hidden;
2073+
padding: .5em 1em .4em;
2074+
line-height: 1.5;
2075+
}
2076+
2077+
#example .bsa-cpc ._default_ > * {
2078+
vertical-align: middle;
2079+
}
2080+
2081+
#example .bsa-cpc a {
2082+
text-decoration: none;
2083+
}
2084+
2085+
#example .bsa-cpc .default-image {
2086+
display: inline-block;
2087+
margin-right: 6px;
2088+
line-height: 0;
2089+
}
2090+
2091+
#example .bsa-cpc .default-image img {
2092+
height: 18px;
2093+
border-radius: 3px;
2094+
}
2095+
2096+
#example .bsa-cpc .default-title:after {
2097+
content: " — ";
2098+
}
2099+
2100+
#example .bsa-cpc .default-title,
2101+
#example .bsa-cpc .default-description {
2102+
display: inline;
2103+
}
2104+
2105+
#example .bsa-cpc .default-title {
2106+
position: relative;
2107+
font-weight: 600;
2108+
}
2109+
2110+
#example .bsa-cpc .default-description:after {
2111+
position: relative;
2112+
top: -1px;
2113+
right: -8px;
2114+
padding: 3px 6px;
2115+
border-radius: 3px;
2116+
background-color: #35bdb2;
2117+
color: #fff;
2118+
content: "Ad";
2119+
text-transform: uppercase;
2120+
font-size: 9px;
2121+
font-family: Verdana, sans-serif;
2122+
}
2123+
2124+
20532125

20542126
/*******************************
20552127
Responsive

server/partials/header.html.eco

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,18 @@
178178
<% end %>
179179
</div>
180180
</div>
181+
<% unless 'development' in @getEnvironments(): %>
182+
<script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
183+
<div class="bsa-cpc"></div>
184+
<script>
185+
(function(){
186+
if(typeof _bsa !== 'undefined' && _bsa) {
187+
_bsa.init('default', 'CVAIKK7I', 'placement:semanticuicom', {
188+
target: '.bsa-cpc',
189+
align: 'horizontal',
190+
disable_css: 'true'
191+
});
192+
}
193+
})();
194+
</script>
195+
<% end %>

0 commit comments

Comments
 (0)