/////////////////////////////// // !THEME / DEPRECATED / TABLES /////////////////////////////// table { @include bg-transparent; @include font-sans; max-width: 100%; width: 100%; } caption { caption-side: bottom; @include txt-xs; } thead, tbody { @include bb; border-color: $color-border; @include txt-md; } thead th, thead td { padding-bottom: #{ms(-4)}rem; vertical-align: bottom; } tbody th, tbody td { padding-bottom: #{ms(-4)}rem; padding-top: #{ms(-4)}rem; vertical-align: top; } th:not(:last-child), td:not(:last-child) { padding-right: #{ms(2)}rem; } .wdn_responsive_table thead th abbr { border-bottom: none; } @include mq(md, max, width) { .wdn_responsive_table th, .wdn_responsive_table td { display: block; } .wdn_responsive_table thead tr { display: none; } .wdn_responsive_table tbody tr:first-child th { border-top-width: 0; } .wdn_responsive_table tbody tr:nth-of-type(even) { background-color: transparent; } .wdn_responsive_table tbody td { text-align: left; } .wdn_responsive_table tbody td::before { content: attr(data-header); display: block; font-weight: bold; } .wdn_responsive_table tbody:empty { display: none; } .wdn_responsive_table tbody:nth-of-type(even) { background-color: #eee; } } @include mq(md, max, width) { .wdn_responsive_table thead th:not(:first-child) { text-align: center; } .wdn_responsive_table tbody td { text-align: center; } .wdn_responsive_table.flush-left thead th, .wdn_responsive_table.flush-left td { text-align: left; } }