|
1 | 1 | @mixin btn($margin) { |
2 | 2 | border: 1px solid transparent; |
3 | 3 | cursor: pointer; |
4 | | - letter-spacing: map-get($ui-btn, letter-spacing); |
5 | | - font-family: $ui-btn-font; |
6 | | - font-weight: map-get($ui-btn, font-weight); |
| 4 | + letter-spacing: map-get($btn-element, letter-spacing); |
| 5 | + font-family: $btn-font; |
| 6 | + font-weight: map-get($btn-element, font-weight); |
7 | 7 | margin: $margin; |
8 | 8 | text-decoration: none; |
9 | | - text-transform: map-get($ui-btn, text-transform); |
| 9 | + text-transform: map-get($btn-element, text-transform); |
10 | 10 | } |
11 | 11 |
|
12 | 12 | @mixin btn-colors($btn-colors) { |
13 | 13 | color: map-get($btn-colors, color); |
14 | 14 | background: map-deep-get($btn-colors, "background", "base"); |
15 | 15 | border-color: map-get($btn-colors, border); |
16 | 16 | @if (map-get($btn-colors, shadow) == true) { |
17 | | - transition: map-get($ui-btn-shadows, transition); |
18 | | - box-shadow: map-get($ui-btn-shadows, box-shadow-base); |
| 17 | + transition: map-get($btn-shadows, transition); |
| 18 | + box-shadow: map-get($btn-shadows, box-shadow-base); |
19 | 19 | } |
20 | 20 |
|
21 | 21 | &:active, |
22 | 22 | &.active { |
23 | 23 | @include btn-active($btn-colors); |
24 | 24 | @if (map-get($btn-colors, shadow) == true) { |
25 | | - box-shadow: map-get($ui-btn-shadows, box-shadow-active); |
| 25 | + box-shadow: map-get($btn-shadows, box-shadow-active); |
26 | 26 | } |
27 | 27 | } |
28 | 28 |
|
|
40 | 40 | &.disabled { |
41 | 41 | @include btn-disabled($btn-colors); |
42 | 42 | @if (map-get($btn-colors, shadow) == true) { |
43 | | - box-shadow: map-get($ui-btn-shadows, box-shadow-disabled); |
| 43 | + box-shadow: map-get($btn-shadows, box-shadow-disabled); |
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
|
71 | 71 | } |
72 | 72 |
|
73 | 73 | @mixin btn-disabled($btn-colors) { |
74 | | - cursor: map-get($ui-btn-disabled, cursor); |
75 | | - color: rgba(map-get($btn-colors, color), map-get($ui-btn-disabled, "color-opacity")); |
| 74 | + cursor: map-get($btn-disable, cursor); |
| 75 | + color: rgba(map-get($btn-colors, color), map-get($btn-disable, "color-opacity")); |
76 | 76 | $bg: map-deep-get($btn-colors, "background", "base"); |
77 | 77 | @if ($bg == transparent) { |
78 | 78 | background: map-deep-get($btn-colors, "background", "base"); |
79 | 79 | } @else { |
80 | | - background: rgba($bg, map-get($ui-btn-disabled, "background-opacity")); |
| 80 | + background: rgba($bg, map-get($btn-disable, "background-opacity")); |
81 | 81 | } |
82 | 82 | @if (map-get($btn-colors, border) == transparent) { |
83 | 83 | border-color: map-get($btn-colors, border); |
84 | 84 | } @else { |
85 | | - border-color: rgba(map-get($btn-colors, border), map-get($ui-btn-disabled, "background-opacity")); |
| 85 | + border-color: rgba(map-get($btn-colors, border), map-get($btn-disable, "background-opacity")); |
86 | 86 | } |
87 | 87 | } |
0 commit comments