Skip to content

Commit

Permalink
swc.css: Add striped rows to tables
Browse files Browse the repository at this point in the history
Now the style is matching closely `.table-bordered` from Bootstrap.
I decided to leave the header row background blank because it was too
close in color to `#F9F9F9` - our new rule for even rows in the table.

I also increased horizontal padding by 5px on both sides, because now
that we have vertical borders it was too cramped.

Additionaly I introduced borders for every cell in the table.
  • Loading branch information
Piotr Banaszkiewicz committed Feb 14, 2015
1 parent f92d323 commit 7e4bc12
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions css/swc.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,17 +466,31 @@ section.content {
font-size: 40pt;
}

thead .header {
background: rgba(0, 0, 0, 0.15);
table {
margin-bottom: 15px;
}

table th, table td {
padding: 5px;
padding: 5px 10px;
}

table {
border: 1px solid rgba(0, 0, 0, 0.15);
margin-bottom: 15px;
table > thead > .header {
background: transparent;
}

table > thead > tr > td, table > thead > tr > th,
table > tbody > tr > td, table > tbody > tr > th,
table > tfoot > tr > td, table > tfoot > tr > th {
border: 1px solid #DDD;
}

table > thead > tr > th,
table > thead > tr > td {
border-bottom-width: 2px;
}

table tbody > tr:nth-of-type(2n+1) {
background-color: #F9F9F9;
}

#header-text {
Expand Down

0 comments on commit 7e4bc12

Please sign in to comment.