Skip to content

Commit

Permalink
fix: prism copy button style
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 18, 2023
1 parent f90a8d5 commit a16cb48
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/styles/prism-aurora-future.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,27 @@ div.code-toolbar > .toolbar button {
}
div.code-toolbar > .toolbar a,
div.code-toolbar > .toolbar button.copy-to-clipboard-button {
color: var(--foreground);
font-size: 0.8em;
padding: 0.5em;
background: var(--comment);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: var(--text-normal);
font-size: 0.75rem;
height: 2rem;
width: 4rem;
background: var(--background-secondary);
border-radius: 0.5em;
transition: 0.2s transform linear;
}
div.code-toolbar > .toolbar a:focus,
div.code-toolbar > .toolbar a:hover,
div.code-toolbar > .toolbar button:focus,
div.code-toolbar > .toolbar button:hover,
div.code-toolbar > .toolbar span:focus,
div.code-toolbar > .toolbar span:hover {
color: #ffffff;
text-decoration: none;
opacity: 0.5;
background-color: var(--purple);
color: var(--text-bright);
transform: scale(1.1);
}
@media print {
code[class*='language-'],
Expand Down

0 comments on commit a16cb48

Please sign in to comment.