@media only screen and (max-width: ($screen-lg)) { .table-to-list table { display: block; } .table-to-list thead { display: block; } .table-to-list thead tr { position: absolute; top: -9999px; left: -9999px; } .table-to-list tbody { display: block; } .table-to-list th { display: block; } .table-to-list td, .table-to-list th { display: block; position: relative; padding-left: 40% !important; white-space: normal; text-align: left; } .table-to-list td:before, .table-to-list th:before { position: absolute; top: 6px; left: 6px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; content: attr(data-title); } .table-to-list tr { display: block; border-top: 2px solid $gray-lighter; } }