Skip to content

Instantly share code, notes, and snippets.

@sexwithsatan
Created October 30, 2017 19:50
Show Gist options
  • Save sexwithsatan/068b8a8dbe3871d9f8e2d10678141177 to your computer and use it in GitHub Desktop.
Save sexwithsatan/068b8a8dbe3871d9f8e2d10678141177 to your computer and use it in GitHub Desktop.
CSS polyfill for <dl compact>
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