Skip to content

Commit 9c592ee

Browse files
committed
jekyll: fix admonition icons
1 parent 316c3fa commit 9c592ee

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ asciidoctor:
4242
imagesdir: images
4343
source-highlighter: rouge
4444
rouge-style: github
45+
icons: font
4546

4647
keep_files:
4748
- images

_includes/head_custom.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
2+
<link rel="stylesheet" href="/css/asciidoc.css">

css/asciidoc.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
span.icon > .fa {
2+
cursor: default;
3+
}
4+
.admonitionblock td.icon {
5+
text-align: center;
6+
width: 80px;
7+
}
8+
.admonitionblock td.icon [class^="fa icon-"] {
9+
font-size: 2.5em;
10+
text-shadow: 1px 1px 2px rgba(0,0,0,.5);
11+
cursor: default;
12+
}
13+
.admonitionblock td.icon .icon-note:before {
14+
content: "\f05a";
15+
color: #19407c;
16+
}
17+
.admonitionblock td.icon .icon-tip:before {
18+
content: "\f0eb";
19+
text-shadow: 1px 1px 2px rgba(155,155,0,.8);
20+
color: #111;
21+
}
22+
.admonitionblock td.icon .icon-warning:before {
23+
content: "\f071";
24+
color: #bf6900;
25+
}
26+
.admonitionblock td.icon .icon-caution:before {
27+
content: "\f06d";
28+
color: #bf3400;
29+
}
30+
.admonitionblock td.icon .icon-important:before {
31+
content: "\f06a";
32+
color: #bf0000;
33+
}

0 commit comments

Comments
 (0)