[Compass Core] +min-height, +min-width, and +bang-hack mixins
This commit is contained in:
parent
5ea5d3d6f3
commit
a3cdf182c9
@ -4,3 +4,12 @@
|
|||||||
// and this puts it back to block
|
// and this puts it back to block
|
||||||
&
|
&
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
//**
|
||||||
|
IE6 will let the !important property win
|
||||||
|
While all the other browsers won't.
|
||||||
|
TODO: link to blog post
|
||||||
|
=bang-hack(!property, !hack_value, !value)
|
||||||
|
#{!property}: #{!hack_value} !important
|
||||||
|
#{!property}: #{!value}
|
||||||
|
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
@import hacks.sass
|
||||||
|
|
||||||
|
//**
|
||||||
|
Cross browser min-height mixin.
|
||||||
|
=min-height(!value)
|
||||||
|
+hacked-minimum("height", !value)
|
||||||
|
|
||||||
|
//**
|
||||||
|
Cross browser min-width mixin.
|
||||||
|
=min-width(!value)
|
||||||
|
+hacked-minimum("width", !value)
|
||||||
|
|
||||||
|
// @private This mixin is not meant to be used directly.
|
||||||
|
=hacked-minimum(!property, !value)
|
||||||
|
min-#{!property}= !value
|
||||||
|
+bang-hack(!property, !value, 'auto')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user