Skip to content

Commit

Permalink
Fix table style
Browse files Browse the repository at this point in the history
  • Loading branch information
rpratama123 committed Jun 20, 2023
1 parent 3edb5cd commit c7c5e9d
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -355,37 +355,26 @@ pre {
}

table {
margin-bottom: 30px;
width: 100%;
font-family: 'Open Sans', Arial, sans-serif;
font-size: 15px;
border-collapse: collapse;
overflow-x: auto;
border: 01px solid #dddddd;

& + table {
margin-top: 30px;
}

tr {
&:nth-child(even) {
background-color: #F2F2F2;
vertical-align: middle;
text-align: center;
}
}
width: 100%;
}

th, td {
padding: 6px 11px;
}
table td, table th {
border: 1px solid #ddd;
padding: 6px;
}

th {
background-color: #1A1A1A;
border: 01px solid #dddddd;
color: white;
}
table tr:nth-child(even){background-color: #F2F2F2;}

td {
border: 01px solid #dddddd;
}
table th {
padding-top: 10px;
padding-bottom: 10px;
text-align: left;
background-color: #1A1A1A;
color: white;
}

@include mobile {
display: block;
Expand Down

0 comments on commit c7c5e9d

Please sign in to comment.