diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-29 10:00:24 +0200 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-10-05 14:40:47 +0200 |
commit | 841f1eedfc8b2c49f0395d5f0ea2bfa269c19df2 (patch) | |
tree | bf56c830fbed336796c7586f84b46df82d5c2d81 /searx/static/oscar/less/bootstrap/mixins/clearfix.less | |
parent | 14b0604bc0a14a110c92457f43b3828fc22e7fc7 (diff) | |
download | searxng-841f1eedfc8b2c49f0395d5f0ea2bfa269c19df2.tar.gz searxng-841f1eedfc8b2c49f0395d5f0ea2bfa269c19df2.zip |
oscar template: generate bootstrap.min.css from source
Diffstat (limited to 'searx/static/oscar/less/bootstrap/mixins/clearfix.less')
-rw-r--r-- | searx/static/oscar/less/bootstrap/mixins/clearfix.less | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/searx/static/oscar/less/bootstrap/mixins/clearfix.less b/searx/static/oscar/less/bootstrap/mixins/clearfix.less new file mode 100644 index 000000000..3f7a3820c --- /dev/null +++ b/searx/static/oscar/less/bootstrap/mixins/clearfix.less @@ -0,0 +1,22 @@ +// Clearfix +// +// For modern browsers +// 1. The space content is one way to avoid an Opera bug when the +// contenteditable attribute is included anywhere else in the document. +// Otherwise it causes space to appear at the top and bottom of elements +// that are clearfixed. +// 2. The use of `table` rather than `block` is only necessary if using +// `:before` to contain the top-margins of child elements. +// +// Source: http://nicolasgallagher.com/micro-clearfix-hack/ + +.clearfix() { + &:before, + &:after { + content: " "; // 1 + display: table; // 2 + } + &:after { + clear: both; + } +} |