Skip to content

Commit 009202c

Browse files
bart-krakowskijedrzejchalubek
authored andcommitted
feat(): Introduce refactored table (#79)
1 parent 9c34baf commit 009202c

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed

src/_sass/elements/_table.scss

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,60 @@
11
table {
2+
border-collapse: collapse;
23
text-align: left;
34

45
td {
56
color: color(secondary-dark);
6-
word-break: break-all;
7-
8-
@include breakpoint(medium up) {
9-
word-break: keep-all;
10-
}
7+
vertical-align: top;
118
}
129

1310
thead {
14-
display: block;
1511
font-size: 14px;
1612
font-weight: 500;
17-
background-color: color(gray);
13+
background-color: color(gray-light);
1814
border-radius: 4px;
1915
font-weight: 500;
2016
line-height: 1.71;
2117
padding: 12px;
2218
}
2319

2420
tbody {
25-
display: block;
2621
font-size: 15px;
2722
line-height: 1.73;
2823
padding: 12px;
2924
}
25+
26+
th, td {
27+
padding: 5px 25px;
28+
29+
&:first-of-type {
30+
padding-left: 15px;
31+
}
32+
33+
&:last-of-type {
34+
padding-right: 15px;
35+
}
36+
37+
@include breakpoint(medium up) {
38+
padding: 10px 35px;
39+
40+
&:first-of-type {
41+
padding-left: 5px;
42+
}
43+
44+
&:last-of-type {
45+
padding-right: 5px;
46+
}
47+
}
48+
}
49+
50+
th {
51+
padding-top: 13px;
52+
padding-bottom: 13px;
53+
}
54+
55+
tbody {
56+
tr {
57+
border-bottom: 1px solid rgba(color(secondary), 0.1);
58+
}
59+
}
3060
}

0 commit comments

Comments
 (0)