summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-07-31 19:29:55 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-08-01 04:21:03 -0600
commitc8a7fd2d3e15d0973b8a35bc5006d83af8fcae01 (patch)
tree00700b5bab7c270751e777e10f4667eb6ae9e9b2
parentfad9a642877e5334f1cd3884764531ef20711174 (diff)
remove redundant styles from the stylesheet
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--data/stylesheets/asciidoctor-default.css8
-rw-r--r--src/stylesheets/asciidoctor.css7
3 files changed, 5 insertions, 11 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index 8cf8e8f2..c0c72f2e 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -38,6 +38,7 @@ Improvements::
* Use queue to iterate over lines in reader instead of stack (#4106)
* Uppercase automatic reftext for level-2 section titles in manpage output if reftext matches section title (#4110)
* Show safe modes in strictness order in CLI help (#4065)
+ * Remove redundant styles from the default stylesheet
* Update font styles for summary element to match font styles of paragraph (#4114)
* Add Vietnamese translation of built-in attributes (PR #4066) (*@nguyenhoa93*)
* Add Thai translation of built-in attributes (PR #4113) (*@ammaneena*)
diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css
index 2999de21..097691b5 100644
--- a/data/stylesheets/asciidoctor-default.css
+++ b/data/stylesheets/asciidoctor-default.css
@@ -37,7 +37,7 @@ textarea{overflow:auto;vertical-align:top}
table{border-collapse:collapse;border-spacing:0}
*,::before,::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;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;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
+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;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
a:hover{cursor:pointer}
img,object,embed{max-width:100%;height:auto}
object,embed{height:100%}
@@ -57,7 +57,7 @@ div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,
a{color:#2156a5;text-decoration:underline;line-height:inherit}
a:hover,a:focus{color:#1d4b8f}
a img{border:0}
-p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
+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}
@@ -71,9 +71,9 @@ 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{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
+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;font-size:1em}
+ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0}
ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}
ul.square{list-style-type:square}
ul.circle{list-style-type:circle}
diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css
index 0e84a867..9da90644 100644
--- a/src/stylesheets/asciidoctor.css
+++ b/src/stylesheets/asciidoctor.css
@@ -202,8 +202,6 @@ body {
padding: 0;
margin: 0;
font-family: "Noto Serif", "DejaVu Serif", serif;
- font-weight: 400;
- font-style: normal;
line-height: 1;
position: relative;
cursor: auto;
@@ -344,9 +342,6 @@ a img {
}
p {
- font-family: inherit;
- font-weight: 400;
- font-size: 1em;
line-height: 1.6;
margin-bottom: 1.25em;
text-rendering: optimizeLegibility;
@@ -445,7 +440,6 @@ code {
ul,
ol,
dl {
- font-size: 1em;
line-height: 1.6;
margin-bottom: 1.25em;
list-style-position: outside;
@@ -461,7 +455,6 @@ ul li ul,
ul li ol {
margin-left: 1.25em;
margin-bottom: 0;
- font-size: 1em;
}
ul.square li ul,