22 Responsive Table CSS
33 ========================================================================== */
44
5- table .tableblock * {
5+ table .tableblock ,
6+ table .tableblock thead ,
7+ table .tableblock tbody ,
8+ table .tableblock tfoot ,
9+ table .tableblock td ,
10+ table .tableblock th {
611 font-family : "Source Sans Pro" , sans-serif;
712}
813
914table .tableblock {
1015 display : block;
1116 width : 100% ;
12- margin : 1em 0 ;
1317 border-spacing : 0 ;
1418}
1519
@@ -30,16 +34,7 @@ table.tableblock tbody {
3034 overflow-x : auto;
3135}
3236
33- table .tableblock td ,
34- table .tableblock th {
35- line-height : 1.5em ;
36- box-sizing : border-box;
37- overflow-x : hidden;
38- overflow-y : auto;
39- color : var (--color-brand-gray1 );
40- }
41-
42- table .tableblock th {
37+ table .tableblock thead th {
4338 padding-left : var (--base-small-space );
4439 padding-top : var (--base-space );
4540 padding-bottom : var (--base-space );
@@ -58,7 +53,8 @@ table.tableblock tbody tr {
5853 background: var(--color-brand-gray7);
5954 } */
6055
61- table .tableblock > tbody td {
56+ table .tableblock > tbody td ,
57+ table .tableblock > tbody th {
6258 display : block;
6359 border-bottom : 1px solid var (--color-brand-gray8 );
6460 padding-left : var (--base-small-space );
@@ -115,7 +111,6 @@ table.table-tutorial tr td:last-child {
115111 table .tableblock {
116112 display : table;
117113 position : relative;
118- /* margin-top: 2.5rem; */
119114 }
120115
121116 table .tableblock caption .title {
@@ -124,8 +119,7 @@ table.table-tutorial tr td:last-child {
124119 top : -30px ;
125120 }
126121
127- div + table .tableblock ,
128- div .paragraph + table .tableblock ,
122+ div + table .tableblock .caption-table ,
129123 div .ulist + table .tableblock ,
130124 table .tableblock + table .tableblock {
131125 margin-top : 2.5rem ;
@@ -150,7 +144,8 @@ table.table-tutorial tr td:last-child {
150144 }
151145
152146 table .tableblock th ,
153- table .tableblock tbody td {
147+ table .tableblock tbody td ,
148+ table .tableblock > tbody th {
154149 display : table-cell;
155150 }
156151
@@ -171,6 +166,15 @@ table.table-tutorial tr td:last-child {
171166}
172167
173168@media screen and (max-width : 767px ) {
169+ table .tableblock td ,
170+ table .tableblock th {
171+ line-height : 1.5em ;
172+ box-sizing : border-box;
173+ overflow-x : hidden;
174+ overflow-y : auto;
175+ color : var (--color-brand-gray1 );
176+ }
177+
174178 table .tableblock td {
175179 min-width : 14.5rem ;
176180 word-break : break-word;
0 commit comments