|
3 | 3 | * Buttons
|
4 | 4 | * ==========================================================================
|
5 | 5 | */
|
| 6 | +@import "variables"; |
6 | 7 | @import "mixins";
|
7 | 8 |
|
8 |
| -/* These colors won't remain here, will be removed with jsass */ |
9 |
| -$background: #fff; |
10 |
| -$chassis-blue: #4fc0c8; |
11 |
| -$chassis-gray-light: #f2f2f2; |
12 |
| -$chassis-gray-dark: #383838; |
13 |
| - |
14 | 9 | .ui-button {
|
15 | 10 | &--default {
|
16 |
| - @include ui-button($chassis-gray-dark, $background); |
17 |
| - @include ui-button-sizes(default); |
18 |
| - @include ui-button-states($chassis-gray-dark, $background); |
| 11 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 12 | + @include ui-button-sizes($ui-button-default); |
| 13 | + @include ui-button-states($ui-button-default-color, $ui-button-default-background); |
19 | 14 |
|
20 | 15 | &--disabled {
|
21 |
| - @include ui-button-sizes(default); |
22 |
| - @include ui-button($chassis-gray-dark, $background, true); |
| 16 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 17 | + @include ui-button-sizes($ui-button-default); |
| 18 | + @include ui-button-state-disabled($ui-button-default-background); |
| 19 | + } |
| 20 | + |
| 21 | + &--focus { |
| 22 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 23 | + @include ui-button-sizes($ui-button-default); |
| 24 | + @include ui-button-state-disabled($ui-button-default-background); |
| 25 | + } |
| 26 | + |
| 27 | + &--active { |
| 28 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 29 | + @include ui-button-sizes($ui-button-default); |
| 30 | + @include ui-button-state-active($ui-button-default-background); |
| 31 | + } |
| 32 | + |
| 33 | + &--hover { |
| 34 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 35 | + @include ui-button-sizes($ui-button-default); |
| 36 | + @include ui-button-state-hover($ui-button-default-background); |
23 | 37 | }
|
24 | 38 |
|
25 | 39 | &--large {
|
26 |
| - @include ui-button($chassis-gray-dark, $background); |
27 |
| - @include ui-button-sizes(large); |
28 |
| - @include ui-button-states($chassis-gray-dark, $background); |
| 40 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 41 | + @include ui-button-sizes($ui-button-large); |
| 42 | + @include ui-button-states($ui-button-default-color, $ui-button-default-background); |
29 | 43 |
|
30 | 44 | &--disabled {
|
31 |
| - @include ui-button($chassis-gray-dark, $background, true); |
32 |
| - @include ui-button-sizes(large); |
| 45 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 46 | + @include ui-button-sizes($ui-button-large); |
| 47 | + @include ui-button-state-disabled($ui-button-default-background); |
| 48 | + } |
| 49 | + |
| 50 | + &--focus { |
| 51 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 52 | + @include ui-button-sizes($ui-button-large); |
| 53 | + @include ui-button-state-focus($ui-button-default-background); |
| 54 | + } |
| 55 | + |
| 56 | + &--active { |
| 57 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 58 | + @include ui-button-sizes($ui-button-large); |
| 59 | + @include ui-button-state-active($ui-button-default-background); |
| 60 | + } |
| 61 | + |
| 62 | + &--hover { |
| 63 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 64 | + @include ui-button-sizes($ui-button-large); |
| 65 | + @include ui-button-state-hover($ui-button-default-background); |
33 | 66 | }
|
34 | 67 | }
|
35 | 68 |
|
36 | 69 | &--small {
|
37 |
| - @include ui-button($chassis-gray-dark, $background); |
38 |
| - @include ui-button-sizes(small); |
39 |
| - @include ui-button-states($chassis-gray-dark, $background); |
| 70 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 71 | + @include ui-button-sizes($ui-button-small); |
| 72 | + @include ui-button-states($ui-button-default-color, $ui-button-default-background); |
40 | 73 |
|
41 | 74 | &--disabled {
|
42 |
| - @include ui-button($chassis-gray-dark, $background, true); |
43 |
| - @include ui-button-sizes(small); |
| 75 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 76 | + @include ui-button-sizes($ui-button-small); |
| 77 | + @include ui-button-state-disabled($ui-button-default-background); |
| 78 | + } |
| 79 | + |
| 80 | + &--focus { |
| 81 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 82 | + @include ui-button-sizes($ui-button-small); |
| 83 | + @include ui-button-state-focus($ui-button-default-background); |
| 84 | + } |
| 85 | + |
| 86 | + &--active { |
| 87 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 88 | + @include ui-button-sizes($ui-button-small); |
| 89 | + @include ui-button-state-active($ui-button-default-background); |
| 90 | + } |
| 91 | + |
| 92 | + &--hover { |
| 93 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 94 | + @include ui-button-sizes($ui-button-small); |
| 95 | + @include ui-button-state-hover($ui-button-default-background); |
44 | 96 | }
|
45 | 97 | }
|
46 | 98 |
|
47 | 99 | &--extra-small {
|
48 | 100 | @extend %ui-button--extra-small;
|
49 |
| - @include ui-button($chassis-gray-dark, $background); |
50 |
| - @include ui-button-states($chassis-gray-dark, $background); |
| 101 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 102 | + @include ui-button-states($ui-button-default-color, $ui-button-default-background); |
51 | 103 |
|
52 | 104 | &--disabled {
|
53 |
| - @include ui-button($chassis-gray-dark, $background, true); |
54 |
| - @include ui-button-sizes(extra-small); |
| 105 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 106 | + @include ui-button-sizes($ui-button-extra-small); |
| 107 | + @include ui-button-state-disabled($ui-button-default-background); |
| 108 | + } |
| 109 | + |
| 110 | + &--focus { |
| 111 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 112 | + @include ui-button-sizes($ui-button-extra-small); |
| 113 | + @include ui-button-state-hover($ui-button-default-background); |
| 114 | + } |
| 115 | + |
| 116 | + &--active { |
| 117 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 118 | + @include ui-button-sizes($ui-button-extra-small); |
| 119 | + @include ui-button-state-active($ui-button-default-background); |
| 120 | + } |
| 121 | + |
| 122 | + &--hover { |
| 123 | + @include ui-button($ui-button-default-color, $ui-button-default-background); |
| 124 | + @include ui-button-sizes($ui-button-extra-small); |
| 125 | + @include ui-button-state-hover($ui-button-default-background); |
55 | 126 | }
|
56 | 127 | }
|
57 | 128 | }
|
58 | 129 |
|
59 | 130 | &--primary {
|
60 |
| - @include ui-button($chassis-gray-light, $chassis-blue); |
61 |
| - @include ui-button-sizes(default); |
62 |
| - @include ui-button-states($chassis-gray-light, $chassis-blue); |
| 131 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 132 | + @include ui-button-sizes($ui-button-default); |
| 133 | + @include ui-button-states($ui-button-primary-color, $ui-button-primary-background); |
63 | 134 |
|
64 | 135 | &--disabled {
|
65 |
| - @include ui-button($chassis-gray-light, $chassis-blue, true); |
66 |
| - @include ui-button-sizes(default); |
| 136 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 137 | + @include ui-button-sizes($ui-button-default); |
| 138 | + @include ui-button-state-disabled($ui-button-primary-background); |
| 139 | + } |
| 140 | + |
| 141 | + &--focus { |
| 142 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 143 | + @include ui-button-sizes($ui-button-default); |
| 144 | + @include ui-button-state-focus($ui-button-primary-background); |
| 145 | + } |
| 146 | + |
| 147 | + &--active { |
| 148 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 149 | + @include ui-button-sizes($ui-button-default); |
| 150 | + @include ui-button-state-active($ui-button-primary-background); |
| 151 | + } |
| 152 | + |
| 153 | + &--hover { |
| 154 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 155 | + @include ui-button-sizes($ui-button-default); |
| 156 | + @include ui-button-state-hover($ui-button-primary-background); |
67 | 157 | }
|
68 | 158 |
|
69 | 159 | &--large {
|
70 |
| - @include ui-button($chassis-gray-light, $chassis-blue); |
71 |
| - @include ui-button-sizes(large); |
72 |
| - @include ui-button-states($chassis-gray-light, $chassis-blue); |
| 160 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 161 | + @include ui-button-sizes($ui-button-large); |
| 162 | + @include ui-button-states($ui-button-primary-color, $ui-button-primary-background); |
73 | 163 |
|
74 | 164 | &--disabled {
|
75 |
| - @include ui-button($chassis-gray-light, $chassis-blue, true); |
76 |
| - @include ui-button-sizes(large); |
| 165 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 166 | + @include ui-button-sizes($ui-button-large); |
| 167 | + @include ui-button-state-disabled($ui-button-primary-background); |
| 168 | + } |
| 169 | + |
| 170 | + &--focus { |
| 171 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 172 | + @include ui-button-sizes($ui-button-large); |
| 173 | + @include ui-button-state-focus($ui-button-primary-background); |
| 174 | + } |
| 175 | + |
| 176 | + &--active { |
| 177 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 178 | + @include ui-button-sizes($ui-button-large); |
| 179 | + @include ui-button-state-active($ui-button-primary-background); |
| 180 | + } |
| 181 | + |
| 182 | + &--hover { |
| 183 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 184 | + @include ui-button-sizes($ui-button-large); |
| 185 | + @include ui-button-state-hover($ui-button-primary-background); |
77 | 186 | }
|
78 | 187 | }
|
79 | 188 |
|
80 | 189 | &--small {
|
81 |
| - @include ui-button($chassis-gray-light, $chassis-blue); |
82 |
| - @include ui-button-sizes(small); |
83 |
| - @include ui-button-states($chassis-gray-light, $chassis-blue); |
| 190 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 191 | + @include ui-button-sizes($ui-button-small); |
| 192 | + @include ui-button-states($ui-button-primary-color, $ui-button-primary-background); |
84 | 193 |
|
85 | 194 | &--disabled {
|
86 |
| - @include ui-button($chassis-gray-light, $chassis-blue, true); |
87 |
| - @include ui-button-sizes(small); |
| 195 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 196 | + @include ui-button-sizes($ui-button-small); |
| 197 | + @include ui-button-state-disabled($ui-button-primary-background); |
| 198 | + } |
| 199 | + |
| 200 | + &--focus { |
| 201 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 202 | + @include ui-button-sizes($ui-button-small); |
| 203 | + @include ui-button-state-focus($ui-button-primary-background); |
| 204 | + } |
| 205 | + |
| 206 | + &--active { |
| 207 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 208 | + @include ui-button-sizes($ui-button-small); |
| 209 | + @include ui-button-state-active($ui-button-primary-background); |
| 210 | + } |
| 211 | + |
| 212 | + &--hover { |
| 213 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 214 | + @include ui-button-sizes($ui-button-small); |
| 215 | + @include ui-button-state-hover($ui-button-primary-background); |
88 | 216 | }
|
89 | 217 | }
|
90 | 218 |
|
91 | 219 | &--extra-small {
|
92 |
| - @include ui-button($chassis-gray-light, $chassis-blue); |
93 |
| - @include ui-button-sizes(extra-small); |
94 |
| - @include ui-button-states($chassis-gray-light, $chassis-blue); |
| 220 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 221 | + @include ui-button-sizes($ui-button-extra-small); |
| 222 | + @include ui-button-states($ui-button-primary-color, $ui-button-primary-background); |
95 | 223 |
|
96 | 224 | &--disabled {
|
97 |
| - @include ui-button($chassis-gray-light, $chassis-blue, true); |
98 |
| - @include ui-button-sizes(extra-small); |
| 225 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 226 | + @include ui-button-sizes($ui-button-extra-small); |
| 227 | + @include ui-button-state-disabled($ui-button-primary-background); |
| 228 | + } |
| 229 | + |
| 230 | + &--focus { |
| 231 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 232 | + @include ui-button-sizes($ui-button-extra-small); |
| 233 | + @include ui-button-state-focus($ui-button-primary-background); |
| 234 | + } |
| 235 | + |
| 236 | + &--active { |
| 237 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 238 | + @include ui-button-sizes($ui-button-extra-small); |
| 239 | + @include ui-button-state-active($ui-button-primary-background); |
| 240 | + } |
| 241 | + |
| 242 | + &--hover { |
| 243 | + @include ui-button($ui-button-primary-color, $ui-button-primary-background); |
| 244 | + @include ui-button-sizes($ui-button-extra-small); |
| 245 | + @include ui-button-state-hover($ui-button-primary-background); |
99 | 246 | }
|
100 | 247 | }
|
101 | 248 | }
|
|
0 commit comments