nice-elements 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +20 -63
- package/dist/nice.min.js +1 -1
- package/dist/style.css +158 -9
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-button/nice-button.html +1 -1
- package/src/components/nice-button/nice-button.js +2 -2
- package/src/components/nice-toggle/nice-toggle.html +2 -2
- package/src/components/nice-toggle/nice-toggle.js +14 -57
- package/src/components/nice-toggle/nice-toggle.scss +61 -8
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-buttons.scss +211 -2
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<button type="{{
|
|
1
|
+
<button type="{{ niceType }}" class="nice-component nice-button btn btn-primary" ng-class="{ 'margin-bottom-0' : noMargin }" ng-click="click()" ng-disabled="niceDisabled == true">
|
|
2
2
|
<nice-icon icon="{{ icon }}" ng-if="icon" ng-class="{ 'opacity-0': loading }"></nice-icon>
|
|
3
3
|
<span ng-if="showSlot" ng-transclude ng-class="{ 'opacity-0': loading }"></span>
|
|
4
4
|
<nice-loader ng-if="loading" fulldiv="true" class="nice-button-loader"></nice-loader>
|
|
@@ -19,11 +19,11 @@ angular.module('niceElements')
|
|
|
19
19
|
niceClick: '&',
|
|
20
20
|
niceDisabled: '=',
|
|
21
21
|
addClass: '@',
|
|
22
|
-
|
|
22
|
+
niceType: '@?'
|
|
23
23
|
},
|
|
24
24
|
controller: function ($q, $scope, $transclude) {
|
|
25
25
|
if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice button: add-class attribute is deprecated")
|
|
26
|
-
if (!$scope.
|
|
26
|
+
if (!$scope.niceType) $scope.niceType = "button";
|
|
27
27
|
$scope.showSlot = $transclude().length > 0;
|
|
28
28
|
$scope.loading = false;
|
|
29
29
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="nice-component nice-toggle" ng-class="{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline, 'active': model }" ng-form="formToggle">
|
|
1
|
+
<div class="nice-component nice-toggle" ng-class="{ 'margin-bottom-0' : noMargin, 'title-right': titleRight, 'nice-component-inline': isInline, 'nice-component-block': isBlock, 'active': model }" ng-form="formToggle">
|
|
2
2
|
<div class="row">
|
|
3
3
|
<!------------------------- Title ------------------------->
|
|
4
4
|
<nice-title text="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
5
|
|
|
6
6
|
<!------------------------- Field ------------------------->
|
|
7
7
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
-
<button type="button" class="nice-toggle-field" ng-click="
|
|
8
|
+
<button type="button" class="nice-toggle-field" ng-click="toggle()" ng-disabled="isDisabled">
|
|
9
9
|
<div class="nice-toggle-field-handle">{{ state }}</div>
|
|
10
10
|
</button>
|
|
11
11
|
</div>
|
|
@@ -17,79 +17,36 @@ angular.module('niceElements')
|
|
|
17
17
|
isDisabled: '=',
|
|
18
18
|
fieldWidth: '@',
|
|
19
19
|
labelWidth: '@',
|
|
20
|
-
defaultFalse: '@',
|
|
21
20
|
noMargin: '@',
|
|
22
21
|
onChange: '&?',
|
|
23
22
|
isInline: '=',
|
|
23
|
+
isBlock: '=',
|
|
24
|
+
titleRight: '=',
|
|
24
25
|
help: '@'
|
|
25
26
|
},
|
|
26
|
-
controller: function ($scope) {
|
|
27
|
+
controller: function ($scope, $timeout) {
|
|
27
28
|
if (!$scope.title) { $scope.title = ''; }
|
|
28
29
|
if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
|
|
29
30
|
if (!$scope.labelWidth) { $scope.labelWidth = 'col-sm-4'; }
|
|
30
31
|
|
|
31
|
-
// ------------------------- Set overlay button position based on passed state in $scope.model -------------------------
|
|
32
|
-
$scope.setButtonPosition = function (state) {
|
|
33
|
-
if (state) {
|
|
34
|
-
$scope.buttonClass = "yesno-button-yes";
|
|
35
|
-
} else {
|
|
36
|
-
$scope.buttonClass = "yesno-button-no";
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
// ------------------------- Watch for changes from outside -------------------------
|
|
41
|
-
$scope.$watch('model', function (value_new, value_old) {
|
|
42
|
-
if (angular.isDefined($scope.model)) {
|
|
43
|
-
$scope.setButtonLabel($scope.model);
|
|
44
|
-
$scope.setButtonPosition($scope.model);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// ------------------------- Watch for model value -------------------------
|
|
49
|
-
$scope.$watch('modelValue', function (value_new, value_old) {
|
|
50
|
-
if ($scope.options) {
|
|
51
|
-
$scope.model = $scope.modelValue == $scope.options[0];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// ------------------------- Set button label -------------------------
|
|
56
|
-
$scope.setButtonLabel = function (state) {
|
|
57
|
-
if (state) {
|
|
58
|
-
$scope.state = $scope.yes;
|
|
59
|
-
} else {
|
|
60
|
-
$scope.state = $scope.no;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
// ------------------------- Set width -------------------------
|
|
65
|
-
$scope.setWidth = function (width, el) {
|
|
66
|
-
el.style.width = width;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
32
|
// ------------------------- Switch -------------------------
|
|
71
|
-
$scope.
|
|
72
|
-
if (
|
|
73
|
-
|
|
33
|
+
$scope.toggle = function () {
|
|
34
|
+
if ($scope.isDisabled) return;
|
|
35
|
+
$scope.model = !$scope.model;
|
|
74
36
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
37
|
+
if ($scope.options) {
|
|
38
|
+
if ($scope.model) {
|
|
39
|
+
$scope.modelValue = $scope.options[0];
|
|
40
|
+
} else {
|
|
41
|
+
$scope.modelValue = $scope.options[1];
|
|
81
42
|
}
|
|
43
|
+
}
|
|
82
44
|
|
|
45
|
+
$timeout(function() {
|
|
83
46
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
84
47
|
$scope.formToggle.$setDirty();
|
|
85
|
-
}
|
|
48
|
+
});
|
|
86
49
|
};
|
|
87
|
-
|
|
88
|
-
// Call it first time
|
|
89
|
-
$scope.setButtonPosition($scope.model);
|
|
90
|
-
|
|
91
|
-
// Set label based on state passed in $scope.model
|
|
92
|
-
$scope.setButtonLabel($scope.model);
|
|
93
50
|
}
|
|
94
51
|
};
|
|
95
52
|
});
|
|
@@ -6,10 +6,38 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.nice-title {
|
|
9
|
-
min-height:
|
|
9
|
+
min-height: 25px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media (max-width: 767px) {
|
|
13
|
+
.nice-field {
|
|
14
|
+
min-height: unset;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.nice-component-block {
|
|
19
|
+
.nice-title {
|
|
20
|
+
min-height: unset;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nice-field {
|
|
24
|
+
min-height: 34px;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
10
28
|
}
|
|
11
29
|
|
|
12
30
|
&.nice-component-inline {
|
|
31
|
+
nice-title {
|
|
32
|
+
display: block;
|
|
33
|
+
|
|
34
|
+
.nice-title {
|
|
35
|
+
min-height: unset;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.title-right {
|
|
13
41
|
.row {
|
|
14
42
|
display: flex;
|
|
15
43
|
align-items: center;
|
|
@@ -17,28 +45,33 @@
|
|
|
17
45
|
|
|
18
46
|
nice-title {
|
|
19
47
|
order: 2;
|
|
20
|
-
|
|
48
|
+
flex-grow: 1;
|
|
21
49
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
50
|
+
.nice-title {
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
margin-left: 1rem;
|
|
54
|
+
text-align: left;
|
|
55
|
+
width: auto;
|
|
56
|
+
}
|
|
27
57
|
}
|
|
28
58
|
|
|
29
59
|
.nice-field {
|
|
30
60
|
margin: 0;
|
|
31
61
|
padding: 0;
|
|
62
|
+
flex-shrink: 0;
|
|
32
63
|
width: auto;
|
|
33
64
|
order: 1;
|
|
34
65
|
}
|
|
35
66
|
}
|
|
36
67
|
}
|
|
37
68
|
|
|
69
|
+
|
|
38
70
|
.nice-toggle-field {
|
|
71
|
+
display: block;
|
|
39
72
|
border: 1px solid var(--nice-border-color);
|
|
40
73
|
background: var(--nice-input-bg);
|
|
41
|
-
border-radius:
|
|
74
|
+
border-radius: 2rem;
|
|
42
75
|
position: relative;
|
|
43
76
|
width: 50px;
|
|
44
77
|
height: 25px;
|
|
@@ -72,4 +105,24 @@
|
|
|
72
105
|
}
|
|
73
106
|
}
|
|
74
107
|
}
|
|
108
|
+
|
|
109
|
+
&.nice-toggle-lg {
|
|
110
|
+
.nice-toggle-field {
|
|
111
|
+
width: 60px;
|
|
112
|
+
height: 30px;
|
|
113
|
+
|
|
114
|
+
.nice-toggle-field-handle {
|
|
115
|
+
top: 4px;
|
|
116
|
+
left: 4px;
|
|
117
|
+
width: 20px;
|
|
118
|
+
height: 20px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.active {
|
|
123
|
+
.nice-toggle-field-handle {
|
|
124
|
+
left: calc(100% - 24px);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
75
128
|
}
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
&:active,
|
|
68
68
|
&.active {
|
|
69
69
|
background: var(--nice-primary-color-lighter);
|
|
70
|
-
border-color: var(--nice-primary-color-lighter);
|
|
70
|
+
// border-color: var(--nice-primary-color-lighter);
|
|
71
71
|
|
|
72
72
|
&:focus,
|
|
73
73
|
&:hover {
|
|
74
74
|
background: var(--nice-primary-color-lighter);
|
|
75
|
-
border-color: var(--nice-primary-color-lighter);
|
|
75
|
+
// border-color: var(--nice-primary-color-lighter);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -174,6 +174,18 @@
|
|
|
174
174
|
color: var(--nice-font-color);
|
|
175
175
|
background: var(--nice-secondary-color);
|
|
176
176
|
border-color: var(--nice-secondary-color);
|
|
177
|
+
|
|
178
|
+
&:disabled {
|
|
179
|
+
|
|
180
|
+
&:active,
|
|
181
|
+
&.active,
|
|
182
|
+
&:focus,
|
|
183
|
+
&:hover {
|
|
184
|
+
color: var(--nice-font-color);
|
|
185
|
+
background: var(--nice-secondary-color);
|
|
186
|
+
border-color: var(--nice-secondary-color);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
177
189
|
}
|
|
178
190
|
|
|
179
191
|
.btn-default-naked {
|
|
@@ -181,6 +193,18 @@
|
|
|
181
193
|
color: var(--font-card);
|
|
182
194
|
background: transparent;
|
|
183
195
|
border-color: transparent;
|
|
196
|
+
|
|
197
|
+
&:disabled {
|
|
198
|
+
|
|
199
|
+
&:active,
|
|
200
|
+
&.active,
|
|
201
|
+
&:focus,
|
|
202
|
+
&:hover {
|
|
203
|
+
color: var(--font-card);
|
|
204
|
+
background: transparent;
|
|
205
|
+
border-color: transparent;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
184
208
|
}
|
|
185
209
|
|
|
186
210
|
// -------------------------- Secondary --------------------------
|
|
@@ -203,6 +227,19 @@
|
|
|
203
227
|
border-color: var(--nice-secondary-color-darker);
|
|
204
228
|
outline-color: var(--nice-secondary-color);
|
|
205
229
|
}
|
|
230
|
+
|
|
231
|
+
&:disabled {
|
|
232
|
+
|
|
233
|
+
&:active,
|
|
234
|
+
&.active,
|
|
235
|
+
&:focus,
|
|
236
|
+
&:hover {
|
|
237
|
+
color: var(--nice-secondary-font-color);
|
|
238
|
+
background: var(--nice-secondary-color);
|
|
239
|
+
border-color: var(--nice-border-color);
|
|
240
|
+
outline-color: var(--nice-secondary-color) !important;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
206
243
|
}
|
|
207
244
|
|
|
208
245
|
.btn-secondary-plain {
|
|
@@ -210,6 +247,18 @@
|
|
|
210
247
|
color: var(--nice-secondary-font-color);
|
|
211
248
|
background: var(--nice-secondary-color);
|
|
212
249
|
border-color: var(--nice-secondary-color);
|
|
250
|
+
|
|
251
|
+
&:disabled {
|
|
252
|
+
|
|
253
|
+
&:active,
|
|
254
|
+
&.active,
|
|
255
|
+
&:focus,
|
|
256
|
+
&:hover {
|
|
257
|
+
color: var(--nice-secondary-font-color);
|
|
258
|
+
background: var(--nice-secondary-color);
|
|
259
|
+
border-color: var(--nice-secondary-color);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
213
262
|
}
|
|
214
263
|
|
|
215
264
|
.btn-secondary-naked {
|
|
@@ -217,6 +266,18 @@
|
|
|
217
266
|
color: var(--nice-secondary-font-color);
|
|
218
267
|
background: transparent;
|
|
219
268
|
border-color: transparent;
|
|
269
|
+
|
|
270
|
+
&:disabled {
|
|
271
|
+
|
|
272
|
+
&:active,
|
|
273
|
+
&.active,
|
|
274
|
+
&:focus,
|
|
275
|
+
&:hover {
|
|
276
|
+
color: var(--nice-secondary-font-color);
|
|
277
|
+
background: transparent;
|
|
278
|
+
border-color: transparent;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
220
281
|
}
|
|
221
282
|
|
|
222
283
|
// -------------------------- Success --------------------------
|
|
@@ -238,6 +299,19 @@
|
|
|
238
299
|
border-color: var(--nice-success-color-darker);
|
|
239
300
|
outline-color: var(--nice-success-color);
|
|
240
301
|
}
|
|
302
|
+
|
|
303
|
+
&:disabled {
|
|
304
|
+
|
|
305
|
+
&:active,
|
|
306
|
+
&.active,
|
|
307
|
+
&:focus,
|
|
308
|
+
&:hover {
|
|
309
|
+
color: white;
|
|
310
|
+
background: var(--nice-success-color);
|
|
311
|
+
border-color: var(--nice-success-color);
|
|
312
|
+
outline-color: var(--nice-success-color) !important;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
241
315
|
}
|
|
242
316
|
|
|
243
317
|
.btn-success-plain {
|
|
@@ -245,6 +319,18 @@
|
|
|
245
319
|
color: var(--nice-success-color);
|
|
246
320
|
background: var(--nice-success-color-plain);
|
|
247
321
|
border-color: var(--nice-success-color-plain);
|
|
322
|
+
|
|
323
|
+
&:disabled {
|
|
324
|
+
|
|
325
|
+
&:active,
|
|
326
|
+
&.active,
|
|
327
|
+
&:focus,
|
|
328
|
+
&:hover {
|
|
329
|
+
color: var(--nice-success-color);
|
|
330
|
+
background: var(--nice-success-color-plain);
|
|
331
|
+
border-color: var(--nice-success-color-plain);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
248
334
|
}
|
|
249
335
|
|
|
250
336
|
.btn-success-naked {
|
|
@@ -252,6 +338,18 @@
|
|
|
252
338
|
color: var(--nice-success-color);
|
|
253
339
|
background: transparent;
|
|
254
340
|
border-color: transparent;
|
|
341
|
+
|
|
342
|
+
&:disabled {
|
|
343
|
+
|
|
344
|
+
&:active,
|
|
345
|
+
&.active,
|
|
346
|
+
&:focus,
|
|
347
|
+
&:hover {
|
|
348
|
+
color: var(--nice-success-color);
|
|
349
|
+
background: transparent;
|
|
350
|
+
border-color: transparent;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
255
353
|
}
|
|
256
354
|
|
|
257
355
|
|
|
@@ -274,6 +372,19 @@
|
|
|
274
372
|
border-color: var(--nice-danger-color-darker);
|
|
275
373
|
outline-color: var(--nice-danger-color);
|
|
276
374
|
}
|
|
375
|
+
|
|
376
|
+
&:disabled {
|
|
377
|
+
|
|
378
|
+
&:active,
|
|
379
|
+
&.active,
|
|
380
|
+
&:focus,
|
|
381
|
+
&:hover {
|
|
382
|
+
color: white;
|
|
383
|
+
background: var(--nice-danger-color);
|
|
384
|
+
border-color: var(--nice-danger-color);
|
|
385
|
+
outline-color: var(--nice-danger-color) !important;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
277
388
|
}
|
|
278
389
|
|
|
279
390
|
.btn-danger-plain {
|
|
@@ -281,6 +392,18 @@
|
|
|
281
392
|
color: var(--nice-danger-color);
|
|
282
393
|
background: var(--nice-danger-color-plain);
|
|
283
394
|
border-color: var(--nice-danger-color-plain);
|
|
395
|
+
|
|
396
|
+
&:disabled {
|
|
397
|
+
|
|
398
|
+
&:active,
|
|
399
|
+
&.active,
|
|
400
|
+
&:focus,
|
|
401
|
+
&:hover {
|
|
402
|
+
color: var(--nice-danger-color);
|
|
403
|
+
background: var(--nice-danger-color-plain);
|
|
404
|
+
border-color: var(--nice-danger-color-plain);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
284
407
|
}
|
|
285
408
|
|
|
286
409
|
.btn-danger-naked {
|
|
@@ -288,6 +411,18 @@
|
|
|
288
411
|
color: var(--nice-danger-color);
|
|
289
412
|
background: transparent;
|
|
290
413
|
border-color: transparent;
|
|
414
|
+
|
|
415
|
+
&:disabled {
|
|
416
|
+
|
|
417
|
+
&:active,
|
|
418
|
+
&.active,
|
|
419
|
+
&:focus,
|
|
420
|
+
&:hover {
|
|
421
|
+
color: var(--nice-danger-color);
|
|
422
|
+
background: transparent;
|
|
423
|
+
border-color: transparent;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
291
426
|
}
|
|
292
427
|
|
|
293
428
|
|
|
@@ -310,6 +445,19 @@
|
|
|
310
445
|
border-color: var(--nice-info-color-darker);
|
|
311
446
|
outline-color: var(--nice-info-color);
|
|
312
447
|
}
|
|
448
|
+
|
|
449
|
+
&:disabled {
|
|
450
|
+
|
|
451
|
+
&:active,
|
|
452
|
+
&.active,
|
|
453
|
+
&:focus,
|
|
454
|
+
&:hover {
|
|
455
|
+
color: white;
|
|
456
|
+
background: var(--nice-info-color);
|
|
457
|
+
border-color: var(--nice-info-color);
|
|
458
|
+
outline-color: var(--nice-info-color) !important;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
313
461
|
}
|
|
314
462
|
|
|
315
463
|
.btn-info-plain {
|
|
@@ -317,6 +465,18 @@
|
|
|
317
465
|
color: var(--nice-info-color);
|
|
318
466
|
background: var(--nice-info-color-plain);
|
|
319
467
|
border-color: var(--nice-info-color-plain);
|
|
468
|
+
|
|
469
|
+
&:disabled {
|
|
470
|
+
|
|
471
|
+
&:active,
|
|
472
|
+
&.active,
|
|
473
|
+
&:focus,
|
|
474
|
+
&:hover {
|
|
475
|
+
color: var(--nice-info-color);
|
|
476
|
+
background: var(--nice-info-color-plain);
|
|
477
|
+
border-color: var(--nice-info-color-plain);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
320
480
|
}
|
|
321
481
|
|
|
322
482
|
.btn-info-naked {
|
|
@@ -324,6 +484,18 @@
|
|
|
324
484
|
color: var(--nice-info-color);
|
|
325
485
|
background: transparent;
|
|
326
486
|
border-color: transparent;
|
|
487
|
+
|
|
488
|
+
&:disabled {
|
|
489
|
+
|
|
490
|
+
&:active,
|
|
491
|
+
&.active,
|
|
492
|
+
&:focus,
|
|
493
|
+
&:hover {
|
|
494
|
+
color: var(--nice-info-color);
|
|
495
|
+
background: transparent;
|
|
496
|
+
border-color: transparent;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
327
499
|
}
|
|
328
500
|
|
|
329
501
|
|
|
@@ -346,6 +518,19 @@
|
|
|
346
518
|
border-color: var(--nice-warning-color-darker);
|
|
347
519
|
outline-color: var(--nice-warning-color);
|
|
348
520
|
}
|
|
521
|
+
|
|
522
|
+
&:disabled {
|
|
523
|
+
|
|
524
|
+
&:active,
|
|
525
|
+
&.active,
|
|
526
|
+
&:focus,
|
|
527
|
+
&:hover {
|
|
528
|
+
color: white;
|
|
529
|
+
background: var(--nice-warning-color);
|
|
530
|
+
border-color: var(--nice-warning-color);
|
|
531
|
+
outline-color: var(--nice-warning-color) !important;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
349
534
|
}
|
|
350
535
|
|
|
351
536
|
.btn-warning-plain {
|
|
@@ -353,6 +538,18 @@
|
|
|
353
538
|
color: var(--nice-warning-color);
|
|
354
539
|
background: var(--nice-warning-color-plain);
|
|
355
540
|
border-color: var(--nice-warning-color-plain);
|
|
541
|
+
|
|
542
|
+
&:disabled {
|
|
543
|
+
|
|
544
|
+
&:active,
|
|
545
|
+
&.active,
|
|
546
|
+
&:focus,
|
|
547
|
+
&:hover {
|
|
548
|
+
color: var(--nice-warning-color);
|
|
549
|
+
background: var(--nice-warning-color-plain);
|
|
550
|
+
border-color: var(--nice-warning-color-plain);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
356
553
|
}
|
|
357
554
|
|
|
358
555
|
.btn-warning-naked {
|
|
@@ -360,6 +557,18 @@
|
|
|
360
557
|
color: var(--nice-warning-color);
|
|
361
558
|
background: transparent;
|
|
362
559
|
border-color: transparent;
|
|
560
|
+
|
|
561
|
+
&:disabled {
|
|
562
|
+
|
|
563
|
+
&:active,
|
|
564
|
+
&.active,
|
|
565
|
+
&:focus,
|
|
566
|
+
&:hover {
|
|
567
|
+
color: var(--nice-warning-color);
|
|
568
|
+
background: transparent;
|
|
569
|
+
border-color: transparent;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
363
572
|
}
|
|
364
573
|
|
|
365
574
|
|