app/assets/stylesheets/modules/buttons/_button-base.sass in oulu-0.11.4 vs app/assets/stylesheets/modules/buttons/_button-base.sass in oulu-0.11.5
- old
+ new
@@ -5,11 +5,11 @@
user-select: none
touch-action: manipulation
text-decoration: none
-webkit-tap-highlight-color: transparent
-=button-size($size, $border-width: false, $border-radius: 4px)
+=button-size($size, $border-width: false, $border-radius: 4px, $button-height-ratio: 2.85)
$font-size: ""
@if $size == 'xs'
$font-size: $xs-button-font-size
@else if $size == 'sm'
$font-size: $sm-button-font-size
@@ -17,10 +17,10 @@
$font-size: $md-button-font-size
@else if $size == 'lg'
$font-size: $lg-button-font-size
@else if $size == 'xl'
$font-size: $xl-button-font-size
- $button-height: round($font-size * 2.85 - if($border-width, $border-width, 0) * 2)
+ $button-height: round($font-size * $button-height-ratio - if($border-width, $border-width, 0) * 2)
@if $border-width
+border(all, $border-width)
@else
$border-width: 0
$vertical-padding: ($button-height - round($font-size * 1.45) - ($border-width* 2)) / 2