nice-elements 1.5.0 → 1.6.0

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 (41) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/CHANGELOG.md +20 -0
  3. package/README.md +48 -1
  4. package/bower.json +1 -1
  5. package/dist/nice.js +144 -100
  6. package/dist/nice.min.js +1 -1
  7. package/dist/style.css +870 -66
  8. package/dist/style.css.map +3 -1
  9. package/dist/style.min.css +2 -2
  10. package/package.json +1 -1
  11. package/src/components/nice-calendar/nice-calendar.html +10 -37
  12. package/src/components/nice-calendar/nice-calendar.scss +25 -24
  13. package/src/components/nice-checkbox/nice-checkbox.html +2 -2
  14. package/src/components/nice-checkbox/nice-checkbox.scss +5 -4
  15. package/src/components/nice-choice/nice-choice.html +1 -1
  16. package/src/components/nice-choice/nice-choice.scss +22 -22
  17. package/src/components/nice-date/nice-date.html +14 -34
  18. package/src/components/nice-date/nice-date.scss +41 -17
  19. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +4 -34
  20. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +18 -14
  21. package/src/components/nice-dropdown/nice-dropdown.js +5 -0
  22. package/src/components/nice-dropdown/nice-dropdown.scss +5 -4
  23. package/src/components/nice-dropdown-old/nice-dropdown-old.scss +27 -26
  24. package/src/components/nice-number/nice-number.html +2 -2
  25. package/src/components/nice-number/nice-number.scss +9 -0
  26. package/src/components/nice-popup/nice-popup.js +3 -0
  27. package/src/components/nice-popup/nice-popup.scss +4 -0
  28. package/src/components/nice-quantity/nice-quantity.html +3 -10
  29. package/src/components/nice-quantity/nice-quantity.scss +17 -10
  30. package/src/components/nice-search2/nice-search2.html +2 -12
  31. package/src/components/nice-search2/nice-search2.js +34 -27
  32. package/src/components/nice-upload/nice-upload.html +4 -5
  33. package/src/components/nice-upload/nice-upload.js +73 -41
  34. package/src/components/nice-upload/nice-upload.scss +32 -13
  35. package/src/components/nice-yesno/nice-yesno.html +1 -1
  36. package/src/components/nice-yesno/nice-yesno.scss +23 -15
  37. package/src/styles/_nice-buttons.scss +335 -0
  38. package/src/styles/_nice-common.scss +84 -47
  39. package/src/styles/_nice-spacing.scss +58 -0
  40. package/src/styles/_nice.scss +2 -0
  41. package/src/styles/_variables.scss +108 -32
@@ -6,8 +6,8 @@
6
6
  * @description
7
7
  * # niceUpload
8
8
  */
