Skip to content

Instantly share code, notes, and snippets.

@guerrerocarlos
Forked from bcruddy/table-magic.css
Created June 7, 2023 16:06
Show Gist options
  • Save guerrerocarlos/e5d5c6dba5e02a4c5880cb650e75b62a to your computer and use it in GitHub Desktop.
Save guerrerocarlos/e5d5c6dba5e02a4c5880cb650e75b62a to your computer and use it in GitHub Desktop.
@media screen and (max-width: 767px) {
table.table-magic {
border: 0;
}
table.table-magic thead {
display: none;
}
table.table-magic tr {
margin-bottom: 10px;
display: block;
border: 1px solid #ddd;
border-bottom: 2px solid #ddd;
}
table.table-magic td {
display: block;
position: relative;
text-align: right;
font-size: 13px;
border-bottom: 1px dotted #ccc;
}
table.table-magic td:last-child {
border-bottom: 0;
}
table.table-magic td:before {
content: attr(data-label);
position: absolute;
left: 5px;
text-transform: uppercase;
font-weight: bold;
}
table.table-magic td.a-status > .btn-block {
display: inline-block;
width: 60px;
}
table.table-magic td.a-message {
padding-left: 70px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment