Skip to content

Commit eeb4781

Browse files
committed
Made <pre class=example> display properly.
1 parent 691f96d commit eeb4781

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

css-module/default.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ code.xml { color: #600 } /* inline XML */
139139

140140
dfn { font-weight: bolder; }
141141

142-
p.issue, div.issue, p.note, div.note, div.example {
142+
p.issue, div.issue, p.note, div.note, div.example, pre.example {
143143
padding: .5em;
144+
padding: .5rem;
144145
border-left-width: .5em;
146+
border-left-width: .5rem;
145147
border-left-style: solid;
146148
}
147149

@@ -174,12 +176,15 @@ span.note { color: green; }
174176
.informref { color: green }
175177

176178
/* Example box */
177-
div.example {
179+
div.example, pre.example {
178180
border-color: #E0CB52;
179181
background: #FCFAEE;
180182
}
181183

182-
div.example:before { color: #B9AB2D; }
184+
div.example:before, pre.example:before {
185+
color: #B9AB2D;
186+
font-family: sans-serif;
187+
}
183188

184189
/* ToC not indented, but font style shows hierarchy */
185190
ul.toc {margin: 1em 0; padding: 0; line-height: 1.3; font-weight: bold; xtext-transform: uppercase; }

0 commit comments

Comments
 (0)