lib/isodoc/gb/html/htmlcompliantstyle.scss in metanorma-gb-1.3.17 vs lib/isodoc/gb/html/htmlcompliantstyle.scss in metanorma-gb-1.3.18
- old
+ new
@@ -993,12 +993,106 @@
display: inline-block;
margin-bottom: 0.6em;
line-height: 1.2;
}
+/* https://github.com/metanorma/metanorma-iso/issues/319 : a) ordered lists */
+ol[type="alphabet"] {
+ counter-reset: alphabet;
+}
+ol[type="arabic"] {
+ counter-reset: arabic;
+}
+ol[type="roman"] {
+ counter-reset: roman;
+}
+ol[type="alphabet_upper"] {
+ counter-reset: alphabet_upper;
+}
+ol[type="roman_upper"] {
+ counter-reset: roman_upper;
+}
+ol[type="alphabet"] ol[type="alphabet"] {
+ counter-reset: alphabet2;
+}
+ol[type="arabic"] ol[type="arabic"] {
+ counter-reset: arabic2;
+}
+ol[type="roman"] ol[type="roman"] {
+ counter-reset: roman2;
+}
+ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
+ counter-reset: alphabet_upper2;
+}
+ol[type="roman_upper"] ol[type="roman_upper"] {
+ counter-reset: roman_upper2;
+}
+ol {
+ counter-reset: alphabet;
+}
+ol > li {
+ list-style: none;
+ position: relative;
+}
+ol > li:before {
+ position: absolute;
+ left: -1.4em;
+}
+ol[type="roman"] > li:before {
+ left: -2.0em;
+}
+ol[type="roman_upper"] > li:before {
+ left: -2.3em;
+}
+ol[type="alphabet"] > li:before {
+ counter-increment: alphabet;
+ content: counter(alphabet, lower-alpha)") "
+}
+ol[type="arabic"] > li:before {
+ counter-increment: arabic;
+ content: counter(arabic, decimal)") "
+}
+ol[type="roman"] > li:before {
+ counter-increment: roman;
+ content: counter(roman, lower-roman)") "
+}
+ol[type="alphabet_upper"] > li:before {
+ counter-increment: alphabet_upper;
+ content: counter(alphabet_upper, upper-alpha)") "
+}
+ol[type="roman_upper"] > li:before {
+ counter-increment: roman_upper;
+ content: counter(roman_upper, upper-roman)") "
+}
+ol > li:before {
+ counter-increment: alphabet;
+ content: counter(alphabet, lower-alpha)") "
+}
+ol[type="alphabet"] ol[type="alphabet"] > li:before {
+ counter-increment: alphabet2;
+ content: counter(alphabet2, lower-alpha)") "
+}
+ol[type="arabic"] ol[type="arabic"] > li:before {
+ counter-increment: arabic2;
+ content: counter(arabic2, decimal)") "
+}
+ol[type="roman"] ol[type="roman"] > li:before {
+ counter-increment: roman2;
+ content: counter(roman2, lower-roman)") "
+}
+ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
+ counter-increment: alphabet_upper2;
+ content: counter(alphabet_upper2, upper-alpha)") "
+}
+ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
+ counter-increment: roman_upper2;
+ content: counter(roman_upper2, upper-roman)") "
+}
+
+
/*
3.4 Rules
*/
/*
@@ -1027,16 +1121,16 @@
/*
3.6 Source Code + figures
*/
-.Sourcecode {
+pre {
font-family: $monospacefont;
font-variant-ligatures: none;
}
-.Sourcecode, .figure, .pseudocode {
+pre, .figure, .pseudocode {
font-size:0.9em;
line-height: 1.6em;
padding: 1.5em;
background-color: #f7f7f7;
margin: 2em 0 1em 0;
@@ -1102,10 +1196,10 @@
.example-title {
font-family: $headerfont;
}
-.example .Sourcecode, .example .pseudocode {
+.example pre, .example .pseudocode {
background: none;
}
/*
3.9 Tables