diff options
author | Horacio Sanson <horacio@allm.net> | 2016-11-29 07:18:13 +0300 |
---|---|---|
committer | Horacio Sanson <horacio@allm.net> | 2016-12-08 02:46:22 +0300 |
commit | f4f9af06c9e6f468d9f696dbb5438dd8825fe773 (patch) | |
tree | dea1558a22749caddc714dc1b84829dd64d157b4 /app/assets/stylesheets/framework/asciidoctor.scss | |
parent | e7b045eadaf315dc2ae4fc079af5d1199d3e5d25 (diff) |
Enable display of admonition icons in Asciidoc.
When rendering Asciidoc documents this merge request enables the diplay of
admonition blocks using font icons. This improves the looks of Asciidoc redered
files.
This uses the font-awesome fonts already present in Gitlab so no large
dependencies are required for this to work.
Diffstat (limited to 'app/assets/stylesheets/framework/asciidoctor.scss')
-rw-r--r-- | app/assets/stylesheets/framework/asciidoctor.scss | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/asciidoctor.scss b/app/assets/stylesheets/framework/asciidoctor.scss new file mode 100644 index 00000000000..62493c32833 --- /dev/null +++ b/app/assets/stylesheets/framework/asciidoctor.scss @@ -0,0 +1,27 @@ +.admonitionblock td.icon { + width: 1%; + + [class^="fa icon-"] { + @extend .fa-2x; + } + + .icon-note { + @extend .fa-thumb-tack; + } + + .icon-tip { + @extend .fa-lightbulb-o; + } + + .icon-warning { + @extend .fa-exclamation-triangle; + } + + .icon-caution { + @extend .fa-fire; + } + + .icon-important { + @extend .fa-exclamation-circle; + } +} |