milligram/src/_Utility.sass

19 lines
409 B
Sass
Raw Normal View History

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