Skip to content

Commit

Permalink
odoc.css: adapt selectors to new include structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuenzli committed Feb 27, 2021
1 parent ebb40a1 commit 20ffd70
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/odoc/etc/odoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ pre code {

/* Module member specification */

.spec:not(.include), .spec.include details summary {
.spec {
background-color: #f6f8fa;
background-color: var(--spec-summary-background);
border-radius: 3px;
Expand All @@ -402,7 +402,7 @@ pre code {
padding: 0.35em 0.5em;
}

.spec.include details summary:hover {
.odoc-include details summary:hover {
background-color: #ebeff2;
background-color: var(--spec-summary-hover-background);
}
Expand Down Expand Up @@ -443,11 +443,11 @@ div.doc>*:first-child {

/* Collapsible inlined include and module */

.spec.include details {
.odoc-include details {
position: relative;
}

.spec.include details:after {
.odoc-include details:after {
z-index: -100;
display: block;
content: " ";
Expand All @@ -463,15 +463,15 @@ div.doc>*:first-child {
box-shadow: 0 0px 0 1px var(--spec-details-after-shadow);
}

.spec.include details summary {
.odoc-include details summary {
position: relative;
margin-bottom: 20px;
cursor: pointer;
outline: none;
}

/* FIXME: Does not work in Firefox. */
details summary::-webkit-details-marker {
.odoc-include details summary::-webkit-details-marker {
color: #888;
transform: scaleX(-1);
position: absolute;
Expand Down

0 comments on commit 20ffd70

Please # to comment.