Update assets/styles/clipboard.scss

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
Geoffrey Garrett 2022-07-03 13:18:29 +02:00 committed by GitHub
parent b5df8a8c96
commit 37bd86d036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,26 +15,33 @@
z-index: 1; z-index: 1;
opacity: 0; opacity: 0;
transition: 0.12s; transition: 0.12s;
}
.clipboard-button > svg { & > svg {
fill: var(--light); fill: var(--light);
filter: contrast(0.3); filter: contrast(0.3);
} }
.clipboard-button:hover {
cursor: pointer; &:hover {
border-color: var(--primary); cursor: pointer;
} border-color: var(--primary);
.clipboard-button:hover > svg {
fill: var(--primary); & > svg {
} fill: var(--primary);
.clipboard-button:focus { }
outline: 0; }
}
.highlight { &:focus {
position: relative; outline: 0;
} }
.highlight:hover > .clipboard-button {
opacity: 1;
transition: 0.2s;
} }
.highlight {
position: relative;
&:hover > .clipboard-button {
opacity: 1;
transition: 0.2s;
}
}