|
273 | 273 | $border_strength: if(lightness($bg) > 50, 0, .1); |
274 | 274 | $shadow_strength: if(lightness($bg) > 50, 0, .1); |
275 | 275 |
|
276 | | - $button_bg: if(hue($bg) == 0deg, shade($bg, 1.2), $bg); |
| 276 | + $button_bg: if(hue($bg) == 0deg, shade($bg, 1.08), $bg); |
277 | 277 |
|
278 | 278 | @extend %button; |
279 | 279 | @include linear-gradient($button_bg); |
280 | | - @include border(rgba(0, 0, 0, .12 + $border_strength)); |
| 280 | + border-color: border_normal($button_bg); |
281 | 281 |
|
282 | 282 | color: $fg; |
283 | | - box-shadow: 0 1px 2px -1px alpha($dark_shadow, .12 + $shadow_strength); |
| 283 | + //box-shadow: 0 1px 2px -1px alpha($dark_shadow, .12 + $shadow_strength); //making it flatter |
284 | 284 |
|
285 | 285 | &.flat { |
286 | 286 | border-color: alpha($button_bg, 0); |
|
292 | 292 | &, &.flat { |
293 | 293 | &:focus, &:hover { |
294 | 294 | @include linear-gradient(shade($button_bg, 1.2)); |
295 | | - @include border(rgba(0, 0, 0, .2 + $border_strength)); |
| 295 | + @include border(rgba(0, 0, 0, .25 + $border_strength)); |
296 | 296 |
|
297 | 297 | box-shadow: 0 1px 2px -1px alpha($dark_shadow, .32 + $shadow_strength); |
298 | 298 | } |
|
379 | 379 | } |
380 | 380 |
|
381 | 381 | button { |
382 | | - @include button(shade($bg_color, 1.2), $fg_color); |
| 382 | + @include button($bg_color, $fg_color); |
383 | 383 |
|
384 | 384 | .inline-toolbar &, |
385 | | - .linked > & { @include linked_button(shade($bg_color, 1.2)); } |
| 385 | + .linked > & { @include linked_button($bg_color); } |
386 | 386 |
|
387 | | - .linked.vertical > & { @include linked_vertical_button(shade($bg_color, 1.2)); } |
| 387 | + .linked.vertical > & { @include linked_vertical_button($bg_color); } |
388 | 388 |
|
389 | 389 | &.circular, |
390 | 390 | &.circular-button { // FIXME: aggregate to buttons |
|
0 commit comments