|
@@ -102,6 +102,40 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.copy-code-button {
|
|
|
+ float: right;
|
|
|
+ margin-top: 0.5em;
|
|
|
+ margin-left: -2.6em;
|
|
|
+ margin-right: 3em;
|
|
|
+
|
|
|
+ background-color: get-light-color('text-color') !important;
|
|
|
+ color: get-light-color('inverse-text-color') !important;
|
|
|
+ padding: 0.25rem 0.5rem;
|
|
|
+ line-height: 1.5;
|
|
|
+ border-radius: 0.2rem;
|
|
|
+ border: none;
|
|
|
+
|
|
|
+ &:hover,
|
|
|
+ &:focus {
|
|
|
+ background-color: get-light-color('accent-color') !important;
|
|
|
+ color: get-light-color('text-over-accent-color') !important;
|
|
|
+ @include transition();
|
|
|
+ }
|
|
|
+ &:focus {
|
|
|
+ &::before {
|
|
|
+ content: 'Copied!';
|
|
|
+ position: absolute;
|
|
|
+ padding: 0.3em;
|
|
|
+ border-radius: 0.2em;
|
|
|
+ margin-left: -5em;
|
|
|
+ margin-top: -0.2em;
|
|
|
+ background-color: get-light-color('accent-color') !important;
|
|
|
+ color: get-light-color('text-over-accent-color') !important;
|
|
|
+ @include transition();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
html[data-theme='dark'] {
|
|
|
.btn-dark {
|
|
|
background-color: get-dark-color('accent-color') !important;
|
|
@@ -169,4 +203,15 @@ html[data-theme='dark'] {
|
|
|
background-color: get-dark-color('hover-over-accent-color') !important;
|
|
|
}
|
|
|
}
|
|
|
+ .copy-code-button {
|
|
|
+ background-color: get-dark-color('bg-primary') !important;
|
|
|
+ color: get-dark-color('muted-text-color') !important;
|
|
|
+
|
|
|
+ &:hover,
|
|
|
+ &:focus,
|
|
|
+ &::before {
|
|
|
+ background-color: get-dark-color('accent-color') !important;
|
|
|
+ color: get-dark-color('text-over-accent-color') !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|