Skip to content

Commit d71acf2

Browse files
committed
chore: add carbon
1 parent 9c55a14 commit d71acf2

File tree

4 files changed

+252
-50
lines changed

4 files changed

+252
-50
lines changed

layouts/docs.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
<div class="md:bg-docs-gradient min-h-screen">
2828
<div class="container mx-auto flex">
29+
<div class="carbon">
30+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CESD42JM&placement=nativescript-vueorg" id="_carbonads_js"></script>
31+
</div>
2932
<div class="hidden md:w-1/4 md:block border-r-4 min-h-full">
3033
<div class="pl-4 md:pl-0 py-4 md:py-8">
3134
<ul id="docs-toc" class="list-reset">

package-lock.json

Lines changed: 104 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles.css

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,73 @@
4141

4242
.icon-link {
4343
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cpath d='M301.148 394.702l-79.2 79.19c-50.778 50.799-133.037 50.824-183.84 0-50.799-50.778-50.824-133.037 0-183.84l79.19-79.2a132.833 132.833 0 0 1 3.532-3.403c7.55-7.005 19.795-2.004 20.208 8.286.193 4.807.598 9.607 1.216 14.384.481 3.717-.746 7.447-3.397 10.096-16.48 16.469-75.142 75.128-75.3 75.286-36.738 36.759-36.731 96.188 0 132.94 36.759 36.738 96.188 36.731 132.94 0l79.2-79.2.36-.36c36.301-36.672 36.14-96.07-.37-132.58-8.214-8.214-17.577-14.58-27.585-19.109-4.566-2.066-7.426-6.667-7.134-11.67a62.197 62.197 0 0 1 2.826-15.259c2.103-6.601 9.531-9.961 15.919-7.28 15.073 6.324 29.187 15.62 41.435 27.868 50.688 50.689 50.679 133.17 0 183.851zm-90.296-93.554c12.248 12.248 26.362 21.544 41.435 27.868 6.388 2.68 13.816-.68 15.919-7.28a62.197 62.197 0 0 0 2.826-15.259c.292-5.003-2.569-9.604-7.134-11.67-10.008-4.528-19.371-10.894-27.585-19.109-36.51-36.51-36.671-95.908-.37-132.58l.36-.36 79.2-79.2c36.752-36.731 96.181-36.738 132.94 0 36.731 36.752 36.738 96.181 0 132.94-.157.157-58.819 58.817-75.3 75.286-2.651 2.65-3.878 6.379-3.397 10.096a163.156 163.156 0 0 1 1.216 14.384c.413 10.291 12.659 15.291 20.208 8.286a131.324 131.324 0 0 0 3.532-3.403l79.19-79.2c50.824-50.803 50.799-133.062 0-183.84-50.802-50.824-133.062-50.799-183.84 0l-79.2 79.19c-50.679 50.682-50.688 133.163 0 183.851z'/%3e%3c/svg%3e");
44-
}
44+
}
45+
46+
.carbon {
47+
margin-bottom: -32px;
48+
padding-top: 32px;
49+
padding-right: 4px;
50+
}
51+
52+
#carbonads {
53+
display: flex;
54+
max-width: 330px;
55+
}
56+
#carbonads a {
57+
color: #333;
58+
text-decoration: none;
59+
}
60+
#carbonads a:hover {
61+
color: #111;
62+
}
63+
#carbonads span {
64+
position: relative;
65+
display: block;
66+
overflow: hidden;
67+
}
68+
#carbonads .carbon-wrap {
69+
display: flex;
70+
flex-direction: column;
71+
}
72+
73+
#carbonads .carbon-img {
74+
display: block;
75+
margin: 0;
76+
line-height: 1;
77+
}
78+
#carbonads .carbon-img img {
79+
display: block;
80+
margin: 0 auto;
81+
}
82+
#carbonads .carbon-text {
83+
padding: 10px;
84+
text-align: left;
85+
font-size: 13px;
86+
margin-bottom: 16px;
87+
line-height: 1.5;
88+
}
89+
#carbonads .carbon-poweredby {
90+
display: block;
91+
padding: 6px 8px;
92+
color: #aaa;
93+
text-align: center;
94+
text-transform: uppercase;
95+
letter-spacing: 0.5px;
96+
font-weight: 600;
97+
font-size: 8px;
98+
line-height: 1;
99+
position: absolute;
100+
bottom: 0;
101+
right: 0;
102+
}
103+
104+
@screen xl {
105+
#carbonads .carbon-wrap {
106+
flex-direction: row;
107+
}
108+
109+
#carbonads .carbon-text {
110+
padding: 0 10px;
111+
}
112+
}
113+

0 commit comments

Comments
 (0)