Skip to content
Browse files

name the parameter `offset` instead of `position-value`

  • Loading branch information...
1 parent 38b2f82 commit 70529e253ebb65ba938bef78f7d24ef6c6166b93 @msadouni committed Mar 19, 2013
Showing with 16 additions and 16 deletions.
  1. +16 −16 stylesheets/compass-css-arrow/_css-arrow.scss
View
32 stylesheets/compass-css-arrow/_css-arrow.scss
@@ -1,11 +1,11 @@
// Default Settings
-$arrow-default-position : bottom !default;
-$arrow-default-size : 1em !default;
-$arrow-default-color : gray !default;
-$arrow-default-border-width : 0 !default;
-$arrow-default-border-color : false !default;
-$arrow-default-border-style : solid !default;
-$arrow-default-position-value : 50% !default;
+$arrow-default-position : bottom !default;
+$arrow-default-size : 1em !default;
+$arrow-default-color : gray !default;
+$arrow-default-border-width : 0 !default;
+$arrow-default-border-color : false !default;
+$arrow-default-border-style : solid !default;
+$arrow-default-offset : 50% !default;
// Mixin
//
@@ -16,13 +16,13 @@ $arrow-default-position-value : 50% !default;
// $border-color : any color
// $border-style : dotted | dashed | solid | double | groove | ridge | inset | outset
@mixin css-arrow(
- $position : $arrow-default-position,
- $size : $arrow-default-size,
- $color : $arrow-default-color,
- $border-width : $arrow-default-border-width,
- $border-color : $arrow-default-border-color,
- $border-style : $arrow-default-border-style,
- $position-value : $arrow-default-position-value
+ $position : $arrow-default-position,
+ $size : $arrow-default-size,
+ $color : $arrow-default-color,
+ $border-width : $arrow-default-border-width,
+ $border-color : $arrow-default-border-color,
+ $border-style : $arrow-default-border-style,
+ $offset : $arrow-default-offset
) {
$arrow-orientation : opposite-position($position);
$arrow-position : left;
@@ -55,13 +55,13 @@ $arrow-default-position-value : 50% !default;
&:after {
border-#{$arrow-orientation}-color: $color;
border-width: $size;
- #{$arrow-position}: $position-value;
+ #{$arrow-position}: $offset;
margin-#{$arrow-position}: -$size;
}
&:before {
border-#{$arrow-orientation}-color: $border-color;
border-width: $border-size;
- #{$arrow-position}: $position-value;
+ #{$arrow-position}: $offset;
margin-#{$arrow-position}: -$border-size;
}
}

0 comments on commit 70529e2

Please sign in to comment.
Something went wrong with that request. Please try again.