Created
January 17, 2017 15:53
-
-
Save jonathanpath/7096c51f6bf35333eac8bc46d1b83e26 to your computer and use it in GitHub Desktop.
Smart responsive bootstrap tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*=========================================== | |
= Override BS3 tables = | |
===========================================*/ | |
.table-smartresponsive { | |
@media (max-width: $screen-xs-max) { | |
th { | |
display: none; | |
} | |
& > tbody { | |
& > tr { | |
td { | |
display: block; | |
border: none; | |
&:first-child { | |
padding-top: 20px; | |
} | |
&:last-child { | |
padding-bottom: 20px; | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment