nice-elements 1.9.3 → 1.9.5

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/bower.json +1 -1
  4. package/dist/nice.js +176 -121
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +97 -74
  7. package/dist/style.css.map +1 -1
  8. package/dist/style.min.css +2 -2
  9. package/package.json +1 -1
  10. package/src/components/nice-date/nice-date.html +4 -3
  11. package/src/components/nice-date/nice-date.scss +0 -13
  12. package/src/components/nice-date-input/nice-date-input.html +12 -8
  13. package/src/components/nice-date-input/nice-date-input.scss +4 -9
  14. package/src/components/nice-datetime-picker/nice-datetime-picker.html +6 -4
  15. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +5 -3
  16. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +2 -2
  17. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +1 -12
  18. package/src/components/nice-dropdown/nice-dropdown.html +7 -3
  19. package/src/components/nice-dropdown/nice-dropdown.js +38 -9
  20. package/src/components/nice-dropdown/nice-dropdown.scss +18 -0
  21. package/src/components/nice-dropdown-date/nice-dropdown-date.scss +5 -0
  22. package/src/components/nice-number/nice-number.scss +0 -25
  23. package/src/components/nice-quantity/nice-quantity.html +10 -6
  24. package/src/components/nice-quantity/nice-quantity.scss +0 -9
  25. package/src/components/nice-search/nice-search.html +4 -4
  26. package/src/components/nice-search2/nice-search2.html +4 -4
  27. package/src/components/nice-search2/nice-search2.js +6 -0
  28. package/src/components/nice-time-picker/nice-time-picker.html +4 -2
  29. package/src/components/nice-upload/nice-upload.js +1 -1
  30. package/src/components/nice-yesno/nice-yesno.html +2 -2
  31. package/src/components/nice-yesno/nice-yesno.scss +3 -4
  32. package/src/services/nice-service.js +1 -1
  33. package/src/styles/_nice-buttons.scss +48 -0
  34. package/src/styles/_nice-common.scss +44 -2
@@ -10,9 +10,9 @@
10
10
  <div class="nice-daterange-picker-button input-group" ng-class="{ 'open': isOpen }" ng-click="open()">
11
11
  <input type="text" class="form-control" value="{{ modelFormat }}" readonly="readonly" ng-disabled="isDisabled" />
12
12
  <!-- <div class="form-control" title="{{ modelFormat }}">{{ modelFormat }}</div> -->
13
- <span class="input-group-addon clickable">
13
+ <button class="btn input-group-addon" ng-disabled="isDisabled">
14
14
  <nice-icon icon="icon-calendar"></nice-icon>
15
- </span>
15
+ </button>
16
16
  </div>
17
17
 
18
18
  <div class="nice-daterange-picker-wrapper">
@@ -7,18 +7,7 @@
7
7
  text-overflow: ellipsis;
8
8
  }
9
9
 
10
- &.open {
11
-
12
- .form-control,
13
- .input-group-addon {
14
- border-color: $nice-base-color;
15
- }
16
-
17
- .input-group-addon {
18
- background-color: $nice-base-color;
19
- color: white;
20
- }
21
- }
10
+ &.open {}
22
11
  }
23
12
 
