2019-09-23 15:04:57 +08:00
|
|
|
@import '../../styles/mixins/config.scss';
|
|
|
|
@import '../../styles/mixins/mixins.scss';
|
2019-09-17 19:24:39 +08:00
|
|
|
|
2019-09-20 00:22:55 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(code-box) {
|
2019-10-09 18:11:54 +08:00
|
|
|
color: $--n-secondary-text-color;
|
2019-09-29 17:54:20 +08:00
|
|
|
background-color: $--n-card-color;
|
|
|
|
border: 1px solid $--n-divider-color;
|
|
|
|
background-clip: padding-box;
|
2019-10-09 18:11:54 +08:00
|
|
|
@include e(title) {
|
|
|
|
color: $--n-text-color;
|
|
|
|
}
|
2019-09-20 00:22:55 +08:00
|
|
|
@include e(code) {
|
2019-09-27 16:02:20 +08:00
|
|
|
border-top: 1px solid $--n-divider-color;
|
2019-09-25 12:19:57 +08:00
|
|
|
code {
|
|
|
|
font-family: 'FiraCode';
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2019-09-17 19:24:39 +08:00
|
|
|
}
|
2019-09-20 00:22:55 +08:00
|
|
|
@include once {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding-top: 16px;
|
|
|
|
transition: background-color .3s $default-cubic-bezier, color .3s $default-cubic-bezier;
|
|
|
|
.n-divider__content {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
@include e(title) {
|
|
|
|
position: relative;
|
|
|
|
margin: 0 24px;
|
2019-09-22 22:59:11 +08:00
|
|
|
font-size: 18px;
|
2019-09-20 00:22:55 +08:00
|
|
|
font-weight: bold;
|
|
|
|
@include b(button) {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include e(content) {
|
|
|
|
margin: 12px 24px 0 24px;
|
|
|
|
p {
|
|
|
|
font-size: 14px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include e(view) {
|
2019-09-22 22:59:11 +08:00
|
|
|
margin: 16px 24px 12px 24px;
|
2019-09-20 00:22:55 +08:00
|
|
|
}
|
|
|
|
@include e(code) {
|
|
|
|
padding: 0 24px 12px 24px;
|
|
|
|
pre {
|
|
|
|
margin-top: 18px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
}
|
2019-09-17 19:24:39 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-25 12:19:57 +08:00
|
|
|
code, pre {
|
|
|
|
font-family: 'FiraCode';
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2019-09-20 00:22:55 +08:00
|
|
|
}
|