mypgs 2.0.0 → 3.0.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 (163) hide show
  1. package/.vscode/tasks.json +39 -0
  2. package/AGENTS.md +22 -21
  3. package/README.md +25 -25
  4. package/assets/javascript/components/_menu.js +2 -1
  5. package/assets/javascript/components/_modals.js +1 -1
  6. package/assets/javascript/components/_notifications.js +2 -1
  7. package/assets/javascript/components/_slides.js +2 -2
  8. package/assets/scss/base/_body.scss +5 -5
  9. package/assets/scss/base/_general.scss +27 -18
  10. package/assets/scss/base/_variables.scss +1 -1
  11. package/assets/scss/components/_accordion.scss +9 -9
  12. package/assets/scss/components/_alerts.scss +71 -0
  13. package/assets/scss/components/_badges.scss +40 -48
  14. package/assets/scss/components/_button.scss +28 -20
  15. package/assets/scss/components/_card.scss +9 -4
  16. package/assets/scss/components/_form.scss +0 -16
  17. package/assets/scss/components/_formAddon.scss +22 -0
  18. package/assets/scss/components/_logo.scss +3 -4
  19. package/assets/scss/components/_menu.scss +26 -3
  20. package/assets/scss/components/_modals.scss +6 -4
  21. package/assets/scss/components/_search.scss +2 -2
  22. package/assets/scss/components/_slides.scss +0 -1
  23. package/assets/scss/components/_stepTabs.scss +2 -1
  24. package/assets/scss/components/_tooltip.scss +0 -1
  25. package/assets/scss/index.scss +3 -3
  26. package/assets/scss/layout/_footer.scss +0 -2
  27. package/assets/scss/layout/_header.scss +10 -2
  28. package/assets/scss/layout/_pageShell.scss +6 -2
  29. package/assets/scss/layout/_responsive.scss +63 -0
  30. package/assets/scss/mixin/_mx-base.scss +4 -8
  31. package/assets/scss/mixin/_mx-button.scss +73 -115
  32. package/assets/scss/mixin/_mx-card.scss +39 -40
  33. package/assets/scss/mixin/_mx-form.scss +13 -10
  34. package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +103 -64
  35. package/assets/scss/mixin/_mx-hover.scss +81 -0
  36. package/assets/scss/mixin/_mx-responsive.scss +81 -201
  37. package/assets/scss/mixin/_settings.scss +2 -1
  38. package/assets/scss/mixin/mixin.scss +2 -1
  39. package/demo/demo.css +9 -6
  40. package/demo/demo.html +7 -5
  41. package/demo/demo.js +37 -34
  42. package/dist/css/index.css +2469 -3825
  43. package/dist/css/index.css.map +1 -1
  44. package/dist/css/index.min.css +1 -1
  45. package/dist/javascript/index.js +7 -5
  46. package/dist/javascript/index.js.map +1 -1
  47. package/dist/javascript/index.min.js +1 -1
  48. package/docs/componenti-e-markup.md +9 -8
  49. package/docs/components/accordion.md +23 -23
  50. package/docs/components/alerts.md +67 -0
  51. package/docs/components/badges.md +29 -26
  52. package/docs/components/breadcumbs.md +8 -8
  53. package/docs/components/button.md +18 -18
  54. package/docs/components/card.md +25 -22
  55. package/docs/components/dropdown.md +29 -29
  56. package/docs/components/form.md +65 -41
  57. package/docs/components/formAddon.md +116 -0
  58. package/docs/components/logo.md +11 -11
  59. package/docs/components/menu.md +20 -20
  60. package/docs/components/modal.md +52 -51
  61. package/docs/components/notification.md +34 -34
  62. package/docs/components/search.md +54 -52
  63. package/docs/components/slides.md +41 -42
  64. package/docs/components/stepTabs.md +45 -45
  65. package/docs/components/steps.md +16 -16
  66. package/docs/components/summary.md +20 -20
  67. package/docs/components/table.md +7 -7
  68. package/docs/components/tooltip.md +24 -23
  69. package/docs/convenzioni.md +11 -11
  70. package/docs/export-e-sviluppo.md +4 -4
  71. package/docs/helper-javascript.md +8 -8
  72. package/docs/layout/body.md +11 -11
  73. package/docs/layout/footer.md +28 -24
  74. package/docs/layout/header.md +36 -35
  75. package/docs/layout/pageShell.md +19 -19
  76. package/docs/layout/responsive.md +90 -0
  77. package/docs/layout/section.md +38 -38
  78. package/docs/patterns/cookieConsent.md +42 -39
  79. package/docs/utilizzo-css-scss.md +33 -9
  80. package/package.json +1 -1
  81. package/reference/html/components/accordion.html +52 -0
  82. package/reference/html/components/alerts.html +59 -0
  83. package/reference/html/components/badges.html +62 -0
  84. package/{templates → reference}/html/components/breadcumbs.html +6 -6
  85. package/reference/html/components/button.html +51 -0
  86. package/reference/html/components/card.html +45 -0
  87. package/{templates → reference}/html/components/dropdown.html +25 -25
  88. package/reference/html/components/form.html +128 -0
  89. package/reference/html/components/formAddon.html +109 -0
  90. package/reference/html/components/logo.html +28 -0
  91. package/{templates → reference}/html/components/menu.html +17 -17
  92. package/reference/html/components/modal.html +123 -0
  93. package/reference/html/components/notification.html +71 -0
  94. package/reference/html/components/search.html +109 -0
  95. package/reference/html/components/slides.html +75 -0
  96. package/reference/html/components/stepTabs.html +83 -0
  97. package/reference/html/components/steps.html +49 -0
  98. package/reference/html/components/summary.html +41 -0
  99. package/{templates → reference}/html/components/table.html +5 -5
  100. package/reference/html/components/tooltip.html +44 -0
  101. package/reference/html/layout/body.html +34 -0
  102. package/reference/html/layout/footer.html +67 -0
  103. package/reference/html/layout/header.html +108 -0
  104. package/{templates → reference}/html/layout/pageShell.html +16 -16
  105. package/reference/html/layout/responsive.html +83 -0
  106. package/reference/html/layout/section.html +62 -0
  107. package/reference/html/patterns/cookieConsent.html +84 -0
  108. package/{templates → reference}/react/components/accordion.jsx +5 -5
  109. package/reference/react/components/alerts.jsx +46 -0
  110. package/{templates → reference}/react/components/breadcumbs.jsx +1 -1
  111. package/{templates → reference}/react/components/button.jsx +6 -6
  112. package/{templates → reference}/react/components/card.jsx +6 -6
  113. package/{templates → reference}/react/components/dropdown.jsx +8 -8
  114. package/{templates → reference}/react/components/form.jsx +3 -3
  115. package/{templates → reference}/react/components/modal.jsx +15 -15
  116. package/{templates → reference}/react/components/notification.jsx +3 -3
  117. package/{templates → reference}/react/components/search.jsx +8 -8
  118. package/{templates → reference}/react/components/slides.jsx +4 -4
  119. package/{templates → reference}/react/components/stepTabs.jsx +12 -12
  120. package/reference/react/components/summary.jsx +18 -0
  121. package/{templates → reference}/react/components/table.jsx +2 -2
  122. package/{templates → reference}/react/components/tooltip.jsx +1 -1
  123. package/{templates → reference}/react/layout/pageShell.jsx +2 -2
  124. package/reference/react/layout/responsive.jsx +61 -0
  125. package/reference/react/layout/section.jsx +44 -0
  126. package/{templates → reference}/react/patterns/cookieConsent.jsx +9 -9
  127. package/{templates → reference}/react/patterns/footer.jsx +4 -4
  128. package/{templates → reference}/react/patterns/header.jsx +4 -4
  129. package/scripts/generate-component-docs.js +12 -12
  130. package/assets/scss/layout/_flex.scss +0 -49
  131. package/assets/scss/layout/_gap.scss +0 -21
  132. package/assets/scss/layout/_grid.scss +0 -13
  133. package/docs/layout/flex.md +0 -116
  134. package/docs/layout/grid.md +0 -116
  135. package/templates/html/components/accordion.html +0 -52
  136. package/templates/html/components/badges.html +0 -60
  137. package/templates/html/components/button.html +0 -51
  138. package/templates/html/components/card.html +0 -43
  139. package/templates/html/components/form.html +0 -104
  140. package/templates/html/components/logo.html +0 -28
  141. package/templates/html/components/modal.html +0 -122
  142. package/templates/html/components/notification.html +0 -71
  143. package/templates/html/components/search.html +0 -107
  144. package/templates/html/components/slides.html +0 -76
  145. package/templates/html/components/stepTabs.html +0 -83
  146. package/templates/html/components/steps.html +0 -49
  147. package/templates/html/components/summary.html +0 -41
  148. package/templates/html/components/tooltip.html +0 -43
  149. package/templates/html/layout/body.html +0 -35
  150. package/templates/html/layout/flex.html +0 -109
  151. package/templates/html/layout/footer.html +0 -64
  152. package/templates/html/layout/grid.html +0 -109
  153. package/templates/html/layout/header.html +0 -107
  154. package/templates/html/layout/section.html +0 -62
  155. package/templates/html/patterns/cookieConsent.html +0 -82
  156. package/templates/react/components/summary.jsx +0 -18
  157. package/templates/react/layout/flex.jsx +0 -36
  158. package/templates/react/layout/grid.jsx +0 -36
  159. package/templates/react/layout/section.jsx +0 -44
  160. /package/{templates → reference}/react/components/logo.jsx +0 -0
  161. /package/{templates → reference}/react/components/menu.jsx +0 -0
  162. /package/{templates → reference}/react/components/steps.jsx +0 -0
  163. /package/{templates → reference}/react/layout/body.jsx +0 -0
@@ -0,0 +1,81 @@
1
+ @mixin _hoverColor() {
2
+ --hover-background: var(--color-primary-strong);
3
+ --hover-color: var(--color-white);
4
+ background: var(--hover-background);
5
+ color: var(--hover-color);
6
+ --fa-primary-color: var(--hover-color);
7
+ --fa-secondary-color: var(--hover-color);
8
+
9
+ &:not(:disabled) {
10
+ :is(h1, h2, h3, h4, h5, h6, p) {
11
+ color: var(--hover-color);
12
+ }
13
+
14
+ [pgs~=hover-text] {
15
+ color: var(--hover-color);
16
+ }
17
+
18
+ color: var(--hover-color);
19
+ --fa-secondary-opacity: 0.5;
20
+ --fa-primary-color: var(--hover-color);
21
+ --fa-secondary-color: var(--hover-color);
22
+ }
23
+ }
24
+
25
+ //+ HOVER
26
+ @mixin _hoverContent1() {
27
+ @media (hover: hover) and (pointer: fine) {
28
+
29
+ &:focus-visible,
30
+ &:hover {
31
+ box-shadow: 0px 0px 38px 0px var(--hover-shadow-color);
32
+ outline-width: 0;
33
+ @include _hoverColor();
34
+ }
35
+ }
36
+ }
37
+
38
+ @mixin _hoverContent2() {
39
+ @media (hover: hover) and (pointer: fine) {
40
+
41
+ &:focus-visible,
42
+ &:hover {
43
+ $n: var(--hover-shadow-displacement);
44
+ $-n: calc(var(--hover-shadow-displacement) * -1);
45
+ box-shadow: $-n $n 0 var(--color-black);
46
+ transform: translate($n, $-n);
47
+ outline-color: transparent;
48
+ @include _hoverColor();
49
+ }
50
+ }
51
+ }
52
+
53
+ //= HOVER
54
+ @mixin hover() {
55
+ transition: all 200ms;
56
+ cursor: pointer;
57
+ text-decoration: none;
58
+ --hover-color: var(--color-whiteFixed);
59
+ --hover-shadow-color: var(--color-primary);
60
+ --hover-shadow-displacement: 0.25rem;
61
+ $color: var(--color-primary-strong);
62
+ $colorTxtSafari: var(--color-whiteFixed);
63
+
64
+ * {
65
+ transition: all 200ms;
66
+ }
67
+
68
+ &:not(:disabled) {
69
+ &:not([pgs-option~=buttonStyle-2]) {
70
+ @include _hoverContent1();
71
+ }
72
+
73
+ &[pgs-option~=buttonStyle-2] {
74
+ @include _hoverContent2();
75
+ }
76
+ }
77
+
78
+ &:is(a):hover {
79
+ text-decoration: none;
80
+ }
81
+ }
@@ -3,46 +3,20 @@
3
3
 
