Skip to content

Commit c4d4611

Browse files
committed
Make p.example work by making the style rules less specific
1 parent 355b890 commit c4d4611

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

default.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
body { font-family: serif }
99
th, td { font-family: inherit }
1010
a { color: inherit !important }
11-
div.example:before { font-family: serif !important }
12-
pre.example:before { font-family: serif !important }
11+
.example:before { font-family: serif !important }
1312
a:link, a:visited { text-decoration: none !important }
1413
a:link:after, a:visited:after { /* create a cross-ref "see..." */ }
1514
}
@@ -26,7 +25,7 @@ body {
2625
/* Pagination */
2726
h1, h2, h3, h4, h5, h6 { page-break-after: avoid }
2827
figure, div.figure, div.sidefigure, pre, table.propdef, table.propdef-extra,
29-
div.example { page-break-inside: avoid }
28+
.example { page-break-inside: avoid }
3029
dt { page-break-after: avoid }
3130

3231
span.id {float: right; font-weight: bold}
@@ -96,7 +95,7 @@ ul.indexlist a { font-weight: bold; }
9695
.example {
9796
counter-increment: exampleno;
9897
}
99-
div.example:before, pre.example:before {
98+
.example:before {
10099
content: "Example";
101100
content: "Example " counter(exampleno);
102101
min-width: 7.5em;
@@ -107,8 +106,8 @@ div.illegal-example:before, pre.illegal-example:before {
107106
content: "Invalid Example";
108107
content: "Invalid Example" counter(exampleno);
109108
}
110-
div.example, div.illegal-example, div.html, div.illegal-html, div.xml,
111-
div.illegal-xml, pre.example, pre.illegal-example, pre.html,
109+
.example, .illegal-example, div.html, div.illegal-html, div.xml,
110+
div.illegal-xml, pre.html,
112111
pre.illegal-html, pre.xml, pre.illegal-xml {
113112
padding: 0.5em;
114113
margin: 1em 0;
@@ -149,7 +148,7 @@ code.xml { color: #600 } /* inline XML */
149148
dfn { font-weight: bolder; }
150149
a > i { font-style: normal; } /* Instance of term */
151150

152-
.issue, .note, div.example, pre.example {
151+
.issue, .note, .example {
153152
padding: .5em;
154153
/* padding: .5rem; /* proposed unit in css3-values */
155154
border-left-width: .5em;
@@ -182,12 +181,12 @@ span.note, span.issue { padding: .1em .5em .15em; }
182181
.informref { color: green }
183182

184183
/* Example box */
185-
div.example, pre.example {
184+
.example {
186185
border-color: #E0CB52;
187186
background: #FCFAEE;
188187
}
189188

190-
div.example:before, pre.example:before {
189+
.example:before {
191190
color: #B9AB2D;
192191
font-family: sans-serif;
193192
}

0 commit comments

Comments
 (0)