Skip to content

Commit f2db32e

Browse files
authored
Merge pull request #26 from z9fr/feature/develop/rr
Feature/develop/rr
2 parents d4bdd15 + 6640da3 commit f2db32e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/tmpl/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ pub fn contact(links: &Vec<Link>, is_partial: bool) -> Markup {
345345

346346
pub fn stack(is_partial: bool) -> Markup {
347347
let markup = html! {
348+
script src="https://unpkg.com/website-carbon-badges@1.1.3/b.min.js" defer {}
349+
348350
h1 {"Uses"}
349351
ul {
350352
li {
@@ -371,6 +373,8 @@ pub fn stack(is_partial: bool) -> Markup {
371373
"Inspired by " a href="https://github.com/Xe/site" {"Xe/site"}; "."
372374
}
373375
}
376+
377+
div #"wcb" ."carbonbadge wcb-d" {};
374378
};
375379

376380
return if is_partial {

static/css/styles.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,30 @@ article img {
8787
block-size: auto;
8888
border: 1px solid #363638 !important;
8989
}
90+
91+
#wcb.carbonbadge {
92+
font-size: 11px !important;
93+
text-align: left !important;
94+
color: black !important;
95+
}
96+
97+
#wcb_g {
98+
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
99+
Bitstream Vera Sans Mono, Courier New, monospace, serif !important;
100+
color: black !important;
101+
}
102+
103+
#wcb_a {
104+
color: black !important;
105+
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
106+
Bitstream Vera Sans Mono, Courier New, monospace, serif !important;
107+
}
108+
109+
#wcb.wcb-d #wcb_a {
110+
background: #ff2e88 !important;
111+
border-color: #ff2e88 !important;
112+
}
113+
114+
#wcb_g {
115+
border: .13em solid #ff2e88 !important;
116+
}

0 commit comments

Comments
 (0)