add missing .doc namespace selector for items in source toolbox
authorDan Allen <dan@opendevise.com>
Mon, 4 Jan 2021 09:48:35 +0000 (02:48 -0700)
committerDan Allen <dan@opendevise.com>
Mon, 4 Jan 2021 09:48:35 +0000 (02:48 -0700)
src/css/doc.css

index cbae20e..48abaa9 100644 (file)
@@ -626,17 +626,15 @@ h1.page + aside.toc.embedded {
   height: 1em;
 }
 
-.source-toolbox .copy-button * {
+.doc .source-toolbox .copy-button svg {
   flex: none;
-}
-
-.source-toolbox .copy-button svg {
   fill: currentColor;
   width: inherit;
   height: inherit;
 }
 
-.source-toolbox .copy-toast {
+.doc .source-toolbox .copy-toast {
+  flex: none;
   position: relative;
   display: inline-flex;
   justify-content: center;
@@ -650,7 +648,7 @@ h1.page + aside.toc.embedded {
   transition: opacity 0.5s ease 0.75s;
 }
 
-.source-toolbox .copy-toast::after {
+.doc .source-toolbox .copy-toast::after {
   content: "";
   position: absolute;
   top: 0;
@@ -662,7 +660,7 @@ h1.page + aside.toc.embedded {
   transform-origin: left;
 }
 
-.source-toolbox .copy-button.clicked .copy-toast {
+.doc .source-toolbox .copy-button.clicked .copy-toast {
   opacity: 1;
   transition: none;
 }