This repository was archived by the owner on Dec 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +45
-11
lines changed Expand file tree Collapse file tree 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 11/*
22* ==========================================================================
3- * Typography
3+ * Tables
44* ==========================================================================
55*/
66
7+ @import
8+ " dist/chassis" ,
9+ " mixins" ;
10+
711table {
812 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 );
1115 text-align : left ;
1216}
1317
1418thead {
15- border-bottom : 1px solid #eee ;
16-
19+ border-bottom : map-get ($table-base , border );
1720 > tr > th {
1821 border-top : 0 ;
1922 }
2023}
2124
2225td {
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 );
2528}
2629
2730th {
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 ) ;
3134 font-weight : 400 ;
32- font-size : em ( 12 px , 16 px );
35+ font-size : map-get ( $table-base , thead-font-size );
3336 white-space : nowrap ;
3437}
3538
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