mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:26:22 +00:00
d5d0e1036b
* docs: add docs * ignore dumi theme test * fix: error TS2717: Subsequent property declarations must have the same type. * update docs * deploy gh-pages * plugins docs * hash & cname * exportStatic * ssr * vercel * vercel * fix: deploy vercel * Delete vercel.json * docs * fix APP_DIST * on master branch
59 lines
975 B
Plaintext
Executable File
59 lines
975 B
Plaintext
Executable File
@import (reference) '../style/variables.less';
|
|
|
|
.@{prefix}-code-block {
|
|
position: relative;
|
|
background-color: @c-light-bg;
|
|
|
|
& + &,
|
|
& + table {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
> pre[class*='language-'] {
|
|
margin: 0;
|
|
background: transparent;
|
|
|
|
.token-line:not(:last-child) .plain:empty {
|
|
display: inline-block;
|
|
min-height: 1em;
|
|
}
|
|
}
|
|
|
|
&-copy-btn {
|
|
position: absolute;
|
|
top: 1.1em;
|
|
right: 1em;
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 0;
|
|
outline: none;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
transition: opacity 0.2s, background 0.2s;
|
|
|
|
&:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
&:active {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
&[data-status='ready'] {
|
|
background-position: -54px 0;
|
|
}
|
|
|
|
&[data-status='copied'] {
|
|
opacity: 1;
|
|
pointer-events: none;
|
|
background-position: -54px -16px;
|
|
}
|
|
}
|
|
|
|
&:not(:hover) &-copy-btn {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
}
|