|
1 |
| -$button-font-weight: 700 !default; |
2 |
| -$button-font-size: .875rem !default; |
3 |
| -$button-border-radius: 0 !default; |
4 |
| -$button-height: 40px !default; |
5 |
| -$button-padding: 0 1rem !default; |
6 |
| -$button-padding-sm: 0 .5rem !default; |
7 |
| -$button-border-width: 2px !default; |
8 |
| - |
9 |
| -$button-font-weight: 400; |
10 |
| -$button-font-size: 1rem; |
11 |
| -$button-border-radius: 1rem; |
12 |
| -$button-height: 32px; |
13 |
| -$button-padding: 0 2rem; |
14 |
| -$button-padding-sm: 0 1rem; |
15 |
| -$button-border-width: 1px; |
16 |
| - |
17 |
| - |
18 |
| -// Watson |
19 |
| -$brand-01: #047cc0; |
20 |
| -$brand-02: #175d8d; |
21 |
| -$brand-03: #95c4f3; |
22 |
| -$inverse-01: #ffffff; |
23 |
| -$ui-01: #f6f6f6; |
24 |
| -$ui-02: #ffffff; |
25 |
| -$ui-03: #eaeaea; |
26 |
| -$ui-04: #eaeaea; |
27 |
| -$ui-05: #777677; |
28 |
| -$text-01: #272727; |
29 |
| -$text-02: #595859; |
30 |
| -$text-03: #777677; |
31 |
| -$field-01: #eaeaea; |
32 |
| -$support-01: #e62325; |
33 |
| -$support-02: #34bc6e; |
34 |
| -$support-03: #fed500; |
35 |
| -$support-04: #5c1f1b; |
36 |
| -$nav-01: #1b2834; |
37 |
| -$nav-02: #1c496d; |
38 |
| - |
39 | 1 | @mixin button-base {
|
40 | 2 | @include reset;
|
41 | 3 | @include helvetica;
|
@@ -70,7 +32,6 @@ $nav-02: #1c496d;
|
70 | 32 | width: rem(16px);
|
71 | 33 | height: rem(16px);
|
72 | 34 | margin-left: .5rem;
|
73 |
| - transition-duration: $transition--base; |
74 | 35 | }
|
75 | 36 | }
|
76 | 37 |
|
@@ -99,146 +60,3 @@ $nav-02: #1c496d;
|
99 | 60 | fill: $icon-color;
|
100 | 61 | }
|
101 | 62 | }
|
102 |
| - |
103 |
| -/* ☠️️ Deprecated - after updating the following components, can be deleted in 7.x |
104 |
| - - footer |
105 |
| - - form |
106 |
| - - modal |
107 |
| -*/ |
108 |
| - |
109 |
| -@mixin btn--browser-fixes { |
110 |
| - $class: &; |
111 |
| - |
112 |
| - @at-root button#{$class} { |
113 |
| - // CSS selector becomes: button.& {}, where & === is whatever class the ampersand equals |
114 |
| - // <button> elements cannot be used as flex containers |
115 |
| - display: inline-block; |
116 |
| - |
117 |
| - svg { |
118 |
| - // Vertically centering icon inside <button> |
119 |
| - position: relative; |
120 |
| - vertical-align: middle; |
121 |
| - top: -1px; |
122 |
| - } |
123 |
| - |
124 |
| - // Targets IE10+ browsers |
125 |
| - @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { |
126 |
| - // Reset <svg> position for vertical centering |
127 |
| - svg { top: 0; } |
128 |
| - } |
129 |
| - } |
130 |
| - |
131 |
| - &::-moz-focus-inner { |
132 |
| - // Reset intrisic padding in Firefox (see #731) |
133 |
| - padding: 0; |
134 |
| - border: 0; |
135 |
| - } |
136 |
| -} |
137 |
| - |
138 |
| -@mixin btn--base { |
139 |
| - @include reset; |
140 |
| - @include btn--browser-fixes; |
141 |
| - @include helvetica; |
142 |
| - @include font-smoothing; |
143 |
| - @include letter-spacing; |
144 |
| - @include font-size('14'); |
145 |
| - cursor: pointer; |
146 |
| - display: inline-flex; |
147 |
| - align-items: center; |
148 |
| - justify-content: center; |
149 |
| - flex-shrink: 0; |
150 |
| - font-weight: 700; |
151 |
| - height: rem(40px); |
152 |
| - padding: 0 1rem; |
153 |
| - text-align: center; |
154 |
| - text-decoration: none; |
155 |
| - transition-duration: $transition--base; |
156 |
| - transition-timing-function: ease-in; |
157 |
| - white-space: nowrap; |
158 |
| - |
159 |
| - &:disabled { |
160 |
| - cursor: not-allowed; |
161 |
| - opacity: .5; |
162 |
| - } |
163 |
| - |
164 |
| - &:focus { |
165 |
| - @include focus-outline; |
166 |
| - } |
167 |
| - |
168 |
| - svg { |
169 |
| - width: rem(16px); |
170 |
| - height: rem(16px); |
171 |
| - margin-left: .5rem; |
172 |
| - } |
173 |
| -} |
174 |
| - |
175 |
| - |
176 |
| -@mixin btn--primary( |
177 |
| - $bg: $brand-01, |
178 |
| - $hover-bg: $brand-02, |
179 |
| - $text: $inverse-01 |
180 |
| -) { |
181 |
| - @include btn--base; |
182 |
| - color: $text; |
183 |
| - background-color: $bg; |
184 |
| - border: 2px solid transparent; |
185 |
| - |
186 |
| - &:hover, |
187 |
| - &:focus { |
188 |
| - background-color: $hover-bg; |
189 |
| - |
190 |
| - &:disabled { |
191 |
| - background-color: $bg; |
192 |
| - } |
193 |
| - } |
194 |
| - |
195 |
| - &:active { |
196 |
| - background-color: darken($bg, 20%); |
197 |
| - } |
198 |
| -} |
199 |
| - |
200 |
| -@mixin btn--secondary( |
201 |
| - $hover-bg: $brand-01, |
202 |
| - $text: $hover-bg, |
203 |
| - $hover-text: $inverse-01 |
204 |
| -) { |
205 |
| - @include btn--base; |
206 |
| - color: $text; |
207 |
| - background-color: transparent; |
208 |
| - border: 2px solid $hover-bg; |
209 |
| - |
210 |
| - &:hover, |
211 |
| - &:focus { |
212 |
| - color: $hover-text; |
213 |
| - background-color: $hover-bg; |
214 |
| - |
215 |
| - &:disabled { |
216 |
| - color: $text; |
217 |
| - background-color: transparent; |
218 |
| - } |
219 |
| - } |
220 |
| - |
221 |
| - &:active { |
222 |
| - background-color: darken($hover-bg, 20%); |
223 |
| - } |
224 |
| -} |
225 |
| - |
226 |
| -@mixin btn--danger { |
227 |
| - @include btn--base; |
228 |
| - color: $ui-05; |
229 |
| - background-color: transparent; |
230 |
| - border: 2px solid currentColor; |
231 |
| - |
232 |
| - &:hover, |
233 |
| - &:focus { |
234 |
| - color: $inverse-01; |
235 |
| - border: 2px solid transparent; |
236 |
| - background-color: $support-01; |
237 |
| - |
238 |
| - &:disabled { |
239 |
| - color: $inverse-01; |
240 |
| - background-color: transparent; |
241 |
| - border: 2px solid currentColor; |
242 |
| - } |
243 |
| - } |
244 |
| -} |
0 commit comments