Skip to content

Commit 8e84a3a

Browse files
committed
Restyle ad
1 parent c240dd4 commit 8e84a3a

2 files changed

Lines changed: 28 additions & 9 deletions

File tree

server/files/stylesheets/docs.css

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,13 +2054,19 @@ code .chunk {
20542054
width: auto;
20552055
}
20562056

2057+
#example .bsa-cpc {
2058+
height: 38px;
2059+
}
20572060
#example .bsa-cpc #_default_ {
20582061
position: relative;
2059-
background-color: #FAFAFA;
20602062
border-bottom: solid 1px #dddddd;
20612063
text-align: center;
20622064
font-size: 14px;
20632065
line-height: 1.5;
2066+
transition: background 0.3s ease;
2067+
}
2068+
#example .bsa-cpc #_default_:hover {
2069+
background-color: #FAFAFA;
20642070
}
20652071

20662072
#example .bsa-cpc .default-ad {
@@ -2070,8 +2076,13 @@ code .chunk {
20702076
#example .bsa-cpc ._default_ {
20712077
display: inline-block;
20722078
overflow: hidden;
2073-
padding: .5em 1em .4em;
2074-
line-height: 1.5;
2079+
padding: 10px 3em;
2080+
max-width: 1044px;
2081+
color: #415a5a;
2082+
text-align: left;
2083+
line-height: 1;
2084+
margin-right: 344px;
2085+
display: block;
20752086
}
20762087

20772088
#example .bsa-cpc ._default_ > * {
@@ -2109,11 +2120,12 @@ code .chunk {
21092120

21102121
#example .bsa-cpc .default-description:after {
21112122
position: relative;
2112-
top: -1px;
2113-
right: -8px;
2114-
padding: 3px 6px;
2123+
top: 0px;
2124+
right: 0px;
2125+
padding: 4px 6px;
2126+
float: right;
21152127
border-radius: 3px;
2116-
background-color: #35bdb2;
2128+
background-color: #848484;
21172129
color: #fff;
21182130
content: "Ad";
21192131
text-transform: uppercase;
@@ -2207,6 +2219,9 @@ code .chunk {
22072219
padding-left: 3em;
22082220
padding-right: 0em;
22092221
}
2222+
#example .bsa-cpc ._default_ {
2223+
margin-right: 0px;
2224+
}
22102225
}
22112226

22122227
/* Squish Content (Just For Small Computers) */
@@ -2387,6 +2402,12 @@ code .chunk {
23872402
flex: 1 0 auto;
23882403
}
23892404

2405+
/* Ad Label */
2406+
#example .bsa-cpc ._default_ {
2407+
padding-left: 1em;
2408+
padding-right: 1em;
2409+
}
2410+
23902411
/* Let Buttons Vertically Stack */
23912412
#example .masthead .button {
23922413
margin-bottom: 0.75em;

server/partials/header.html.eco

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
<% end %>
179179
</div>
180180
</div>
181-
<% unless 'development' in @getEnvironments(): %>
182181
<script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
183182
<div class="bsa-cpc"></div>
184183
<script>
@@ -192,4 +191,3 @@
192191
}
193192
})();
194193
</script>
195-
<% end %>

0 commit comments

Comments
 (0)