@agorapulse/ui-theme 0.0.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.
- package/agorapulse-ui-theme-0.0.1.tgz +0 -0
- package/assets/lib-ui-theme/fonts/averta/AvertaStd-Black.otf +0 -0
- package/assets/lib-ui-theme/fonts/averta/AvertaStd-Bold.otf +0 -0
- package/assets/lib-ui-theme/fonts/averta/AvertaStd-Extrabold.otf +0 -0
- package/assets/lib-ui-theme/fonts/averta/AvertaStd-Regular.otf +0 -0
- package/assets/lib-ui-theme/fonts/averta/AvertaStd-Semibold.otf +0 -0
- package/assets/lib-ui-theme/style/_colors.scss +323 -0
- package/assets/lib-ui-theme/style/_font-face.scss +35 -0
- package/assets/lib-ui-theme/style/_grid.scss +166 -0
- package/assets/lib-ui-theme/style/_helpers.scss +78 -0
- package/assets/lib-ui-theme/style/_mat-typography.scss +85 -0
- package/assets/lib-ui-theme/style/_variables.scss +104 -0
- package/assets/lib-ui-theme/style/components-custom-style/_alert.scss +35 -0
- package/assets/lib-ui-theme/style/components-custom-style/_clickable-text.scss +8 -0
- package/assets/lib-ui-theme/style/components-custom-style/_form.scss +35 -0
- package/assets/lib-ui-theme/style/components-custom-style/_input-error.scss +7 -0
- package/assets/lib-ui-theme/style/components-custom-style/_input.scss +127 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-button-toggle-group.scss +68 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-button.scss +434 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-checkbox.scss +103 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-dialog.scss +36 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-divider.scss +3 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-expansion-panel.scss +21 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-list.scss +19 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-menu.scss +181 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-radio-button.scss +86 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-slide-toggle.scss +45 -0
- package/assets/lib-ui-theme/style/components-custom-style/_mat-snack-bar.scss +40 -0
- package/assets/lib-ui-theme/style/components-custom-style/_ng-select.scss +130 -0
- package/assets/lib-ui-theme/style/components-custom-style/_notification.scss +48 -0
- package/assets/lib-ui-theme/style/components-custom-style/_reduction.scss +14 -0
- package/assets/lib-ui-theme/style/components-custom-style/_select.scss +16 -0
- package/assets/lib-ui-theme/style/components-custom-style/_sign.scss +10 -0
- package/assets/lib-ui-theme/style/theme.scss +77 -0
- package/ng-package.json +4 -0
- package/package.json +15 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
@import 'assets/lib-ui-theme/style/variables';
|
|
2
|
+
|
|
3
|
+
%ap-button {
|
|
4
|
+
color: map_get($colors-grey, 80);
|
|
5
|
+
font-weight: bold;
|
|
6
|
+
min-width: 100px;
|
|
7
|
+
line-height: 16px;
|
|
8
|
+
padding: 10px $padding-m;
|
|
9
|
+
height: 36px;
|
|
10
|
+
&.active {
|
|
11
|
+
color: map_get($colors-electric-blue, 100);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mat-button-wrapper {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
ap-symbol {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
&.left-symbol {
|
|
21
|
+
margin-right: $padding-s;
|
|
22
|
+
}
|
|
23
|
+
&.right-symbol {
|
|
24
|
+
margin-left: $padding-s;
|
|
25
|
+
}
|
|
26
|
+
height: 16px;
|
|
27
|
+
width: 16px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.mat-button-focus-overlay {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
.mat-ripple-element {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
// Width
|
|
37
|
+
&.full-width {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.drop-down {
|
|
42
|
+
ap-symbol {
|
|
43
|
+
height: 12px;
|
|
44
|
+
width: 12px;
|
|
45
|
+
padding-left: 2px;
|
|
46
|
+
padding-top: 2px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// Size
|
|
50
|
+
&.small {
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
line-height: 12px;
|
|
53
|
+
height: 28px;
|
|
54
|
+
padding: $padding-s;
|
|
55
|
+
ap-symbol {
|
|
56
|
+
height: 12px;
|
|
57
|
+
width: 12px;
|
|
58
|
+
&.left-symbol {
|
|
59
|
+
margin-right: $padding-sl;
|
|
60
|
+
}
|
|
61
|
+
&.right-symbol {
|
|
62
|
+
margin-left: $padding-sl;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&.medium {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 14px;
|
|
69
|
+
height: 32px;
|
|
70
|
+
padding: 9px $padding-ml;
|
|
71
|
+
ap-symbol {
|
|
72
|
+
height: 14px;
|
|
73
|
+
width: 14px;
|
|
74
|
+
&.left-symbol {
|
|
75
|
+
margin-right: 7px;
|
|
76
|
+
}
|
|
77
|
+
&.right-symbol {
|
|
78
|
+
margin-left: 7px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.large {
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
line-height: 16px;
|
|
85
|
+
height: 44px;
|
|
86
|
+
padding: 14px $padding-l;
|
|
87
|
+
ap-symbol {
|
|
88
|
+
height: 16px;
|
|
89
|
+
width: 16px;
|
|
90
|
+
&.left-symbol {
|
|
91
|
+
margin-right: $padding-s;
|
|
92
|
+
}
|
|
93
|
+
&.right-symbol {
|
|
94
|
+
margin-left: $padding-s;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// Shape
|
|
99
|
+
&.circle {
|
|
100
|
+
border-radius: 30px;
|
|
101
|
+
min-width: 36px;
|
|
102
|
+
padding: 0;
|
|
103
|
+
&.small {
|
|
104
|
+
border-radius: 28px;
|
|
105
|
+
min-width: 28px;
|
|
106
|
+
max-height: 28px;
|
|
107
|
+
}
|
|
108
|
+
&.medium {
|
|
109
|
+
border-radius: 32px;
|
|
110
|
+
min-width: 32px;
|
|
111
|
+
max-height: 32px;
|
|
112
|
+
}
|
|
113
|
+
&.large {
|
|
114
|
+
border-radius: 44px;
|
|
115
|
+
min-width: 44px;
|
|
116
|
+
max-height: 44px;
|
|
117
|
+
}
|
|
118
|
+
&.active {
|
|
119
|
+
ap-symbol {
|
|
120
|
+
color: map_get($colors-electric-blue, 100);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&:not(.mat-accent):not(.mat-primary):not(.mat-success):not(.mat-warn):not(.mat-secondary):not(.mat-facebook):not(.mat-instagram):not(.mat-linkedin):not(.mat-twitter):not(.mat-youtube):not(.active) {
|
|
124
|
+
ap-symbol {
|
|
125
|
+
color: map_get($colors-grey, 60);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
&.square {
|
|
130
|
+
min-width: 36px;
|
|
131
|
+
padding: 0;
|
|
132
|
+
&.small {
|
|
133
|
+
min-width: 28px;
|
|
134
|
+
}
|
|
135
|
+
&.medium {
|
|
136
|
+
min-width: 32px;
|
|
137
|
+
}
|
|
138
|
+
&.large {
|
|
139
|
+
min-width: 44px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@mixin flat-button-color($background-color, $hover-background-color, $active-background-color) {
|
|
145
|
+
background-color: $background-color;
|
|
146
|
+
color: #fff;
|
|
147
|
+
ap-symbol {
|
|
148
|
+
color: #fff!important;
|
|
149
|
+
}
|
|
150
|
+
&:hover, &.force-hover {
|
|
151
|
+
background-color: $hover-background-color;
|
|
152
|
+
}
|
|
153
|
+
&:active {
|
|
154
|
+
background-color: $active-background-color;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
button.mat-flat-button {
|
|
159
|
+
@extend %ap-button;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
&:not([disabled]):hover, &.force-hover {
|
|
162
|
+
background-color: map_get($colors-grey, 5);
|
|
163
|
+
&.active {
|
|
164
|
+
background-color: map_get($colors-electric-blue, 10);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
&:not([disabled]):active {
|
|
168
|
+
background-color: map_get($colors-grey, 10);
|
|
169
|
+
&.active {
|
|
170
|
+
background-color: map_get($colors-electric-blue, 20);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
&[disabled],
|
|
174
|
+
&[disabled][disabled] {
|
|
175
|
+
background: none;
|
|
176
|
+
color: map_get($colors-grey, 20);
|
|
177
|
+
}
|
|
178
|
+
&.mat-accent[disabled],
|
|
179
|
+
&.mat-primary[disabled],
|
|
180
|
+
&.mat-success[disabled],
|
|
181
|
+
&.mat-warn[disabled],
|
|
182
|
+
&.mat-secondary[disabled],
|
|
183
|
+
&.mat-facebook[disabled],
|
|
184
|
+
&.mat-instagram[disabled],
|
|
185
|
+
&.mat-linkedin[disabled],
|
|
186
|
+
&.mat-twitter[disabled],
|
|
187
|
+
&.mat-youtube[disabled],
|
|
188
|
+
&.mat-google[disabled] {
|
|
189
|
+
background-color: map_get($colors-grey, 20);
|
|
190
|
+
color: #fff;
|
|
191
|
+
}
|
|
192
|
+
&.mat-accent:not([disabled]) {
|
|
193
|
+
@include flat-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 85), map_get($colors-electric-blue, 60));
|
|
194
|
+
}
|
|
195
|
+
&.mat-primary:not([disabled]) {
|
|
196
|
+
@include flat-button-color(map_get($colors-orange, 100), map_get($colors-orange, 85), map_get($colors-orange, 60));
|
|
197
|
+
}
|
|
198
|
+
&.mat-success:not([disabled]) {
|
|
199
|
+
@include flat-button-color(map_get($colors-green, 100), map_get($colors-green, 85), map_get($colors-green, 60));
|
|
200
|
+
}
|
|
201
|
+
&.mat-warn:not([disabled]) {
|
|
202
|
+
@include flat-button-color(map_get($colors-red, 100), map_get($colors-red, 85), map_get($colors-red, 60));
|
|
203
|
+
}
|
|
204
|
+
// Social networks
|
|
205
|
+
&.mat-facebook:not([disabled]) {
|
|
206
|
+
@include flat-button-color($color-facebook, $color-facebook, $color-facebook);
|
|
207
|
+
}
|
|
208
|
+
&.mat-instagram:not([disabled]) {
|
|
209
|
+
@include flat-button-color($color-instagram, $color-instagram, $color-instagram);
|
|
210
|
+
}
|
|
211
|
+
&.mat-linkedin:not([disabled]) {
|
|
212
|
+
@include flat-button-color($color-linkedin, $color-linkedin, $color-linkedin);
|
|
213
|
+
}
|
|
214
|
+
&.mat-twitter:not([disabled]) {
|
|
215
|
+
@include flat-button-color($color-twitter, $color-twitter, $color-twitter);
|
|
216
|
+
}
|
|
217
|
+
&.mat-youtube:not([disabled]) {
|
|
218
|
+
@include flat-button-color($color-youtube, $color-youtube, $color-youtube);
|
|
219
|
+
}
|
|
220
|
+
&.mat-google:not([disabled]) {
|
|
221
|
+
@include flat-button-color($color-google, $color-google, $color-google);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@mixin stroked-button-color($color, $border-color, $hover-border-color) {
|
|
226
|
+
color: $color;
|
|
227
|
+
border-color: $border-color;
|
|
228
|
+
&:hover, &.force-hover {
|
|
229
|
+
border-color: $hover-border-color;
|
|
230
|
+
}
|
|
231
|
+
&:active {
|
|
232
|
+
border-color: $color;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
@mixin ghost-button-color($color, $hover-background-color, $active-background-color) {
|
|
236
|
+
background-color: transparent;
|
|
237
|
+
border: none;
|
|
238
|
+
color: $color;
|
|
239
|
+
ap-symbol {
|
|
240
|
+
color: $color;
|
|
241
|
+
}
|
|
242
|
+
&:hover, &.force-hover {
|
|
243
|
+
background-color: $hover-background-color;
|
|
244
|
+
}
|
|
245
|
+
&:active {
|
|
246
|
+
background-color: $active-background-color;
|
|
247
|
+
}
|
|
248
|
+
&[disabled] {
|
|
249
|
+
background-color: transparent;
|
|
250
|
+
color: $active-background-color;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
button.mat-stroked-button {
|
|
255
|
+
&.ghost {
|
|
256
|
+
border: none;
|
|
257
|
+
color: map_get($colors-grey, 80);
|
|
258
|
+
ap-symbol {
|
|
259
|
+
color: map_get($colors-grey, 60);
|
|
260
|
+
}
|
|
261
|
+
&:hover, &.force-hover {
|
|
262
|
+
background-color: map_get($colors-grey, 10);
|
|
263
|
+
}
|
|
264
|
+
&:active {
|
|
265
|
+
background-color: map_get($colors-grey, 20);
|
|
266
|
+
}
|
|
267
|
+
&[disabled] {
|
|
268
|
+
background-color: transparent;
|
|
269
|
+
color: map_get($colors-grey, 20);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
@extend %ap-button;
|
|
273
|
+
&.background-grey {
|
|
274
|
+
background-color: $color-grey-background;
|
|
275
|
+
}
|
|
276
|
+
&.background-white {
|
|
277
|
+
background-color: $color-white;
|
|
278
|
+
}
|
|
279
|
+
&:not([disabled]) {
|
|
280
|
+
border-color: map_get($colors-grey, 20);
|
|
281
|
+
&.active {
|
|
282
|
+
border-color: map_get($colors-electric-blue, 40);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
&:not([disabled]):hover, &.force-hover {
|
|
286
|
+
border-color: map_get($colors-grey, 40);
|
|
287
|
+
&.active {
|
|
288
|
+
border-color: map_get($colors-electric-blue, 85);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
&:not([disabled]):active {
|
|
292
|
+
border-color: map_get($colors-grey, 60);
|
|
293
|
+
&.active {
|
|
294
|
+
border-color: map_get($colors-electric-blue, 100);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
&[disabled],
|
|
298
|
+
&[disabled][disabled] {
|
|
299
|
+
border-color: map_get($colors-grey, 20);
|
|
300
|
+
color: map_get($colors-grey, 20);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&.mat-accent:not([disabled]) {
|
|
304
|
+
@include stroked-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 60), map_get($colors-electric-blue, 85));
|
|
305
|
+
}
|
|
306
|
+
&.mat-primary:not([disabled]) {
|
|
307
|
+
@include stroked-button-color(map_get($colors-orange, 100), map_get($colors-orange, 60), map_get($colors-orange, 85));
|
|
308
|
+
}
|
|
309
|
+
&.mat-success:not([disabled]) {
|
|
310
|
+
@include stroked-button-color(map_get($colors-green, 100), map_get($colors-green, 60), map_get($colors-green, 85));
|
|
311
|
+
}
|
|
312
|
+
&.mat-warn:not([disabled]) {
|
|
313
|
+
@include stroked-button-color(map_get($colors-red, 100), map_get($colors-red, 60), map_get($colors-red, 85));
|
|
314
|
+
}
|
|
315
|
+
&.mat-warn.ghost {
|
|
316
|
+
@include ghost-button-color(map_get($colors-red, 100), map_get($colors-red, 10), map_get($colors-red, 20));
|
|
317
|
+
&[disabled] {
|
|
318
|
+
background-color: transparent;
|
|
319
|
+
color: map_get($colors-red, 20);
|
|
320
|
+
ap-symbol {
|
|
321
|
+
color: map_get($colors-red, 20);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
&.mat-primary.ghost {
|
|
326
|
+
@include ghost-button-color(map_get($colors-orange, 100), map_get($colors-orange, 60), map_get($colors-orange, 85));
|
|
327
|
+
&[disabled] {
|
|
328
|
+
background-color: transparent;
|
|
329
|
+
color: map_get($colors-orange, 85);
|
|
330
|
+
ap-symbol {
|
|
331
|
+
color: map_get($colors-orange, 85);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
&.mat-accent.ghost {
|
|
336
|
+
@include ghost-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 60), map_get($colors-electric-blue, 85));
|
|
337
|
+
&[disabled] {
|
|
338
|
+
background-color: transparent;
|
|
339
|
+
color: map_get($colors-electric-blue, 85);
|
|
340
|
+
ap-symbol {
|
|
341
|
+
color: map_get($colors-electric-blue, 85);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
&.mat-success.ghost {
|
|
346
|
+
@include ghost-button-color(map_get($colors-green, 100), map_get($colors-green, 60), map_get($colors-green, 85));
|
|
347
|
+
&[disabled] {
|
|
348
|
+
background-color: transparent;
|
|
349
|
+
color: map_get($colors-green, 85);
|
|
350
|
+
ap-symbol {
|
|
351
|
+
color: map_get($colors-green, 85);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
&.mat-facebook:not([disabled]) {
|
|
356
|
+
@include stroked-button-color($color-facebook, $color-facebook, 'none');
|
|
357
|
+
}
|
|
358
|
+
&.mat-instagram:not([disabled]) {
|
|
359
|
+
@include stroked-button-color($color-instagram, $color-instagram, 'none');
|
|
360
|
+
}
|
|
361
|
+
&.mat-linkedin:not([disabled]) {
|
|
362
|
+
@include stroked-button-color($color-linkedin, $color-linkedin, 'none');
|
|
363
|
+
}
|
|
364
|
+
&.mat-twitter:not([disabled]) {
|
|
365
|
+
@include stroked-button-color($color-twitter, $color-twitter, 'none');
|
|
366
|
+
}
|
|
367
|
+
&.mat-youtube:not([disabled]) {
|
|
368
|
+
@include stroked-button-color($color-youtube, $color-youtube, 'none');
|
|
369
|
+
}
|
|
370
|
+
&.mat-google:not([disabled]) {
|
|
371
|
+
@include stroked-button-color($color-google, $color-google, 'none');
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.split-button-dropdown {
|
|
376
|
+
display: flex;
|
|
377
|
+
%ap-button {
|
|
378
|
+
&.main-button {
|
|
379
|
+
border-bottom-right-radius: 0;
|
|
380
|
+
border-top-right-radius: 0;
|
|
381
|
+
margin-right: 1px !important;
|
|
382
|
+
}
|
|
383
|
+
&.drop-down-append {
|
|
384
|
+
border-bottom-left-radius: 0;
|
|
385
|
+
border-top-left-radius: 0;
|
|
386
|
+
width: 40px;
|
|
387
|
+
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
@mixin flat-secondary-button-color($text-color, $background-color, $hover-background-color, $active-background-color) {
|
|
393
|
+
background-color: $background-color;
|
|
394
|
+
color: $text-color;
|
|
395
|
+
border: none;
|
|
396
|
+
border-radius: $border-radius;
|
|
397
|
+
padding: 10px 16px;
|
|
398
|
+
font-family: $font-family;
|
|
399
|
+
font-size: $font-size;
|
|
400
|
+
font-weight: $font-weight-bold;
|
|
401
|
+
|
|
402
|
+
ap-symbol {
|
|
403
|
+
color: $text-color !important;
|
|
404
|
+
}
|
|
405
|
+
&:hover, &.force-hover {
|
|
406
|
+
cursor: pointer;
|
|
407
|
+
background-color: $hover-background-color;
|
|
408
|
+
}
|
|
409
|
+
&:active {
|
|
410
|
+
background-color: $active-background-color;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@mixin crop-text() {
|
|
415
|
+
overflow: hidden;
|
|
416
|
+
white-space: nowrap;
|
|
417
|
+
text-overflow: ellipsis;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
button.ap-button-secondary-orange {
|
|
421
|
+
@include flat-secondary-button-color(map_get($colors-orange, 100), map_get($colors-orange, 10), map_get($colors-orange, 20), map_get($colors-orange, 40));
|
|
422
|
+
|
|
423
|
+
&.ap-one-line {
|
|
424
|
+
@include crop-text();
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
button.ap-button-secondary-blue {
|
|
429
|
+
@include flat-secondary-button-color(map_get($colors-electric-blue, 100), map_get($colors-electric-blue, 10), map_get($colors-electric-blue, 20), map_get($colors-electric-blue, 40));
|
|
430
|
+
|
|
431
|
+
&.ap-one-line {
|
|
432
|
+
@include crop-text();
|
|
433
|
+
}
|
|
434
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@import 'assets/lib-ui-theme/style/variables';
|
|
2
|
+
|
|
3
|
+
@mixin checkbox-state-style($color) {
|
|
4
|
+
.mat-checkbox-frame {
|
|
5
|
+
border-color:$color;
|
|
6
|
+
}
|
|
7
|
+
&.mat-checkbox-checked {
|
|
8
|
+
.mat-checkbox-background {
|
|
9
|
+
background-color: $color !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mat-checkbox {
|
|
15
|
+
margin-right: $padding-m;
|
|
16
|
+
.mat-checkbox-frame {
|
|
17
|
+
background-color: white;
|
|
18
|
+
border-color: $form-control-default-border-color;
|
|
19
|
+
border-radius: $border-radius;
|
|
20
|
+
border-width: 1px;
|
|
21
|
+
}
|
|
22
|
+
.mat-checkbox-background {
|
|
23
|
+
border-radius: $border-radius;
|
|
24
|
+
.mat-checkbox-checkmark-path {
|
|
25
|
+
stroke-width: 4px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.mat-checkbox-checkmark {
|
|
29
|
+
height: 10px;
|
|
30
|
+
top: 2px;
|
|
31
|
+
}
|
|
32
|
+
.mat-checkbox-layout {
|
|
33
|
+
align-items: center;
|
|
34
|
+
|
|
35
|
+
.mat-checkbox-label {
|
|
36
|
+
display: flex;
|
|
37
|
+
color: $form-control-default-font-color;
|
|
38
|
+
line-height: $font-line-height;
|
|
39
|
+
font-size: $font-size;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Hover
|
|
43
|
+
/* Does not work?
|
|
44
|
+
&:hover {
|
|
45
|
+
.mat-checkbox-frame {
|
|
46
|
+
color: $form-control-hover-border-color !important;
|
|
47
|
+
}
|
|
48
|
+
}*/
|
|
49
|
+
// Checked
|
|
50
|
+
&.mat-checkbox-checked:not(.mat-checkbox-disabled) {
|
|
51
|
+
.mat-checkbox-background {
|
|
52
|
+
background-color: $form-control-selected-background-color !important;
|
|
53
|
+
}
|
|
54
|
+
.mat-checkbox-label {
|
|
55
|
+
color: $form-control-selected-font-color;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// Disabled
|
|
59
|
+
&.mat-checkbox-disabled {
|
|
60
|
+
.mat-checkbox-background {
|
|
61
|
+
background-color: $form-control-disabled-background-color;
|
|
62
|
+
border: 1px solid $form-control-disabled-border-color;
|
|
63
|
+
}
|
|
64
|
+
.mat-checkbox-label {
|
|
65
|
+
color: $form-control-disabled-font-color;
|
|
66
|
+
}
|
|
67
|
+
&.mat-checkbox-checked {
|
|
68
|
+
.mat-checkbox-background {
|
|
69
|
+
background-color: $form-control-disabled-selected-background-color !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Invalid
|
|
74
|
+
&.invalid:not(.mat-checkbox-disabled),
|
|
75
|
+
&.ng-invalid.ng-dirty.ng-touched:not([disabled]) {
|
|
76
|
+
@include checkbox-state-style($color-error);
|
|
77
|
+
}
|
|
78
|
+
// Valid
|
|
79
|
+
&.valid:not(.mat-checkbox-disabled) {
|
|
80
|
+
@include checkbox-state-style($color-success);
|
|
81
|
+
}
|
|
82
|
+
// Full width
|
|
83
|
+
&.full-width {
|
|
84
|
+
width: 100%;
|
|
85
|
+
margin: 0;
|
|
86
|
+
.mat-checkbox-layout {
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
.mat-checkbox-inner-container {
|
|
90
|
+
margin: 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
form.submitted {
|
|
97
|
+
.mat-checkbox {
|
|
98
|
+
// Invalid
|
|
99
|
+
&.ng-invalid {
|
|
100
|
+
@include checkbox-state-style($color-error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import 'assets/lib-ui-theme/style/variables';
|
|
2
|
+
|
|
3
|
+
.mat-dialog-actions {
|
|
4
|
+
background-color: $color-grey-white;
|
|
5
|
+
border-top: 1px solid $color-silver;
|
|
6
|
+
margin-top: $padding-l;
|
|
7
|
+
padding: $padding-l;
|
|
8
|
+
|
|
9
|
+
&[fxLayout] {
|
|
10
|
+
margin-left: -$padding-l;
|
|
11
|
+
margin-right: -$padding-l;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[fxFlex]:first-child {
|
|
15
|
+
margin-left: $padding-l;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[fxFlex]:last-child {
|
|
19
|
+
margin-right: $padding-l;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dark-backdrop {
|
|
24
|
+
background: rgba(0, 0, 0, .75);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.white-backdrop {
|
|
28
|
+
background: rgba(255, 255, 255, .75);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.full-screen-modal {
|
|
32
|
+
.mat-dialog-container {
|
|
33
|
+
max-width: none;
|
|
34
|
+
background: transparent;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.mat-accordion {
|
|
2
|
+
.mat-expansion-panel-spacing {
|
|
3
|
+
margin: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.mat-action-row {
|
|
7
|
+
background-color: $color-grey-white;
|
|
8
|
+
padding: $padding-l;
|
|
9
|
+
&[fxLayout] {
|
|
10
|
+
margin-left: -$padding-l;
|
|
11
|
+
margin-right: -$padding-l;
|
|
12
|
+
}
|
|
13
|
+
[fxFlex]:first-child {
|
|
14
|
+
margin-left: $padding-l;
|
|
15
|
+
}
|
|
16
|
+
[fxFlex]:last-child {
|
|
17
|
+
margin-right: $padding-l;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import 'assets/lib-ui-theme/style/variables';
|
|
2
|
+
|
|
3
|
+
.mat-list-option {
|
|
4
|
+
.mat-pseudo-checkbox {
|
|
5
|
+
border-color: $color-silver;
|
|
6
|
+
border-radius: $border-radius;
|
|
7
|
+
border-width: 1px;
|
|
8
|
+
&.mat-pseudo-checkbox-checked {
|
|
9
|
+
background: $color-success;
|
|
10
|
+
&::after {
|
|
11
|
+
left: 2px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mat-list-base {
|
|
18
|
+
padding-top: 0 !important;
|
|
19
|
+
}
|