assets/stylesheets/settings/mixins/_border-radius.sass in middleman-oulu-0.6.10 vs assets/stylesheets/settings/mixins/_border-radius.sass in middleman-oulu-0.6.12
- old
+ new
@@ -6,23 +6,21 @@
+rem('border-radius', $value1)
@else
@for $i from 1 through length($value1)
@if nth($value1, $i) == 'all'
+rem('border-radius', $value2)
- @else if vertical(nth($value1, $i))
- +rem('border-top-radius', $value2)
- +rem('border-bottom-radius', $value2)
- @else if horizontal(nth($value1, $i))
- +rem('border-left-radius', $value2)
- +rem('border-right-radius', $value2)
@else if top(nth($value1, $i))
- +rem('border-top-radius', $value2)
+ +rem('border-top-left-radius', $value2)
+ +rem('border-top-right-radius', $value2)
@else if bottom(nth($value1, $i))
- +rem('border-bottom-radius', $value2)
+ +rem('border-bottom-left-radius', $value2)
+ +rem('border-bottom-right-radius', $value2)
@else if left(nth($value1, $i))
- +rem('border-left-radius', $value2)
+ +rem('border-top-left-radius', $value2)
+ +rem('border-bottom-left-radius', $value2)
@else if right(nth($value1, $i))
- +rem('border-right-radius', $value2)
+ +rem('border-top-right-radius', $value2)
+ +rem('border-bottom-right-radius', $value2)
// 使い方
// +reset-border-radius(vertical, 4px)
=reset-border-radius($value: 'all')
@for $i from 1 through length($value1)