nice-elements 1.5.0 → 1.6.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 (41) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/CHANGELOG.md +26 -0
  3. package/README.md +48 -1
  4. package/bower.json +1 -1
  5. package/dist/nice.js +143 -99
  6. package/dist/nice.min.js +1 -1
  7. package/dist/style.css +1385 -227
  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 +337 -0
  38. package/src/styles/_nice-common.scss +84 -47
  39. package/src/styles/_nice-spacing.scss +90 -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,337 @@
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
+ i+span,
25
+ svg+span,
26
+ nice-icon+span,
27
+ span+svg,
28
+ span+nice-icon,
29
+ span+i {
30
+ margin-left: 0.5rem;
31
+ }
32
+
33
+ &.focus,
34
+ &.active.focus,
35
+ &.active:focus,
36
+ &:active.focus,
37
+ &:active:focus,
38
+ &:focus {
39
+ @extend .nice-focus;
40
+ }
41
+ }
42
+
43
+
44
+ // -------------------------------- Btn primary --------------------------------
45
+ .btn-primary {
46
+ background: var(--nice-primary-color);
47
+ border-color: var(--nice-primary-color-darker);
48
+ outline-color: var(--nice-primary-color);
49
+ color: white;
50
+
51
+ &:active,
52
+ &.active {
53
+ background: var(--nice-primary-color-lighter);
54
+ border-color: var(--nice-primary-color-lighter);
55
+
56
+ &:focus,
57
+ &:hover {
58
+ background: var(--nice-primary-color-lighter);
59
+ border-color: var(--nice-primary-color-lighter);
60
+ }
61
+ }
62
+
63
+ &:focus,
64
+ &:hover {
65
+ background: var(--nice-primary-color-darker);
66
+ border-color: var(--nice-primary-color-darker);
67
+ outline-color: var(--nice-primary-color);
68
+ }
69
+ }
70
+
71
+ .btn-primary-plain {
72
+ @extend .btn-primary;
73
+ color: var(--nice-primary-color);
74
+ background: var(--nice-primary-color-plain);
75
+ border-color: var(--nice-primary-color-plain);
76
+ }
77
+
78
+ .btn-primary-naked {
79
+ @extend .btn-primary;
80
+ color: var(--nice-primary-color);
81
+ background: transparent;
82
+ border-color: transparent;
83
+ }
84
+
85
+
86
+ // -------------------------- Default --------------------------
87
+ .btn-default {
88
+ color: var(--nice-font-color);
89
+ background: var(--nice-secondary-color);
90
+ border-color: var(--nice-secondary-color);
91
+
92
+ &:active,
93
+ &.active,
94
+ &:hover:active,
95
+ &:hover.active {
96
+ background: var(--nice-secondary-color-lighter);
97
+ border-color: var(--nice-secondary-color-lighter);
98
+ }
99
+
100
+ &:focus,
101
+ &:hover {
102
+ color: var(--nice-font-color);
103
+ background: var(--nice-secondary-color-darker);
104
+ border-color: var(--nice-secondary-color-darker);
105
+ }
106
+ }
107
+
108
+ .btn-default-plain {
109
+ @extend .btn-default;
110
+ color: var(--nice-font-color);
111
+ background: var(--nice-secondary-color);
112
+ border-color: var(--nice-secondary-color);
113
+ }
114
+
115
+ .btn-default-naked {
116
+ @extend .btn-default;
117
+ color: var(--font-card);
118
+ background: transparent;
119
+ border-color: transparent;
120
+ }
121
+
122
+ // -------------------------- Secondary --------------------------
123
+ .btn-secondary {
124
+ color: var(--nice-secondary-font-color);
125
+ background: var(--nice-secondary-color);
126
+ border-color: var(--nice-border-color);
127
+ outline-color: var(--nice-secondary-color) !important;
128
+
129
+ &:active,
130
+ &.active,
131
+ &:hover:active {
132
+ background: var(--nice-secondary-color-lighter);
133
+ }
134
+
135
+ &:focus,
136
+ &:hover {
137
+ color: var(--nice-secondary-font-color);
138
+ background: var(--nice-secondary-color-darker);
139
+ border-color: var(--nice-secondary-color-darker);
140
+ outline-color: var(--nice-secondary-color);
141
+ }
142
+ }
143
+
144
+ .btn-secondary-plain {
145
+ @extend .btn-secondary;
146
+ color: var(--nice-secondary-font-color);
147
+ background: var(--nice-secondary-color);
148
+ border-color: var(--nice-secondary-color);
149
+ }
150
+
151
+ .btn-secondary-naked {
152
+ @extend .btn-secondary;
153
+ color: var(--nice-secondary-font-color);
154
+ background: transparent;
155
+ border-color: transparent;
156
+ }
157
+
158
+ // -------------------------- Success --------------------------
159
+ .btn-success {
160
+ color: white;
161
+ background: var(--nice-success-color);
162
+ border-color: var(--nice-success-color);
163
+ outline-color: var(--nice-success-color) !important;
164
+
165
+ &:active,
166
+ &.active,
167
+ &:hover:active {
168
+ background: var(--nice-success-color-lighter);
169
+ }
170
+
171
+ &:focus,
172
+ &:hover {
173
+ background: var(--nice-success-color-darker);
174
+ border-color: var(--nice-success-color-darker);
175
+ outline-color: var(--nice-success-color);
176
+ }
177
+ }
178
+
179
+ .btn-success-plain {
180
+ @extend .btn-success;
181
+ color: var(--nice-success-color);
182
+ background: var(--nice-success-color-plain);
183
+ border-color: var(--nice-success-color-plain);
184
+ }
185
+
186
+ .btn-success-naked {
187
+ @extend .btn-success;
188
+ color: var(--nice-success-color);
189
+ background: transparent;
190
+ border-color: transparent;
191
+ }
192
+
193
+
194
+ // -------------------------- Danger --------------------------
195
+ .btn-danger {
196
+ color: white;
197
+ background: var(--nice-danger-color);
198
+ border-color: var(--nice-danger-color);
199
+ outline-color: var(--nice-danger-color) !important;
200
+
201
+ &:active,
202
+ &.active,
203
+ &:hover:active {
204
+ background: var(--nice-danger-color-lighter);
205
+ }
206
+
207
+ &:focus,
208
+ &:hover {
209
+ background: var(--nice-danger-color-darker);
210
+ border-color: var(--nice-danger-color-darker);
211
+ outline-color: var(--nice-danger-color);
212
+ }
213
+ }
214
+
215
+ .btn-danger-plain {
216
+ @extend .btn-danger;
217
+ color: var(--nice-danger-color);
218
+ background: var(--nice-danger-color-plain);
219
+ border-color: var(--nice-danger-color-plain);
220
+ }
221
+
222
+ .btn-danger-naked {
223
+ @extend .btn-danger;
224
+ color: var(--nice-danger-color);
225
+ background: transparent;
226
+ border-color: transparent;
227
+ }
228
+
229
+
230
+ // -------------------------- Info --------------------------
231
+ .btn-info {
232
+ color: white;
233
+ background: var(--nice-info-color);
234
+ border-color: var(--nice-info-color);
235
+ outline-color: var(--nice-info-color) !important;
236
+
237
+ &:active,
238
+ &.active,
239
+ &:hover:active {
240
+ background: var(--nice-info-color-lighter);
241
+ }
242
+
243
+ &:focus,
244
+ &:hover {
245
+ background: var(--nice-info-color-darker);
246
+ border-color: var(--nice-info-color-darker);
247
+ outline-color: var(--nice-info-color);
248
+ }
249
+ }
250
+
251
+ .btn-info-plain {
252
+ @extend .btn-info;
253
+ color: var(--nice-info-color);
254
+ background: var(--nice-info-color-plain);
255
+ border-color: var(--nice-info-color-plain);
256
+ }
257
+
258
+ .btn-info-naked {
259
+ @extend .btn-info;
260
+ color: var(--nice-info-color);
261
+ background: transparent;
262
+ border-color: transparent;
263
+ }
264
+
265
+
266
+ // -------------------------- Warning --------------------------
267
+ .btn-warning {
268
+ color: white;
269
+ background: var(--nice-warning-color);
270
+ border-color: var(--nice-warning-color);
271
+ outline-color: var(--nice-warning-color) !important;
272
+
273
+ &:active,
274
+ &.active,
275
+ &:hover:active {
276
+ background: var(--nice-warning-color-lighter);
277
+ }
278
+
279
+ &:focus,
280
+ &:hover {
281
+ background: var(--nice-warning-color-darker);
282
+ border-color: var(--nice-warning-color-darker);
283
+ outline-color: var(--nice-warning-color);
284
+ }
285
+ }
286
+
287
+ .btn-warning-plain {
288
+ @extend .btn-warning;
289
+ color: var(--nice-warning-color);
290
+ background: var(--nice-warning-color-plain);
291
+ border-color: var(--nice-warning-color-plain);
292
+ }
293
+
294
+ .btn-warning-naked {
295
+ @extend .btn-warning;
296
+ color: var(--nice-warning-color);
297
+ background: transparent;
298
+ border-color: transparent;
299
+ }
300
+
301
+
302
+ // -------------------------------- Btn big --------------------------------
303
+ .btn-big,
304
+ .btn-lg {
305
+ font-size: 1.2em;
306
+ padding: 0.2rem 1.5rem;
307
+ min-height: 42px;
308
+
309
+ svg {
310
+ width: 24px;
311
+ height: 24px;
312
+ fill: currentColor;
313
+ }
314
+ }
315
+
316
+
317
+ // -------------------------------- Btn medium --------------------------------
318
+ .btn-medium {
319
+ height: 40px !important;
320
+ }
321
+
322
+ // -------------------------------- Btn sm --------------------------------
323
+ .btn-sm {
324
+ min-height: 30px !important;
325
+ padding: 4px 10px;
326
+ }
327
+
328
+ // -------------------------------- Btn icon --------------------------------
329
+ .btn-icon {
330
+ font-size: 1.2em !important;
331
+
332
+ svg,
333
+ img {
334
+ width: 24px;
335
+ height: 24px;
336
+ }
337
+ }