forked from Compass/compass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Compass Core] +min-height, +min-width, and +bang-hack mixins
- Loading branch information
1 parent
5ea5d3d
commit a3cdf18
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_min.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') | ||
|