mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
32 lines
564 B
SCSS
32 lines
564 B
SCSS
.copy-code-button {
|
|
border: none;
|
|
background-color: transparent;
|
|
outline: 0;
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
background-color: var(--c-bg-light);
|
|
color: var(--c-brand);
|
|
text-align: center;
|
|
cursor: pointer;
|
|
|
|
div[class*='language-'] & {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 99;
|
|
opacity: 0;
|
|
transition: opacity var(--t-color);
|
|
}
|
|
|
|
div[class*='language-']:hover & {
|
|
opacity: 1;
|
|
}
|
|
|
|
.icon-success {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|