24
13
  .nice-daterange-picker-wrapper {
@@ -33,12 +33,16 @@
33
33
  <nice-icon ng-if="!internal.search" class="icon" icon="icon-search"></nice-icon>
34
34
  <nice-icon ng-if="internal.search" class="icon" icon="icon-x" ng-click="clearSearch()"></nice-icon>
35
35
  </div>
36
+ <div class="nice-dropdown-actions" ng-if="multiple">
37
+ <button class="btn btn-default btn-sm" ng-click="selectAll()" translate translate-context="Nice">All</button>
38
+ <button class="btn btn-default btn-sm" ng-click="selectNone()">{{ nullableText }}</button>
39
+ </div>
36
40
  <div class="nice-dropdown-items" aria-labelledby="nice-dropdown-{{ id }}" role="listbox">
37
41
  <div role="none" class="nice-no-data" ng-if="internalList && internalList.length == 0">{{ noDataText }}</div>
38
- <button role="option" class="nice-dropdown-item null-item" ng-if="nullable && internalList.length != 0" ng-click="handleSelected(null, -1)">
42
+ <button role="option" class="nice-dropdown-item null-item" ng-if="!multiple && nullable && internalList.length != 0" ng-click="handleSelected(null, -1)" ng-disabled="isDisabled">
39
43
  {{ nullableText }}
40
44
  </button>
41
- <button role="option" class="nice-dropdown-item" ng-repeat="item in internalList" ng-click="handleSelected(item, $index)" ng-class="{ 'selected': item._selected }">
45
+ <button role="option" class="nice-dropdown-item" ng-repeat="item in internalList" ng-click="handleSelected(item, $index)" ng-class="{ 'selected': item._selected }" ng-disabled="isDisabled">
42
46
  <div class="choice-checkbox" ng-if="multiple" role="menuitemcheckbox"><i class="fa fa-check"></i></div>
43
47
  <div class="choice-option" ng-transclude="option" ng-class="{ 'multiple-item': multiple }">{{ item[objValue] }}</div>
44
48
  </button>
@@ -48,7 +52,7 @@
48
52
 
49
53
 
50
54
  <!------------------------- Add button ------------------------->
51
- <button class="btn btn-primary btn-icon add-btn" type="button" ng-if="addButtonFunction && !isDisabled" ng-click="addButtonFunction()">
55
+ <button class="btn btn-primary btn-icon add-btn" type="button" ng-if="addButtonFunction && !isDisabled" ng-click="addButtonFunction()" ng-disabled="isDisabled">
52
56
  <nice-icon icon="icon-plus"></nice-icon>
53
57
  </button>
54
58
  </div>
@@ -21,6 +21,8 @@ angular.module('niceElements')
21
21
  list: '=', // List of options
22
22
  onChange: '&?',
23
23
  onSelect: '&?', // Like onChange but always return objects
24
+ onClose: '&?',
25
+ onOpen: '&?',
24
26
  isDisabled: '=',
25
27
  fieldWidth: '@',
26
28
  labelWidth: '@',
@@ -126,6 +128,7 @@ angular.module('niceElements')
126
128
 
127
129
  $scope.close = function () {
128
130
  $scope.isOpen = false;
131
+ if ($scope.onClose) $scope.onClose();
129
132
  };
130
133
 
131
134
  $scope.open = function () {
@@ -133,6 +136,7 @@ angular.module('niceElements')
133
136
  if ($scope.filterFunction) $scope.internalList = $scope.filterFunction($scope.originalList);
134
137
  $timeout(function () {
135
138
  $scope.isOpen = true;
139
+ if ($scope.onOpen) $scope.onOpen();
136
140
  $timeout(function () {
137
141
  $scope.popper.update();
138
142
  });
@@ -281,6 +285,28 @@ angular.module('niceElements')
281
285
  };
282
286
 
283
287
 
288
+ // ----------------------------------- Select all -----------------------------------
289
+ $scope.selectAll = function () {
290
+ if (!$scope.multiple) return;
291
+ $scope.selected = $scope.internalList;
292
+ angular.forEach($scope.internalList, function (o) {
293
+ o._selected = true;
294
+ });
295
+ $scope.handleSetModel();
296
+ }
297
+
298
+
299
+ // ----------------------------------- Select none -----------------------------------
300
+ $scope.selectNone = function () {
301
+ if (!$scope.multiple) return;
302
+ $scope.selected = [];
303
+ angular.forEach($scope.internalList, function (o) {
304
+ o._selected = false;
305
+ });
306
+ $scope.handleSetModel();
307
+ }
308
+
309
+
284
310
  // ----------------------------------- Handle single slect -----------------------------------
285
311
  $scope.handleSingleSelect = function (item, index) {
286
312
  $scope.selected = item;
@@ -295,19 +321,21 @@ angular.module('niceElements')
295
321
 
296
322
  if ($scope.selected != null) {
297
323
  // Remove selected flag
298
- if ($scope.multiple) {
299
- angular.forEach(obj, function (o) {
300
- o._selected = undefined;
301
- });
302
- } else {
303
- obj._selected = undefined;
324
+ if (!$scope.selectedIsKey) {
325
+ if ($scope.multiple) {
326
+ angular.forEach(obj, function (o) {
327
+ o._selected = undefined;
328
+ });
329
+ } else {
330
+ obj._selected = undefined;
331
+ }
304
332
  }
305
333
 
306
334
  // Selected is object
307
335
  if ($scope.selectedIsKey) {
308
336
  if ($scope.multiple) {
309
- angular.forEach(obj, function (o) {
310
- o = o[$scope.objKey];
337
+ obj = obj.map(function (o) {
338
+ return o[$scope.objKey];
311
339
  });
312
340
  } else {
313
341
  obj = obj[$scope.objKey];
@@ -360,10 +388,11 @@ angular.module('niceElements')
360
388
  // Not object
361
389
  if ($scope.multiple) {
362
390
  // Multiple
363
- angular.forEach($scope.selected, function (s) {
391
+ angular.forEach($scope.selected, function (s, index) {
364
392
  if (i[$scope.objKey] == s) {
365
393
  i._selected = true;
366
394
  // $scope.selected.push(i);
395
+ $scope.selected[index] = i
367
396
  // $scope.selectedIndex = index;
368
397
  }
369
398
  });
@@ -103,6 +103,17 @@
103
103
  color: #ccc;
104
104
  }
105
105
 
106
+ .nice-dropdown-actions {
107
+ padding: 5px;
108
+ border-bottom: 1px solid var(--nice-border-color);
109
+
110
+ .btn-sm {
111
+ min-height: auto !important;
112
+ padding: 2px 4px;
113
+ line-height: 1;
114
+ }
115
+ }
116
+
106
117
  .nice-dropdown-items {
107
118
  overflow-y: auto;
108
119
  overflow-x: hidden;
@@ -213,6 +224,13 @@
213
224
  cursor: not-allowed;
214
225
  background: $nice-dropdown-disabled-bg !important;
215
226
  border-color: var(--nice-border-color);
227
+
228
+ &:hover,
229
+ &:active,
230
+ &:focus {
231
+ outline: 0 none;
232
+ border-color: var(--nice-border-color);
233
+ }
216
234
  }
217
235
 
218
236
  &:hover {
@@ -59,6 +59,11 @@
59
59
  cursor: not-allowed;
60
60
  background: $nice-dropdown-disabled-bg !important;
61
61
  border-color: var(--nice-border-color);
62
+
63
+ &:active,
64
+ &:focus {
65
+ outline: 0 none;
66
+ }
62
67
  }
63
68
 
64
69
  &:hover {
@@ -10,31 +10,6 @@
10
10
  }
11
11
  }
12
12
 
13
- .input-group-btn {
14
- .btn {
15
- background: $nice-input-bg;
16
- height: 34px;
17
- width: 34px;
18
- display: flex;
19
- justify-content: center;
20
- align-items: center;
21
- line-height: 0;
22
- border: 1px solid $nice-border-color;
23
-
24
- &:focus {
25
- outline: 0;
26
- }
27
-
28
- &.btn-left {
29
- border-right: 0 none;
30
- }
31
-
32
- &.btn-right {
33
- border-left: 0 none;
34
- }
35
- }
36
- }
37
-
38
13
  .error-messages {
39
14
  &.floating-error {
40
15
  position: absolute;
@@ -6,13 +6,17 @@
6
6
  <!------------------------- Field ------------------------->
7
7
  <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
8
8
  <div class="input-group">
9
- <button class="btn btn-default btn-left" ng-click="sub()" type="button" ng-disabled="model <= min || isDisabled" tabindex="-1">
10
- <nice-icon icon="icon-minus"></nice-icon>
11
- </button>
9
+ <span class="input-group-btn">
10
+ <button class="btn btn-default btn-left" ng-click="sub()" type="button" ng-disabled="(model <= min) || isDisabled" tabindex="-1">
11
+ <nice-icon icon="icon-minus"></nice-icon>
12
+ </button>
13
+ </span>
12
14
  <input class="value form-control" ng-model="model" type="number" min="{{ min }}" max="{{ max }}" ng-change="handleChange()" ng-disabled="isDisabled" />
13
- <button class="btn btn-default btn-right" ng-click="add()" type="button" ng-disabled="model >= max || isDisabled" tabindex="-1">
14
- <nice-icon icon="icon-plus"></nice-icon>
15
- </button>
15
+ <span class="input-group-btn">
16
+ <button class="btn btn-default btn-right" ng-click="add()" type="button" ng-disabled="(model >= max) || isDisabled" tabindex="-1">
17
+ <nice-icon icon="icon-plus"></nice-icon>
18
+ </button>
19
+ </span>
16
20
  </div>
17
21
  </div>
18
22
  </div>
@@ -12,15 +12,6 @@
12
12
  }
13
13
 
14
14
  .btn {
15
- border: 1px solid $nice-border-color;
16
- border-radius: 0;
17
- width: 34px;
18
- display: flex;
19
- background: $nice-input-bg;
20
- justify-content: center;
21
- align-items: center;
22
- line-height: 0;
23
-
24
15
  &:focus {
25
16
  outline: 0 none;
26
17
  }
@@ -8,18 +8,18 @@
8
8
  <div class="input-group" ng-class="{ 'disabled': isDisabled }">
9
9
  <input class="form-control" type="text" id="{{ id }}" ng-model="modelString" ng-keypress="keypress($event)" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-required="required" tabindex="{{ tabIndex }}">
10
10
 
11
- <span class="input-group-addon clickable" ng-click="search()" ng-if="!model">
11
+ <button class="btn input-group-addon" ng-click="search()" ng-if="!model" ng-disabled="isDisabled">
12
12
  <!-- <i ng-show="!loading" class="fa fa-search"></i>
13
13
  <i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
14
14
  <!-- <nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon> -->
15
15
  <nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
16
16
  <nice-loader ng-if="loading"></nice-loader>
17
- </span>
17
+ </button>
18
18
 
19
- <span class="input-group-addon clickable" ng-click="remove()" ng-if="model">
19
+ <button class="btn input-group-addon" ng-click="remove()" ng-if="model" ng-disabled="isDisabled">
20
20
  <!-- <i ng-show="!loading" class="fa fa-remove"></i> -->
21
21
  <nice-icon ng-show="!loading" icon="icon-x"></nice-icon>
22
- </span>
22
+ </button>
23
23
  </div>
24
24
  </div>
25
25
  </div>
@@ -8,11 +8,11 @@
8
8
  <div class="nice-search-button input-group" ng-class="{ 'disabled': isDisabled }">
9
9
  <input class="form-control" type="text" id="{{ id }}" ng-model="model" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-focus="onFocus()" tabindex="{{ tabIndex }}">
10
10
 
11
- <span class="input-group-addon">
12
- <nice-icon class="clickable" ng-show="!loading && model != ''" icon="icon-x" ng-click="clear()"></nice-icon>
13
- <nice-icon class="clickable" ng-show="!loading && model == ''" icon="icon-search" ng-click="onFocus()"></nice-icon>
11
+ <button class="btn input-group-addon" ng-disabled="isDisabled" ng-click="buttonClicked()">
12
+ <nice-icon ng-show="!loading && model != ''" icon="icon-x"></nice-icon>
13
+ <nice-icon ng-show="!loading && model == ''" icon="icon-search"></nice-icon>
14
14
  <nice-loader ng-if="loading"></nice-loader>
15
- </span>
15
+ </button>
16
16
  </div>
17
17
 
18
18
  <div class="nice-search-dropdown-wrapper">
@@ -165,6 +165,11 @@ angular.module('niceElements')
165
165
  }
166
166
  };
167
167
 
168
+ // ------------------------ Button clicked ------------------------
169
+ $scope.buttonClicked = function () {
170
+ if (!$scope.loading && $scope.model != '') $scope.clear();
171
+ if (!$scope.loading && $scope.model == '') $scope.onFocus();
172
+ }
168
173
 
169
174
  // ------------------------ If search button is clicked set focus or make request ------------------------
170
175
  $scope.search = function () {
@@ -180,6 +185,7 @@ angular.module('niceElements')
180
185
  // ------------------------ Clear search ------------------------
181
186
  $scope.clear = function () {
182
187
  $scope.model = "";
188
+ if ($scope.onChange) $scope.onChange({ model: $scope.model });
183
189
  };
184
190
 
185
191
 
@@ -10,8 +10,10 @@
10
10
  'disabled': isDisabled
11
11
  }">
12
12
  <input type="text" class="form-control" ng-model="modelString" ng-keyup="$event.keyCode == 13 && validateDate()" ng-blur="validateDate()">
13
- <span class="input-group-addon clickable" ng-click="open = !open">
14
- <nice-icon icon="icon-clock"></nice-icon>
13
+ <span class="input-group-btn">
14
+ <button class="btn btn-default btn-right" ng-click="open = !open">
15
+ <nice-icon icon="icon-clock"></nice-icon>
16
+ </button>
15
17
  </span>
16
18
  </div>
17
19
 
@@ -89,7 +89,7 @@ angular.module('niceElements')
89
89
  $timeout(function () {
90
90
  // file size must be smaller than XMB.
91
91
  if (fileSize > (scope.maxFileSize * 1000000)) {
92
- scope.error = gettextCatalog.getString(`File must be smaller than {{size}}MB`, { size: scope.maxFileSize }, "Nice");
92
+ scope.error = gettextCatalog.getString("File must be smaller than {{size}}MB", { size: scope.maxFileSize }, "Nice");
93
93
  scope.loading = false;
94
94
  scope.imageSource = null;
95
95
  return;
@@ -6,8 +6,8 @@
6
6
  <!------------------------- Field ------------------------->
7
7
  <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
8
8
  <div class="yesno-wrapper noselect">
9
- <button class="yesno-yes-bg" ng-click="switch()" tabindex="-1" type="button">{{ yes }}</button>
10
- <button class="yesno-no-bg" ng-click="switch()" tabindex="-1" type="button">{{ no }}</button>
9
+ <button class="yesno-yes-bg" ng-click="switch()" tabindex="-1" type="button" ng-disabled="isDisabled">{{ yes }}</button>
10
+ <button class="yesno-no-bg" ng-click="switch()" tabindex="-1" type="button" ng-disabled="isDisabled">{{ no }}</button>
11
11
  <button class="yesno-button btn btn-primary" ng-class="buttonClass" ng-click="switch()" ng-disabled="isDisabled" type="button">{{ state }}</button>
12
12
  </div>
13
13
  </div>
@@ -1,9 +1,7 @@
1
1
  .nice-yesno {
2
- .disabled {
3
- background-color: $nice-yesno-disabled-bg;
4
- opacity: 0.65;
5
- border: $nice-yesno-disabled-border;
2
+ .nice-disabled {
6
3
 
4
+ .yesno-wrapper,
7
5
  .yesno-yes-bg,
8
6
  .yesno-no-bg,
9
7
  .yesno-button {
@@ -69,6 +67,7 @@
69
67
  bottom: 2px;
70
68
  left: 2px;
71
69
  width: calc(50% - 2px);
70
+ opacity: 1 !important;
72
71
 
73
72
  &:hover {
74
73
  background-color: darken($nice-yesno-slider-bg, 5%);
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function () {
11
11
  var service = {
12
12
  name: "Nice elements",
13
- version: "1.9.3",
13
+ version: "1.9.5",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  }
@@ -82,6 +82,18 @@
82
82
  border-color: var(--nice-primary-color-darker);
83
83
  outline-color: var(--nice-primary-color);
84
84
  }
85
+
86
+ &:disabled {
87
+
88
+ &:active,
89
+ &.active,
90
+ &:focus,
91
+ &:hover {
92
+ background: var(--nice-primary-color);
93
+ border-color: var(--nice-primary-color-darker);
94
+ outline-color: var(--nice-primary-color);
95
+ }
96
+ }
85
97
  }
86
98
 
87
99
  .btn-primary-plain {
@@ -89,6 +101,18 @@
89
101
  color: var(--nice-primary-color);
90
102
  background: var(--nice-primary-color-plain);
91
103
  border-color: var(--nice-primary-color-plain);
104
+
105
+ &:disabled {
106
+
107
+ &:active,
108
+ &.active,
109
+ &:focus,
110
+ &:hover {
111
+ color: var(--nice-primary-color);
112
+ background: var(--nice-primary-color-plain);
113
+ border-color: var(--nice-primary-color-plain);
114
+ }
115
+ }
92
116
  }
93
117
 
94
118
  .btn-primary-naked {
@@ -96,6 +120,18 @@
96
120
  color: var(--nice-primary-color);
97
121
  background: transparent;
98
122
  border-color: transparent;
123
+
124
+ &:disabled {
125
+
126
+ &:active,
127
+ &.active,
128
+ &:focus,
129
+ &:hover {
130
+ color: var(--nice-primary-color);
131
+ background: transparent;
132
+ border-color: transparent;
133
+ }
134
+ }
99
135
  }
100
136
 
101
137
 
@@ -119,6 +155,18 @@
119
155
  background: var(--nice-secondary-color-darker);
120
156
  border-color: var(--nice-secondary-color-darker);
121
157
  }
158
+
159
+ &:disabled {
160
+
161
+ &:active,
162
+ &.active,
163
+ &:focus,
164
+ &:hover {
165
+ color: var(--nice-font-color);
166
+ background: var(--nice-secondary-color);
167
+ border-color: var(--nice-secondary-color);
168
+ }
169
+ }
122
170
  }
123
171
 
124
172
  .btn-default-plain {
@@ -48,6 +48,35 @@ label.nice {
48
48
  flex-shrink: 0;
49
49
  }
50
50
 
51
+ .input-group-btn {
52
+ .btn {
53
+ background: $nice-input-bg;
54
+ height: 34px;
55
+ width: 34px;
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ line-height: 0;
60
+ border: 1px solid $nice-border-color;
61
+
62
+ &:focus {
63
+ outline: 0;
64
+ }
65
+
66
+ &.btn-left {
67
+ border-right: 0 none;
68
+ border-top-left-radius: var(--nice-border-radius);
69
+ border-bottom-left-radius: var(--nice-border-radius);
70
+ }
71
+
72
+ &.btn-right {
73
+ border-left: 0 none;
74
+ border-top-right-radius: var(--nice-border-radius);
75
+ border-bottom-right-radius: var(--nice-border-radius);
76
+ }
77
+ }
78
+ }
79
+
51
80
  .form-control {
52
81
  z-index: unset;
53
82
  }
@@ -69,11 +98,15 @@ label.nice {
69
98
 
70
99
  input {
71
100
  outline: 0 none;
72
- border-color: var(--nice-border-color) !important;
101
+ // border-color: var(--nice-border-color) !important;
73
102
  }
74
103
 
75
104
  .input-group-addon {
76
105
  border-color: var(--nice-border-color) !important;
106
+
107
+ &:focus {
108
+ outline: 0 none;
109
+ }
77
110
  }
78
111
  }
79
112
  }
@@ -141,6 +174,7 @@ label.nice {
141
174
  background: $nice-input-disabled-bg;
142
175
  // border-color: $nice-input-disabled-border;
143
176
  opacity: 0.65;
177
+ cursor: not-allowed;
144
178
  }
145
179
  }
146
180
 
@@ -162,6 +196,12 @@ label.nice {
162
196
  height: 16px;
163
197
  width: 16px;
164
198
  }
199
+
200
+ &.btn {
201
+ &:focus {
202
+ outline: 0 none;
203
+ }
204
+ }
165
205
  }
166
206
 
167
207
  .clickable {
@@ -372,7 +412,9 @@ p.nice {
372
412
  .has-warning {
373
413
  outline-color: $nice-input-invalid !important;
374
414
 
375
- .form-control {
415
+
416
+ .form-control,
417
+ .btn {
376
418
  border-color: $nice-input-invalid !important;
377
419
  }
378
420