@@ -120,6 +120,29 @@ module.exports = {
120120 'pre code::after' : {
121121 content : '""' ,
122122 } ,
123+ table : {
124+ width : '100%' ,
125+ tableLayout : 'fixed' ,
126+ textAlign : 'left' ,
127+ marginTop : em ( 32 , 16 ) ,
128+ marginBottom : em ( 32 , 16 ) ,
129+ } ,
130+ thead : {
131+ color : defaultTheme . colors . gray [ 900 ] ,
132+ fontWeight : '600' ,
133+ borderBottomWidth : '2px' ,
134+ borderBottomColor : defaultTheme . colors . gray [ 300 ] ,
135+ } ,
136+ 'thead th' : {
137+ verticalAlign : 'bottom' ,
138+ } ,
139+ 'tbody tr' : {
140+ borderBottomWidth : '1px' ,
141+ borderBottomColor : defaultTheme . colors . gray [ 300 ] ,
142+ } ,
143+ 'tbody td' : {
144+ verticalAlign : 'top' ,
145+ } ,
123146 } ,
124147 {
125148 fontSize : rem ( 16 ) ,
@@ -265,6 +288,33 @@ module.exports = {
265288 'h4 + *' : {
266289 marginTop : '0' ,
267290 } ,
291+ table : {
292+ fontSize : em ( 14 , 16 ) ,
293+ lineHeight : round ( 24 / 14 ) ,
294+ } ,
295+ 'thead th' : {
296+ paddingRight : em ( 12 , 14 ) ,
297+ paddingBottom : em ( 8 , 14 ) ,
298+ paddingLeft : em ( 12 , 14 ) ,
299+ } ,
300+ 'thead th:first-child' : {
301+ paddingLeft : '0' ,
302+ } ,
303+ 'thead th:last-child' : {
304+ paddingRight : '0' ,
305+ } ,
306+ 'tbody td' : {
307+ paddingTop : em ( 8 , 14 ) ,
308+ paddingRight : em ( 12 , 14 ) ,
309+ paddingBottom : em ( 8 , 14 ) ,
310+ paddingLeft : em ( 12 , 14 ) ,
311+ } ,
312+ 'tbody td:first-child' : {
313+ paddingLeft : '0' ,
314+ } ,
315+ 'tbody td:last-child' : {
316+ paddingRight : '0' ,
317+ } ,
268318 } ,
269319 ] ,
270320 } ,
@@ -413,6 +463,33 @@ module.exports = {
413463 'h4 + *' : {
414464 marginTop : '0' ,
415465 } ,
466+ table : {
467+ fontSize : em ( 12 , 14 ) ,
468+ lineHeight : round ( 18 / 12 ) ,
469+ } ,
470+ 'thead th' : {
471+ paddingRight : em ( 12 , 12 ) ,
472+ paddingBottom : em ( 8 , 12 ) ,
473+ paddingLeft : em ( 12 , 12 ) ,
474+ } ,
475+ 'thead th:first-child' : {
476+ paddingLeft : '0' ,
477+ } ,
478+ 'thead th:last-child' : {
479+ paddingRight : '0' ,
480+ } ,
481+ 'tbody td' : {
482+ paddingTop : em ( 8 , 12 ) ,
483+ paddingRight : em ( 12 , 12 ) ,
484+ paddingBottom : em ( 8 , 12 ) ,
485+ paddingLeft : em ( 12 , 12 ) ,
486+ } ,
487+ 'tbody td:first-child' : {
488+ paddingLeft : '0' ,
489+ } ,
490+ 'tbody td:last-child' : {
491+ paddingRight : '0' ,
492+ } ,
416493 } ,
417494 } ,
418495 lg : {
@@ -560,6 +637,33 @@ module.exports = {
560637 'h4 + *' : {
561638 marginTop : '0' ,
562639 } ,
640+ table : {
641+ fontSize : em ( 16 , 18 ) ,
642+ lineHeight : round ( 24 / 16 ) ,
643+ } ,
644+ 'thead th' : {
645+ paddingRight : em ( 12 , 16 ) ,
646+ paddingBottom : em ( 12 , 16 ) ,
647+ paddingLeft : em ( 12 , 16 ) ,
648+ } ,
649+ 'thead th:first-child' : {
650+ paddingLeft : '0' ,
651+ } ,
652+ 'thead th:last-child' : {
653+ paddingRight : '0' ,
654+ } ,
655+ 'tbody td' : {
656+ paddingTop : em ( 12 , 16 ) ,
657+ paddingRight : em ( 12 , 16 ) ,
658+ paddingBottom : em ( 12 , 16 ) ,
659+ paddingLeft : em ( 12 , 16 ) ,
660+ } ,
661+ 'tbody td:first-child' : {
662+ paddingLeft : '0' ,
663+ } ,
664+ 'tbody td:last-child' : {
665+ paddingRight : '0' ,
666+ } ,
563667 } ,
564668 } ,
565669 xl : {
@@ -707,6 +811,33 @@ module.exports = {
707811 'h4 + *' : {
708812 marginTop : '0' ,
709813 } ,
814+ table : {
815+ fontSize : em ( 18 , 20 ) ,
816+ lineHeight : round ( 28 / 18 ) ,
817+ } ,
818+ 'thead th' : {
819+ paddingRight : em ( 12 , 18 ) ,
820+ paddingBottom : em ( 16 , 18 ) ,
821+ paddingLeft : em ( 12 , 18 ) ,
822+ } ,
823+ 'thead th:first-child' : {
824+ paddingLeft : '0' ,
825+ } ,
826+ 'thead th:last-child' : {
827+ paddingRight : '0' ,
828+ } ,
829+ 'tbody td' : {
830+ paddingTop : em ( 16 , 18 ) ,
831+ paddingRight : em ( 12 , 18 ) ,
832+ paddingBottom : em ( 16 , 18 ) ,
833+ paddingLeft : em ( 12 , 18 ) ,
834+ } ,
835+ 'tbody td:first-child' : {
836+ paddingLeft : '0' ,
837+ } ,
838+ 'tbody td:last-child' : {
839+ paddingRight : '0' ,
840+ } ,
710841 } ,
711842 } ,
712843 '2xl' : {
@@ -854,6 +985,33 @@ module.exports = {
854985 'h4 + *' : {
855986 marginTop : '0' ,
856987 } ,
988+ table : {
989+ fontSize : em ( 20 , 24 ) ,
990+ lineHeight : round ( 28 / 20 ) ,
991+ } ,
992+ 'thead th' : {
993+ paddingRight : em ( 12 , 20 ) ,
994+ paddingBottom : em ( 16 , 20 ) ,
995+ paddingLeft : em ( 12 , 20 ) ,
996+ } ,
997+ 'thead th:first-child' : {
998+ paddingLeft : '0' ,
999+ } ,
1000+ 'thead th:last-child' : {
1001+ paddingRight : '0' ,
1002+ } ,
1003+ 'tbody td' : {
1004+ paddingTop : em ( 16 , 20 ) ,
1005+ paddingRight : em ( 12 , 20 ) ,
1006+ paddingBottom : em ( 16 , 20 ) ,
1007+ paddingLeft : em ( 12 , 20 ) ,
1008+ } ,
1009+ 'tbody td:first-child' : {
1010+ paddingLeft : '0' ,
1011+ } ,
1012+ 'tbody td:last-child' : {
1013+ paddingRight : '0' ,
1014+ } ,
8571015 } ,
8581016 } ,
8591017}
0 commit comments