Skip to content

Commit dc3f409

Browse files
committed
chore: ad
1 parent e95137d commit dc3f409

File tree

2 files changed

+54
-56
lines changed

2 files changed

+54
-56
lines changed

public/index.html

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -15,68 +15,64 @@
1515
</body>
1616

1717
</html>
18+
1819
<style>
1920
#carbonads {
20-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
21-
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
22-
}
23-
24-
#carbonads {
25-
display: flex;
26-
max-width: 250px;
27-
background-color: hsl(0, 0%, 98%);
28-
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
29-
z-index: 2;
30-
position: fixed;
31-
right: 0;
32-
bottom: 0;
33-
}
21+
display: flex;
22+
max-width: 280px;
23+
background-color: hsl(0, 0%, 98%);
24+
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
25+
z-index: 2;
26+
position: fixed;
27+
right: 0;
28+
bottom: 0;
29+
}
3430

35-
#carbonads a {
36-
color: inherit;
37-
text-decoration: none;
38-
}
31+
#carbonads a {
32+
color: inherit;
33+
text-decoration: none;
34+
}
3935

40-
#carbonads a:hover {
41-
color: inherit;
42-
}
36+
#carbonads a:hover {
37+
color: inherit;
38+
}
4339

44-
#carbonads span {
45-
position: relative;
46-
display: block;
47-
overflow: hidden;
48-
}
40+
#carbonads span {
41+
position: relative;
42+
display: block;
43+
overflow: hidden;
44+
}
4945

50-
#carbonads .carbon-wrap {
51-
display: flex;
52-
}
46+
#carbonads .carbon-wrap {
47+
display: flex;
48+
}
5349

54-
.carbon-img {
55-
display: block;
56-
margin: 0;
57-
line-height: 1;
58-
}
50+
.carbon-img {
51+
display: block;
52+
margin: 0;
53+
line-height: 1;
54+
}
5955

60-
.carbon-img img {
61-
display: block;
62-
}
56+
.carbon-img img {
57+
display: block;
58+
}
6359

64-
.carbon-text {
65-
font-size: 13px;
66-
padding: 10px;
67-
line-height: 1.5;
68-
text-align: left;
69-
}
60+
.carbon-text {
61+
font-size: 13px;
62+
padding: 10px;
63+
line-height: 1.4;
64+
text-align: left;
65+
}
7066

71-
.carbon-poweredby {
72-
display: block;
73-
padding: 8px 10px;
74-
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
75-
text-align: center;
76-
text-transform: uppercase;
77-
letter-spacing: .5px;
78-
font-weight: 600;
79-
font-size: 9px;
80-
line-height: 1;
81-
}
82-
</style>
67+
.carbon-poweredby {
68+
display: block;
69+
padding: 8px 10px;
70+
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
71+
text-align: center;
72+
text-transform: uppercase;
73+
letter-spacing: .5px;
74+
font-weight: 600;
75+
font-size: 9px;
76+
line-height: 1;
77+
}
78+
</style>

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default {
1010
watch: {
1111
'$route.path': {
1212
handler: function() {
13-
window._carbonads && window._carbonads.refresh()
13+
if (document.getElementById('carbonads')) {
14+
window._carbonads && window._carbonads.refresh()
15+
}
1416
}
1517
}
1618
}

0 commit comments

Comments
 (0)