Created
May 21, 2014 19:29
-
-
Save areichman/42b51a0edfb1431e97b3 to your computer and use it in GitHub Desktop.
Custom styles for Bootstrap's .dl-horizontal class to display key-value pairs
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
.dl-metadata { | |
dl { | |
border-top: 1px solid #e5e5e5; | |
width: 100%; | |
overflow: hidden; | |
dt { | |
width: 100%; | |
padding: 12px 20px 0 0; | |
color: #888; | |
text-align: left; | |
text-transform: uppercase; | |
font-weight: normal; | |
font-size: 10px; | |
white-space: normal; | |
} | |
dd { | |
margin-left: 0; | |
padding: 0 0 8px 0; | |
border-bottom: 1px solid #e5e5e5; | |
} | |
dd:after { | |
.clear(); | |
} | |
} | |
@media (min-width: 768px) { | |
dl dt { | |
width: 30%; | |
} | |
dl dd { | |
padding-top: 8px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment