@solcre-org/core-ui 2.14.5 → 2.15.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/assets/css/inc/components/fixed-actions.css +165 -0
- package/assets/css/inc/components/header-mobile.css +197 -0
- package/assets/css/inc/components/header.css +1 -11
- package/assets/css/inc/components/mobile-nav.css +105 -0
- package/assets/css/main.css +3 -0
- package/fesm2022/solcre-org-core-ui.mjs +819 -18
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +222 -4
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* ******************************************** */
|
|
2
|
+
/** COMPONENT: FIXED ACTIONS
|
|
3
|
+
/* ******************************************** */
|
|
4
|
+
|
|
5
|
+
.c-fixed-actions {
|
|
6
|
+
--_items-gap: 8px;
|
|
7
|
+
--_bottom: var(--_layout-padd-x);
|
|
8
|
+
--_right: auto;
|
|
9
|
+
--_left: auto;
|
|
10
|
+
position: fixed;
|
|
11
|
+
bottom: var(--_bottom);
|
|
12
|
+
right: var(--_right);
|
|
13
|
+
left: var(--_left);
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: var(--_items-gap);
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.c-fixed-actions--right{
|
|
21
|
+
--_right: var(--_layout-padd-x);
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.c-fixed-actions--left{
|
|
26
|
+
--_left: var(--_layout-padd-x);
|
|
27
|
+
justify-content: flex-end;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.c-fixed-actions__btn{
|
|
31
|
+
--_btns-size: 5rem;
|
|
32
|
+
--_icon-size: 3rem;
|
|
33
|
+
--_br: 1.5rem;
|
|
34
|
+
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: 0;
|
|
37
|
+
height: var(--_btns-size);
|
|
38
|
+
width: var(--_btns-size);
|
|
39
|
+
font-size: var(--_icon-size);
|
|
40
|
+
box-shadow: -1px 0.7rem 1.6rem -1rem hsl(var(--color-neutral-900-hsl) / 70%);
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.c-fixed-actions__btn.c-btn--stroke{
|
|
45
|
+
--_border-color-hsl: var(--color-neutral-300-hsl);
|
|
46
|
+
background-color: var(--color-neutral-100);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.c-fixed-actions__counter{
|
|
50
|
+
position: absolute;
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
right: 0.5em;
|
|
53
|
+
bottom: 0.5em;
|
|
54
|
+
font-size: 11px;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
color: var(--color-neutral-100);
|
|
57
|
+
font-family: var(--font-family);
|
|
58
|
+
line-height: 1.3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.c-fixed-actions__counter::before{
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 50%;
|
|
65
|
+
left: 50%;
|
|
66
|
+
transform: translate(-50%,-50%);
|
|
67
|
+
width: 20px;
|
|
68
|
+
height: 20px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
background-color: var(--color-context-error);
|
|
71
|
+
z-index: -1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/* ********************** MEDIA HOVER ********************** */
|
|
76
|
+
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
|
|
79
|
+
.c-btn--stroke:not([disabled], .is-disabled, .is-loading):hover{
|
|
80
|
+
background-color: var(--color-neutral-300);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/* ********************** SHORT MOBILE ********************** */
|
|
88
|
+
|
|
89
|
+
@media (max-width: 22.4375rem) { /* 359px */
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/* ********************** TALL MOBILE PORTRAIT ********************** */
|
|
97
|
+
|
|
98
|
+
@media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* ********************** MOBILE LANDSCAPE ********************** */
|
|
106
|
+
|
|
107
|
+
@media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/* ********************** de Mobile a TABLET ********************** */
|
|
115
|
+
|
|
116
|
+
@media (min-width: 48rem) { /* 768px */
|
|
117
|
+
}
|
|
118
|
+
@media (min-width: 48rem) and (orientation: portrait) {
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/* ********************** de Tablet a DESKTOP ********************** */
|
|
125
|
+
|
|
126
|
+
@media (min-width: 61.25rem) { /* 980px */
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
/* ********************** de Desktop a DESKTOP 2 ********************** */
|
|
133
|
+
|
|
134
|
+
@media (min-width: 75rem) { /* 1200px */
|
|
135
|
+
}
|
|
136
|
+
@media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
/* ********************** de Desktop 2 a HD ********************** */
|
|
143
|
+
|
|
144
|
+
@media (min-width: 87.5rem) { /* 1400px */
|
|
145
|
+
}
|
|
146
|
+
@media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/* ********************** de Hd a FULL HD ********************** */
|
|
153
|
+
|
|
154
|
+
@media (min-width: 100rem) { /* 1600px */
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
|
|
158
|
+
}
|
|
159
|
+
@media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media (min-width: 112.5rem) { /* 1800px */
|
|
163
|
+
}
|
|
164
|
+
@media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
|
|
165
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* ******************************************** */
|
|
2
|
+
/** COMPONENT: HEADER MOBILE
|
|
3
|
+
/* ******************************************** */
|
|
4
|
+
|
|
5
|
+
.c-header-mobile{
|
|
6
|
+
--_main-color: var(--color-neutral-100);
|
|
7
|
+
--_header-mobile-min-height: 6rem;
|
|
8
|
+
--_header-mobile-bg: linear-gradient(90deg, var(--color-primary-500) -20%, var(--color-secondary-500) 120%);
|
|
9
|
+
|
|
10
|
+
--_fz: var(--fz-200);
|
|
11
|
+
--_fw: 500;
|
|
12
|
+
--_row-gap: 2rem;
|
|
13
|
+
--_col-gap: 2rem;
|
|
14
|
+
--_title-lh: 1.2;
|
|
15
|
+
|
|
16
|
+
--link-color-main-hsl: var(--color-neutral-100);
|
|
17
|
+
|
|
18
|
+
/* position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;*/
|
|
21
|
+
width: 100%;
|
|
22
|
+
color: var(--_main-color);
|
|
23
|
+
font-size: var(--_fz);
|
|
24
|
+
font-weight: var(--_fw);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.c-header-mobile__holder{
|
|
28
|
+
background: var(--_header-mobile-bg);
|
|
29
|
+
padding-inline: var(--layout-padd-x, var(--_layout-padd-x));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.c-header-mobile__row{
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
align-items: center;
|
|
36
|
+
min-height: var(--_header-mobile-min-height);
|
|
37
|
+
gap: var(--_row-gap);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.c-header-mobile__col{
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: var(--_col-gap);
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.c-header-mobile__title{
|
|
47
|
+
line-height: var(--_title-lh);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.c-header-mobile__menu{
|
|
51
|
+
color: var(--_main-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.c-header-mobile__subnav{
|
|
55
|
+
background-color: var(--color-primary-100);
|
|
56
|
+
padding-inline: var(--layout-padd-x, var(--_layout-padd-x));
|
|
57
|
+
padding-block: .7rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.c-header-mobile__subnav--light{
|
|
61
|
+
background-color: var(--color-neutral-100);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.c-header-mobile__subnav--light .c-btn--secondary{
|
|
65
|
+
--_color-main-hsl: var(--color-neutral-700-hsl);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Calendar */
|
|
69
|
+
|
|
70
|
+
.c-header-mobile .c-calendar{
|
|
71
|
+
--_gap-y: 0.35em;
|
|
72
|
+
color: var(--color-neutral-100);
|
|
73
|
+
background: var(--_header-mobile-bg);
|
|
74
|
+
padding-block: 1rem;
|
|
75
|
+
width: 100%;
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.c-header-mobile .c-calendar__day-header{
|
|
80
|
+
color: var(--color-primary-300);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.c-header-mobile .c-calendar__day{
|
|
84
|
+
font-size: var(--fz-200);
|
|
85
|
+
color: var(--color-neutral-100);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.c-header-mobile .c-calendar__day.is-current{
|
|
89
|
+
color: var(--color-primary-400);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.c-header-mobile .c-calendar__day:is(a, button)::before{
|
|
93
|
+
width: 1.8em;
|
|
94
|
+
height: 1.8em;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.c-header-mobile .c-calendar__day.is-current::before{
|
|
98
|
+
background-color: var(--color-neutral-100);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/* ********************** MEDIA HOVER ********************** */
|
|
104
|
+
|
|
105
|
+
@media (hover: hover) {
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/* ********************** SHORT MOBILE ********************** */
|
|
114
|
+
|
|
115
|
+
@media (max-width: 22.4375rem) { /* 359px */
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
/* ********************** TALL MOBILE PORTRAIT ********************** */
|
|
123
|
+
|
|
124
|
+
@media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/* ********************** MOBILE LANDSCAPE ********************** */
|
|
132
|
+
|
|
133
|
+
@media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/* ********************** de Mobile a TABLET ********************** */
|
|
141
|
+
|
|
142
|
+
@media (min-width: 48rem) { /* 768px */
|
|
143
|
+
/*
|
|
144
|
+
.c-header-mobile{
|
|
145
|
+
display: none;
|
|
146
|
+
} */
|
|
147
|
+
}
|
|
148
|
+
@media (min-width: 48rem) and (orientation: portrait) {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/* ********************** de Tablet a DESKTOP ********************** */
|
|
155
|
+
|
|
156
|
+
@media (min-width: 61.25rem) { /* 980px */
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/* ********************** de Desktop a DESKTOP 2 ********************** */
|
|
165
|
+
|
|
166
|
+
@media (min-width: 75rem) { /* 1200px */
|
|
167
|
+
}
|
|
168
|
+
@media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
/* ********************** de Desktop 2 a HD ********************** */
|
|
175
|
+
|
|
176
|
+
@media (min-width: 87.5rem) { /* 1400px */
|
|
177
|
+
}
|
|
178
|
+
@media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/* ********************** de Hd a FULL HD ********************** */
|
|
185
|
+
|
|
186
|
+
@media (min-width: 100rem) { /* 1600px */
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
|
|
190
|
+
}
|
|
191
|
+
@media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-width: 112.5rem) { /* 1800px */
|
|
195
|
+
}
|
|
196
|
+
@media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
|
|
197
|
+
}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
padding-block: var(--_gap-y);
|
|
24
24
|
flex-wrap: wrap;
|
|
25
|
-
width: 100%;
|
|
26
25
|
}
|
|
27
26
|
.c-header__group:last-child:not(:first-child){
|
|
28
27
|
margin-left: auto;
|
|
@@ -62,17 +61,8 @@
|
|
|
62
61
|
.c-header{
|
|
63
62
|
--_gap-x: 16px;
|
|
64
63
|
--_padd-y: calc(var(--space-y) * 0.5);
|
|
65
|
-
--_heading-fz: var(--fz-200);
|
|
66
|
-
--_heading-fw: 500;
|
|
67
|
-
--_heading-color: var(--app-main-header-mobile-text, inherit);
|
|
68
|
-
|
|
69
64
|
--flex-gap: 10px;
|
|
70
|
-
|
|
71
|
-
background: var(--app-main-header-mobile-bg, inherit);
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
flex-wrap: wrap;
|
|
75
|
-
min-height: var(--layout-header-min-height,var(--_layout-header-min-height));
|
|
65
|
+
--_heading-fz: var(--fz-200);
|
|
76
66
|
}
|
|
77
67
|
|
|
78
68
|
.c-header__bottom{
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* ******************************************** */
|
|
2
|
+
/** COMPONENT: MOBILE NAV
|
|
3
|
+
/* ******************************************** */
|
|
4
|
+
|
|
5
|
+
.c-mobile-nav{
|
|
6
|
+
--_main-color: var(--color-neutral-800);
|
|
7
|
+
--_fz: var(--fz-200);
|
|
8
|
+
--_links-padd-y: .75em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.c-mobile-nav__item{
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.c-mobile-nav__link{
|
|
17
|
+
display: flex;
|
|
18
|
+
font-size: var(--_fz);
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
color: var(--_main-color);
|
|
21
|
+
padding-block: var(--_links-padd-y);
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 0.6em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* ********************** SHORT MOBILE ********************** */
|
|
28
|
+
|
|
29
|
+
@media (max-width: 22.4375rem) { /* 359px */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/* ********************** TALL MOBILE PORTRAIT ********************** */
|
|
37
|
+
|
|
38
|
+
@media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/* ********************** MOBILE LANDSCAPE ********************** */
|
|
46
|
+
|
|
47
|
+
@media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* ********************** de Mobile a TABLET ********************** */
|
|
55
|
+
|
|
56
|
+
@media (min-width: 48rem) { /* 768px */
|
|
57
|
+
}
|
|
58
|
+
@media (min-width: 48rem) and (orientation: portrait) {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* ********************** de Tablet a DESKTOP ********************** */
|
|
65
|
+
|
|
66
|
+
@media (min-width: 61.25rem) { /* 980px */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* ********************** de Desktop a DESKTOP 2 ********************** */
|
|
73
|
+
|
|
74
|
+
@media (min-width: 75rem) { /* 1200px */
|
|
75
|
+
}
|
|
76
|
+
@media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/* ********************** de Desktop 2 a HD ********************** */
|
|
83
|
+
|
|
84
|
+
@media (min-width: 87.5rem) { /* 1400px */
|
|
85
|
+
}
|
|
86
|
+
@media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* ********************** de Hd a FULL HD ********************** */
|
|
93
|
+
|
|
94
|
+
@media (min-width: 100rem) { /* 1600px */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
|
|
98
|
+
}
|
|
99
|
+
@media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (min-width: 112.5rem) { /* 1800px */
|
|
103
|
+
}
|
|
104
|
+
@media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
|
|
105
|
+
}
|
package/assets/css/main.css
CHANGED
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
@import url(inc/components/refresh.css); /* !(new) */
|
|
76
76
|
@import url(inc/components/area-code.css); /* !(new) */
|
|
77
77
|
@import url(inc/components/switch.css); /* !(new) */
|
|
78
|
+
/* ✅ */ @import url(inc/components/fixed-actions.css); /* !(new) */
|
|
79
|
+
/* ✅ */ @import url(inc/components/header-mobile.css); /* !(new) */
|
|
80
|
+
/* ✅ */ @import url(inc/components/mobile-nav.css); /* !(new) */
|
|
78
81
|
|
|
79
82
|
/* Utilities */
|
|
80
83
|
@import url(inc/utilities/headings.css);
|