custumize table style

This commit is contained in:
piharpi
2020-04-02 19:56:17 +07:00
parent fc70b0feaa
commit 442e9f8c99
3 changed files with 26 additions and 9 deletions

View File

@@ -291,24 +291,26 @@ sup {
} }
// Table // Table
.overflow-table {
overflow-x: auto;
}
table { table {
margin: 0 auto; margin-top: $spacing-half;
border-collapse: collapse; border-collapse: collapse;
background: $white;
font-size: $small-font-size; font-size: $small-font-size;
th { thead {
font-weight: $bold-weight; font-weight: $bold-weight;
background: #f5f5f5; color: $black;
text-align: left; border-bottom: 1px solid $light;
border-bottom: 2px solid #f5f5f5;
} }
th, th,
td, td,
tr { tr {
border: 1px solid $light; border: 1px solid $light;
padding: 4px 8px; padding: 2px 7px;
} }
} }

View File

@@ -12,6 +12,20 @@ body[data-theme="dark"] {
color: $dark-white; color: $dark-white;
} }
// Table
table {
thead {
color: $dark-white;
border-color: $dark-light;
}
th,
td,
tr {
border-color: $dark-light;
}
}
// Post // Post
.page-content { .page-content {
a { a {

View File

@@ -8,9 +8,10 @@ code {
word-spacing: normal; word-spacing: normal;
word-break: normal; word-break: normal;
word-wrap: normal; word-wrap: normal;
font-size: 16px; font-size: inherit;
&.highlighter-rouge { &.highlighter-rouge {
padding: 1px 4px; padding: 1px 3px;
position: relative; position: relative;
top: -1px; top: -1px;
background-color: #f6f6f6; background-color: #f6f6f6;