nice-elements 1.6.2 → 1.7.1

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 (50) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +2 -1
  3. package/bower.json +1 -1
  4. package/dist/nice.js +249 -220
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +247 -91
  7. package/dist/style.css.map +3 -2
  8. package/dist/style.min.css +2 -2
  9. package/package.json +1 -1
  10. package/src/components/nice-calendar/nice-calendar.html +3 -2
  11. package/src/components/nice-calendar/nice-calendar.scss +9 -7
  12. package/src/components/nice-checkbox/nice-checkbox.html +1 -3
  13. package/src/components/nice-checkbox/nice-checkbox.scss +12 -12
  14. package/src/components/nice-choice/nice-choice.html +3 -1
  15. package/src/components/nice-choice/nice-choice.scss +14 -3
  16. package/src/components/nice-date/nice-date.html +7 -8
  17. package/src/components/nice-date/nice-date.js +51 -53
  18. package/src/components/nice-date/nice-date.scss +29 -6
  19. package/src/components/nice-date-input/nice-date-input.html +6 -9
  20. package/src/components/nice-date-input/nice-date-input.js +24 -11
  21. package/src/components/nice-date-range/nice-date-range.html +3 -1
  22. package/src/components/nice-datetime-picker/nice-datetime-picker.html +5 -19
  23. package/src/components/nice-datetime-picker/nice-datetime-picker.scss +1 -1
  24. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +6 -1
  25. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +5 -3
  26. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +25 -26
  27. package/src/components/nice-dropdown/nice-dropdown.html +3 -1
  28. package/src/components/nice-dropdown/nice-dropdown.scss +1 -0
  29. package/src/components/nice-dropdown-old/nice-dropdown-old.js +38 -36
  30. package/src/components/nice-dtp/nice-dtp.html +12 -12
  31. package/src/components/nice-dtp/nice-dtp.js +1 -0
  32. package/src/components/nice-help/nice-help.html +2 -1
  33. package/src/components/nice-help/nice-help.scss +7 -0
  34. package/src/components/nice-input/nice-input.html +9 -42
  35. package/src/components/nice-input/nice-input.js +28 -28
  36. package/src/components/nice-input/nice-input.scss +27 -20
  37. package/src/components/nice-number/nice-number.html +6 -2
  38. package/src/components/nice-number/nice-number.scss +15 -3
  39. package/src/components/nice-quantity/nice-quantity.html +6 -2
  40. package/src/components/nice-quantity/nice-quantity.scss +11 -0
  41. package/src/components/nice-search/nice-search.html +9 -20
  42. package/src/components/nice-search2/nice-search2.html +4 -2
  43. package/src/components/nice-time-picker/nice-time-picker.html +21 -27
  44. package/src/components/nice-time-picker/nice-time-picker.scss +11 -32
  45. package/src/components/nice-yesno/nice-yesno.html +2 -2
  46. package/src/components/nice-yesno/nice-yesno.scss +13 -0
  47. package/src/styles/_nice-buttons.scss +22 -9
  48. package/src/styles/_nice-common.scss +64 -16
  49. package/src/styles/_nice.scss +2 -1
  50. package/src/styles/_variables.scss +3 -0
@@ -55,7 +55,7 @@ angular.module('niceElements')
55
55
  attrs.required = attrs.required === 'true';
56
56
  //attrs.required = angular.isDefined(attrs.required);
57
57
 
