Skip to content

Commit

Permalink
add !important support to float mixin anasnakawa#10
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroxme committed Apr 2, 2015
1 parent c9dfb41 commit 1a88317
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
14 changes: 7 additions & 7 deletions bi-app/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@

// float
// ------------------------------------------
@mixin bi-app-float-left {
float: $bi-app-left;
@mixin bi-app-float-left($important: '') {
float: $bi-app-left unquote($important);
}

@mixin bi-app-float-right {
float: $bi-app-right;
@mixin bi-app-float-right($important: '') {
float: $bi-app-right unquote($important);
}

@mixin float($direction) {
@mixin float($direction, $important: '') {
@if $direction == left {
@include bi-app-float-left;
@include bi-app-float-left($important);
} @else if $direction == right {
@include bi-app-float-right;
@include bi-app-float-right($important);
} @else {
float: $direction;
}
Expand Down
11 changes: 6 additions & 5 deletions bi-app/_variables-ltr.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// ------------------------------------------
// left to right variables to be used by bi-app mixins
// authors:
// authors:
// twitter.com/anasnakawa
// twitter.com/victorzamfir
// licensed under the MIT license
// licensed under the MIT license
// http://www.opensource.org/licenses/mit-license.php
// ------------------------------------------

// namespacing variables with bi-app to
// avoid conflicting with other global variables
$bi-app-left : left;
$bi-app-right : right;
$bi-app-direction : ltr;
$bi-app-invert-direction: rtl;
$bi-app-right : right;
$bi-app-direction : ltr;
$bi-app-invert-direction : rtl;
$imp : !important;
11 changes: 6 additions & 5 deletions bi-app/_variables-rtl.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// ------------------------------------------
// right to left variables to be used by bi-app mixins
// authors:
// authors:
// twitter.com/anasnakawa
// twitter.com/victorzamfir
// licensed under the MIT license
// licensed under the MIT license
// http://www.opensource.org/licenses/mit-license.php
// ------------------------------------------

// namespacing variables with bi-app to
// avoid conflicting with other global variables
$bi-app-left : right;
$bi-app-right : left;
$bi-app-direction : rtl;
$bi-app-invert-direction: ltr;
$bi-app-right : left;
$bi-app-direction : rtl;
$bi-app-invert-direction : ltr;
$imp : !important;

0 comments on commit 1a88317

Please sign in to comment.