Skip to content

Commit fe87afe

Browse files
fix: try to prevent Carbon Ads from causing problems (#798)
1 parent aefafd4 commit fe87afe

File tree

2 files changed

+9
-31
lines changed

2 files changed

+9
-31
lines changed

src/.vuepress/theme/components/CarbonAds.vue

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,28 @@ export default {
2828
<style>
2929
.carbon-ads {
3030
min-height: 102px;
31-
padding: 1.5rem 1.5rem 0;
32-
margin-bottom: -0.5rem;
3331
font-size: 0.75rem;
3432
3533
width: 125px;
3634
position: fixed;
3735
z-index: 1;
38-
bottom: 22px;
36+
bottom: 14px;
3937
right: 14px;
4038
padding: 10px;
4139
border-radius: 4px;
4240
background-color: rgba(255, 255, 255, 0.8);
43-
/* background-color: #fff; */
44-
/* font-size: 13px; */
4541
}
4642
47-
@media screen and (max-width: 1300px) {
43+
@media screen and (max-width: 1376px) {
4844
.carbon-ads {
4945
position: relative;
50-
top: 87px;
51-
right: 12px;
46+
bottom: auto;
47+
right: auto;
48+
5249
float: right;
53-
padding: 0 0 20px 30px;
50+
margin: 71px 12px 0 15px;
51+
padding: 0 0 10px 10px;
52+
z-index: 5;
5453
}
5554
}
5655
@@ -60,14 +59,9 @@ export default {
6059
display: inline;
6160
}
6261
63-
.carbon-ads .carbon-img {
64-
float: left;
65-
margin-right: 1rem;
66-
border: 1px solid var(--border-color);
67-
}
68-
6962
.carbon-ads .carbon-img img {
7063
display: block;
64+
width: 125px;
7165
}
7266
7367
.carbon-ads .carbon-poweredby {

src/.vuepress/theme/layouts/Layout.vue

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,3 @@ export default {
155155
}
156156
}
157157
</script>
158-
159-
<style>
160-
/* add a placeholder to give space to ads so they don't overlap with content */
161-
@media screen and (max-width: 1376px) {
162-
.content__default::before {
163-
content: '';
164-
position: relative;
165-
display: block;
166-
float: right;
167-
height: 221px;
168-
padding: 0 0 20px 30px;
169-
margin-top: 20px;
170-
margin-right: -24px;
171-
}
172-
}
173-
</style>

0 commit comments

Comments
 (0)