hexo-theme-stellar/source/css/_plugins/copycode.styl

27 lines
451 B
Stylus
Raw Normal View History

2023-05-09 12:54:34 +08:00
.highlight
position: relative
.highlight .code .copy-btn
position: absolute
top: 0
right: 0
padding: 4px 0.5rem
opacity: 0
font-weight: 700
color: var(--theme)
cursor: pointer
.highlight:hover .copy-btn
opacity 0.25
.highlight .code .copy-btn:hover
color: var(--theme)
opacity: 0.75
.highlight .code .copy-btn.success
color: $c-green
opacity: 0.75
.highlight .code .copy-btn.warning
color: $c-orange
opacity: 0.75