Added clipboard active color to palettes

This commit is contained in:
squidfunk
2017-05-31 16:50:11 +02:00
parent 0253d6e6c8
commit bca2077c1e
7 changed files with 14 additions and 13 deletions

View File

@@ -103,11 +103,6 @@ button[data-md-color-accent] {
background-color: $color;
}
// Copy to clipboard button overlay.
.codehilite:hover .clip-btn:hover {
background-color: $color;
}
// Current or hovered link
.md-nav__link:active,
.md-nav__item--active > .md-nav__link {
@@ -200,11 +195,17 @@ button[data-md-color-accent] {
}
// Hovered scrollbar thumb
pre::-webkit-scrollbar-thumb:hover,
.codehilite::-webkit-scrollbar-thumb:hover {
pre code::-webkit-scrollbar-thumb:hover,
.codehilite pre::-webkit-scrollbar-thumb:hover {
background-color: $color;
}
// Copy to clipboard active icon
.md-clipboard:hover::before,
.md-clipboard:active::before {
color: $color;
}
// Active or targeted back reference
.footnote li:hover .footnote-backref:hover,
.footnote li:target .footnote-backref {

View File

@@ -67,8 +67,8 @@
opacity: 0.25;
// Show on container hover
.codehilite:hover &,
.highlight:hover & {
pre:hover &,
.codehilite:hover & {
opacity: 1;
}
}