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.
- package/.vscode/tasks.json +39 -0
- package/AGENTS.md +22 -21
- package/README.md +25 -25
- package/assets/javascript/components/_menu.js +2 -1
- package/assets/javascript/components/_modals.js +1 -1
- package/assets/javascript/components/_notifications.js +2 -1
- package/assets/javascript/components/_slides.js +2 -2
- package/assets/scss/base/_body.scss +5 -5
- package/assets/scss/base/_general.scss +27 -18
- package/assets/scss/base/_variables.scss +1 -1
- package/assets/scss/components/_accordion.scss +9 -9
- package/assets/scss/components/_alerts.scss +71 -0
- package/assets/scss/components/_badges.scss +40 -48
- package/assets/scss/components/_button.scss +28 -20
- package/assets/scss/components/_card.scss +9 -4
- package/assets/scss/components/_form.scss +0 -16
- package/assets/scss/components/_formAddon.scss +22 -0
- package/assets/scss/components/_logo.scss +3 -4
- package/assets/scss/components/_menu.scss +26 -3
- package/assets/scss/components/_modals.scss +6 -4
- package/assets/scss/components/_search.scss +2 -2
- package/assets/scss/components/_slides.scss +0 -1
- package/assets/scss/components/_stepTabs.scss +2 -1
- package/assets/scss/components/_tooltip.scss +0 -1
- package/assets/scss/index.scss +3 -3
- package/assets/scss/layout/_footer.scss +0 -2
- package/assets/scss/layout/_header.scss +10 -2
- package/assets/scss/layout/_pageShell.scss +6 -2
- package/assets/scss/layout/_responsive.scss +63 -0
- package/assets/scss/mixin/_mx-base.scss +4 -8
- package/assets/scss/mixin/_mx-button.scss +73 -115
- package/assets/scss/mixin/_mx-card.scss +39 -40
- package/assets/scss/mixin/_mx-form.scss +13 -10
- package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +103 -64
- package/assets/scss/mixin/_mx-hover.scss +81 -0
- package/assets/scss/mixin/_mx-responsive.scss +81 -201
- package/assets/scss/mixin/_settings.scss +2 -1
- package/assets/scss/mixin/mixin.scss +2 -1
- package/demo/demo.css +9 -6
- package/demo/demo.html +7 -5
- package/demo/demo.js +37 -34
- package/dist/css/index.css +2469 -3825
- package/dist/css/index.css.map +1 -1
- package/dist/css/index.min.css +1 -1
- package/dist/javascript/index.js +7 -5
- package/dist/javascript/index.js.map +1 -1
- package/dist/javascript/index.min.js +1 -1
- package/docs/componenti-e-markup.md +9 -8
- package/docs/components/accordion.md +23 -23
- package/docs/components/alerts.md +67 -0
- package/docs/components/badges.md +29 -26
- package/docs/components/breadcumbs.md +8 -8
- package/docs/components/button.md +18 -18
- package/docs/components/card.md +25 -22
- package/docs/components/dropdown.md +29 -29
- package/docs/components/form.md +65 -41
- package/docs/components/formAddon.md +116 -0
- package/docs/components/logo.md +11 -11
- package/docs/components/menu.md +20 -20
- package/docs/components/modal.md +52 -51
- package/docs/components/notification.md +34 -34
- package/docs/components/search.md +54 -52
- package/docs/components/slides.md +41 -42
- package/docs/components/stepTabs.md +45 -45
- package/docs/components/steps.md +16 -16
- package/docs/components/summary.md +20 -20
- package/docs/components/table.md +7 -7
- package/docs/components/tooltip.md +24 -23
- package/docs/convenzioni.md +11 -11
- package/docs/export-e-sviluppo.md +4 -4
- package/docs/helper-javascript.md +8 -8
- package/docs/layout/body.md +11 -11
- package/docs/layout/footer.md +28 -24
- package/docs/layout/header.md +36 -35
- package/docs/layout/pageShell.md +19 -19
- package/docs/layout/responsive.md +90 -0
- package/docs/layout/section.md +38 -38
- package/docs/patterns/cookieConsent.md +42 -39
- package/docs/utilizzo-css-scss.md +33 -9
- package/package.json +1 -1
- package/reference/html/components/accordion.html +52 -0
- package/reference/html/components/alerts.html +59 -0
- package/reference/html/components/badges.html +62 -0
- package/{templates → reference}/html/components/breadcumbs.html +6 -6
- package/reference/html/components/button.html +51 -0
- package/reference/html/components/card.html +45 -0
- package/{templates → reference}/html/components/dropdown.html +25 -25
- package/reference/html/components/form.html +128 -0
- package/reference/html/components/formAddon.html +109 -0
- package/reference/html/components/logo.html +28 -0
- package/{templates → reference}/html/components/menu.html +17 -17
- package/reference/html/components/modal.html +123 -0
- package/reference/html/components/notification.html +71 -0
- package/reference/html/components/search.html +109 -0
- package/reference/html/components/slides.html +75 -0
- package/reference/html/components/stepTabs.html +83 -0
- package/reference/html/components/steps.html +49 -0
- package/reference/html/components/summary.html +41 -0
- package/{templates → reference}/html/components/table.html +5 -5
- package/reference/html/components/tooltip.html +44 -0
- package/reference/html/layout/body.html +34 -0
- package/reference/html/layout/footer.html +67 -0
- package/reference/html/layout/header.html +108 -0
- package/{templates → reference}/html/layout/pageShell.html +16 -16
- package/reference/html/layout/responsive.html +83 -0
- package/reference/html/layout/section.html +62 -0
- package/reference/html/patterns/cookieConsent.html +84 -0
- package/{templates → reference}/react/components/accordion.jsx +5 -5
- package/reference/react/components/alerts.jsx +46 -0
- package/{templates → reference}/react/components/breadcumbs.jsx +1 -1
- package/{templates → reference}/react/components/button.jsx +6 -6
- package/{templates → reference}/react/components/card.jsx +6 -6
- package/{templates → reference}/react/components/dropdown.jsx +8 -8
- package/{templates → reference}/react/components/form.jsx +3 -3
- package/{templates → reference}/react/components/modal.jsx +15 -15
- package/{templates → reference}/react/components/notification.jsx +3 -3
- package/{templates → reference}/react/components/search.jsx +8 -8
- package/{templates → reference}/react/components/slides.jsx +4 -4
- package/{templates → reference}/react/components/stepTabs.jsx +12 -12
- package/reference/react/components/summary.jsx +18 -0
- package/{templates → reference}/react/components/table.jsx +2 -2
- package/{templates → reference}/react/components/tooltip.jsx +1 -1
- package/{templates → reference}/react/layout/pageShell.jsx +2 -2
- package/reference/react/layout/responsive.jsx +61 -0
- package/reference/react/layout/section.jsx +44 -0
- package/{templates → reference}/react/patterns/cookieConsent.jsx +9 -9
- package/{templates → reference}/react/patterns/footer.jsx +4 -4
- package/{templates → reference}/react/patterns/header.jsx +4 -4
- package/scripts/generate-component-docs.js +12 -12
- package/assets/scss/layout/_flex.scss +0 -49
- package/assets/scss/layout/_gap.scss +0 -21
- package/assets/scss/layout/_grid.scss +0 -13
- package/docs/layout/flex.md +0 -116
- package/docs/layout/grid.md +0 -116
- package/templates/html/components/accordion.html +0 -52
- package/templates/html/components/badges.html +0 -60
- package/templates/html/components/button.html +0 -51
- package/templates/html/components/card.html +0 -43
- package/templates/html/components/form.html +0 -104
- package/templates/html/components/logo.html +0 -28
- package/templates/html/components/modal.html +0 -122
- package/templates/html/components/notification.html +0 -71
- package/templates/html/components/search.html +0 -107
- package/templates/html/components/slides.html +0 -76
- package/templates/html/components/stepTabs.html +0 -83
- package/templates/html/components/steps.html +0 -49
- package/templates/html/components/summary.html +0 -41
- package/templates/html/components/tooltip.html +0 -43
- package/templates/html/layout/body.html +0 -35
- package/templates/html/layout/flex.html +0 -109
- package/templates/html/layout/footer.html +0 -64
- package/templates/html/layout/grid.html +0 -109
- package/templates/html/layout/header.html +0 -107
- package/templates/html/layout/section.html +0 -62
- package/templates/html/patterns/cookieConsent.html +0 -82
- package/templates/react/components/summary.jsx +0 -18
- package/templates/react/layout/flex.jsx +0 -36
- package/templates/react/layout/grid.jsx +0 -36
- package/templates/react/layout/section.jsx +0 -44
- /package/{templates → reference}/react/components/logo.jsx +0 -0
- /package/{templates → reference}/react/components/menu.jsx +0 -0
- /package/{templates → reference}/react/components/steps.jsx +0 -0
- /package/{templates → reference}/react/layout/body.jsx +0 -0
|
@@ -2,29 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
//# BUTTON
|
|
4
4
|
[pgs~=button] {
|
|
5
|
-
@include
|
|
6
|
-
}
|
|
5
|
+
@include buttonBase();
|
|
7
6
|
|
|
8
|
-
[pgs~=
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
&:not([pgs-option~=buttonIcon], [pgs-option~=buttonMini], [pgs-option~=buttonClose]) {
|
|
8
|
+
@include buttonContent();
|
|
9
|
+
}
|
|
11
10
|
|
|
12
|
-
[pgs~=buttonIcon] {
|
|
13
|
-
|
|
14
|
-
}
|
|
11
|
+
&:is([pgs-option~=buttonIcon], [pgs-option~=buttonMini], [pgs-option~=buttonClose]) {
|
|
12
|
+
@include buttonIcon();
|
|
13
|
+
}
|
|
15
14
|
|
|
16
|
-
[pgs~=
|
|
17
|
-
|
|
18
|
-
}
|
|
15
|
+
&:not([pgs-option~=buttonNohover]) {
|
|
16
|
+
@include buttonHover();
|
|
17
|
+
}
|
|
19
18
|
|
|
20
|
-
[pgs~=
|
|
21
|
-
|
|
22
|
-
}
|
|
19
|
+
&[pgs-option~=buttonNohover] {
|
|
20
|
+
@include buttonNohover();
|
|
21
|
+
}
|
|
23
22
|
|
|
24
|
-
[pgs~=
|
|
25
|
-
|
|
26
|
-
}
|
|
23
|
+
&[pgs-option~=buttonStrong] {
|
|
24
|
+
@include buttonStrong();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[pgs-option~=buttonMini] {
|
|
28
|
+
@include buttonMini();
|
|
29
|
+
}
|
|
27
30
|
|
|
28
|
-
[pgs~=
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
+
&[pgs-option~=buttonBig] {
|
|
32
|
+
@include buttonBig();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[pgs-option~=buttonClose] {
|
|
36
|
+
@include buttonClose();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
@use "../mixin/mixin" as *;
|
|
2
2
|
|
|
3
|
-
[pgs~=card]
|
|
4
|
-
[pgs~=cardImg] {
|
|
3
|
+
[pgs~=card]{
|
|
5
4
|
@include card();
|
|
6
5
|
|
|
7
6
|
[pgs~=card-img] {
|
|
8
|
-
@include
|
|
7
|
+
@include cardAndWell-insideImg("card");
|
|
9
8
|
}
|
|
10
|
-
}
|
|
9
|
+
}
|
|
10
|
+
[pgs~=well] {
|
|
11
|
+
@include well();
|
|
12
|
+
[pgs~=card-img] {
|
|
13
|
+
@include cardAndWell-insideImg("box");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -25,22 +25,6 @@
|
|
|
25
25
|
@include select();
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
[pgs~=checkboxBackground] {
|
|
29
|
-
@include checkboxBackground();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
[pgs~=twoState] {
|
|
33
|
-
@include twoState();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[pgs~=toggle] {
|
|
37
|
-
@include toggle();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[pgs~=chips] {
|
|
41
|
-
@include chips();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
28
|
[pgs~=radio],
|
|
45
29
|
[pgs~=checkbox] {
|
|
46
30
|
@include checkbox();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use "../mixin/mixin" as *;
|
|
2
|
+
|
|
3
|
+
//# FORM ADDON
|
|
4
|
+
[pgs~=checkboxBackground] {
|
|
5
|
+
@include checkboxBackground();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[pgs~=twoState] {
|
|
9
|
+
@include twoState();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[pgs~=toggle] {
|
|
13
|
+
@include toggle();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[pgs~=chips] {
|
|
17
|
+
@include chips();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[pgs~=chip] {
|
|
21
|
+
@include chip();
|
|
22
|
+
}
|
|
@@ -8,15 +8,14 @@
|
|
|
8
8
|
--logo-finter: invert(1) hue-rotate(180deg) brightness(1.5);
|
|
9
9
|
|
|
10
10
|
//== DARKMODE
|
|
11
|
-
|
|
11
|
+
&:is(body[pgs-state~="darkmode"] [pgs-option~="logoDarkmode"]) [pgs~="logo-image"] {
|
|
12
12
|
filter: var(--logo-finter);
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
//== FIXED DARKMODE
|
|
16
16
|
&[pgs-option~="logoDarkmodeFixed"] [pgs~="logo-image"] {
|
|
17
17
|
filter: var(--logo-finter);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
19
|
|
|
21
20
|
//- tablet
|
|
22
21
|
@media (max-width: $tablet) {
|
|
@@ -50,4 +49,4 @@
|
|
|
50
49
|
text-wrap: nowrap;
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
|
-
}
|
|
52
|
+
}
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
//# MENU
|
|
4
4
|
[pgs~=menu] {
|
|
5
|
+
// Menu colours inherit the button theme by default. A consumer can set the
|
|
6
|
+
// --menu-* variables on this element to theme menus independently.
|
|
7
|
+
--menu-color: var(--color-black);
|
|
8
|
+
--menu-background: var(--color-box);
|
|
9
|
+
--menu-color-current: var(--color-whiteFixed);
|
|
10
|
+
--menu-background-current: var(--color-primary);
|
|
11
|
+
--menu-color-strong: var(--color-whiteFixed);
|
|
12
|
+
--menu-background-strong: var(--color-primary);
|
|
13
|
+
--menu-border: var(--border-complete);
|
|
14
|
+
|
|
5
15
|
ul {
|
|
6
16
|
display: flex;
|
|
7
17
|
font-weight: 600;
|
|
@@ -15,12 +25,25 @@
|
|
|
15
25
|
>a {
|
|
16
26
|
flex-grow: 1;
|
|
17
27
|
min-width: fit-content;
|
|
18
|
-
@include
|
|
28
|
+
@include buttonBase();
|
|
29
|
+
@include buttonHover();
|
|
30
|
+
@include buttonContent();
|
|
31
|
+
--button-color: var(--menu-color);
|
|
32
|
+
--button-color-strong: var(--menu-color-strong);
|
|
33
|
+
--button-color-current: var(--menu-color-current);
|
|
34
|
+
--button-background: var(--menu-background);
|
|
35
|
+
--button-background-strong: var(--menu-background-strong);
|
|
36
|
+
--button-background-current: var(--menu-background-current);
|
|
37
|
+
--button-border: var(--menu-border);
|
|
19
38
|
|
|
20
39
|
>span {
|
|
21
|
-
line-height: 1
|
|
40
|
+
line-height: 1;
|
|
22
41
|
flex-grow: 1;
|
|
23
42
|
}
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
z-index: -1;
|
|
46
|
+
}
|
|
24
47
|
}
|
|
25
48
|
|
|
26
49
|
li {
|
|
@@ -56,7 +79,7 @@
|
|
|
56
79
|
translate: -15px;
|
|
57
80
|
|
|
58
81
|
&[aria-expanded="true"] {
|
|
59
|
-
--button-background: var(--
|
|
82
|
+
--button-background: var(--menu-background-current);
|
|
60
83
|
|
|
61
84
|
span {
|
|
62
85
|
rotate: 180deg;
|
|
@@ -20,6 +20,8 @@ dialog[pgs~="modal-dialog"] {
|
|
|
20
20
|
--modal-backdrop: var(--backdrop);
|
|
21
21
|
--modal-background: var(--color-box);
|
|
22
22
|
--modal-color: var(--color-black);
|
|
23
|
+
--modal-padding: var(--padding);
|
|
24
|
+
--modal-borderRadius: calc(var(--border-radius-input) + var(--modal-padding));
|
|
23
25
|
border: none;
|
|
24
26
|
min-width: 100%;
|
|
25
27
|
min-height: 100svh;
|
|
@@ -54,12 +56,12 @@ dialog[pgs~="modal-dialog"] {
|
|
|
54
56
|
container-type: inline-size;
|
|
55
57
|
background: var(--modal-background);
|
|
56
58
|
color: var(--modal-color);
|
|
57
|
-
border-radius: var(--
|
|
59
|
+
border-radius: var(--modal-borderRadius);
|
|
58
60
|
position: relative;
|
|
59
61
|
gap: 0;
|
|
60
62
|
|
|
61
63
|
>* {
|
|
62
|
-
padding: var(--padding);
|
|
64
|
+
padding: var(--modal-padding);
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
//==== HEADER
|
|
@@ -67,7 +69,7 @@ dialog[pgs~="modal-dialog"] {
|
|
|
67
69
|
@include flexRow(nowrap);
|
|
68
70
|
padding-bottom: calc(var(--padding) / 2);
|
|
69
71
|
border-bottom: var(--border-complete);
|
|
70
|
-
border-radius: var(--
|
|
72
|
+
border-radius: var(--modal-borderRadius) var(--modal-borderRadius) 0 0;
|
|
71
73
|
z-index: 1;
|
|
72
74
|
|
|
73
75
|
[pgs~="modal-close"] {
|
|
@@ -136,7 +138,7 @@ dialog[pgs~="modal-dialog"] {
|
|
|
136
138
|
height: 100svh;
|
|
137
139
|
top: 0;
|
|
138
140
|
overflow-y: auto;
|
|
139
|
-
padding-top: calc(var(--heightOfHeader) + var(--
|
|
141
|
+
padding-top: calc(var(--heightOfHeader) + var(--gap-texts));
|
|
140
142
|
z-index: 90;
|
|
141
143
|
position: fixed;
|
|
142
144
|
inset: 0;
|
package/assets/scss/index.scss
CHANGED
|
@@ -22,10 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
[pgs~=initP] {
|
|
24
24
|
@include meta.load-css("layout/layout");
|
|
25
|
-
@include meta.load-css("layout/
|
|
26
|
-
@include meta.load-css("layout/grid");
|
|
25
|
+
@include meta.load-css("layout/responsive");
|
|
27
26
|
@include meta.load-css("layout/pageShell");
|
|
28
|
-
@include meta.load-css("layout/gap");
|
|
29
27
|
@include meta.load-css("layout/header");
|
|
30
28
|
@include meta.load-css("layout/footer");
|
|
31
29
|
}
|
|
@@ -39,6 +37,7 @@
|
|
|
39
37
|
@include meta.load-css("components/card");
|
|
40
38
|
@include meta.load-css("components/button");
|
|
41
39
|
@include meta.load-css("components/form");
|
|
40
|
+
@include meta.load-css("components/formAddon");
|
|
42
41
|
@include meta.load-css("components/menu");
|
|
43
42
|
@include meta.load-css("components/accordion");
|
|
44
43
|
@include meta.load-css("components/breadcumbs");
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
@include meta.load-css("components/stepTabs");
|
|
51
50
|
@include meta.load-css("components/summary");
|
|
52
51
|
@include meta.load-css("components/badges");
|
|
52
|
+
@include meta.load-css("components/alerts");
|
|
53
53
|
@include meta.load-css("components/notification");
|
|
54
54
|
@include meta.load-css("components/tooltip");
|
|
55
55
|
@include meta.load-css("components/search");
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
display: contents;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
[pgs~=button]
|
|
41
|
-
[pgs~=buttonIcon] {
|
|
40
|
+
[pgs~=button] {
|
|
42
41
|
@include button_header();
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -74,6 +73,14 @@
|
|
|
74
73
|
opacity: 0.6;
|
|
75
74
|
}
|
|
76
75
|
|
|
76
|
+
&:hover {
|
|
77
|
+
|
|
78
|
+
&::before,
|
|
79
|
+
&::after {
|
|
80
|
+
background-color: var(--color-white);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
77
84
|
//=== OPEN
|
|
78
85
|
&[aria-expanded="true"] {
|
|
79
86
|
gap: 0px;
|
|
@@ -106,6 +113,7 @@
|
|
|
106
113
|
// padding: 2rem;
|
|
107
114
|
padding-top: var(--heightOfHeader);
|
|
108
115
|
padding-inline: 5px;
|
|
116
|
+
--modal-padding: 10px;
|
|
109
117
|
--modal-background: color-mix(in srgb, var(--color-primary-soft) 50%, var(--color-white) 50%);
|
|
110
118
|
|
|
111
119
|
[pgs~="modal-dialog-content"] {
|
|
@@ -10,10 +10,14 @@ $pageShell-test-gap: 4rem;
|
|
|
10
10
|
max-height: none;
|
|
11
11
|
width: 100%;
|
|
12
12
|
min-width: 100%;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
overscroll-behavior: auto;
|
|
15
|
+
scrollbar-gutter: auto;
|
|
13
16
|
|
|
14
|
-
[pgs~="pageShell-aside"] {
|
|
17
|
+
[pgs~="pageShell-aside-scroll"] {
|
|
15
18
|
scrollbar-gutter: auto;
|
|
16
19
|
overflow: visible;
|
|
20
|
+
overscroll-behavior: auto;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -194,4 +198,4 @@ $pageShell-test-gap: 4rem;
|
|
|
194
198
|
@include pageShell-aside-flow;
|
|
195
199
|
}
|
|
196
200
|
}
|
|
197
|
-
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "../mixin/mixin" as *;
|
|
2
|
+
|
|
3
|
+
//# RESPONSIVE
|
|
4
|
+
//= FLEX
|
|
5
|
+
//== FLEX COLUMN
|
|
6
|
+
[pgs~=flexColumn] {
|
|
7
|
+
@include flexColumn();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//== FLEX ROW
|
|
11
|
+
[pgs~=flexRow] {
|
|
12
|
+
@include flexRow();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//== COLUMN
|
|
16
|
+
[pgs~=flexColumn],
|
|
17
|
+
[pgs~=flexRow] {
|
|
18
|
+
|
|
19
|
+
@for $i from 1 through 8 {
|
|
20
|
+
&[pgs-option~=column-#{$i}] {
|
|
21
|
+
width: 100%;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
@include columnFlex($i);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//= GRID
|
|
30
|
+
//== COLUMN
|
|
31
|
+
[pgs~=grid] {
|
|
32
|
+
display: grid;
|
|
33
|
+
gap: var(--gap-elements);
|
|
34
|
+
width: 100%;
|
|
35
|
+
|
|
36
|
+
@for $i from 1 through 8 {
|
|
37
|
+
&[pgs-option~=column-#{$i}] {
|
|
38
|
+
@include columnGrid($i);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//= GAP
|
|
44
|
+
[pgs~=gapTexts] {
|
|
45
|
+
gap: var(--gap-texts);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[pgs~=gapElements] {
|
|
49
|
+
gap: var(--gap-elements);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[pgs~=gapSections] {
|
|
53
|
+
gap: var(--gap-sections);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//= WRAP
|
|
57
|
+
[pgs~=nowrap] {
|
|
58
|
+
flex-wrap: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[pgs~=wrap] {
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
//= HEADING
|
|
64
|
-
@mixin heading($size
|
|
64
|
+
@mixin heading($size) {
|
|
65
65
|
font-family: var(--font-titoli);
|
|
66
66
|
--heading-size: #{$size};
|
|
67
67
|
color: var(--color-black);
|
|
@@ -70,12 +70,8 @@
|
|
|
70
70
|
min-width: 0;
|
|
71
71
|
font-weight: 900;
|
|
72
72
|
overflow-wrap: anywhere;
|
|
73
|
-
|
|
74
|
-
@if($marginTop){
|
|
75
|
-
margin-top: calc(var(--heading-size)/4);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
73
|
// text-box: trim-both cap alphabetic;
|
|
74
|
+
|
|
79
75
|
@media (max-width: $tablet) {
|
|
80
76
|
font-size: clamp(1.6rem, var(--heading-size) / 3 + 8vw, var(--heading-size));
|
|
81
77
|
}
|
|
@@ -98,11 +94,11 @@
|
|
|
98
94
|
|
|
99
95
|
|
|
100
96
|
@mixin h1(){
|
|
101
|
-
@include heading($h1
|
|
97
|
+
@include heading($h1);
|
|
102
98
|
}
|
|
103
99
|
|
|
104
100
|
@mixin h2(){
|
|
105
|
-
@include heading($h2
|
|
101
|
+
@include heading($h2);
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
@mixin h3(){
|