Mercurial > minori
comparison dep/fmt/doc/bootstrap/mixins/clearfix.less @ 343:1faa72660932
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 05:56:06 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
342:adb79bdde329 | 343:1faa72660932 |
---|---|
1 // Clearfix | |
2 // | |
3 // For modern browsers | |
4 // 1. The space content is one way to avoid an Opera bug when the | |
5 // contenteditable attribute is included anywhere else in the document. | |
6 // Otherwise it causes space to appear at the top and bottom of elements | |
7 // that are clearfixed. | |
8 // 2. The use of `table` rather than `block` is only necessary if using | |
9 // `:before` to contain the top-margins of child elements. | |
10 // | |
11 // Source: http://nicolasgallagher.com/micro-clearfix-hack/ | |
12 | |
13 .clearfix() { | |
14 &:before, | |
15 &:after { | |
16 content: " "; // 1 | |
17 display: table; // 2 | |
18 } | |
19 &:after { | |
20 clear: both; | |
21 } | |
22 } |