mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-29 11:05:55 -05:00
26 lines
456 B
SCSS
26 lines
456 B
SCSS
|
@charset "UTF-8";
|
||
|
|
||
|
/// Provides an easy way to include a clearfix for containing floats.
|
||
|
///
|
||
|
/// @link http://cssmojo.com/latest_new_clearfix_so_far/
|
||
|
///
|
||
|
/// @example scss - Usage
|
||
|
/// .element {
|
||
|
/// @include clearfix;
|
||
|
/// }
|
||
|
///
|
||
|
/// @example css - CSS Output
|
||
|
/// .element::after {
|
||
|
/// clear: both;
|
||
|
/// content: "";
|
||
|
/// display: table;
|
||
|
/// }
|
||
|
|
||
|
@mixin clearfix {
|
||
|
&::after {
|
||
|
clear: both;
|
||
|
content: "";
|
||
|
display: table;
|
||
|
}
|
||
|
}
|