This repository was archived by the owner on Dec 11, 2021. It is now read-only.
File tree 3 files changed +45
-11
lines changed
3 files changed +45
-11
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * ==========================================================================
3
+ * Table mixins
4
+ * ==========================================================================
5
+ */
Original file line number Diff line number Diff line change 1
1
/*
2
2
* ==========================================================================
3
- * Typography
3
+ * Tables
4
4
* ==========================================================================
5
5
*/
6
6
7
+ @import
8
+ " dist/chassis" ,
9
+ " mixins" ;
10
+
7
11
table {
8
12
width : 100% ;
9
- margin-bottom : em ( 20 px , 16 px );
10
- font-size : em ( 16 px );
13
+ margin : map-get ( $table-base , margin );
14
+ font-size : map-get ( $table-base , font-size );
11
15
text-align : left ;
12
16
}
13
17
14
18
thead {
15
- border-bottom : 1px solid #eee ;
16
-
19
+ border-bottom : map-get ($table-base , border );
17
20
> tr > th {
18
21
border-top : 0 ;
19
22
}
20
23
}
21
24
22
25
td {
23
- border-top : 1 px solid #eee ;
24
- padding : em ( 12 px , 16 px );
26
+ border-top : map-get ( $table-base , border ) ;
27
+ padding : map-get ( $table-base , padding );
25
28
}
26
29
27
30
th {
28
- border-top : 1 px solid #eee ;
29
- padding : em ( 12 px , 12 px );
30
- color : #666 ;
31
+ border-top : map-get ( $table-base , border ) ;
32
+ padding : map-get ( $table-base , padding );
33
+ color : map-get ( $table-base , color ) ;
31
34
font-weight : 400 ;
32
- font-size : em ( 12 px , 16 px );
35
+ font-size : map-get ( $table-base , thead-font-size );
33
36
white-space : nowrap ;
34
37
}
35
38
Original file line number Diff line number Diff line change
1
+ ( function ( root , factory ) {
2
+ if ( typeof define === "function" && define . amd ) {
3
+ define ( [ "./chassis" ] , factory ) ;
4
+ } else if ( typeof exports === "object" ) {
5
+ module . exports = factory ( require ( "./chassis" ) ) ;
6
+ } else {
7
+ root . chassis = factory ( root . chassis ) ;
8
+ }
9
+ } ( this , function ( chassis ) {
10
+
11
+ chassis . table = {
12
+ "table-base" : {
13
+ name : "Table Element" ,
14
+ value : {
15
+ "margin" : "0 0 1em" ,
16
+ "font-size" : "16px" ,
17
+ "thead-font-size" : "12px" ,
18
+ "border" : "1px solid #eee" ,
19
+ "padding" : "12px" ,
20
+ "color" : "#666"
21
+ }
22
+ } ,
23
+ } ;
24
+
25
+ return chassis ;
26
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments