nice-elements 1.9.11 → 1.9.12
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.
- package/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +18 -16
- package/dist/nice.min.js +1 -1
- package/dist/style.css +5225 -376
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-checkbox/nice-checkbox.html +4 -4
- package/src/components/nice-checkbox/nice-checkbox.js +1 -0
- package/src/components/nice-checkbox/nice-checkbox.scss +25 -19
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-spacing.scss +216 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<div class="nice-component nice-checkbox" ng-class="{ 'checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled }" ng-click="toggle()">
|
|
2
|
-
<button class="btn checkbox" type="button" ng-disabled="isDisabled">
|
|
3
|
-
<nice-icon class="check" icon="icon-check"></nice-icon>
|
|
1
|
+
<div class="nice-component nice-checkbox" ng-class="{ 'nice-checkbox-checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled, 'nice-checkbox-left': titleOnLeft }" ng-click="toggle()">
|
|
2
|
+
<button class="btn nice-checkbox-checkbox" type="button" ng-disabled="isDisabled">
|
|
3
|
+
<nice-icon class="nice-checkbox-check" icon="icon-check"></nice-icon>
|
|
4
4
|
</button>
|
|
5
|
-
<div ng-if="title" class="message" ng-class="{ 'nice-disabled': isDisabled }">{{ title }}</div>
|
|
5
|
+
<div ng-if="title" class="nice-checkbox-message" ng-class="{ 'nice-disabled': isDisabled }">{{ title }}</div>
|
|
6
6
|
</div>
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
.nice-checkbox {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
+
gap: 0.5rem;
|
|
4
5
|
cursor: pointer;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
&.nice-checkbox-left {
|
|
8
|
+
flex-direction: row-reverse;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.nice-checkbox-checkbox {
|
|
7
12
|
height: 20px;
|
|
8
13
|
width: 20px;
|
|
9
14
|
min-height: unset;
|
|
@@ -14,49 +19,50 @@
|
|
|
14
19
|
padding: 0;
|
|
15
20
|
flex-shrink: 0;
|
|
16
21
|
|
|
17
|
-
.check {
|
|
22
|
+
.nice-checkbox-check {
|
|
18
23
|
opacity: 0;
|
|
19
24
|
color: white;
|
|
20
25
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 50%;
|
|
28
|
+
left: 50%;
|
|
29
|
+
transform: translate(-50%, -50%);
|
|
30
|
+
width: 15px;
|
|
31
|
+
height: 15px;
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
|
|
28
|
-
.message {
|
|
29
|
-
margin-left: 10px;
|
|
35
|
+
.nice-checkbox-message {
|
|
30
36
|
user-select: none;
|
|
31
37
|
color: $nice-font-color;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
&:hover {
|
|
35
|
-
.checkbox {
|
|
41
|
+
.nice-checkbox-checkbox {
|
|
36
42
|
border-color: $nice-choice-hover-border;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
.message {
|
|
45
|
+
.nice-checkbox-message {
|
|
40
46
|
color: darken($nice-font-color, 15%);
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
|
|
44
|
-
&.checked {
|
|
45
|
-
.checkbox {
|
|
50
|
+
&.nice-checkbox-checked {
|
|
51
|
+
.nice-checkbox-checkbox {
|
|
46
52
|
border-color: var(--nice-primary-color);
|
|
47
53
|
background: var(--nice-primary-color);
|
|
48
54
|
|
|
49
|
-
.check {
|
|
55
|
+
.nice-checkbox-check {
|
|
50
56
|
opacity: 1;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
.message {
|
|
59
|
+
.nice-checkbox-message {
|
|
54
60
|
color: $nice-font-color;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
&:hover {
|
|
59
|
-
.checkbox {
|
|
65
|
+
.nice-checkbox-checkbox {
|
|
60
66
|
border-color: $nice-choice-hover-border;
|
|
61
67
|
}
|
|
62
68
|
}
|
|
@@ -66,18 +72,18 @@
|
|
|
66
72
|
cursor: not-allowed;
|
|
67
73
|
|
|
68
74
|
&:hover {
|
|
69
|
-
.checkbox {
|
|
75
|
+
.nice-checkbox-checkbox {
|
|
70
76
|
border-color: $nice-border-color;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
|
-
.message {
|
|
79
|
+
.nice-checkbox-message {
|
|
74
80
|
color: $nice-font-color;
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
|
|
78
|
-
&.checked {
|
|
84
|
+
&.nice-checkbox-checked {
|
|
79
85
|
&:hover {
|
|
80
|
-
.checkbox {
|
|
86
|
+
.nice-checkbox-checkbox {
|
|
81
87
|
border-color: $nice-border-color;
|
|
82
88
|
}
|
|
83
89
|
}
|
|
@@ -14,77 +14,271 @@ $spacers: (
|
|
|
14
14
|
10: ($spacer * 6),
|
|
15
15
|
);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
$stops: (
|
|
18
|
+
'480px': 'xs',
|
|
19
|
+
'768px': 'sm',
|
|
20
|
+
'992px': 'md',
|
|
21
|
+
'1200px': 'lg',
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
@each $size, $length in $spacers {
|
|
25
|
+
.m-#{$size} {
|
|
26
|
+
margin: $length !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mx-#{$size} {
|
|
20
30
|
margin-top: $length !important;
|
|
31
|
+
margin-bottom: $length !important;
|
|
21
32
|
}
|
|
22
33
|
|
|
23
|
-
|
|
24
|
-
margin-
|
|
34
|
+
.my-#{$size} {
|
|
35
|
+
margin-left: $length !important;
|
|
36
|
+
margin-right: $length !important;
|
|
25
37
|
}
|
|
26
38
|
|
|
27
|
-
.
|
|
28
|
-
margin-
|
|
39
|
+
.mt-#{$size} {
|
|
40
|
+
margin-top: $length !important;
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
|
|
32
|
-
margin-bottom:
|
|
43
|
+
.mb-#{$size} {
|
|
44
|
+
margin-bottom: $length !important;
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
.ml-#{$size} {
|
|
36
48
|
margin-left: $length !important;
|
|
37
49
|
}
|
|
38
50
|
|
|
39
|
-
|
|
51
|
+
.mr-#{$size} {
|
|
52
|
+
margin-right: $length !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.-m-#{$size} {
|
|
56
|
+
margin: -$length !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.-mx-#{$size} {
|
|
60
|
+
margin-top: -$length !important;
|
|
61
|
+
margin-bottom: -$length !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.-my-#{$size} {
|
|
40
65
|
margin-left: -$length !important;
|
|
66
|
+
margin-right: -$length !important;
|
|
41
67
|
}
|
|
42
68
|
|
|
43
|
-
|
|
44
|
-
margin-
|
|
69
|
+
.-mt-#{$size} {
|
|
70
|
+
margin-top: -$length !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.-mb-#{$size} {
|
|
74
|
+
margin-bottom: -$length !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.-ml-#{$size} {
|
|
78
|
+
margin-left: -$length !important;
|
|
45
79
|
}
|
|
46
80
|
|
|
47
81
|
.-mr-#{$size} {
|
|
48
82
|
margin-right: -$length !important;
|
|
49
83
|
}
|
|
50
84
|
|
|
51
|
-
.
|
|
85
|
+
.p-#{$size} {
|
|
86
|
+
padding: $length !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.px-#{$size} {
|
|
52
90
|
padding-top: $length !important;
|
|
91
|
+
padding-bottom: $length !important;
|
|
53
92
|
}
|
|
54
93
|
|
|
55
|
-
|
|
56
|
-
padding-
|
|
94
|
+
.py-#{$size} {
|
|
95
|
+
padding-left: $length !important;
|
|
96
|
+
padding-right: $length !important;
|
|
57
97
|
}
|
|
58
98
|
|
|
59
|
-
.
|
|
60
|
-
padding-
|
|
99
|
+
.pt-#{$size} {
|
|
100
|
+
padding-top: $length !important;
|
|
61
101
|
}
|
|
62
102
|
|
|
63
|
-
|
|
64
|
-
padding-bottom:
|
|
103
|
+
.pb-#{$size} {
|
|
104
|
+
padding-bottom: $length !important;
|
|
65
105
|
}
|
|
66
106
|
|
|
67
107
|
.pl-#{$size} {
|
|
68
108
|
padding-left: $length !important;
|
|
69
109
|
}
|
|
70
110
|
|
|
71
|
-
|
|
111
|
+
.pr-#{$size} {
|
|
112
|
+
padding-right: $length !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.-p-#{$size} {
|
|
116
|
+
padding: -$length !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.-px-#{$size} {
|
|
120
|
+
padding-top: -$length !important;
|
|
121
|
+
padding-bottom: -$length !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.-py-#{$size} {
|
|
72
125
|
padding-left: -$length !important;
|
|
126
|
+
padding-right: -$length !important;
|
|
73
127
|
}
|
|
74
128
|
|
|
75
|
-
|
|
76
|
-
padding-
|
|
129
|
+
.-pt-#{$size} {
|
|
130
|
+
padding-top: -$length !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.-pb-#{$size} {
|
|
134
|
+
padding-bottom: -$length !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.-pl-#{$size} {
|
|
138
|
+
padding-left: -$length !important;
|
|
77
139
|
}
|
|
78
140
|
|
|
79
141
|
.-pr-#{$size} {
|
|
80
142
|
padding-right: -$length !important;
|
|
81
143
|
}
|
|
82
144
|
|
|
145
|
+
@each $pixels, $stop in $stops {
|
|
146
|
+
@media (max-width: $pixels) {
|
|
147
|
+
.m-#{$stop}-#{$size} {
|
|
148
|
+
margin: $length !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.mx-#{$stop}-#{$size} {
|
|
152
|
+
margin-top: $length !important;
|
|
153
|
+
margin-bottom: $length !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.my-#{$stop}-#{$size} {
|
|
157
|
+
margin-left: $length !important;
|
|
158
|
+
margin-right: $length !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.mt-#{$stop}-#{$size} {
|
|
162
|
+
margin-top: $length !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.mb-#{$stop}-#{$size} {
|
|
166
|
+
margin-bottom: $length !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ml-#{$stop}-#{$size} {
|
|
170
|
+
margin-left: $length !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.mr-#{$stop}-#{$size} {
|
|
174
|
+
margin-right: $length !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.-m-#{$stop}-#{$size} {
|
|
178
|
+
margin: -$length !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.-mx-#{$stop}-#{$size} {
|
|
182
|
+
margin-top: -$length !important;
|
|
183
|
+
margin-bottom: -$length !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.-my-#{$stop}-#{$size} {
|
|
187
|
+
margin-left: -$length !important;
|
|
188
|
+
margin-right: -$length !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.-mt-#{$stop}-#{$size} {
|
|
192
|
+
margin-top: -$length !important;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.-mb-#{$stop}-#{$size} {
|
|
196
|
+
margin-bottom: -$length !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.-ml-#{$stop}-#{$size} {
|
|
200
|
+
margin-left: -$length !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.-mr-#{$stop}-#{$size} {
|
|
204
|
+
margin-right: -$length !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.p-#{$stop}-#{$size} {
|
|
208
|
+
padding: $length !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.px-#{$stop}-#{$size} {
|
|
212
|
+
padding-top: $length !important;
|
|
213
|
+
padding-bottom: $length !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.py-#{$stop}-#{$size} {
|
|
217
|
+
padding-left: $length !important;
|
|
218
|
+
padding-right: $length !important;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.pt-#{$stop}-#{$size} {
|
|
222
|
+
padding-top: $length !important;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.pb-#{$stop}-#{$size} {
|
|
226
|
+
padding-bottom: $length !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.pl-#{$stop}-#{$size} {
|
|
230
|
+
padding-left: $length !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.pr-#{$stop}-#{$size} {
|
|
234
|
+
padding-right: $length !important;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.-p-#{$stop}-#{$size} {
|
|
238
|
+
padding: -$length !important;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.-px-#{$stop}-#{$size} {
|
|
242
|
+
padding-top: -$length !important;
|
|
243
|
+
padding-bottom: -$length !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.-py-#{$stop}-#{$size} {
|
|
247
|
+
padding-left: -$length !important;
|
|
248
|
+
padding-right: -$length !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.-pt-#{$stop}-#{$size} {
|
|
252
|
+
padding-top: -$length !important;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.-pb-#{$stop}-#{$size} {
|
|
256
|
+
padding-bottom: -$length !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.-pl-#{$stop}-#{$size} {
|
|
260
|
+
padding-left: -$length !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.-pr-#{$stop}-#{$size} {
|
|
264
|
+
padding-right: -$length !important;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
83
269
|
.w-#{$size} {
|
|
84
270
|
width: $length !important;
|
|
85
271
|
}
|
|
272
|
+
|
|
273
|
+
.h-#{$size} {
|
|
274
|
+
height: $length !important;
|
|
275
|
+
}
|
|
86
276
|
}
|
|
87
277
|
|
|
88
278
|
.w-100 {
|
|
89
279
|
width: 100%;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.h-100 {
|
|
283
|
+
height: 100%;
|
|
90
284
|
}
|