Skip to content

Commit

Permalink
feat: add table css from vuepress (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
posva authored Sep 16, 2020
1 parent 901bd4e commit 8435e36
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/client/theme-default/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ body {
}

.theme {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
Expand Down Expand Up @@ -58,7 +59,7 @@ aside {

@media screen and (max-width: 719px) {
aside {
transition: transform .2s ease;
transition: transform 0.2s ease;
transform: translateX(-100%);
}

Expand All @@ -75,7 +76,7 @@ aside {
display: none;
}

.sidebar-mask.sidebar-open{
.sidebar-mask.sidebar-open {
display: block;
}

Expand Down Expand Up @@ -156,3 +157,21 @@ ul,
ol {
padding-left: 1.25em;
}

table {
border-collapse: collapse;
margin: 1rem 0;
display: block;
overflow-x: auto;
}
tr {
border-top: 1px solid #dfe2e5;
}
tr:nth-child(2n) {
background-color: #f6f8fa;
}
th,
td {
border: 1px solid #dfe2e5;
padding: 0.6em 1em;
}

0 comments on commit 8435e36

Please sign in to comment.