Skip to content

Commit cc93205

Browse files
authored
Merge pull request #23 from jasondlee/asciidoc
Asciidoc admonition fix
2 parents 7cd5dd4 + 4f5ef97 commit cc93205

3 files changed

Lines changed: 60 additions & 1 deletion

File tree

public/css/asciidoctor-default.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */
2+
/* Remove the comments around the @import statement below when using this as a custom stylesheet */
3+
@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic|Noto+Serif:400,400italic,700,700italic|Droid+Sans+Mono:400";
4+
.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
5+
.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
6+
.admonitionblock>table td.icon{text-align:center;width:80px}
7+
.admonitionblock>table td.icon img{max-width:none}
8+
.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
9+
.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #ddddd8;color:rgba(0,0,0,.6)}
10+
.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
11+
.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px}
12+
.exampleblock>.content>:first-child{margin-top:0}
13+
.exampleblock>.content>:last-child{margin-bottom:0}
14+
.sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
15+
.sidebarblock>:first-child{margin-top:0}
16+
.sidebarblock>:last-child{margin-bottom:0}
17+
.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
18+
.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
19+
.literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8}
20+
.sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1}
21+
.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;padding:1em;font-size:.8125em}
22+
.literalblock pre.nowrap,.literalblock pre[class].nowrap,.listingblock pre.nowrap,.listingblock pre[class].nowrap{overflow-x:auto;white-space:pre;word-wrap:normal}
23+
@media only screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}}@media only screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}}.literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)}
24+
.listingblock pre.highlightjs{padding:0}
25+
.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px}
26+
.listingblock pre.prettyprint{border-width:0}
27+
.listingblock>.content{position:relative}
28+
.listingblock code[data-lang]:before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999}
29+
.listingblock:hover code[data-lang]:before{display:block}
30+
.listingblock.terminal pre .command:before{content:attr(data-prompt);padding-right:.5em;color:#999}
31+
.listingblock.terminal pre .command:not([data-prompt]):before{content:"$"}
32+
33+
.quoteblock{margin:0 1em 1.25em 1.5em;display:table}
34+
.quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em}
35+
.quoteblock blockquote,.quoteblock blockquote p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
36+
.quoteblock blockquote{margin:0;padding:0;border:0}
37+
.quoteblock blockquote:before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
38+
.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
39+
.quoteblock .attribution{margin-top:.5em;margin-right:.5ex;text-align:right}
40+
.quoteblock .quoteblock{margin-left:0;margin-right:0;padding:.5em 0;border-left:3px solid rgba(0,0,0,.6)}
41+
.quoteblock .quoteblock blockquote{padding:0 0 0 .75em}
42+
.quoteblock .quoteblock blockquote:before{display:none}
43+
.verseblock{margin:0 1em 1.25em 1em}
44+
.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
45+
.verseblock pre strong{font-weight:400}
46+
.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
47+
.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
48+
.quoteblock .attribution br,.verseblock .attribution br{display:none}
49+
.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.05em;color:rgba(0,0,0,.6)}
50+
.quoteblock.abstract{margin:0 0 1.25em 0;display:block}
51+
.quoteblock.abstract blockquote,.quoteblock.abstract blockquote p{text-align:left;word-spacing:0}
52+
.quoteblock.abstract blockquote:before,.quoteblock.abstract blockquote p:first-of-type:before{display:none}
53+
54+
.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
55+
.admonitionblock td.icon .icon-note:before{content:"\f05a";color:#19407c}
56+
.admonitionblock td.icon .icon-tip:before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
57+
.admonitionblock td.icon .icon-warning:before{content:"\f071";color:#bf6900}
58+
.admonitionblock td.icon .icon-caution:before{content:"\f06d";color:#bf3400}
59+
.admonitionblock td.icon .icon-important:before{content:"\f06a";color:#bf0000}

public/css/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ li.current .notch {
656656
text-decoration: none;
657657
font-size:12px;
658658
font-weight:bold;
659-
overflow:hidden;
660659
padding:3px 3px 0px 8px;
661660
margin:2px 5px 0 5px;
662661
/*-webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px;*/

templates/partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
<link rel="stylesheet" type="text/css" href="{site.url('/css/wide.css').absolute}" media="only screen and (min-width: 1200px)"/>
1818
<link rel="stylesheet" type="text/css" href="{site.url('/css/jbossdeveloper-thin.css').absolute}" media="screen, projection"/>
1919
<link rel="stylesheet" type="text/css" href="{site.url('/css/commonhaus-footer.css').absolute}" media="screen, projection"/>
20+
<link rel="stylesheet" type="text/css" href="/css/asciidoctor-default.css"/>
2021
</head>

0 commit comments

Comments
 (0)