[Compass Core] +min-height, +min-width, and +bang-hack mixins

This commit is contained in:
Chris Eppstein 2009-12-16 08:40:08 -08:00
parent 5ea5d3d6f3
commit a3cdf182c9
2 changed files with 26 additions and 0 deletions

View File

@ -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}

View File

@ -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')