Skip to content

Commit 3b5b583

Browse files
committed
Some initial styling for asciidoc
1 parent cd80e84 commit 3b5b583

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

src/css/asciidoctor.less

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
/*
3+
* Admonitions
4+
*/
5+
.admonitionblock>table {
6+
7+
border-collapse: separate;
8+
border: 0;
9+
background: none;
10+
width: 100%;
11+
12+
td.icon {
13+
14+
text-align: center;
15+
width:60px;
16+
17+
[class^="fa icon-"] {
18+
font-size: 2.5em;
19+
text-shadow: 1px 1px 2px rgba(0,0,0,.5);
20+
cursor: default;
21+
}
22+
23+
.icon-note:before {
24+
content: "\f05a";
25+
color: #19407c;
26+
}
27+
.icon-tip:before {
28+
content: "\f0eb";
29+
text-shadow: 1px 1px 2px rgba(155,155,0,.8);
30+
color: #111;
31+
}
32+
.icon-warning:before {
33+
content: "\f071";
34+
color: #bf6900
35+
}
36+
.icon-caution:before {
37+
content: "\f06d";
38+
color: #bf3400;
39+
}
40+
.icon-important:before {
41+
content: "\f06a";
42+
color: #bf0000;
43+
}
44+
45+
.title {
46+
font-weight:bold;
47+
font-family:"Open Sans","DejaVu Sans",sans-serif;
48+
text-transform:uppercase;
49+
}
50+
51+
}
52+
53+
td.content {
54+
padding-left:1.125em;
55+
padding-right:1.25em;
56+
border-left:1px solid #ddddd8;
57+
}
58+
59+
td.content>:last-child>:last-child{
60+
margin-bottom: 0;
61+
}
62+
63+
}

src/css/style.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@import "node_modules/bootstrap/less/bootstrap.less";
22
@import "node_modules/font-awesome/less/font-awesome.less";
3+
@import "src/css/asciidoctor.less";
34
@import "src/css/custom.less";

0 commit comments

Comments
 (0)