comparison default/assets/scss/vendors/bourbon/library/_clearfix.scss @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 @charset "UTF-8";
2
3 /// Provides an easy way to include a clearfix for containing floats.
4 ///
5 /// @link http://goo.gl/yP5hiZ
6 ///
7 /// @example scss
8 /// .element {
9 /// @include clearfix;
10 /// }
11 ///
12 /// // CSS Output
13 /// .element::after {
14 /// clear: both;
15 /// content: "";
16 /// display: block;
17 /// }
18
19 @mixin clearfix {
20 &::after {
21 clear: both;
22 content: "";
23 display: block;
24 }
25 }