Created
October 30, 2017 19:50
-
-
Save sexwithsatan/068b8a8dbe3871d9f8e2d10678141177 to your computer and use it in GitHub Desktop.
CSS polyfill for <dl compact>
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[compact] { | |
display: flex; | |
flex-flow: row wrap; | |
dt, | |
dd { | |
margin: 0; | |
flex-basis: 50%; | |
} | |
dd +dd { | |
margin-left: 50%; | |
flex-basis: 100%; | |
} | |
dt { | |
font-weight: bold; | |
text-align: right; | |
&::after { | |
content: ':'; | |
margin-right: 1ex; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment