|
3 | 3 | * Buttons |
4 | 4 | * ========================================================================== |
5 | 5 | */ |
| 6 | +@import "mixins"; |
6 | 7 |
|
7 | | -@import "extends"; |
| 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; |
8 | 13 |
|
9 | 14 | .ui-button { |
10 | 15 | &--default { |
11 | | - @extend %ui-button; |
12 | | - @extend %ui-button--default; |
13 | | - @extend %ui-button--default--hover; |
14 | | - @extend %ui-button--default--focus; |
15 | | - @extend %ui-button--default--active; |
16 | | - @extend %ui-button--default--disabled; |
17 | | - @extend %ui-button--default-size; |
| 16 | + @include ui-button($chassis-gray-dark, $background); |
| 17 | + @include ui-button-sizes(default); |
| 18 | + @include ui-button-states($chassis-gray-dark, $background); |
18 | 19 |
|
19 | 20 | &--disabled { |
20 | | - @extend %ui-button; |
21 | | - @extend %ui-button--default; |
22 | | - @extend %ui-button--disabled; |
23 | | - @extend %ui-button--default-size; |
| 21 | + @include ui-button-sizes(default); |
| 22 | + @include ui-button($chassis-gray-dark, $background, true); |
24 | 23 | } |
25 | 24 |
|
26 | 25 | &--large { |
27 | | - @extend %ui-button; |
28 | | - @extend %ui-button--default; |
29 | | - @extend %ui-button--default--hover; |
30 | | - @extend %ui-button--default--focus; |
31 | | - @extend %ui-button--default--active; |
32 | | - @extend %ui-button--default--disabled; |
33 | | - @extend %ui-button--large; |
| 26 | + @include ui-button($chassis-gray-dark, $background); |
| 27 | + @include ui-button-sizes(large); |
| 28 | + @include ui-button-states($chassis-gray-dark, $background); |
34 | 29 |
|
35 | 30 | &--disabled { |
36 | | - @extend %ui-button; |
37 | | - @extend %ui-button--default; |
38 | | - @extend %ui-button--disabled; |
39 | | - @extend %ui-button--large; |
| 31 | + @include ui-button($chassis-gray-dark, $background, true); |
| 32 | + @include ui-button-sizes(large); |
40 | 33 | } |
41 | 34 | } |
42 | 35 |
|
43 | 36 | &--small { |
44 | | - @extend %ui-button; |
45 | | - @extend %ui-button--default; |
46 | | - @extend %ui-button--default--hover; |
47 | | - @extend %ui-button--default--focus; |
48 | | - @extend %ui-button--default--active; |
49 | | - @extend %ui-button--default--disabled; |
50 | | - @extend %ui-button--small; |
| 37 | + @include ui-button($chassis-gray-dark, $background); |
| 38 | + @include ui-button-sizes(small); |
| 39 | + @include ui-button-states($chassis-gray-dark, $background); |
51 | 40 |
|
52 | 41 | &--disabled { |
53 | | - @extend %ui-button; |
54 | | - @extend %ui-button--default; |
55 | | - @extend %ui-button--disabled; |
56 | | - @extend %ui-button--small; |
| 42 | + @include ui-button($chassis-gray-dark, $background, true); |
| 43 | + @include ui-button-sizes(small); |
57 | 44 | } |
58 | 45 | } |
59 | 46 |
|
60 | 47 | &--extra-small { |
61 | | - @extend %ui-button; |
62 | | - @extend %ui-button--default; |
63 | | - @extend %ui-button--default--hover; |
64 | | - @extend %ui-button--default--focus; |
65 | | - @extend %ui-button--default--active; |
66 | | - @extend %ui-button--default--disabled; |
67 | 48 | @extend %ui-button--extra-small; |
| 49 | + @include ui-button($chassis-gray-dark, $background); |
| 50 | + @include ui-button-states($chassis-gray-dark, $background); |
68 | 51 |
|
69 | 52 | &--disabled { |
70 | | - @extend %ui-button; |
71 | | - @extend %ui-button--default; |
72 | | - @extend %ui-button--disabled; |
73 | | - @extend %ui-button--extra-small; |
| 53 | + @include ui-button($chassis-gray-dark, $background, true); |
| 54 | + @include ui-button-sizes(extra-small); |
74 | 55 | } |
75 | 56 | } |
76 | 57 | } |
77 | 58 |
|
78 | 59 | &--primary { |
79 | | - @extend %ui-button; |
80 | | - @extend %ui-button--primary; |
81 | | - @extend %ui-button--primary--hover; |
82 | | - @extend %ui-button--primary--focus; |
83 | | - @extend %ui-button--primary--active; |
84 | | - @extend %ui-button--primary--disabled; |
85 | | - @extend %ui-button--default-size; |
| 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); |
86 | 63 |
|
87 | 64 | &--disabled { |
88 | | - @extend %ui-button; |
89 | | - @extend %ui-button--primary; |
90 | | - @extend %ui-button--disabled; |
91 | | - @extend %ui-button--default-size; |
| 65 | + @include ui-button($chassis-gray-light, $chassis-blue, true); |
| 66 | + @include ui-button-sizes(default); |
92 | 67 | } |
93 | 68 |
|
94 | 69 | &--large { |
95 | | - @extend %ui-button; |
96 | | - @extend %ui-button--primary; |
97 | | - @extend %ui-button--primary--hover; |
98 | | - @extend %ui-button--primary--focus; |
99 | | - @extend %ui-button--primary--active; |
100 | | - @extend %ui-button--primary--disabled; |
101 | | - @extend %ui-button--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); |
102 | 73 |
|
103 | 74 | &--disabled { |
104 | | - @extend %ui-button; |
105 | | - @extend %ui-button--primary; |
106 | | - @extend %ui-button--disabled; |
107 | | - @extend %ui-button--large; |
| 75 | + @include ui-button($chassis-gray-light, $chassis-blue, true); |
| 76 | + @include ui-button-sizes(large); |
108 | 77 | } |
109 | 78 | } |
110 | 79 |
|
111 | 80 | &--small { |
112 | | - @extend %ui-button; |
113 | | - @extend %ui-button--primary; |
114 | | - @extend %ui-button--primary--hover; |
115 | | - @extend %ui-button--primary--focus; |
116 | | - @extend %ui-button--primary--active; |
117 | | - @extend %ui-button--primary--disabled; |
118 | | - @extend %ui-button--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); |
119 | 84 |
|
120 | 85 | &--disabled { |
121 | | - @extend %ui-button; |
122 | | - @extend %ui-button--primary; |
123 | | - @extend %ui-button--disabled; |
124 | | - @extend %ui-button--small; |
| 86 | + @include ui-button($chassis-gray-light, $chassis-blue, true); |
| 87 | + @include ui-button-sizes(small); |
125 | 88 | } |
126 | 89 | } |
127 | 90 |
|
128 | 91 | &--extra-small { |
129 | | - @extend %ui-button; |
130 | | - @extend %ui-button--primary; |
131 | | - @extend %ui-button--primary--hover; |
132 | | - @extend %ui-button--primary--focus; |
133 | | - @extend %ui-button--primary--active; |
134 | | - @extend %ui-button--primary--disabled; |
135 | | - @extend %ui-button--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); |
136 | 95 |
|
137 | 96 | &--disabled { |
138 | | - @extend %ui-button; |
139 | | - @extend %ui-button--primary; |
140 | | - @extend %ui-button--disabled; |
141 | | - @extend %ui-button--extra-small; |
| 97 | + @include ui-button($chassis-gray-light, $chassis-blue, true); |
| 98 | + @include ui-button-sizes(extra-small); |
142 | 99 | } |
143 | 100 | } |
144 | 101 | } |
|
0 commit comments