9
- angular.module('niceElements')
10
- .directive('niceUpload', function ($timeout, gettextCatalog) {
9
+ angular.module('niceElements')
10
+ .directive('niceUpload', function ($timeout, gettextCatalog) {
11
11
  return {
12
12
  restrict: 'E',
13
13
  replace: true,
@@ -30,7 +30,7 @@
30
30
  help: '@'
31
31
  },
32
32
 
33
- link: function(scope, element, attrs){
33
+ link: function (scope, element, attrs) {
34
34
  if (!attrs.title) { attrs.title = ''; }
35
35
  if (!attrs.text) { attrs.text = gettextCatalog.getString('Click to upload file', null, 'Nice'); }
36
36
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
@@ -38,17 +38,46 @@
38
38
  attrs.noMargin = angular.isDefined(attrs.noMargin);
39
39
  var maxImageSize = 1000000; // 1MB
40
40
 
41
- element.bind("change", function (changeEvent) {
41
+ scope.startDragging = function () { $timeout(function () { scope.dragging = true; }); }
42
+ scope.endDragging = function () { $timeout(function () { scope.dragging = false; }); }
43
+ scope.startDraggingGlobal = function () { $timeout(function () { scope.draggingGlobal = true; }); }
44
+ scope.endDraggingGlobal = function () { $timeout(function () { scope.dragging = false; scope.draggingGlobal = false; }); }
45
+
46
+ scope.dragging = false;
47
+ scope.draggingGlobal = false;
48
+ var inputElement = element[0].querySelector(".input-file");
49
+ // document.addEventListener("dragenter", scope.startDraggingGlobal);
50
+ // document.addEventListener("drop", scope.endDraggingGlobal);
51
+ // document.addEventListener("dragend", scope.endDraggingGlobal);
52
+ // document.addEventListener("mouseleave", scope.endDraggingGlobal);
53
+ // document.addEventListener("dragleave", scope.endDragging);
54
+ inputElement.addEventListener("dragenter", scope.startDragging);
55
+ inputElement.addEventListener("dragleave", scope.endDragging);
56
+ inputElement.addEventListener("dragend", scope.endDraggingGlobal);
57
+ inputElement.addEventListener("drop", scope.endDraggingGlobal);
58
+
59
+ scope.$on('$destroy', function () {
60
+ // document.removeEventListener("dragenter", scope.startDraggingGlobal);
61
+ // document.removeEventListener("drop", scope.endDraggingGlobal);
62
+ // document.removeEventListener("dragend", scope.endDraggingGlobal);
63
+ // document.removeEventListener("mouseleave", scope.endDraggingGlobal);
64
+ // document.removeEventListener("dragleave", scope.endDraggingGlobal);
65
+ inputElement.removeEventListener("dragenter", scope.startDragging);
66
+ inputElement.removeEventListener("dragleave", scope.endDragging);
67
+ inputElement.removeEventListener("dragend", scope.endDraggingGlobal);
68
+ inputElement.removeEventListener("drop", scope.endDraggingGlobal);
69
+ });
42
70
 
71
+
72
+ element.bind("change", function (changeEvent) {
43
73
  if (scope.callbackUrl != undefined) {
44
74
  scope.callbackUrl(URL.createObjectURL(changeEvent.target.files[0]));
45
75
  }
46
76
 
47
77
  $timeout(function () {
48
- var inputObj = changeEvent.target;
49
-
50
78
  scope.loading = true;
51
79
  scope.error = null;
80
+ var inputObj = changeEvent.target;
52
81
  var reader = new FileReader();
53
82
 
54
83
  if (inputObj.files) {
@@ -56,44 +85,47 @@
56
85
  var fileSize = inputObj.files[0].size; // in bytes
57
86
 
58
87
  reader.onload = function (event) {
59
- $timeout(function(){
88
+ $timeout(function () {
60
89
  // file size must be smaller than 1MB.
61
- if (fileSize <= maxImageSize) {
62
- if (scope.callbackFunction != undefined) {
63
- scope.loading = false;
64
- scope.imageSource = null;
65
- scope.callbackFunction(event.target.result);
66
- scope.text = inputObj.files[0].name;
67
- scope.form.$setDirty();
68
- }
90
+ if (fileSize > maxImageSize) {
91
+ scope.error = gettextCatalog.getString("File must be smaller than 1MB", null, "Nice");
92
+ scope.loading = false;
93
+ scope.imageSource = null;
94
+ return;
95
+ }
69
96
 
70
- if(scope.callbackFile != undefined){
97
+ if (scope.callbackFunction != undefined) {
98
+ scope.loading = false;
99
+ scope.imageSource = null;
100
+ scope.callbackFunction(event.target.result);
101
+ scope.text = inputObj.files[0].name;
102
+ scope.form.$setDirty();
103
+ }
104
+
105
+ if (scope.callbackFile != undefined) {
106
+ scope.loading = false;
107
+ scope.text = inputObj.files[0].name;
108
+ scope.callbackFile(inputObj.files[0]);
109
+ scope.form.$setDirty();
110
+ }
111
+
112
+ if (scope.uploadFunction != undefined) {
113
+ scope.uploadFunction(inputObj.files[0]).then(function (response) {
71
114
  scope.loading = false;
72
- scope.text = inputObj.files[0].name;
73
- scope.callbackFile(inputObj.files[0]);
115
+ scope.imageSource = event.target.result;
116
+ scope.model = response.data.url;
74
117
  scope.form.$setDirty();
75
- }
76
-
77
- if (scope.uploadFunction != undefined) {
78
- scope.uploadFunction(inputObj.files[0]).then(function (response) {
79
- scope.loading = false;
80
- scope.imageSource = event.target.result;
81
- scope.model = response.data.url;
82
- scope.form.$setDirty();
83
- }, function (error) {
84
- // Handle upload function error
85
- scope.error = error;
86
- scope.loading = false;
87
- scope.imageSource = null;
88
- });
89
- } else {
90
- // console.error("No upload function set!");
91
- }
118
+ }, function (error) {
119
+ // Handle upload function error
120
+ scope.error = error;
121
+ scope.loading = false;
122
+ scope.imageSource = null;
123
+ });
92
124
  } else {
93
- // Handle file too big error
94
- scope.error = gettextCatalog.getString("File must be smaller than 1MB", null, "Nice");
95
- scope.loading = false;
96
- scope.imageSource = null;
125
+ // console.error("No upload function set!");
126
+ if (event.target.result.substring(0, 10) == "data:image") {
127
+ scope.imageSource = event.target.result;
128
+ }
97
129
  }
98
130
  });
99
131
  };
@@ -114,8 +146,8 @@
114
146
  });
115
147
  },
116
148
 
117
- controller: function($scope) {
118
- $scope.$watch("model", function(value){
149
+ controller: function ($scope) {
150
+ $scope.$watch("model", function (value) {
119
151
  $scope.imageSource = angular.copy($scope.model);
120
152
  });
121
153
  }
@@ -1,8 +1,16 @@
1
1
  .nice-upload {
2
2
  display: block;
3
- overflow: hidden;
3
+ // overflow: hidden;
4
4
 
5
- input{
5
+ .nice-field {
6
+ &:focus-within {
7
+ .input-area {
8
+ @extend .nice-focus;
9
+ }
10
+ }
11
+ }
12
+
13
+ input {
6
14
  position: absolute;
7
15
  top: 0;
8
16
  left: 0;
@@ -17,7 +25,7 @@
17
25
  }
18
26
  }
19
27
 
20
- .input-area{
28
+ .input-area {
21
29
  border-radius: $nice-border-radius;
22
30
  width: 100%;
23
31
  height: 150px;
@@ -28,32 +36,43 @@
28
36
  display: table;
29
37
  padding: 15px;
30
38
 
31
- .middle-text{
32
- display: table-cell;
33
- vertical-align: middle;
34
- text-align: center;
39
+ &.dragging {
40
+ outline: 2px dashed var(--nice-primary-color);
41
+ outline-offset: -7px;
42
+ }
43
+
44
+ .middle-text {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ flex-direction: column;
49
+ height: 100%;
50
+
51
+ .text-placeholder {
52
+ font-size: 0.9em;
53
+ opacity: 0.6;
54
+ }
35
55
 
36
- .error{
56
+ .error {
37
57
  color: $nice-danger-color;
38
- margin-top: 10px;
39
58
  }
40
59
  }
41
60
 
42
- img{
61
+ img {
43
62
  max-width: 100%;
44
63
  max-height: 148px;
45
64
  }
46
65
  }
47
66
 
48
- .loading{
67
+ .loading {
49
68
  position: absolute;
50
69
  width: 100%;
51
70
  height: 100%;
52
71
  top: 0;
53
72
  left: 0;
54
- background-color: rgba(255,255,255,0.50);
73
+ background-color: rgba(255, 255, 255, 0.50);
55
74
 
56
- .nice-loader{
75
+ .nice-loader {
57
76
  position: absolute;
58
77
  top: 50%;
59
78
  left: 50%;
@@ -11,7 +11,7 @@
11
11
  <div class="yesno-wrapper noselect" ng-class="{ 'disabled': isDisabled }">
12
12
  <div class="yesno-yes-bg" ng-click="switch()">{{ yes }}</div>
13
13
  <div class="yesno-no-bg" ng-click="switch()">{{ no }}</div>
14
- <div class="yesno-button" ng-class="buttonClass" ng-click="switch()">{{ state }}</div>
14
+ <button class="yesno-button btn btn-primary" ng-class="buttonClass" ng-click="switch()">{{ state }}</button>
15
15
  </div>
16
16
  </div>
17
17
  </div>
@@ -1,15 +1,17 @@
1
- .nice-yesno{
2
- .disabled{
1
+ .nice-yesno {
2
+ .disabled {
3
3
  background-color: $nice-yesno-disabled-bg;
4
4
  opacity: 0.65;
5
5
  border: $nice-yesno-disabled-border;
6
6
 
7
- .yesno-yes-bg, .yesno-no-bg, .yesno-button{
7
+ .yesno-yes-bg,
8
+ .yesno-no-bg,
9
+ .yesno-button {
8
10
  cursor: not-allowed !important;
9
11
  }
10
12
  }
11
13
 
12
- .yesno-wrapper{
14
+ .yesno-wrapper {
13
15
  background: $nice-yesno-bg;
14
16
  border: 1px solid $nice-border-color;
15
17
  color: $nice-font-color;
@@ -18,13 +20,17 @@
18
20
  height: 34px;
19
21
  position: relative;
20
22
 
21
- .yesno-yes-bg, .yesno-no-bg, .yesno-button {
23
+ .yesno-yes-bg,
24
+ .yesno-no-bg,
25
+ .yesno-button {
22
26
  text-align: center;
23
27
  line-height: 34px;
28
+ min-height: unset;
24
29
  cursor: pointer;
25
30
  }
26
31
 
27
- .yesno-yes-bg, .yesno-no-bg {
32
+ .yesno-yes-bg,
33
+ .yesno-no-bg {
28
34
  opacity: 0.8;
29
35
  height: 100%;
30
36
  position: absolute;
@@ -32,50 +38,52 @@
32
38
  bottom: 0;
33
39
  }
34
40
 
35
- .yesno-no-bg{
41
+ .yesno-no-bg {
36
42
  left: 50%;
37
43
  right: 0;
38
44
  }
39
- .yesno-yes-bg{
45
+
46
+ .yesno-yes-bg {
40
47
  left: 0;
41
48
  right: 50%;
42
49
  }
43
50
 
44
- .yesno-button{
51
+ .yesno-button {
45
52
  transition: all 0.5s;
46
53
  background-color: $nice-yesno-slider-bg;
47
54
  border-radius: $nice-border-radius-small;
48
55
  color: white;
49
56
  position: absolute;
50
57
  line-height: 28px;
58
+ padding: 0;
51
59
  top: 2px;
52
60
  left: 2px;
53
61
  right: 50%;
54
62
 
55
- &:hover{
63
+ &:hover {
56
64
  background-color: darken($nice-yesno-slider-bg, 5%);
57
65
  }
58
66
  }
59
67
 
60
- .yesno-button-no{
68
+ .yesno-button-no {
61
69
  left: 50%;
62
70
  top: 2px;
63
71
  bottom: 2px;
64
72
  right: 2px;
65
73
  }
66
74
 
67
- .yesno-button-yes{
75
+ .yesno-button-yes {
68
76
  left: 2px;
69
77
  top: 2px;
70
78
  bottom: 2px;
71
79
  right: 50%;
72
80
  }
73
81
 
74
- &.true{
75
- .yesno-button{
82
+ &.true {
83
+ .yesno-button {
76
84
  right: 2px;
77
85
  left: 50%;
78
86
  }
79
87
  }
80
88
  }
81
- }
89
+ }
@@ -0,0 +1,335 @@
1
+ // -------------------------------- Btn --------------------------------
2
+ .btn {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ line-height: 1;
7
+ padding: 6px 12px;
8
+ min-height: 34px;
9
+ position: relative;
10
+
11
+ &:hover,
12
+ &:focus {
13
+ color: white;
14
+ }
15
+
16
+ svg,
17
+ img {
18
+ width: 15px;
19
+ height: 15px;
20
+ fill: currentColor;
21
+ flex-shrink: 0;
22
+ }
23
+
24
+ svg+span,
25
+ nice-icon+span,
26
+ span+svg,
27
+ span+nice-icon {
28
+ margin-left: 0.5rem;
29
+ }
30
+
31
+ &.focus,
32
+ &.active.focus,
33
+ &.active:focus,
34
+ &:active.focus,
35
+ &:active:focus,
36
+ &:focus {
37
+ @extend .nice-focus;
38
+ }
39
+ }
40
+
41
+
42
+ // -------------------------------- Btn primary --------------------------------
43
+ .btn-primary {
44
+ background: var(--nice-primary-color);
45
+ border-color: var(--nice-primary-color-darker);
46
+ outline-color: var(--nice-primary-color);
47
+ color: white;
48
+
49
+ &:active,
50
+ &.active {
51
+ background: var(--nice-primary-color-lighter);
52
+ border-color: var(--nice-primary-color-lighter);
53
+
54
+ &:focus,
55
+ &:hover {
56
+ background: var(--nice-primary-color-lighter);
57
+ border-color: var(--nice-primary-color-lighter);
58
+ }
59
+ }
60
+
61
+ &:focus,
62
+ &:hover {
63
+ background: var(--nice-primary-color-darker);
64
+ border-color: var(--nice-primary-color-darker);
65
+ outline-color: var(--nice-primary-color);
66
+ }
67
+ }
68
+
69
+ .btn-primary-plain {
70
+ @extend .btn-primary;
71
+ color: var(--nice-primary-color);
72
+ background: var(--nice-primary-color-plain);
73
+ border-color: var(--nice-primary-color-plain);
74
+ }
75
+
76
+ .btn-primary-naked {
77
+ @extend .btn-primary;
78
+ color: var(--nice-primary-color);
79
+ background: transparent;
80
+ border-color: transparent;
81
+ }
82
+
83
+
84
+ // -------------------------- Default --------------------------
85
+ .btn-default {
86
+ color: var(--nice-font-color);
87
+ background: var(--nice-secondary-color);
88
+ border-color: var(--nice-secondary-color);
89
+
90
+ &:active,
91
+ &.active,
92
+ &:hover:active,
93
+ &:hover.active {
94
+ background: var(--nice-secondary-color-lighter);
95
+ border-color: var(--nice-secondary-color-lighter);
96
+ }
97
+
98
+ &:focus,
99
+ &:hover {
100
+ color: var(--nice-font-color);
101
+ background: var(--nice-secondary-color-darker);
102
+ border-color: var(--nice-secondary-color-darker);
103
+ }
104
+ }
105
+
106
+ .btn-default-plain {
107
+ @extend .btn-default;
108
+ color: var(--nice-font-color);
109
+ background: var(--nice-secondary-color);
110
+ border-color: var(--nice-secondary-color);
111
+ }
112
+
113
+ .btn-default-naked {
114
+ @extend .btn-default;
115
+ color: var(--font-card);
116
+ background: transparent;
117
+ border-color: transparent;
118
+ }
119
+
120
+ // -------------------------- Secondary --------------------------
121
+ .btn-secondary {
122
+ color: var(--nice-secondary-font-color);
123
+ background: var(--nice-secondary-color);
124
+ border-color: var(--nice-border-color);
125
+ outline-color: var(--nice-secondary-color) !important;
126
+
127
+ &:active,
128
+ &.active,
129
+ &:hover:active {
130
+ background: var(--nice-secondary-color-lighter);
131
+ }
132
+
133
+ &:focus,
134
+ &:hover {
135
+ color: var(--nice-secondary-font-color);
136
+ background: var(--nice-secondary-color-darker);
137
+ border-color: var(--nice-secondary-color-darker);
138
+ outline-color: var(--nice-secondary-color);
139
+ }
140
+ }
141
+
142
+ .btn-secondary-plain {
143
+ @extend .btn-secondary;
144
+ color: var(--nice-secondary-font-color);
145
+ background: var(--nice-secondary-color);
146
+ border-color: var(--nice-secondary-color);
147
+ }
148
+
149
+ .btn-secondary-naked {
150
+ @extend .btn-secondary;
151
+ color: var(--nice-secondary-font-color);
152
+ background: transparent;
153
+ border-color: transparent;
154
+ }
155
+
156
+ // -------------------------- Success --------------------------
157
+ .btn-success {
158
+ color: white;
159
+ background: var(--nice-success-color);
160
+ border-color: var(--nice-success-color);
161
+ outline-color: var(--nice-success-color) !important;
162
+
163
+ &:active,
164
+ &.active,
165
+ &:hover:active {
166
+ background: var(--nice-success-color-lighter);
167
+ }
168
+
169
+ &:focus,
170
+ &:hover {
171
+ background: var(--nice-success-color-darker);
172
+ border-color: var(--nice-success-color-darker);
173
+ outline-color: var(--nice-success-color);
174
+ }
175
+ }
176
+
177
+ .btn-success-plain {
178
+ @extend .btn-success;
179
+ color: var(--nice-success-color);
180
+ background: var(--nice-success-color-plain);
181
+ border-color: var(--nice-success-color-plain);
182
+ }
183
+
184
+ .btn-success-naked {
185
+ @extend .btn-success;
186
+ color: var(--nice-success-color);
187
+ background: transparent;
188
+ border-color: transparent;
189
+ }
190
+
191
+
192
+ // -------------------------- Danger --------------------------
193
+ .btn-danger {
194
+ color: white;
195
+ background: var(--nice-danger-color);
196
+ border-color: var(--nice-danger-color);
197
+ outline-color: var(--nice-danger-color) !important;
198
+
199
+ &:active,
200
+ &.active,
201
+ &:hover:active {
202
+ background: var(--nice-danger-color-lighter);
203
+ }
204
+
205
+ &:focus,
206
+ &:hover {
207
+ background: var(--nice-danger-color-darker);
208
+ border-color: var(--nice-danger-color-darker);
209
+ outline-color: var(--nice-danger-color);
210
+ }
211
+ }
212
+
213
+ .btn-danger-plain {
214
+ @extend .btn-danger;
215
+ color: var(--nice-danger-color);
216
+ background: var(--nice-danger-color-plain);
217
+ border-color: var(--nice-danger-color-plain);
218
+ }
219
+
220
+ .btn-danger-naked {
221
+ @extend .btn-danger;
222
+ color: var(--nice-danger-color);
223
+ background: transparent;
224
+ border-color: transparent;
225
+ }
226
+
227
+
228
+ // -------------------------- Info --------------------------
229
+ .btn-info {
230
+ color: white;
231
+ background: var(--nice-info-color);
232
+ border-color: var(--nice-info-color);
233
+ outline-color: var(--nice-info-color) !important;
234
+
235
+ &:active,
236
+ &.active,
237
+ &:hover:active {
238
+ background: var(--nice-info-color-lighter);
239
+ }
240
+
241
+ &:focus,
242
+ &:hover {
243
+ background: var(--nice-info-color-darker);
244
+ border-color: var(--nice-info-color-darker);
245
+ outline-color: var(--nice-info-color);
246
+ }
247
+ }
248
+
249
+ .btn-info-plain {
250
+ @extend .btn-info;
251
+ color: var(--nice-info-color);
252
+ background: var(--nice-info-color-plain);
253
+ border-color: var(--nice-info-color-plain);
254
+ }
255
+
256
+ .btn-info-naked {
257
+ @extend .btn-info;
258
+ color: var(--nice-info-color);
259
+ background: transparent;
260
+ border-color: transparent;
261
+ }
262
+
263
+
264
+ // -------------------------- Warning --------------------------
265
+ .btn-warning {
266
+ color: white;
267
+ background: var(--nice-warning-color);
268
+ border-color: var(--nice-warning-color);
269
+ outline-color: var(--nice-warning-color) !important;
270
+
271
+ &:active,
272
+ &.active,
273
+ &:hover:active {
274
+ background: var(--nice-warning-color-lighter);
275
+ }
276
+
277
+ &:focus,
278
+ &:hover {
279
+ background: var(--nice-warning-color-darker);
280
+ border-color: var(--nice-warning-color-darker);
281
+ outline-color: var(--nice-warning-color);
282
+ }
283
+ }
284
+
285
+ .btn-warning-plain {
286
+ @extend .btn-warning;
287
+ color: var(--nice-warning-color);
288
+ background: var(--nice-warning-color-plain);
289
+ border-color: var(--nice-warning-color-plain);
290
+ }
291
+
292
+ .btn-warning-naked {
293
+ @extend .btn-warning;
294
+ color: var(--nice-warning-color);
295
+ background: transparent;
296
+ border-color: transparent;
297
+ }
298
+
299
+
300
+ // -------------------------------- Btn big --------------------------------
301
+ .btn-big,
302
+ .btn-lg {
303
+ font-size: 1.2em;
304
+ padding: 0.2rem 1.5rem;
305
+ min-height: 42px;
306
+
307
+ svg {
308
+ width: 24px;
309
+ height: 24px;
310
+ fill: currentColor;
311
+ }
312
+ }
313
+
314
+
315
+ // -------------------------------- Btn medium --------------------------------
316
+ .btn-medium {
317
+ height: 40px !important;
318
+ }
319
+
320
+ // -------------------------------- Btn sm --------------------------------
321
+ .btn-sm {
322
+ min-height: 30px !important;
323
+ padding: 4px 10px;
324
+ }
325
+
326
+ // -------------------------------- Btn icon --------------------------------
327
+ .btn-icon {
328
+ font-size: 1.2em !important;
329
+
330
+ svg,
331
+ img {
332
+ width: 24px;
333
+ height: 24px;
334
+ }
335
+ }