Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit 99dfc15

Browse files
committed
Update
1 parent 6d890ec commit 99dfc15

File tree

2 files changed

+36
-41
lines changed

2 files changed

+36
-41
lines changed

src/css/style.tables.css

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11

2-
/*
3-
tables
4-
*/
2+
/* table
3+
========================================================================== */
54
table {
65
border-collapse: collapse;
76
}
87

98
table td,
109
table th {
1110
font-weight: 600;
12-
padding: 4px 7px;
11+
padding: 4px 7px;
1312
}
1413

1514
table td {
@@ -21,81 +20,77 @@ table td:first-child {
2120
padding-left: 8px;
2221
}
2322

24-
/*
25-
default
26-
*/
23+
/* default
24+
========================================================================== */
2725
table tr.default th {
28-
border: none;
26+
border: 0;
2927
}
3028

3129
table tr.default td {
32-
border: none;
30+
border: 0;
3331
}
3432

3533
table tr.default:nth-child(even) {
36-
background-color: #f2f2f2;
34+
background: #f2f2f2;
3735
}
3836

3937
table tr.default:nth-child(odd) {
40-
background-color: white;
38+
background: #fff;
4139
}
4240

43-
/*
44-
primary
45-
*/
41+
/* primary
42+
========================================================================== */
4643
table tr.primary th {
47-
border: none;
44+
border: 0;
4845
}
4946

5047
table tr.primary td {
51-
border: none;
52-
color: #27667b;
48+
border: 0;
49+
color: #27667b;
5350
}
5451

5552
table tr.primary:nth-child(even) td {
56-
background-color: #c1edfb;
53+
background: #c1edfb;
5754
}
5855

5956
table tr.primary:nth-child(odd) td {
60-
background-color: white;
57+
background: #fff;
6158
}
6259

63-
/*
64-
success
65-
*/
60+
/* success
61+
========================================================================== */
6662
table tr.success th {
6763
border: none;
6864
}
6965

7066
table tr.success td {
71-
border: none;
72-
color: #277b35;
67+
border: 0;
68+
color: #277b35;
7369
}
7470

7571
table tr.success:nth-child(even) td {
76-
background-color: #bdf3c4;
72+
background: #bdf3c4;
7773
}
7874

7975
table tr.success:nth-child(odd) td {
80-
background-color: white;
76+
background: #fff;
8177
}
8278

83-
/*
84-
warning
85-
*/
79+
/* warning
80+
========================================================================== */
8681
table tr.warning th {
87-
border: none;
82+
border: 0;
8883
}
8984

9085
table tr.warning td {
91-
border: none;
92-
color: #7b2727;
86+
border: 0;
87+
color: #7b2727;
9388
}
9489

9590
table tr.warning:nth-child(even) td {
96-
background-color: #f5b9b9;
91+
background: #f5b9b9;
9792
}
9893

9994
table tr.warning:nth-child(odd) td {
100-
background-color: white;
95+
background: #fff;
10196
}

src/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
<link rel="stylesheet" href="css/style.tables.css">
1515
<style>
1616
body {
17-
background-color: #f4f4f4;
18-
font-family: 'Open Sans', sans-serif;
17+
background: #f4f4f4;
18+
font-family: 'Open Sans', sans-serif;
1919
}
2020

2121
.container {
2222
margin-bottom: 25px;
23-
margin-top: 25px;
24-
width: 765px;
23+
margin-top: 25px;
24+
width: 765px;
2525
}
2626

2727
.container .box {
28-
background-color: white;
29-
border-radius: 3px;
30-
padding: 15px;
28+
background: #fff;
29+
border-radius: 3px;
30+
padding: 15px;
3131
}
3232
</style>
3333
</head>

0 commit comments

Comments
 (0)