naive-ui/demo/styles/markdown.scss

63 lines
1.9 KiB
SCSS
Raw Normal View History

2019-09-29 17:54:20 +08:00
@import '../../styles/mixins/config.scss';
@import '../../styles/mixins/mixins.scss';
2019-09-29 17:54:20 +08:00
@include themes-mixin {
@if $theme == 'dark' {
.markdown {
table {
font-size: 14px;
width: 100%;
2019-10-10 22:38:29 +08:00
border: 1px solid $--n-divider-color;
2019-09-29 17:54:20 +08:00
border-radius: 6px;
text-align: left;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier, color .3s $--n-ease-in-out-cubic-bezier;
2019-09-29 17:54:20 +08:00
// background-color: $--n-alpha-table-body-color;
th {
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
2019-10-10 22:38:29 +08:00
background-color: $--n-table-header-color;
// background-clip: padding-box;
2019-09-29 17:54:20 +08:00
text-align: inherit;
padding: 14px 12px;
vertical-align: inherit;
font-style: none;
font-weight: 400;
text-transform: none;
border-left: none;
2019-12-23 16:48:49 +08:00
font-weight: 500;
2019-10-10 22:38:29 +08:00
border-bottom: 1px solid $--n-divider-color;
2019-09-29 17:54:20 +08:00
&:not(:last-child) {
2019-10-10 22:38:29 +08:00
border-right: 1px solid $--n-table-header-color;
2019-09-29 17:54:20 +08:00
}
}
td {
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
2019-10-10 22:38:29 +08:00
background-color: $--n-table-body-color;
// background-clip: padding-box;
2019-09-29 17:54:20 +08:00
padding: 12px;
}
}
&.footer-part {
margin-top: 16px;
}
}
2019-09-29 17:54:20 +08:00
} @else {
2019-12-12 18:36:30 +08:00
.n-light-theme .markdown {
2019-09-29 17:54:20 +08:00
table {
2019-10-11 00:05:18 +08:00
border: 1px solid $--n-divider-color;
2019-09-29 17:54:20 +08:00
th {
2019-10-10 22:38:29 +08:00
background: rgb(250, 250, 250);
border-bottom: 1px solid $--n-divider-color;
&:not(:last-child) {
border-right: 1px solid rgb(250, 250, 250);
}
2019-09-29 17:54:20 +08:00
}
td {
background-color: white;
}
}
}
}
}