58
- if(!scope.textArea) {
58
+ if (!scope.textArea) {
59
59
  scope.elementType = "input";
60
60
  } else {
61
61
  scope.elementType = "textarea";
@@ -63,9 +63,7 @@ angular.module('niceElements')
63
63
 
64
64
  if (scope.isFocused) {
65
65
  var input = element[0].getElementsByTagName(scope.elementType)[0];
66
- if (input) {
67
- input.focus();
68
- }
66
+ if (input) input.focus();
69
67
  }
70
68
 
71
69
  // Set internal type
@@ -94,8 +92,9 @@ angular.module('niceElements')
94
92
 
95
93
  if (angular.isDefined(attrs.minDecimalsCutZeros) && attrs.type == 'number') {
96
94
  scope.model = Number(scope.model);
97
- if (scope.model.toString().split('.').length < 2 || scope.model.toString().split('.')[1].length < parseInt(attrs.minDecimalsCutZeros))
98
- scope.model = (Number(scope.model)).toFixed(parseInt(attrs.minDecimalsCutZeros));
95
+ if (scope.model.toString().split('.').length < 2 || scope.model.toString().split('.')[1].length < parseInt(attrs.minDecimalsCutZeros)) {
96
+ scope.model = Number((Number(scope.model)).toFixed(parseInt(attrs.minDecimalsCutZeros)));
97
+ }
99
98
  }
100
99
 
101
100
  if (angular.isDefined(scope.regex) && scope.regex != '') {
@@ -114,39 +113,40 @@ angular.module('niceElements')
114
113
  if (scope.onChange) scope.onChange({ model: scope.model });
115
114
  }
116
115
  } else {
116
+ scope.model = scope.internalModel;
117
117
  if (scope.onChange) scope.onChange({ model: scope.model });
118
118
  }
119
119
  });
120
- },
120
+ },
121
121
 
122
- controller: function ($scope) {
123
- $scope.id = Math.random().toString(36).substring(7);
122
+ controller: function ($scope) {
123
+ $scope.id = Math.random().toString(36).substring(7);
124
124
 
125
- $scope.keypress = function (event) {
126
- if ($scope.type == "number" || $scope.type == "integer") {
127
- if (event.charCode == 46 || event.charCode == 44) { // Handle "." and "," key (only one allowed)
128
- if ($scope.type == "number") {
129
- if (String($scope.model).indexOf(".") >= 0) {
130
- event.preventDefault();
131
- return false;
132
- }
133
- } else {
134
- event.preventDefault();
135
- return false;
136
- }
137
- } else if (event.charCode == 45) {
138
- if (String($scope.model).indexOf("-") >= 0) {
125
+ $scope.keypress = function (event) {
126
+ if ($scope.type == "number" || $scope.type == "integer") {
127
+ if (event.charCode == 46 || event.charCode == 44) { // Handle "." and "," key (only one allowed)
128
+ if ($scope.type == "number") {
129
+ if (String($scope.model).indexOf(".") >= 0) {
139
130
  event.preventDefault();
140
131
  return false;
141
132
  }
142
- } else if ((event.charCode >= 48 && event.charCode <= 58) || event.charCode == 0) { // Allow only numbers
143
- return true;
144
- } else { // Prevent everything else
133
+ } else {
145
134
  event.preventDefault();
146
135
  return false;
147
136
  }
137
+ } else if (event.charCode == 45) {
138
+ if (String($scope.model).indexOf("-") >= 0) {
139
+ event.preventDefault();
140
+ return false;
141
+ }
142
+ } else if ((event.charCode >= 48 && event.charCode <= 58) || event.charCode == 0) { // Allow only numbers
143
+ return true;
144
+ } else { // Prevent everything else
145
+ event.preventDefault();
146
+ return false;
148
147
  }
149
- };
150
- }
148
+ }
149
+ };
150
+ }
151
151
  };
152
152
  });
