naive-ui/demo/styles/markdown.scss
2019-12-23 16:48:49 +08:00

63 lines
1.9 KiB
SCSS

@import '../../styles/mixins/config.scss';
@import '../../styles/mixins/mixins.scss';
@include themes-mixin {
@if $theme == 'dark' {
.markdown {
table {
font-size: 14px;
width: 100%;
border: 1px solid $--n-divider-color;
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;
// 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;
background-color: $--n-table-header-color;
// background-clip: padding-box;
text-align: inherit;
padding: 14px 12px;
vertical-align: inherit;
font-style: none;
font-weight: 400;
text-transform: none;
border-left: none;
font-weight: 500;
border-bottom: 1px solid $--n-divider-color;
&:not(:last-child) {
border-right: 1px solid $--n-table-header-color;
}
}
td {
transition: background-color .3s $--n-ease-in-out-cubic-bezier, border-color .3s $--n-ease-in-out-cubic-bezier;
background-color: $--n-table-body-color;
// background-clip: padding-box;
padding: 12px;
}
}
&.footer-part {
margin-top: 16px;
}
}
} @else {
.n-light-theme .markdown {
table {
border: 1px solid $--n-divider-color;
th {
background: rgb(250, 250, 250);
border-bottom: 1px solid $--n-divider-color;
&:not(:last-child) {
border-right: 1px solid rgb(250, 250, 250);
}
}
td {
background-color: white;
}
}
}
}
}