Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 50b7182

Browse files
committed
Tables: Changing folder for table
1 parent 75704a7 commit 50b7182

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

Diff for: scss/atoms/tables/_tables.scss

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
* ==========================================================================
3+
* Typography
4+
* ==========================================================================
5+
*/
6+
7+
table {
8+
width: 100%;
9+
margin-bottom: em( 20px, 16px );
10+
font-size: em( 16px );
11+
text-align: left;
12+
}
13+
14+
thead {
15+
border-bottom: 1px solid #eee;
16+
17+
> tr > th {
18+
border-top: 0;
19+
}
20+
}
21+
22+
td {
23+
border-top: 1px solid #eee;
24+
padding: em( 12px, 16px );
25+
}
26+
27+
th {
28+
border-top: 1px solid #eee;
29+
padding: em( 12px, 12px );
30+
color: #666;
31+
font-weight: 400;
32+
font-size: em( 12px, 16px );
33+
white-space: nowrap;
34+
}
35+
36+
table {
37+
.active {
38+
background-color: #f5f5f5;
39+
}
40+
.success {
41+
background-color: #dff0d8;
42+
}
43+
.warning {
44+
background-color: #fcf8e3;
45+
}
46+
.danger {
47+
background-color: #f2dede;
48+
}
49+
.info {
50+
background-color: #d9edf7;
51+
}
52+
}
53+
54+
.striped-table>tbody>tr:nth-of-type(odd), {
55+
background-color: #f2f2f2;
56+
}
57+
58+
.table--responsive {
59+
position: relative;
60+
z-index: 1;
61+
margin-bottom: em( 20px );
62+
border: 0;
63+
background: #fff no-repeat;
64+
background-image: radial-gradient( farthest-side at 0 50%,rgba( 0, 0, 0, .2 ), transparent ), radial-gradient( farthest-side at 100% 50%, rgba( 0, 0, 0, .2 ), transparent );
65+
background-position: 0 0, 100% 0;
66+
background-size: 10px 100%;
67+
overflow: auto;
68+
69+
table {
70+
position: relative;
71+
margin-bottom: 0;
72+
73+
&:before,
74+
&:after {
75+
content: "";
76+
position: absolute;
77+
top: 0;
78+
bottom: 0;
79+
left: 0;
80+
z-index: -1;
81+
margin: 0 -30px 0 0;
82+
width: 30px;
83+
background: linear-gradient( to right, #fff, #fff 30%, rgba( 255, 255, 255, 0 ) );
84+
}
85+
&:after {
86+
left: auto;
87+
right: 0;
88+
margin: 0 0 0 -30px;
89+
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ), #fff 70%, #fff );
90+
}
91+
}
92+
}

0 commit comments

Comments
 (0)