Skip to content

Commit a77ea1b

Browse files
committed
add missing .doc namespace selector for items in source toolbox
1 parent 26c349c commit a77ea1b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/css/doc.css

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -739,17 +739,15 @@ h1.page + aside.toc.embedded {
739739
height: 1em;
740740
}
741741

742-
.source-toolbox .copy-button * {
742+
.doc .source-toolbox .copy-button svg {
743743
flex: none;
744-
}
745-
746-
.source-toolbox .copy-button svg {
747744
fill: currentColor;
748745
width: inherit;
749746
height: inherit;
750747
}
751748

752-
.source-toolbox .copy-toast {
749+
.doc .source-toolbox .copy-toast {
750+
flex: none;
753751
position: relative;
754752
display: inline-flex;
755753
justify-content: center;
@@ -763,7 +761,7 @@ h1.page + aside.toc.embedded {
763761
transition: opacity 0.5s ease 0.75s;
764762
}
765763

766-
.source-toolbox .copy-toast::after {
764+
.doc .source-toolbox .copy-toast::after {
767765
content: "";
768766
position: absolute;
769767
top: 0;
@@ -775,7 +773,7 @@ h1.page + aside.toc.embedded {
775773
transform-origin: left;
776774
}
777775

778-
.source-toolbox .copy-button.clicked .copy-toast {
776+
.doc .source-toolbox .copy-button.clicked .copy-toast {
779777
opacity: 1;
780778
transition: none;
781779
}

0 commit comments

Comments
 (0)