Skip to content

Commit 8e98fba

Browse files
committed
odoc.css: group and simplify selectors for summary.
1 parent 0041265 commit 8e98fba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/odoc/etc/odoc.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,6 @@ pre code {
406406
padding: 0.35em 0.5em;
407407
}
408408

409-
.odoc-include details summary:hover {
410-
background-color: var(--spec-summary-hover-background);
411-
}
412-
413409
div.spec, .def-doc {
414410
margin-bottom: 20px;
415411
}
@@ -466,15 +462,19 @@ div.def-doc>*:first-child {
466462
box-shadow: 0 0px 0 1px var(--spec-details-after-shadow);
467463
}
468464

469-
.odoc-include details summary {
465+
.odoc-include summary {
470466
position: relative;
471467
margin-bottom: 20px;
472468
cursor: pointer;
473469
outline: none;
474470
}
475471

472+
.odoc-include summary:hover {
473+
background-color: var(--spec-summary-hover-background);
474+
}
475+
476476
/* FIXME: Does not work in Firefox. */
477-
.odoc-include details summary::-webkit-details-marker {
477+
.odoc-include summary::-webkit-details-marker {
478478
color: #888;
479479
transform: scaleX(-1);
480480
position: absolute;

0 commit comments

Comments
 (0)