nice-elements 1.9.2 → 1.9.4

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 (36) 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 +170 -117
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +103 -75
  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 +26 -0
  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-svgs/nice-svgs.html +1 -1
  29. package/src/components/nice-time-picker/nice-time-picker.html +4 -2
  30. package/src/components/nice-upload/nice-upload.js +6 -5
  31. package/src/components/nice-upload/nice-upload.scss +6 -1
  32. package/src/components/nice-yesno/nice-yesno.html +2 -2
  33. package/src/components/nice-yesno/nice-yesno.scss +3 -4
  34. package/src/services/nice-service.js +1 -1
  35. package/src/styles/_nice-buttons.scss +48 -0
  36. 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()" translate translate-context="Nice">None</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="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;
@@ -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
 
@@ -1219,7 +1219,7 @@
1219
1219
  <path d="M347.7 98c.8-.2 1.7-.2 2.6.3.3.1.6.3.8.6.4-.3.7-.6 1.2-.8a4 4 0 0 1 1.8-1c.9-.5 1.8-.8 2.7-.9h2.8c.8 0 1.6.2 2.3.6l2 1c.8.4 1.5.8 2.2 1a9.1 9.1 0 0 0 4.5.5c.4-.2.7.1.2.4-3.3 2-5.9.2-8.1-.6a16.2 16.2 0 0 1 2.1 1.7c.8.8 1.8 1.6 3.5 2.4a8.4 8.4 0 0 0 5 .7l.4.1-.1.5a4.8 4.8 0 0 1-2.6.7 10 10 0 0 1-5.2-1.3c-1.4-.7-2.3-1.6-3.3-2.4a7.5 7.5 0 0 0-3-1.4 6 6 0 0 0-2.9 0c.3.1.5.2.6.4.5.3 1 .4 2 .5.4 0 .2.3-.5.7a2 2 0 0 1-1.6.8c-1 .6-1.3.2-1.7-.2 0 .3 0 .5-.2.8a.6.6 0 0 1 0 .4l.2.7c0 .2 0 .3.2.4.2.2.3.4.3.7 0 .2.1.3.3.4l.6.6c.6.2.8.7 1 1.2.4.2.6.5.7.9.2 0 .4.2.6.4l2.6.1c.8.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1 0 0 1 0 .2.8.8 0 0 0 0-.2.6.6 0 0 0-.1 0v-.1zm.8-1.8v.2a.2.2 0 0 1 0 .2.1.1 0 0 0 0-.2c-.1-.1-.1-.1 0-.1zm-5.5.3a1 1 0 0 0 .2.7c.2.1.2.3.3.4v.4h-.1v-.4a.9.9 0 0 0-.2-.3 1 1 0 0 1-.2-.4 1.1 1.1 0 0 1-.1-.4zm2.2 1.5.2.7v.7c0 .3 0 .6.2.8l.6.7a2.9 2.9 0 0 1-.1-1l.3-1c.2 0 .2-.2.3-.3v-.4h.1v.4a1.5 1.5 0 0 1-.3.5 1.6 1.6 0 0 0-.3.9c0 .3 0 .6.2 1h-.1c-.4-.2-.6-.5-.8-.8a1.3 1.3 0 0 1-.2-.8v-.7a1.8 1.8 0 0 0-.2-.6c0-.1.1 0 .1 0zm-.9 1.4c0 .2 0 .5-.2.7a3.4 3.4 0 0 1-.4.6h.3a2.2 2.2 0 0 0 .7-.6l.3-.3c.1 0 0 0 0 0a3.6 3.6 0 0 1-.2.4 2.5 2.5 0 0 1-.3.2 24.5 24.5 0 0 1 0 .4v-.2a1.5 1.5 0 0 0-.1-.1 2.2 2.2 0 0 1-.4.2l-.4.2v-.1l.4-.7.2-.7h.1zm-1 0v.1h-.1c-.1 0 0 0 0 0v-.2z" />
@@ -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
 
@@ -27,7 +27,8 @@ angular.module('niceElements')
27
27
  callbackUrl: '=',
28
28
  isDisabled: '=',
29
29
  isInline: '=',
30
- help: '@'
30
+ help: '@',
31
+ maxFileSize: '@'
31
32
  },
32
33
 
33
34
  link: function (scope, element, attrs) {
@@ -35,8 +36,8 @@ angular.module('niceElements')
35
36
  if (!attrs.text) { attrs.text = gettextCatalog.getString('Click to upload file', null, 'Nice'); }
36
37
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
37
38
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
39
+ if (!attrs.maxFileSize) scope.maxFileSize = 1; // 1MB
38
40
  attrs.noMargin = angular.isDefined(attrs.noMargin);
39
- var maxImageSize = 1000000; // 1MB
40
41
 
41
42
  scope.startDragging = function () { $timeout(function () { scope.dragging = true; }); }
42
43
  scope.endDragging = function () { $timeout(function () { scope.dragging = false; }); }
@@ -86,9 +87,9 @@ angular.module('niceElements')
86
87
 
87
88
  reader.onload = function (event) {
88
89
  $timeout(function () {
89
- // file size must be smaller than 1MB.
90
- if (fileSize > maxImageSize) {
91
- scope.error = gettextCatalog.getString("File must be smaller than 1MB", null, "Nice");
90
+ // file size must be smaller than XMB.
91
+ if (fileSize > (scope.maxFileSize * 1000000)) {
92
+ scope.error = gettextCatalog.getString("File must be smaller than {{size}}MB", { size: scope.maxFileSize }, "Nice");
92
93
  scope.loading = false;
93
94
  scope.imageSource = null;
94
95
  return;
@@ -59,16 +59,21 @@
59
59
 
60
60
  svg {
61
61
  opacity: 0.6;
62
- margin-bottom: 2px;
62
+ margin-bottom: 5px;
63
63
  }
64
64
 
65
+ .error,
65
66
  .text-placeholder {
66
67
  font-size: 0.9em;
67
68
  opacity: 0.6;
69
+ text-align: center;
70
+ padding-left: 0.5rem;
71
+ padding-right: 0.5rem;
68
72
  }
69
73
 
70
74
  .error {
71
75
  color: $nice-danger-color;
76
+ opacity: 1;
72
77
  }
73
78
  }
74
79
 
@@ -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.2",
13
+ version: "1.9.4",
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