4
4
  //= FLEX
5
5
  //== column
6
- @mixin flexColumn() {
6
+ @mixin flexColumn($gap: var(--gap-texts)) {
7
7
  display: flex;
8
- gap: var(--gap-texts);
9
- flex-direction: column;
10
- }
11
-
12
- @mixin flexColumnElements() {
13
- display: flex;
14
- gap: var(--gap-elements);
15
- flex-direction: column;
16
- }
17
-
18
- @mixin flexColumnSections() {
19
- display: flex;
20
- gap: var(--gap-sections);
8
+ gap: $gap;
21
9
  flex-direction: column;
22
10
  }
23
11
 
24
12
  //== row
25
- @mixin flexRow($wrap: wrap) {
13
+ @mixin flexRow($wrap: wrap, $gap: var(--gap-texts)) {
26
14
  display: flex;
27
- gap: var(--gap-texts);
15
+ gap: $gap;
28
16
  flex-direction: row;
29
17
  flex-wrap: $wrap;
30
18
  }
31
19
 
32
- @mixin flexRowElements() {
33
- display: flex;
34
- gap: var(--gap-elements);
35
- flex-direction: row;
36
- flex-wrap: wrap;
37
- }
38
-
39
- @mixin flexRowSection() {
40
- display: flex;
41
- gap: var(--gap-sections);
42
- flex-direction: row;
43
- flex-wrap: wrap;
44
- }
45
-
46
20
  //== center
47
21
  @mixin center($gap: var(--gap-texts)) {
48
22
  display: flex;
@@ -51,23 +25,16 @@
51
25
  justify-content: center;
52
26
  }
53
27
 
54
- //= FLEX
28
+ //++ basis
55
29
  @function _basis($ratio, $gap, $columns) {
56
30
  $cols: math.ceil($columns * $ratio);
57
31
  @return calc((100% - ($gap * ($cols - 1))) / $cols);
58
32
  }
59
33
 
60
- //== responsive flex
61
- @mixin rFlex(
62
- $columns: 4,
63
- $mobileTwoElements: false,
64
- $gap: var(--gap-elements))
65
- {
66
- display: flex;
67
- flex-wrap: wrap;
68
- justify-content: center;
69
- width: 100%;
70
- gap: $gap;
34
+ //== Column
35
+ @mixin columnFlex($columns: 4) {
36
+ --flex-gap: var(--gap-elements);
37
+ $gap: var(--flex-gap);
71
38
 
72
39
  >* {
73
40
  flex: 1 0;
@@ -97,15 +64,13 @@
97
64
 
98
65
  //-( mobile: 1 o 2 colonne
99
66
  @container (max-width: #{$mobile}) {
100
- @if $mobileTwoElements {
101
- >* {
102
- flex-basis:#{_basis(0.33, $gap, $columns)};
103
- }
67
+ >* {
68
+ flex-basis:#{_basis(0.15, $gap, $columns)};
104
69
  }
105
70
 
106
- @else {
71
+ &[pgs-option~=m2e] {
107
72
  >* {
108
- flex-basis:#{_basis(0.15, $gap, $columns)};
73
+ flex-basis:#{_basis(0.33, $gap, $columns)};
109
74
  }
110
75
  }
111
76
  }
@@ -118,79 +83,10 @@
118
83
  }
119
84
  }
120
85
 
121
- //== adaptive flex
122
- @mixin aFlex(
123
- $columns: 4,
124
- $start: var(--page-width),
125
- $mobileTwoElements: false,
126
- $gap: var(--gap-elements))
127
- {
128
- display: flex;
129
- flex-wrap: wrap;
130
- justify-content: center;
131
- width: 100%;
132
- gap: $gap;
133
-
134
- >* {
135
- flex: 1 0;
136
- flex-basis: #{_basis(1, $gap, $columns)};
137
- }
138
-
139
- // ↓ da start (es. 1500px): ratio = 0.75
140
- @container (max-width: #{$start}) {
141
- >* {
142
- flex-basis: #{_basis(0.75, $gap, $columns)};
143
- }
144
- }
145
-
146
- // ↓ ~ 75% di start: ratio = 0.5
147
- @container (max-width: #{calc($start * 0.75)}) {
148
- >* {
149
- flex-basis: #{_basis(0.5, $gap, $columns)};
150
- }
151
- }
152
-
153
- // ↓ ~ 50% di start: ratio = 0.33
154
- @container (max-width: #{calc($start * 0.5)}) {
155
- >* {
156
- flex-basis: #{_basis(0.33, $gap, $columns)};
157
- }
158
- }
159
-
160
- // ↓ ~ 33% di start: mobile (1 o 2 colonne)
161
- @container (max-width: #{calc($start * 0.33)}) {
162
- @if $mobileTwoElements ==true {
163
- >* {
164
- flex-basis: #{_basis(0.33, $gap, $columns)};
165
- }
166
- }
167
-
168
- @else {
169
- >* {
170
- flex-basis: #{_basis(0.15, $gap, $columns)};
171
- }
172
- }
173
- }
174
-
175
- // ↓ ~ 20% di start: mobile small / watch (sempre 1 colonna)
176
- @container (max-width: #{calc($start * 0.2)}) {
177
- >* {
178
- flex-basis: #{_basis(0.15, $gap, $columns)};
179
- }
180
- }
181
- }
182
-
183
86
  //= GRID
184
- //== responsive grid
185
- @mixin rGrid(
186
- $columns: 4,
187
- $mobileTwoElements: false,
188
- $gap: var(--gap-elements))
189
- {
190
- display: grid;
191
- width: 100%;
87
+ //== column
88
+ @mixin columnGrid($columns: 4) {
192
89
  grid-template-columns: repeat($columns, 1fr);
193
- gap: $gap;
194
90
 
195
91
  /// dispari
196
92
  @if $columns % 2==1 {
@@ -234,9 +130,8 @@
234
130
  grid-template-columns: 1fr; // 1 colonna
235
131
  }
236
132
 
237
- @if $mobileTwoElements ==true {
238
-
239
- //-( mobile
133
+ //-( mobile m2e
134
+ &[pgs-option~=m2e] {
240
135
  @container (max-width: #{$mobile}) {
241
136
  grid-template-columns: 1fr 1fr; // 2 colonne su mobile
242
137
  }
@@ -248,109 +143,94 @@
248
143
  }
249
144
  }
250
145
 
146
+ //= ADAPTIVE
147
+ //== adaptive flex
148
+ @mixin _columnAdaptiveFlex($columns: 4) {
149
+ --adaptiveFlex-width: var(--page-width);
150
+ --adaptiveFlex-gap: var(--gap-elements);
151
+ $gap: var(--adaptiveFlex-gap);
152
+
153
+ >* {
154
+ flex: 1 0;
155
+ flex-basis: #{_basis(1, $gap, $columns)};
156
+ }
157
+
158
+ // ↓ da start (es. 1500px): ratio = 0.75
159
+ @container (max-width: #{var(--adaptiveFlex-width)}) {
160
+ >* {
161
+ flex-basis: #{_basis(0.75, $gap, $columns)};
162
+ }
163
+ }
164
+
165
+ // ↓ ~ 75% di start: ratio = 0.5
166
+ @container (max-width: #{calc(var(--adaptiveFlex-width) * 0.75)}) {
167
+ >* {
168
+ flex-basis: #{_basis(0.5, $gap, $columns)};
169
+ }
170
+ }
171
+
172
+ // ↓ ~ 50% di start: ratio = 0.33
173
+ @container (max-width: #{calc(var(--adaptiveFlex-width) * 0.5)}) {
174
+ >* {
175
+ flex-basis: #{_basis(0.33, $gap, $columns)};
176
+ }
177
+ }
178
+
179
+ // ↓ ~ 33% di start: mobile (1 o 2 colonne)
180
+ @container (max-width: #{calc(var(--adaptiveFlex-width) * 0.33)}) {
181
+ >* {
182
+ flex-basis: #{_basis(0.15, $gap, $columns)};
183
+ }
184
+
185
+ &[pgs-option~=m2e] {
186
+ >* {
187
+ flex-basis: #{_basis(0.33, $gap, $columns)};
188
+ }
189
+ }
190
+ }
191
+
192
+ // ↓ ~ 20% di start: mobile small / watch (sempre 1 colonna)
193
+ @container (max-width: #{calc(var(--adaptiveFlex-width) * 0.2)}) {
194
+ >* {
195
+ flex-basis: #{_basis(0.15, $gap, $columns)};
196
+ }
197
+ }
198
+ }
199
+
251
200
  //== adaptive Grid
252
- @mixin aGrid(
253
- $columns: 4,
254
- $start: var(--page-width),
255
- $mobileTwoElements: false,
256
- $gap: var(--gap-elements))
257
- {
258
- display: grid;
259
- width: 100%;
201
+ @mixin _columnAdaptiveGrid($columns: 4) {
202
+ --adaptiveGrid-width: var(--page-width);
260
203
  grid-template-columns: repeat($columns, 1fr);
261
- gap: $gap;
262
204
 
263
205
  //-( da 1500px
264
- @container (max-width: #{$start}) {
206
+ @container (max-width: #{var(--adaptiveGrid-width)}) {
265
207
  grid-template-columns: repeat(math.ceil($columns * 0.75), 1fr);
266
208
  }
267
209
 
268
210
  //-( circa tablet landscape
269
- @container (max-width: #{calc($start * 0.75)}) {
211
+ @container (max-width: #{calc(var(--adaptiveGrid-width) * 0.75)}) {
270
212
  grid-template-columns: repeat(math.ceil($columns * 0.5), 1fr);
271
213
  }
272
214
 
273
215
  //-( tablet
274
- @container (max-width: #{calc($start * 0.5)}) {
216
+ @container (max-width: #{calc(var(--adaptiveGrid-width) * 0.5)}) {
275
217
  grid-template-columns: repeat(math.ceil($columns * 0.33), 1fr);
276
218
  }
277
219
 
278
220
  //-( mobile
279
- @container (max-width: #{calc($start * 0.33)}) {
221
+ @container (max-width: #{calc(var(--adaptiveGrid-width) * 0.33)}) {
280
222
  grid-template-columns: 1fr;
281
223
  }
282
224
 
283
- @if $mobileTwoElements ==true {
284
- @container (max-width: #{calc($start * 0.33)}) {
225
+ //-( mobile m2e
226
+ &[pgs-option~=m2e] {
227
+ @container (max-width: #{calc(var(--adaptiveGrid-width) * 0.33)}) {
285
228
  grid-template-columns: 1fr 1fr;
286
229
  }
287
230
  }
288
231
 
289
232
  //-( mobile small / watch
290
- @container (max-width: #{calc($start * 0.2)}) {
233
+ @container (max-width: #{calc(var(--adaptiveGrid-width) * 0.2)}) {
291
234
  grid-template-columns: 1fr;
292
235
  }
293
236
  }
294
-
295
- // //- laptop
296
- // @media (max-width: $laptop) {
297
- // * {
298
- // outline: red solid 0.1px
299
- // }
300
- // }
301
-
302
- // //- tablet
303
- // @media (max-width: $tablet) {
304
- // * {
305
- // outline: green solid 0.1px
306
- // }
307
- // }
308
-
309
- // //- mobile
310
- // @media (max-width: $mobile) {
311
- // * {
312
- // outline: blue solid 0.1px
313
- // }
314
- // }
315
-
316
- // //- mobile small
317
- // @media (max-width: $watch) {
318
- // * {
319
- // outline: yellow solid 0.1px
320
- // }
321
- // }
322
-
323
- // //-( laptop
324
- // @container (max-width: #{$laptop}) {
325
- // * {
326
- // outline: purple solid 0.1px
327
- // }
328
- // }
329
-
330
- // //-( big-tablet
331
- // @container (max-width: #{$big-tablet}) {
332
- // * {
333
- // outline: orange solid 0.1px
334
- // }
335
- // }
336
-
337
- // //-( tablet
338
- // @container (max-width: #{$tablet}) {
339
- // * {
340
- // outline: pink solid 0.1px
341
- // }
342
- // }
343
-
344
- // //-( mobile
345
- // @container (max-width: #{$mobile}) {
346
- // * {
347
- // outline: brown solid 0.1px
348
- // }
349
- // }
350
-
351
- // //-( mobile small
352
- // @container (max-width: #{$watch}) {
353
- // * {
354
- // outline: gray solid 0.1px
355
- // }
356
- // }
@@ -1,3 +1,5 @@
1
+ @use "sass:list";
2
+
1
3
  //+ devices
2
4
  $watch: 315px;
3
5
  $mobile: 430px;
@@ -6,7 +8,6 @@ $tablet: 800px;
6
8
  $big-tablet: 900px;
7
9
  $laptop: 1100px;
8
10
 
9
- @use "sass:list";
10
11
 
11
12
  @function fibonacci($n) {
12
13
  $sequence: 0 1;
@@ -1,8 +1,9 @@
1
1
  @forward "settings";
2
+ @forward "mx-hover";
2
3
  @forward "mx-base";
3
4
  @forward "mx-responsive";
4
5
  @forward "mx-form";
5
- @forward "mx-form-addon";
6
+ @forward "mx-formAddon";
6
7
  @forward "mx-button";
7
8
  @forward "mx-color";
8
9
  @forward "mx-semantic";
package/demo/demo.css CHANGED
@@ -1,5 +1,8 @@
1
1
  body{
2
2
  --color-background: light-dark(#f1ffef, #101010);
3
+ &.is-loading{
4
+ display: none;
5
+ }
3
6
  }
4
7
 
5
8
  .primary-menu {
@@ -15,7 +18,7 @@ pre {
15
18
  }
16
19
  }
17
20
 
18
- .template-title {
21
+ .reference-title {
19
22
  color: var(--color-primary);
20
23
  display: flex;
21
24
  align-items: center;
@@ -50,20 +53,20 @@ pre {
50
53
  }
51
54
  }
52
55
 
53
- [pgs~=buttonBig]{
56
+ [pgs~=button][pgs-option~=buttonBig]{
54
57
  max-width: 300px;
55
58
  }
56
59
 
57
- #templates-demo-before{
60
+ #reference-demo-before{
58
61
  position: relative;
59
62
  z-index: 2;
60
63
  }
61
64
 
62
- #templates-demo-main{
65
+ #reference-demo-main{
63
66
  position: relative;
64
67
  z-index: 1;
65
68
  }
66
69
 
67
- #templates-demo-after{
70
+ #reference-demo-after{
68
71
  position: relative;
69
- }
72
+ }
package/demo/demo.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>MyPGS templates demo</title>
7
+ <title>MyPGS reference demo</title>
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap">
@@ -13,11 +13,13 @@
13
13
  <link rel="stylesheet" href="demo.css">
14
14
  </head>
15
15
 
16
- <body pgs="bodyBase bodyImg bodyText bodyHeading">
17
- <div id="templates-demo-before"></div>
18
- <main id="templates-demo-main" pgs="main"></main>
19
- <div id="templates-demo-after"></div>
16
+ <body class="is-loading" pgs="bodyBase bodyImg bodyText bodyHeading">
17
+ <div id="reference-demo-before"></div>
18
+ <main id="reference-demo-main" pgs="main"></main>
19
+ <div id="reference-demo-after"></div>
20
+
20
21
  <script src="./demo.js"></script>
22
+
21
23
  </body>
22
24
 
23
25
  </html>