Skip to content

Commit d85524d

Browse files
committed
Add styling for details.why blocks.
1 parent 2289094 commit d85524d

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

default.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ h4 { margin-top: 4em; }
3939

4040
h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 1.2em }
4141

42-
p, div.note, div.issue {
42+
p, div.note, div.issue, details.why {
4343
margin-top: 1em;
4444
margin-bottom: 1em;
4545
}
4646

47-
dd > p:first-child, li > p:first-child, .note > p:first-child, .issue > p:first-child {
47+
dd > p:first-child, li > p:first-child, .note > p:first-child, .issue > p:first-child, .why > summary + p {
4848
margin-top: 0
4949
}
5050

@@ -251,14 +251,27 @@ span.note, span.issue { padding: .1em .5em .15em; }
251251
/* Example box */
252252
.example {
253253
border-color: #E0CB52;
254-
background: #FCFAEE;
254+
background: #FCFAEE;
255255
}
256256

257-
.example:before {
258-
color: #B9AB2D;
257+
.example:before {
258+
color: #B9AB2D;
259259
font-family: sans-serif;
260260
}
261261

262+
details.why {
263+
border-color: #52E052;
264+
background: #E9FBE9;
265+
}
266+
267+
details.why > summary {
268+
font-style: italic;
269+
}
270+
271+
details.why[open] > summary {
272+
border-bottom: 1px silver solid;
273+
}
274+
262275
/* ToC not indented, but font style shows hierarchy */
263276
ul.toc {margin: 1em 0; padding: 0; line-height: 1.3; font-weight: bold; /*text-transform: uppercase;*/ }
264277
ul.toc ul {margin: 0; padding: 0; font-weight: normal; text-transform: none; }
@@ -614,7 +627,6 @@ table.features td {
614627
text-align: left;
615628
}
616629

617-
618630
.data img {
619631
vertical-align: middle;
620632
}

0 commit comments

Comments
 (0)