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;
opacity: 0;
transition: 0.12s;
}
.clipboard-button > svg {
fill: var(--light);
filter: contrast(0.3);
}
.clipboard-button:hover {
cursor: pointer;
border-color: var(--primary);
}
.clipboard-button:hover > svg {
fill: var(--primary);
}
.clipboard-button:focus {
outline: 0;
}
.highlight {
position: relative;
}
.highlight:hover > .clipboard-button {
opacity: 1;
transition: 0.2s;
& > svg {
fill: var(--light);
filter: contrast(0.3);
}
&:hover {
cursor: pointer;
border-color: var(--primary);
& > svg {
fill: var(--primary);
}
}
&:focus {
outline: 0;
}
}
.highlight {
position: relative;
&:hover > .clipboard-button {
opacity: 1;
transition: 0.2s;
}
}