milligram/src/_Utility.sass

23 lines
431 B
Sass
Raw Normal View History

2015-12-26 01:58:56 +00:00
// Utility
//
// Clear a float with .clearfix
.clearfix
*zoom: 1
&:after
clear: both
2015-12-26 01:58:56 +00:00
&:after,
&:before
content: ' ' // The space content is one way to avoid an Opera bug.
2015-12-26 01:58:56 +00:00
display: table
// Float either direction
.float-left
float: left
.float-right
float: right