diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-08-22 01:50:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-22 01:50:53 -0600 |
| commit | eafb271a3afc9c331b9807168a8ecfd092ec700d (patch) | |
| tree | f135a51993ab4fbf077fbd33f4096f7bf5494776 | |
| parent | 869e823673f1eb3132f11b5a803cd90b1734c782 (diff) | |
| parent | 58033cb14ed1c15de09bf7a4d37927577f3189ad (diff) | |
merge PR #4131
resolves #4140 remove duplicate selectors and redundant styles from default stylesheet
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 78 | ||||
| -rw-r--r-- | src/stylesheets/.stylelintrc | 1 | ||||
| -rw-r--r-- | src/stylesheets/asciidoctor.css | 338 |
4 files changed, 155 insertions, 263 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 9f37b484..25b7372f 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -30,6 +30,7 @@ Improvements:: * Prevent line numbers on source blocks in HTML output from being selected (applies to pygments, rouge, and coderay) (#4128) * Layout lines of a source block with table-based line numbering as rows in the table when using Rouge as source highlighter (#4130) + * Remove duplicate selectors in default stylesheet; enable stylelint rule to check for them // tag::compact[] == 2.0.16 (2021-08-03) - @mojavelinux diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index f419d383..ad30f14c 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -1,25 +1,34 @@ /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */ /* Uncomment the following line when using as a custom stylesheet */ /* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */ -html{font-family:sans-serif;-webkit-text-size-adjust:100%} -a{background:none} +*,::before,::after{box-sizing:border-box} +html{font-size:100%;-webkit-text-size-adjust:100%} +body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-size:inherit;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} +dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0} +a{background:none;color:#2156a5;text-decoration:underline;line-height:inherit} +a:active,a:hover{cursor:pointer;outline:0} a:focus{outline:thin dotted} -a:active,a:hover{outline:0} -h1{font-size:2em;margin:.67em 0} -b,strong{font-weight:bold} +a:hover,a:focus{color:#1d4b8f} abbr{font-size:.9em} abbr[title]{cursor:help;border-bottom:1px dotted #dddddf;text-decoration:none} +b,strong{font-weight:bold;line-height:inherit} +strong strong{font-weight:400} +code,kbd,pre,samp{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-size:1em} +code{font-weight:400;color:rgba(0,0,0,.9)} +pre{color:rgba(0,0,0,.9);line-height:1.45;text-rendering:optimizeSpeed;white-space:pre-wrap} dfn{font-style:italic} -hr{height:0} +em,i{font-style:italic;line-height:inherit} +em em{font-style:normal} +hr{border:solid #dddddf;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em} mark{background:#ff0;color:#000} -code,kbd,pre,samp{font-family:monospace;font-size:1em} -pre{white-space:pre-wrap} +p{line-height:1.6;margin-bottom:1.25rem;text-rendering:optimizeLegibility} q{quotes:"\201C" "\201D" "\2018" "\2019"} -small{font-size:80%} +small{font-size:60%;line-height:inherit} sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} sup{top:-.5em} sub{bottom:-.25em} -img{border:0} +img{border:0;-ms-interpolation-mode:bicubic} +img,object,svg{display:inline-block;vertical-align:middle} svg:not(:root){overflow:hidden} figure{margin:0} audio,video{display:inline-block} @@ -33,15 +42,9 @@ button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appe button[disabled],html input[disabled]{cursor:default} input[type=checkbox],input[type=radio]{padding:0} button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} -textarea{overflow:auto;vertical-align:top} -table{border-collapse:collapse;border-spacing:0} -*,::before,::after{box-sizing:border-box} -html,body{font-size:100%} -body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased} -a:hover{cursor:pointer} +textarea{overflow:auto} img,object,embed{max-width:100%;height:auto} object,embed{height:100%} -img{-ms-interpolation-mode:bicubic} .left{float:left!important} .right{float:right!important} .text-left{text-align:left!important} @@ -49,28 +52,16 @@ img{-ms-interpolation-mode:bicubic} .text-center{text-align:center!important} .text-justify{text-align:justify!important} .hide{display:none} -img,object,svg{display:inline-block;vertical-align:middle} -textarea{height:auto;min-height:50px} select{width:100%} .subheader,.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{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} -div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0} -a{color:#2156a5;text-decoration:underline;line-height:inherit} -a:hover,a:focus{color:#1d4b8f} -a img{border:0} -p{line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility} p aside{font-size:.875em;line-height:1.35;font-style:italic} -h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} -h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0} +h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.2;word-spacing:-.05em} +h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{color:#e99b8f;line-height:0} h1{font-size:2.125em} h2{font-size:1.6875em} h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em} h4,h5{font-size:1.125em} h6{font-size:1em} -hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em} -em,i{font-style:italic;line-height:inherit} -strong,b{font-weight:bold;line-height:inherit} -small{font-size:60%;line-height:inherit} -code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)} ul,ol,dl{line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit} ul,ol{margin-left:1.5em} ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0} @@ -80,38 +71,33 @@ ul.circle{list-style-type:circle} ul.disc{list-style-type:disc} ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0} dl dt{margin-bottom:.3125em;font-weight:bold} -dl dd{margin-bottom:1.25em} +dl dd{margin-bottom:1.25em;margin-left:1.125em} blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd} blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)} -@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2} -h1{font-size:2.75em} +@media screen and (min-width:768px){h1{font-size:2.75em} h2{font-size:2.3125em} h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em} h4{font-size:1.4375em}} -table{background:#fff;margin-bottom:1.25em;border:1px solid #dedede;word-wrap:normal} +table{background:#fff;border:1px solid #dedede;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;word-wrap:normal} table thead,table tfoot{background:#f7f8f7} table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left} table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)} table tr.even,table tr.alt{background:#f8f8f7} table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6} -h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em} h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} .center{margin-left:auto;margin-right:auto} .stretch{width:100%} -.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table} +.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:"";display:table} .clearfix::after,.float-group::after{clear:both} :not(pre).nobreak{word-wrap:normal} :not(pre).nowrap{white-space:nowrap} :not(pre).pre-wrap{white-space:pre-wrap} :not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed} -pre{color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;line-height:1.45;text-rendering:optimizeSpeed} pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit} pre>code{display:block} pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal} -em em{font-style:normal} -strong strong{font-weight:400} .keyseq{color:rgba(51,51,51,.8)} -kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} +kbd{display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap} .keyseq kbd:first-child{margin-left:0} .keyseq kbd:last-child{margin-right:0} .menuseq,.menuref{color:#000} @@ -124,9 +110,9 @@ b.button::before{content:"[";padding:0 3px 0 2px} b.button::after{content:"]";padding:0 2px 0 3px} p a>code:hover{color:rgba(0,0,0,.9)} #header,#content,#footnotes,#footer{width:100%;margin:0 auto;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em} -#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table} +#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:"";display:table} #header::after,#content::after,#footnotes::after,#footer::after{clear:both} -#content{margin-top:1.25em} +#content{margin-top:1.25em;margin-bottom:.625em} #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} @@ -170,7 +156,6 @@ body.toc2.toc-right{padding-left:0;padding-right:20em}} #content #toc>:last-child{margin-bottom:0} #footer{max-width:none;background:rgba(0,0,0,.8);padding:1.25em} #footer-text{color:hsla(0,0%,100%,.8);line-height:1.44} -#content{margin-bottom:.625em} .sect1{padding-bottom:.625em} @media screen and (min-width:768px){#content{margin-bottom:1.25em} .sect1{padding-bottom:1.25em}} @@ -196,7 +181,7 @@ table.tableblock.fit-content>caption.title{white-space:nowrap;width:0} .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase} .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere} .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0} -.exampleblock>.content{border:1px solid #e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;border-radius:4px} +.exampleblock>.content{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#fffef7;border-radius:4px;box-shadow:0 1px 4px #e0e0dc} .exampleblock>.content>:first-child{margin-top:0} .exampleblock>.content>:last-child{margin-bottom:0} .sidebarblock{border:1px solid #dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;border-radius:4px} @@ -277,7 +262,6 @@ p.tableblock>code:only-child{background:none;padding:0} p.tableblock{font-size:1em} ol{margin-left:1.75em} ul li ol{margin-left:1.5em} -dl dd{margin-left:1.125em} dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0} ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em} ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} @@ -384,9 +368,7 @@ dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility} h1,h2,p,td.content,span.alt,summary{letter-spacing:-.01em} p strong,td.content strong,div.footnote strong{letter-spacing:-.005em} p,blockquote,dt,td.content,span.alt,summary{font-size:1.0625rem} -p{margin-bottom:1.25rem} .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em} -.exampleblock>.content{background:#fffef7;border-color:#e0e0dc;box-shadow:0 1px 4px #e0e0dc} .print-only{display:none!important} @page{margin:1.25cm .75cm} @media print{*{box-shadow:none!important;text-shadow:none!important} diff --git a/src/stylesheets/.stylelintrc b/src/stylesheets/.stylelintrc index 437cd1cc..344318f3 100644 --- a/src/stylesheets/.stylelintrc +++ b/src/stylesheets/.stylelintrc @@ -3,6 +3,5 @@ "rules": { "comment-empty-line-before": null, "no-descending-specificity": null, - "no-duplicate-selectors": null, } } diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css index 5ee8ecf8..ec43bae9 100644 --- a/src/stylesheets/asciidoctor.css +++ b/src/stylesheets/asciidoctor.css @@ -1,32 +1,75 @@ /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */ /* Uncomment the following line when using as a custom stylesheet */ /* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */ +*, +::before, +::after { + box-sizing: border-box; +} + html { - font-family: sans-serif; + font-size: 100%; -webkit-text-size-adjust: 100%; } -a { - background: none; +body { + background: #fff; + color: rgba(0, 0, 0, 0.8); + padding: 0; + margin: 0; + font-family: "Noto Serif", "DejaVu Serif", serif; + font-size: inherit; + line-height: 1; + position: relative; + cursor: auto; + tab-size: 4; + word-wrap: anywhere; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; } -a:focus { - outline: thin dotted; +dl, +dt, +dd, +ul, +ol, +li, +h1, +h2, +h3, +h4, +h5, +h6, +pre, +form, +p, +blockquote, +th, +td { + margin: 0; + padding: 0; +} + +a { + background: none; + color: #2156a5; + text-decoration: underline; + line-height: inherit; } a:active, a:hover { + cursor: pointer; outline: 0; } -h1 { - font-size: 2em; - margin: 0.67em 0; +a:focus { + outline: thin dotted; } -b, -strong { - font-weight: bold; +a:hover, +a:focus { + color: #1d4b8f; } abbr { @@ -39,37 +82,76 @@ abbr[title] { text-decoration: none; } -dfn { - font-style: italic; -} - -hr { - height: 0; +b, +strong { + font-weight: bold; + line-height: inherit; } -mark { - background: #ff0; - color: #000; +strong strong { + font-weight: 400; } code, kbd, pre, samp { - font-family: monospace; + font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace; font-size: 1em; } +code { + font-weight: 400; + color: rgba(0, 0, 0, 0.9); +} + pre { + color: rgba(0, 0, 0, 0.9); + line-height: 1.45; + text-rendering: optimizeSpeed; white-space: pre-wrap; } +dfn { + font-style: italic; +} + +em, +i { + font-style: italic; + line-height: inherit; +} + +em em { + font-style: normal; +} + +hr { + border: solid #dddddf; + border-width: 1px 0 0; + clear: both; + height: 0; + margin: 1.25em 0 1.1875em; +} + +mark { + background: #ff0; + color: #000; +} + +p { + line-height: 1.6; + margin-bottom: 1.25rem; + text-rendering: optimizeLegibility; +} + q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { - font-size: 80%; + font-size: 60%; + line-height: inherit; } sub, @@ -90,6 +172,14 @@ sub { img { border: 0; + -ms-interpolation-mode: bicubic; +} + +img, +object, +svg { + display: inline-block; + vertical-align: middle; } svg:not(:root) { @@ -166,42 +256,6 @@ input::-moz-focus-inner { textarea { overflow: auto; - vertical-align: top; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -*, -::before, -::after { - box-sizing: border-box; -} - -html, -body { - font-size: 100%; -} - -body { - background: #fff; - color: rgba(0, 0, 0, 0.8); - padding: 0; - margin: 0; - font-family: "Noto Serif", "DejaVu Serif", serif; - line-height: 1; - position: relative; - cursor: auto; - tab-size: 4; - word-wrap: anywhere; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; -} - -a:hover { - cursor: pointer; } img, @@ -216,10 +270,6 @@ embed { height: 100%; } -img { - -ms-interpolation-mode: bicubic; -} - .left { float: left !important; } @@ -248,18 +298,6 @@ img { display: none; } -img, -object, -svg { - display: inline-block; - vertical-align: middle; -} - -textarea { - height: auto; - min-height: 50px; -} - select { width: 100%; } @@ -290,52 +328,6 @@ table.tableblock > .title, margin-bottom: 0.25em; } -div, -dl, -dt, -dd, -ul, -ol, -li, -h1, -h2, -h3, -#toctitle, -.sidebarblock > .content > .title, -h4, -h5, -h6, -pre, -form, -p, -blockquote, -th, -td { - margin: 0; - padding: 0; -} - -a { - color: #2156a5; - text-decoration: underline; - line-height: inherit; -} - -a:hover, -a:focus { - color: #1d4b8f; -} - -a img { - border: 0; -} - -p { - line-height: 1.6; - margin-bottom: 1.25em; - text-rendering: optimizeLegibility; -} - p aside { font-size: 0.875em; line-height: 1.35; @@ -357,7 +349,8 @@ h6 { text-rendering: optimizeLegibility; margin-top: 1em; margin-bottom: 0.5em; - line-height: 1.0125em; + line-height: 1.2; + word-spacing: -0.05em; } h1 small, @@ -368,7 +361,6 @@ h3 small, h4 small, h5 small, h6 small { - font-size: 60%; color: #e99b8f; line-height: 0; } @@ -396,36 +388,6 @@ h6 { font-size: 1em; } -hr { - border: solid #dddddf; - border-width: 1px 0 0; - clear: both; - margin: 1.25em 0 1.1875em; -} - -em, -i { - font-style: italic; - line-height: inherit; -} - -strong, -b { - font-weight: bold; - line-height: inherit; -} - -small { - font-size: 60%; - line-height: inherit; -} - -code { - font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace; - font-weight: 400; - color: rgba(0, 0, 0, 0.9); -} - ul, ol, dl { @@ -477,6 +439,7 @@ dl dt { dl dd { margin-bottom: 1.25em; + margin-left: 1.125em; } blockquote { @@ -492,17 +455,6 @@ blockquote p { } @media screen and (min-width: 768px) { - h1, - h2, - h3, - #toctitle, - .sidebarblock > .content > .title, - h4, - h5, - h6 { - line-height: 1.2; - } - h1 { font-size: 2.75em; } @@ -524,8 +476,10 @@ blockquote p { table { background: #fff; - margin-bottom: 1.25em; border: 1px solid #dedede; + border-collapse: collapse; + border-spacing: 0; + margin-bottom: 1.25em; word-wrap: normal; } @@ -564,18 +518,6 @@ table tfoot tr td { line-height: 1.6; } -h1, -h2, -h3, -#toctitle, -.sidebarblock > .content > .title, -h4, -h5, -h6 { - line-height: 1.2; - word-spacing: -0.05em; -} - h1 strong, h2 strong, h3 strong, @@ -600,7 +542,7 @@ h6 strong { .clearfix::after, .float-group::before, .float-group::after { - content: " "; + content: ""; display: table; } @@ -633,13 +575,6 @@ h6 strong { text-rendering: optimizeSpeed; } -pre { - color: rgba(0, 0, 0, 0.9); - font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace; - line-height: 1.45; - text-rendering: optimizeSpeed; -} - pre code, pre pre { color: inherit; @@ -657,20 +592,11 @@ pre.nowrap pre { word-wrap: normal; } -em em { - font-style: normal; -} - -strong strong { - font-weight: 400; -} - .keyseq { color: rgba(51, 51, 51, 0.8); } kbd { - font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace; display: inline-block; color: rgba(0, 0, 0, 0.8); font-size: 0.65em; @@ -762,7 +688,7 @@ p a > code:hover { #footnotes::after, #footer::before, #footer::after { - content: " "; + content: ""; display: table; } @@ -775,6 +701,7 @@ p a > code:hover { #content { margin-top: 1.25em; + margin-bottom: 0.625em; } #content::before { @@ -1007,10 +934,6 @@ body.toc2 #header > h1:nth-last-child(2) { line-height: 1.44; } -#content { - margin-bottom: 0.625em; -} - .sect1 { padding-bottom: 0.625em; } @@ -1230,11 +1153,12 @@ table.tableblock.fit-content > caption.title { } .exampleblock > .content { - border: 1px solid #e6e6e6; + border: 1px solid #e0e0dc; margin-bottom: 1.25em; padding: 1.25em; - background: #fff; + background: #fffef7; border-radius: 4px; + box-shadow: 0 1px 4px #e0e0dc; } .exampleblock > .content > :first-child { @@ -1690,10 +1614,6 @@ ul li ol { margin-left: 1.5em; } -dl dd { - margin-left: 1.125em; -} - dl dd:last-child, dl dd:last-child > :last-child { margin-bottom: 0; @@ -2220,10 +2140,6 @@ summary { font-size: 1.0625rem; } -p { - margin-bottom: 1.25rem; -} - .sidebarblock p, .sidebarblock dt, .sidebarblock td.content, @@ -2231,12 +2147,6 @@ p.tableblock { font-size: 1em; } -.exampleblock > .content { - background: #fffef7; - border-color: #e0e0dc; - box-shadow: 0 1px 4px #e0e0dc; -} - .print-only { display: none !important; } |
