mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
added compass, added some basic stylesheets
This commit is contained in:
24
source/stylesheets/library/_clearfix.sass
Normal file
24
source/stylesheets/library/_clearfix.sass
Normal file
@ -0,0 +1,24 @@
|
||||
// based on compass clearfix
|
||||
|
||||
@import _hacks.sass
|
||||
|
||||
// Extends the element to enclose any floats it contains.
|
||||
// This basic method is preferred for the usual case, when positioned content will not show outside the bounds of the container.
|
||||
// Recommendations include using this in conjunction with a width:
|
||||
// http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html
|
||||
=clearfix
|
||||
:overflow hidden
|
||||
+has-layout
|
||||
|
||||
// Extends the element to enclose any floats it contains.
|
||||
// This older "Easy Clearing" method has the advantage of allowing positioned elements to hang outside the bounds of the container, at the expense of more tricky CSS.
|
||||
// http://www.positioniseverything.net/easyclearing.html
|
||||
=pie-clearfix
|
||||
&:after
|
||||
:content " "
|
||||
:display block
|
||||
:height 0
|
||||
:clear both
|
||||
:overflow hidden
|
||||
:visibility hidden
|
||||
+has-layout
|
||||
Reference in New Issue
Block a user