chore: ad

This commit is contained in:
花裤衩 2020-07-07 10:40:52 +08:00
parent e95137dc59
commit dc3f409986
2 changed files with 54 additions and 56 deletions

View File

@ -15,68 +15,64 @@
</body> </body>
</html> </html>
<style> <style>
#carbonads { #carbonads {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, display: flex;
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; max-width: 280px;
} background-color: hsl(0, 0%, 98%);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
z-index: 2;
position: fixed;
right: 0;
bottom: 0;
}
#carbonads { #carbonads a {
display: flex; color: inherit;
max-width: 250px; text-decoration: none;
background-color: hsl(0, 0%, 98%); }
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
z-index: 2;
position: fixed;
right: 0;
bottom: 0;
}
#carbonads a { #carbonads a:hover {
color: inherit; color: inherit;
text-decoration: none; }
}
#carbonads a:hover { #carbonads span {
color: inherit; position: relative;
} display: block;
overflow: hidden;
}
#carbonads span { #carbonads .carbon-wrap {
position: relative; display: flex;
display: block; }
overflow: hidden;
}
#carbonads .carbon-wrap { .carbon-img {
display: flex; display: block;
} margin: 0;
line-height: 1;
}
.carbon-img { .carbon-img img {
display: block; display: block;
margin: 0; }
line-height: 1;
}
.carbon-img img { .carbon-text {
display: block; font-size: 13px;
} padding: 10px;
line-height: 1.4;
text-align: left;
}
.carbon-text { .carbon-poweredby {
font-size: 13px; display: block;
padding: 10px; padding: 8px 10px;
line-height: 1.5; 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);
text-align: left; text-align: center;
} text-transform: uppercase;
letter-spacing: .5px;
.carbon-poweredby { font-weight: 600;
display: block; font-size: 9px;
padding: 8px 10px; line-height: 1;
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); }
text-align: center; </style>
text-transform: uppercase;
letter-spacing: .5px;
font-weight: 600;
font-size: 9px;
line-height: 1;
}
</style>

View File

@ -10,7 +10,9 @@ export default {
watch: { watch: {
'$route.path': { '$route.path': {
handler: function() { handler: function() {
window._carbonads && window._carbonads.refresh() if (document.getElementById('carbonads')) {
window._carbonads && window._carbonads.refresh()
}
} }
} }
} }