@@ -1,42 +1,49 @@
1
- .nice-input{
2
- color:black;
1
+ .nice-input {
2
+ color: var(--nice-font-color);
3
3
  display: block;
4
4
 
5
- ::-webkit-input-placeholder { /* WebKit browsers */
5
+ ::-webkit-input-placeholder {
6
+ /* WebKit browsers */
6
7
  color: $nice-input-placeholder-color;
7
- // opacity: 0.1;
8
8
  }
9
9
 
10
- :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
10
+ :-moz-placeholder {
11
+ /* Mozilla Firefox 4 to 18 */
11
12
  color: $nice-input-placeholder-color;
12
- // opacity: 0.1;
13
13
  }
14
14
 
15
- ::-moz-placeholder { /* Mozilla Firefox 19+ */
15
+ ::-moz-placeholder {
16
+ /* Mozilla Firefox 19+ */
16
17
  color: $nice-input-placeholder-color;
17
- // opacity: 0.1;
18
18
  }
19
19
 
20
- :-ms-input-placeholder { /* Internet Explorer 10+ */
20
+ :-ms-input-placeholder {
21
+ /* Internet Explorer 10+ */
21
22
  color: $nice-input-placeholder-color;
22
- // opacity: 0.1;
23
23
  }
24
24
 
25
- :disabled::-webkit-input-placeholder { /* WebKit browsers */
25
+ :disabled::-webkit-input-placeholder {
26
+ /* WebKit browsers */
26
27
  color: $nice-input-disabled-bg;
27
28
  }
28
29
 
29
- :disabled:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
30
+ :disabled:-moz-placeholder {
31
+ /* Mozilla Firefox 4 to 18 */
30
32
  color: $nice-input-disabled-bg;
31
- // opacity: 0;
32
33
  }
33
- :disabled::-moz-placeholder { /* Mozilla Firefox 19+ */
34
+
35
+ :disabled::-moz-placeholder {
36
+ /* Mozilla Firefox 19+ */
34
37
  color: $nice-input-disabled-bg;
35
- // opacity: 0;
36
38
  }
37
- :disabled:-ms-input-placeholder { /* Internet Explorer 10+ */
39
+
40
+ :disabled:-ms-input-placeholder {
41
+ /* Internet Explorer 10+ */
38
42
  color: $nice-input-disabled-bg;
39
- // opacity: 0;
43
+ }
44
+
45
+ textarea {
46
+ border-right: 1px solid var(--nice-border-color) !important;
40
47
  }
41
48
 
42
49
 
@@ -44,17 +51,17 @@
44
51
  margin-bottom: 0px;
45
52
  }
46
53
 
47
- .symbol{
54
+ .symbol {
48
55
  position: relative;
49
56
  display: table;
50
57
  border-collapse: separate;
51
-
58
+
52
59
  .form-control-feedback {
53
60
  left: 0;
54
61
  right: auto;
55
62
  }
56
63
 
57
- .form-control{
64
+ .form-control {
58
65
  border-top-right-radius: 0;
59
66
  border-bottom-right-radius: 0;
60
67
  text-align: right;
@@ -10,13 +10,17 @@
10
10
  <div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
11
11
  <div class="input-group" ng-class="{'has-warning': !disabled && niceNumberForm.$invalid && niceNumberForm.$dirty}">
12
12
  <span class="input-group-btn">
13
- <button class="btn btn-default" type="button" ng-disabled="!canSubstract" ng-click="subtract()" tabindex="-1">-</button>
13
+ <button class="btn btn-default btn-left" type="button" ng-disabled="!canSubstract" ng-click="subtract()" tabindex="-1">
14
+ <nice-icon icon="icon-minus"></nice-icon>
15
+ </button>
14
16
  </span>
15
17
 
16
18
  <input type="number" step="{{ step }}" ng-change="inputChanged()" class="form-control" max="{{ max }}" min="{{ min }}" ng-model="model" />
17
19
 
18
20
  <span class="input-group-btn">
19
- <button class="btn btn-default" type="button" ng-disabled="!canAdd" ng-click="add()" tabindex="-1">+</button>
21
+ <button class="btn btn-default btn-right" type="button" ng-disabled="!canAdd" ng-click="add()" tabindex="-1">
22
+ <nice-icon icon="icon-plus"></nice-icon>
23
+ </button>
20
24
  </span>
21
25
  </div>
22
26
 
@@ -6,20 +6,32 @@
6
6
  padding: 0;
7
7
  min-width: 30px;
8
8
  border-left: 0 none;
9
+ border-right: 0 none;
9
10
  }
10
11
  }
11
12
 
12
13
  .input-group-btn {
13
- z-index: 1;
14
-
15
14
  .btn {
16
- background: $nice-addon-bg;
15
+ background: $nice-input-bg;
17
16
  height: 34px;
17
+ width: 34px;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ line-height: 0;
18
22
  border: 1px solid $nice-border-color;
19
23
 
20
24
  &:focus {
21
25
  outline: 0;
22
26
  }
27
+
28
+ &.btn-left {
29
+ border-right: 0 none;
30
+ }
31
+
32
+ &.btn-right {
33
+ border-left: 0 none;
34
+ }
23
35
  }
24
36
  }
25
37
 
@@ -9,9 +9,13 @@
9
9
  <!------------------------- Field ------------------------->
10
10
  <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
11
11
  <div class="input-group">
12
- <button class="btn btn-default btn-left" ng-click="sub()" type="button" ng-disabled="isDisabled" tabindex="-1">-</button>
12
+ <button class="btn btn-default btn-left" ng-click="sub()" type="button" ng-disabled="isDisabled" tabindex="-1">
13
+ <nice-icon icon="icon-minus"></nice-icon>
14
+ </button>
13
15
  <input class="value form-control" ng-model="model" type="number" ng-change="handleChange()" ng-disabled="isDisabled" />
14
- <button class="btn btn-default btn-right" ng-click="add()" type="button" ng-disabled="isDisabled" tabindex="-1">+</button>
16
+ <button class="btn btn-default btn-right" ng-click="add()" type="button" ng-disabled="isDisabled" tabindex="-1">
17
+ <nice-icon icon="icon-plus"></nice-icon>
18
+ </button>
15
19
  </div>
16
20
  </div>
17
21
  </div>
@@ -6,9 +6,20 @@
6
6
  display: flex;
7
7
  }
8
8
 
9
+ .form-control {
10
+ border-left: 0 none !important;
11
+ border-right: 0 none !important;
12
+ }
13
+
9
14
  .btn {
10
15
  border: 1px solid $nice-border-color;
11
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;
12
23
 
13
24
  &:focus {
14
25
  outline: 0 none;
@@ -8,34 +8,23 @@
8
8
 
9
9
  <!------------------------- Field ------------------------->
10
10
  <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
11
- <div
12
- class="input-group"
13
- ng-class="{
11
+ <div class="input-group" ng-class="{
14
12
  'disabled': isDisabled,
15
13
  'has-warning': !isDisabled && form.$invalid && form.$dirty,
16
14
  'has-success': !isDisabled && form.$valid && form.$dirty}
17
- "
18
- >
19
- <input
20
- class="form-control"
21
- type="text"
22
- id="{{ id }}"
23
- ng-model="modelString"
24
- ng-keypress="keypress($event)"
25
- placeholder="{{ placeholder }}"
26
- ng-disabled="isDisabled"
27
- ng-change="updateSearch()"
28
- ng-required="required"
29
- tabindex="{{ tabIndex }}"
30
- >
15
+ ">
16
+ <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 }}">
31
17
 
32
18
  <span class="input-group-addon clickable" ng-click="search()" ng-if="!model">
33
- <i ng-show="!loading" class="fa fa-search" ></i>
34
- <i ng-show="loading" class="fa fa-refresh fa-spin"></i>
19
+ <!-- <i ng-show="!loading" class="fa fa-search"></i>
20
+ <i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
21
+ <nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
22
+ <nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon>
35
23
  </span>
36
24
 
37
25
  <span class="input-group-addon clickable" ng-click="remove()" ng-if="model">
38
- <i ng-show="!loading" class="fa fa-remove" ></i>
26
+ <!-- <i ng-show="!loading" class="fa fa-remove"></i> -->
27
+ <nice-icon ng-show="!loading" icon="icon-x"></nice-icon>
39
28
  </span>
40
29
  </div>
41
30
  </div>
@@ -12,8 +12,10 @@
12
12
  <input class="form-control" type="text" id="{{ id }}" ng-model="model" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-focus="onFocus()" tabindex="{{ tabIndex }}">
13
13
 
14
14
  <span class="input-group-addon clickable" ng-click="onFocus()">
15
- <i ng-show="!loading" class="fa fa-search"></i>
16
- <i ng-show="loading" class="fa fa-refresh fa-spin"></i>
15
+ <nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
16
+ <nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon>
17
+ <!-- <i ng-show="!loading" class="fa fa-search"></i>
18
+ <i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
17
19
  </span>
18
20
  </div>
19
21
 
@@ -8,41 +8,35 @@
8
8
 
9
9
  <!------------------------- Field ------------------------->
10
10
  <div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
11
- <div
12
- class="input-group"
13
- ng-class="{
11
+ <div class="input-group" ng-class="{
14
12
  'has-warning': !isDisabled && forma.$invalid && forma.$dirty,
15
13
  'disabled': isDisabled
16
- }"
17
- >
14
+ }">
18
15
  <input type="text" class="form-control" ng-model="modelString" ng-keyup="$event.keyCode == 13 && validateDate()" ng-blur="validateDate()">
19
- <span class="input-group-addon clickable" ng-click="open = !open"><i class="fa fa-clock-o"></i></span>
16
+ <span class="input-group-addon clickable" ng-click="open = !open">
17
+ <nice-icon icon="icon-clock"></nice-icon>
18
+ </span>
20
19
  </div>
21
20
 
22
21
  <div class="nice-time-picker-dropdown" ng-if="open">
23
- <div class="row">
24
- <div class="col-xs-6">
25
- <button ng-click="changeHour(true)"><i class="fa fa-chevron-up"></i></button>
26
- </div>
27
- <div class="col-xs-6">
28
- <button ng-click="changeMinutes(true)"><i class="fa fa-chevron-up"></i></button>
29
- </div>
22
+ <div>
23
+ <button class="btn btn-sm btn-block btn-default" ng-click="changeHour(true)">
24
+ <nice-icon icon="icon-chevron-up"></nice-icon>
25
+ </button>
26
+ <div class="numbers">{{ hours }}</div>
27
+ <button class="btn btn-sm btn-block btn-default" ng-click="changeHour(false)">
28
+ <nice-icon icon="icon-chevron-down"></nice-icon>
29
+ </button>
30
30
  </div>
31
-
32
- <div class="row numbers">
33
- <div class="col-xs-6">{{ hours }}</div>
34
- <div class="col-xs-6">{{ minutes }}</div>
35
- </div>
36
-
37
- <div class="row">
38
- <div class="col-xs-6">
39
- <button ng-click="changeHour(false)"><i class="fa fa-chevron-down"></i></button>
40
- </div>
41
- <div class="col-xs-6">
42
- <button ng-click="changeMinutes(false)"><i class="fa fa-chevron-down"></i></button>
43
- </div>
31
+ <div>
32
+ <button class="btn btn-sm btn-block btn-default" ng-click="changeMinutes(true)">
33
+ <nice-icon icon="icon-chevron-up"></nice-icon>
34
+ </button>
35
+ <div class="numbers">{{ minutes }}</div>
36
+ <button class="btn btn-sm btn-block btn-default" ng-click="changeMinutes(false)">
37
+ <nice-icon icon="icon-chevron-down"></nice-icon>
38
+ </button>
44
39
  </div>
45
-
46
40
  </div>
47
41
  </div>
48
42
  </div>
@@ -1,54 +1,33 @@
1
- .nice-time-picker{
1
+ .nice-time-picker {
2
2
  position: relative;
3
3
 
4
- .nice-time-picker-dropdown{
4
+ .nice-time-picker-dropdown {
5
5
  z-index: 900;
6
6
  border-radius: $nice-border-radius;
7
7
  position: absolute;
8
8
  top: 100%;
9
9
  left: 15px;
10
- width: 100%;
10
+ width: 130px;
11
11
  background: white;
12
12
  border: 1px solid $nice-border-color;
13
13
  box-shadow: $nice-box-shadow;
14
14
  padding: 10px;
15
15
  margin-top: 0.5rem;
16
- text-align: center;
17
16
 
18
- .numbers{
19
- font-size: 28px;
20
- color: $nice-font-color;
21
- line-height: 1.6;
22
- }
17
+ display: grid;
18
+ grid-template-columns: 1fr 1fr;
19
+ gap: 10px;
23
20
 
24
- button{
25
- width: 100%;
26
- border: 0;
21
+ .numbers {
22
+ font-size: 1.5rem;
27
23
  color: $nice-font-color;
28
24
  line-height: 1;
29
- padding: 5px;
30
- border-radius: $nice-border-radius;
31
- background: none;
32
-
33
- &:hover{
34
- background: $nice-base-color;
35
- color: #ffffff;
36
- }
37
-
38
- &:focus{
39
- outline: 0;
40
- }
41
-
42
- &:active{
43
- outline: 0;
44
- background: darken($nice-base-color, 10%);
45
- color: #ffffff;
46
- }
25
+ text-align: center;
26
+ padding: 5px 0;
47
27
  }
48
28
  }
49
29
 
50
-
51
- .nice-background{
30
+ .nice-background {
52
31
  position: fixed;
53
32
  top: 0;
54
33
  left: 0;
@@ -9,8 +9,8 @@
9
9
  <!------------------------- Field ------------------------->
10
10
  <div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
11
11
  <div class="yesno-wrapper noselect" ng-class="{ 'disabled': isDisabled }">
12
- <div class="yesno-yes-bg" ng-click="switch()">{{ yes }}</div>
13
- <div class="yesno-no-bg" ng-click="switch()">{{ no }}</div>
12
+ <button class="yesno-yes-bg" ng-click="switch()" tabindex="-1">{{ yes }}</button>
13
+ <button class="yesno-no-bg" ng-click="switch()" tabindex="-1">{{ no }}</button>
14
14
  <button class="yesno-button btn btn-primary" ng-class="buttonClass" ng-click="switch()">{{ state }}</button>
15
15
  </div>
16
16
  </div>
@@ -20,6 +20,10 @@
20
20
  height: 34px;
21
21
  position: relative;
22
22
 
23
+ &:focus-within {
24
+ @extend .nice-focus;
25
+ }
26
+
23
27
  .yesno-yes-bg,
24
28
  .yesno-no-bg,
25
29
  .yesno-button {
@@ -36,6 +40,11 @@
36
40
  position: absolute;
37
41
  top: 0;
38
42
  bottom: 0;
43
+ appearance: none;
44
+ background: none;
45
+ border: 0 none;
46
+ padding: 0;
47
+ line-height: 1;
39
48
  }
40
49
 
41
50
  .yesno-no-bg {
@@ -63,6 +72,10 @@
63
72
  &:hover {
64
73
  background-color: darken($nice-yesno-slider-bg, 5%);
65
74
  }
75
+
76
+ &:focus {
77
+ outline: 0 none;
78
+ }
66
79
  }
67
80
 
68
81
  .yesno-button-no {
@@ -8,6 +8,16 @@
8
8
  min-height: 34px;
9
9
  position: relative;
10
10
 
11
+ &.btn-icon {
12
+ padding: 6px;
13
+ width: 34px;
14
+
15
+ svg {
16
+ width: 20px;
17
+ height: 20px;
18
+ }
19
+ }
20
+
11
21
  &:hover,
12
22
  &:focus {
13
23
  color: white;
@@ -306,6 +316,11 @@
306
316
  padding: 0.2rem 1.5rem;
307
317
  min-height: 42px;
308
318
 
319
+ &.btn-icon {
320
+ padding: 0.2rem;
321
+ width: 42px;
322
+ }
323
+
309
324
  svg {
310
325
  width: 24px;
311
326
  height: 24px;
@@ -317,21 +332,19 @@
317
332
  // -------------------------------- Btn medium --------------------------------
318
333
  .btn-medium {
319
334
  height: 40px !important;
335
+
336
+ &.btn-icon {
337
+ width: 40px;
338
+ }
320
339
  }
321
340
 
322
341
  // -------------------------------- Btn sm --------------------------------
323
342
  .btn-sm {
324
343
  min-height: 30px !important;
325
344
  padding: 4px 10px;
326
- }
327
345
 
328
- // -------------------------------- Btn icon --------------------------------
329
- .btn-icon {
330
- font-size: 1.2em !important;
331
-
332
- svg,
333
- img {
334
- width: 24px;
335
- height: 24px;
346
+ &.btn-icon {
347
+ padding: 4px;
348
+ height: 30px;
336
349
  }
337
350
  }