Created
June 17, 2015 13:58
-
-
Save wernerkrauss/f72f1214ce27e3acba2a to your computer and use it in GitHub Desktop.
sass / foundation snippet to get a responsive two column table.
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
.responsive-twocolumn-table { | |
width: 100%; | |
th { | |
display: none; | |
} | |
td { | |
width: 100%; | |
display: block; | |
&:first-child { | |
font-weight: bold; | |
} | |
} | |
@media#{$medium-up}{ | |
td, th { | |
vertical-align: top; | |
display: table-cell; | |
} | |
td:first-child { | |
width: 30%; | |
font-weight: normal; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment