@newlogic-digital/ui 3.2.0 → 3.4.2

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 (89) hide show
  1. package/README.md +1 -5
  2. package/package.json +21 -14
  3. package/src/data/main.json +5 -1
  4. package/src/emails/{email.css → styles/email.css} +1 -1
  5. package/src/emails/templates/Content.twig +16 -0
  6. package/src/emails/templates/Header.twig +14 -0
  7. package/src/emails/templates/Layout.twig +23 -0
  8. package/src/scripts/Components/CookieConsent.js +0 -1
  9. package/src/scripts/Layout/Header.js +23 -11
  10. package/src/scripts/Layout/Main.js +6 -39
  11. package/src/scripts/Libraries/+.js +2 -1
  12. package/src/scripts/Libraries/Dialog.js +35 -65
  13. package/src/scripts/Libraries/Drawer.js +21 -15
  14. package/src/scripts/Libraries/Form.js +14 -18
  15. package/src/scripts/Libraries/Naja.js +35 -0
  16. package/src/scripts/Libraries/NativeSlider.js +3 -2
  17. package/src/scripts/Libraries/ReCaptcha.js +24 -4
  18. package/src/scripts/Libraries/Stimulus.js +1 -31
  19. package/src/scripts/Libraries/Swup.js +24 -32
  20. package/src/scripts/Libraries/Tabs.js +5 -5
  21. package/src/scripts/Libraries/Tippy.js +3 -1
  22. package/src/scripts/Ui/+.js +0 -1
  23. package/src/scripts/Ui/Checkbox.js +4 -13
  24. package/src/scripts/Ui/Input.js +19 -65
  25. package/src/scripts/Ui/Select.js +11 -39
  26. package/src/scripts/Ui/Text.js +2 -4
  27. package/src/scripts/Utils/Functions/+.js +1 -1
  28. package/src/scripts/Utils/Functions/checkValidity.js +44 -0
  29. package/src/scripts/Utils/Functions/loadStimulus.js +4 -1
  30. package/src/scripts/Utils/cdn.js +3 -3
  31. package/src/scripts/Utils/global.js +6 -8
  32. package/src/styles/Components/+.css +1 -1
  33. package/src/styles/Components/Dialog/Default.css +17 -52
  34. package/src/styles/Components/Dropdown/+.css +1 -0
  35. package/src/styles/{Ui/Dropdown.css → Components/Dropdown/Default.css} +1 -1
  36. package/src/styles/Layout/Main.css +4 -20
  37. package/src/styles/Libraries/+.css +0 -1
  38. package/src/styles/Libraries/Dialog.css +23 -7
  39. package/src/styles/Libraries/Drawer.css +3 -9
  40. package/src/styles/Libraries/Hint.css +4 -3
  41. package/src/styles/Libraries/NativeSlider.css +8 -0
  42. package/src/styles/Libraries/Ripple.css +4 -17
  43. package/src/styles/Libraries/Tippy.css +1 -1
  44. package/src/styles/Ui/+.css +0 -1
  45. package/src/styles/Ui/Badge.css +1 -1
  46. package/src/styles/Ui/Btn.css +24 -6
  47. package/src/styles/Ui/Checkbox.css +28 -3
  48. package/src/styles/Ui/Heading.css +2 -1
  49. package/src/styles/Ui/Icon.css +2 -2
  50. package/src/styles/Ui/Image.css +1 -7
  51. package/src/styles/Ui/Input.css +65 -18
  52. package/src/styles/Ui/Label.css +2 -2
  53. package/src/styles/Ui/Link.css +13 -6
  54. package/src/styles/Ui/Notice.css +1 -1
  55. package/src/styles/Ui/Select.css +3 -5
  56. package/src/styles/Ui/Text.css +18 -4
  57. package/src/styles/Ui/Title.css +3 -2
  58. package/src/styles/Utils/+.css +1 -0
  59. package/src/styles/Utils/breakpoints.css +9 -0
  60. package/src/styles/Utils/default.css +12 -115
  61. package/src/styles/Utils/tailwind/+.css +1 -0
  62. package/src/styles/Utils/tailwind/base.css +0 -12
  63. package/src/styles/Utils/tailwind/utilities.css +48 -0
  64. package/src/styles/Utils/vars.css +28 -39
  65. package/src/styles/Utils/vendor.css +2 -1
  66. package/src/styles/main.css +2 -3
  67. package/src/templates/Components/Dialogs/Basic.twig +15 -17
  68. package/src/templates/Layout/Main.twig +0 -6
  69. package/src/templates/Sections/Ui/Docs/@intro.html +97 -0
  70. package/src/templates/Sections/Ui/Docs/@nav.html +195 -0
  71. package/src/templates/Sections/Ui/Docs/@styles.html +100 -0
  72. package/src/templates/Sections/Ui/Docs/Default.twig +1600 -0
  73. package/src/templates/Sections/Ui/Icons.html +28 -0
  74. package/src/templates/Sections/Ui/Intro.html +136 -0
  75. package/src/templates/Sections/Ui.twig +5 -2090
  76. package/src/templates/Utils/sections.twig +2 -2
  77. package/src/views/{dialog-basic.json.twig → dialog/basic.json.twig} +1 -1
  78. package/src/views/{json-tippy.json.twig → dropdown/tippy.json.twig} +3 -3
  79. package/src/views/email/email.twig +6 -0
  80. package/src/views/gdpr.json +2 -1
  81. package/src/views/index.json +2 -2
  82. package/src/views/ui-icons.json +12 -0
  83. package/src/views/ui.json +2 -2
  84. package/vite.config.js +24 -4
  85. package/src/emails/email.twig +0 -60
  86. package/src/scripts/Ui/Radio.js +0 -23
  87. package/src/scripts/Utils/Functions/inView.js +0 -25
  88. package/src/styles/Components/Item/+.css +0 -1
  89. package/src/styles/Libraries/Lazysizes.css +0 -9
@@ -1,4 +1,4 @@
1
- .ui-input, .ui-select {
1
+ :is(.ui-input, .ui-select) {
2
2
  --ui-input-height: 3rem;
3
3
  --ui-input-height-textarea: 8rem;
4
4
  --ui-input-py: 0.75rem;
@@ -50,16 +50,16 @@
50
50
  margin-top: calc(var(--ui-input-size) / 2 * -1);
51
51
  order: -1;
52
52
 
53
- @nest [data-has~="icon-l"]& {
53
+ @nest :has(.icon-l)& {
54
54
  left: calc(var(--ui-input-px) + var(--ui-input-icon-size) + calc(var(--ui-input-px) / 1.75));
55
55
  }
56
56
 
57
- @nest [data-has~="icon-r"]& {
57
+ @nest :has(.icon-r)& {
58
58
  right: calc(var(--ui-input-px) + var(--ui-input-icon-size) + calc(var(--ui-input-px) / 1.75));
59
59
  }
60
60
  }
61
61
 
62
- & > :is(input, textarea, select, .input) {
62
+ & > :where(input, textarea, select, .input) {
63
63
  width: 100%;
64
64
  transition: var(--transition-border), var(--transition-shadow);
65
65
  box-shadow: none;
@@ -69,10 +69,15 @@
69
69
  height: var(--ui-input-height);
70
70
  font-weight: var(--ui-input-weight);
71
71
  border-radius: var(--ui-input-radius);
72
- padding: calc(var(--ui-input-py) * 1.75) var(--ui-input-px) calc(var(--ui-input-py) * 0.5);
72
+ padding: var(--ui-input-py) var(--ui-input-px);
73
73
  color: inherit;
74
74
  border: 1px solid rgb(var(--ui-input-border-color) / var(--ui-input-border-opacity));
75
75
 
76
+ @nest :has(label)& {
77
+ padding-top: calc(var(--ui-input-py) * 1.75);
78
+ padding-bottom: calc(var(--ui-input-py) * 0.5);
79
+ }
80
+
76
81
  &[disabled] {
77
82
  cursor: default;
78
83
  background-color: rgb(var(--color-background-100));
@@ -123,20 +128,13 @@
123
128
  }
124
129
  }
125
130
 
126
- @nest [data-has~="icon-l"]& {
131
+ @nest :has(.icon-l)& {
127
132
  padding-left: calc(var(--ui-input-px) + var(--ui-input-icon-size) + calc(var(--ui-input-px) / 1.75));
128
133
  }
129
134
 
130
- @nest [data-has~="icon-r"]&, :--state-invalid& {
135
+ @nest :has(.icon-r)&, :--state-invalid& {
131
136
  padding-right: calc(var(--ui-input-px) + var(--ui-input-icon-size) + calc(var(--ui-input-px) / 1.75));
132
137
  }
133
-
134
- @nest :not(:--state-placeholder)& {
135
- &:is([placeholder], [data-placeholder]) {
136
- padding-top: var(--ui-input-py);
137
- padding-bottom: var(--ui-input-py);
138
- }
139
- }
140
138
  }
141
139
 
142
140
  & > input {
@@ -203,7 +201,7 @@
203
201
  }
204
202
 
205
203
  @nest :not(:--state-active)& {
206
- &:not([placeholder]):not(:focus) {
204
+ &:not([placeholder], :focus) {
207
205
  font-size: 0;
208
206
  }
209
207
  }
@@ -221,7 +219,7 @@
221
219
  min-height: var(--ui-input-height-textarea);
222
220
  }
223
221
 
224
- & > input, & > textarea {
222
+ & > :where(input, textarea) {
225
223
  background-clip: padding-box;
226
224
  cursor: text;
227
225
 
@@ -229,7 +227,7 @@
229
227
  box-shadow: none;
230
228
  }
231
229
 
232
- @nest :is(:--state-active, :--state-placeholder)&, &:focus {
230
+ @nest &:focus, :--state-active&, :has([placeholder] ~ label)& {
233
231
  & ~ label {
234
232
  transform: translateY(calc(var(--ui-input-size) / 1.4 * -1)) scale(0.8);
235
233
  }
@@ -387,7 +385,7 @@
387
385
  text-overflow: ellipsis;
388
386
  overflow: hidden;
389
387
 
390
- @media (--media-768) {
388
+ @media (--media-touch) {
391
389
  padding-top: 0.875rem;
392
390
  padding-bottom: 0.875rem;
393
391
  }
@@ -405,6 +403,55 @@
405
403
  }
406
404
  }
407
405
 
406
+ :is(.ui-input, .ui-select, .ui-input-group) {
407
+ --ui-input-validity-size: 0.875rem;
408
+ --ui-input-validity-offset: 0.375rem;
409
+
410
+ & em {
411
+ display: block;
412
+ font-size: var(--ui-input-validity-size);
413
+ color: rgb(var(--color-error));
414
+ font-style: normal;
415
+ margin-top: var(--ui-input-validity-offset);
416
+ }
417
+ }
418
+
419
+ .ui-input-group {
420
+ display: flex;
421
+
422
+ & .ui-btn {
423
+ height: auto;
424
+
425
+ & + .ui-input {
426
+ z-index: 1;
427
+ }
428
+ }
429
+
430
+ & > * {
431
+ & + :is(.ui-input, .ui-select) {
432
+ margin-left: -1px;
433
+
434
+ & :is(input, select):not(:focus) {
435
+ border-left-color: transparent;
436
+ }
437
+ }
438
+
439
+ &:not(:first-child) {
440
+ &, & :is(input, select) {
441
+ border-top-left-radius: 0;
442
+ border-bottom-left-radius: 0;
443
+ }
444
+ }
445
+
446
+ &:not(:last-child) {
447
+ &, & :is(input, select) {
448
+ border-top-right-radius: 0;
449
+ border-bottom-right-radius: 0;
450
+ }
451
+ }
452
+ }
453
+ }
454
+
408
455
  .pcr-app {
409
456
  border-radius: var(--radius);
410
457
  overflow: hidden;
@@ -4,8 +4,8 @@
4
4
  --ui-label-spacing: 0.05rem;
5
5
 
6
6
  display: block;
7
- font-size: var(--ui-title-size);
8
- line-height: calc(var(--ui-title-size) + var(--ui-title-size-line));
7
+ font-size: var(--ui-label-size);
8
+ line-height: calc(var(--ui-label-size-line) + var(--ui-label-size-line));
9
9
  font-weight: var(--font-medium);
10
10
 
11
11
  & ~ :is([class^="ui-"]:not(&), [class^="c-"]) {
@@ -1,7 +1,8 @@
1
1
  .ui-link {
2
2
  --ui-link-size: 0.875rem;
3
- --ui-link-weight: var(--font-medium);
3
+ --ui-link-weight: var(--font-normal);
4
4
  --ui-link-hover-opacity: 0.8;
5
+ --ui-link-hover-color: rgb(var(--color-accent));
5
6
  --ui-link-underline-opacity: 0.5;
6
7
 
7
8
  display: inline-flex;
@@ -9,24 +10,30 @@
9
10
  cursor: pointer;
10
11
  font-size: var(--ui-link-size);
11
12
  font-weight: var(--ui-link-weight);
12
- transition: var(--transition-opacity);
13
+ transition: var(--transition-opacity), var(--transition-color);
13
14
  position: relative;
14
15
  white-space: nowrap;
16
+ line-height: 1.5;
15
17
 
16
- @nest .no-touch &:hover {
18
+ &:--size-sm {
19
+ --ui-link-size: 0.75rem;
20
+ }
21
+
22
+ @nest &:focus-visible, .no-touch &:is([href], button):hover {
17
23
  opacity: var(--ui-link-hover-opacity);
24
+ color: var(--ui-link-hover-color);
18
25
  }
19
26
 
20
- &::after {
27
+ &[data-type~="underline"]::after {
21
28
  content: "";
22
29
  border-bottom: 1px solid currentColor;
23
30
  opacity: 0;
24
31
  position: absolute;
25
- inset: auto 0 0 0;
32
+ inset: auto 0 0;
26
33
  transition: var(--transition-opacity), var(--transition-transform);
27
34
  transform: translateY(-0.25rem);
28
35
 
29
- @nest .no-touch :not([href^="tel:"], [href^="mailto:"]):hover& {
36
+ @nest .no-touch :not([href^="tel:"], [href^="mailto:"]):is(:hover, :focus-visible)& {
30
37
  transform: none;
31
38
  opacity: var(--ui-link-underline-opacity);
32
39
  }
@@ -40,7 +40,7 @@
40
40
  transition: var(--transition-opacity);
41
41
  color: currentColor !important;
42
42
 
43
- @nest .no-touch &[href]:hover {
43
+ @nest .no-touch &[href]:is(:hover, :focus-visible) {
44
44
  opacity: 0.8;
45
45
  }
46
46
  }
@@ -1,7 +1,4 @@
1
1
  .ui-select {
2
- cursor: pointer;
3
- user-select: none;
4
-
5
2
  &:--state-active {
6
3
  & label {
7
4
  transform: translateY(calc(var(--ui-input-size) / 1.4 * -1)) scale(0.8);
@@ -35,9 +32,10 @@
35
32
  position: relative;
36
33
  z-index: 1;
37
34
  text-overflow: ellipsis;
38
- cursor: pointer;
39
35
  -webkit-appearance: none;
40
36
  -moz-appearance: none;
37
+ cursor: pointer;
38
+ user-select: none;
41
39
 
42
40
  @nest [tabindex]& {
43
41
  pointer-events: none;
@@ -131,7 +129,7 @@
131
129
  font-size: var(--ui-input-size);
132
130
  border-radius: var(--radius);
133
131
 
134
- @nest .no-touch &:is(:hover, :focus) {
132
+ @nest .no-touch &:is(:hover, :focus-visible) {
135
133
  background-color: rgb(var(--color-accent) / 0.1);
136
134
  }
137
135
  }
@@ -1,11 +1,20 @@
1
1
  .ui-text {
2
- --ui-text-size: 0.9375rem;
2
+ --ui-text-size: 0.875rem;
3
+ --ui-text-size-line: 0.75rem;
3
4
  --ui-text-weight: var(--font-normal);
4
5
  --ui-text-weight-bold: var(--font-semibold);
5
6
 
6
7
  font-weight: var(--ui-text-weight);
7
8
  font-size: var(--ui-text-size);
8
- line-height: calc(var(--ui-text-size) + 0.75rem);
9
+ line-height: calc(var(--ui-text-size) + var(--ui-text-size-line));
10
+
11
+ &:--size-base {
12
+ --ui-text-size: 1rem;
13
+ }
14
+
15
+ &:--size-lg {
16
+ --ui-text-size: 1.125rem;
17
+ }
9
18
 
10
19
  & a {
11
20
  text-decoration: underline;
@@ -14,7 +23,7 @@
14
23
  &:not([class*="text-"]) {
15
24
  color: rgb(var(--color-accent));
16
25
 
17
- @nest .no-touch &[href]:hover {
26
+ @nest .no-touch &[href]:is(:hover, :focus-visible) {
18
27
  opacity: 0.8;
19
28
  }
20
29
  }
@@ -65,7 +74,7 @@
65
74
 
66
75
  & p {
67
76
  line-height: inherit;
68
- margin: 0;
77
+ margin: 0 0 0.25rem;
69
78
 
70
79
  &:empty {
71
80
  line-height: 1rem;
@@ -157,6 +166,10 @@
157
166
  margin: 0 0 1.5rem;
158
167
  padding: 0 0 0 1rem;
159
168
 
169
+ &:not([type]) {
170
+ list-style: decimal;
171
+ }
172
+
160
173
  & li {
161
174
  padding-left: 0.5rem;
162
175
 
@@ -183,6 +196,7 @@
183
196
  &::before {
184
197
  width: 0.25rem;
185
198
  height: 0.25rem;
199
+ box-sizing: content-box;
186
200
  position: absolute;
187
201
  content: "";
188
202
  border: 1px solid rgb(var(--color-accent));
@@ -1,12 +1,13 @@
1
1
  .ui-title {
2
2
  --ui-title-size: 0.875rem;
3
- --ui-title-size-line: 0.5rem;
3
+ --ui-title-size-line: 0.25rem;
4
4
  --ui-title-spacing: 0.05rem;
5
+ --ui-title-weight: var(--font-semibold);
5
6
 
6
7
  display: block;
7
8
  font-size: var(--ui-title-size);
8
9
  line-height: calc(var(--ui-title-size) + var(--ui-title-size-line));
9
- font-weight: var(--font-semibold);
10
+ font-weight: var(--ui-title-weight);
10
11
 
11
12
  &[class*="uppercase"] {
12
13
  letter-spacing: var(--ui-title-spacing);
@@ -1,3 +1,4 @@
1
+ @import "breakpoints.css";
1
2
  @import "default.css";
2
3
  @import "icons.css";
3
4
  @import "keyframes.css";
@@ -0,0 +1,9 @@
1
+ @custom-media --media-m (max-width: 47.9375em);
2
+ @custom-media --media-t (min-width: 48em);
3
+ @custom-media --media-d (min-width: 60em);
4
+ @custom-media --media-w (min-width: 76em);
5
+ @custom-media --media-hd (min-width: 85em);
6
+ @custom-media --media-mhd (min-width: 88em);
7
+ @custom-media --media-fhd (min-width: 100em);
8
+ @custom-media --media-touch (max-width: 59.9375em);
9
+ @custom-media --media-touch-only (max-width: 59.9375em) and (min-width: 47.9375em);
@@ -3,132 +3,29 @@
3
3
  background-color: rgb(var(--color-accent));
4
4
  }
5
5
 
6
- ul, ol {
7
- padding: 0;
8
- margin: 0;
9
- }
10
-
11
- ul {
12
- list-style: none;
13
- }
14
-
15
- blockquote,
16
- dl,
17
- dd,
18
- h1,
19
- h2,
20
- h3,
21
- h4,
22
- h5,
23
- h6,
24
- hr,
25
- figure,
26
- p,
27
- pre {
28
- margin: 0;
29
- }
30
-
31
- img,
32
- svg,
33
- video,
34
- canvas,
35
- audio,
36
- iframe,
37
- embed,
38
- object {
39
- display: block;
40
- vertical-align: middle;
6
+ :where(*) {
7
+ outline: none;
8
+ -webkit-tap-highlight-color: rgb(255 255 255 / 0);
41
9
  }
42
10
 
43
- a, area, button, input, label, select, summary, textarea, [tabindex] {
44
- touch-action: manipulation;
11
+ :where([hidden]) {
12
+ display: none;
45
13
  }
46
14
 
47
- hr {
48
- width: 100%;
49
- height: 1px;
15
+ :where(svg) {
16
+ stroke-width: 1.5;
50
17
  display: block;
51
- border: 0;
52
- color: inherit;
53
- border-top: 1px solid rgb(var(--color-current));
54
- opacity: 0.2;
55
- margin: 1rem 0;
56
- padding: 0;
57
18
  }
58
19
 
59
- picture {
20
+ :where(hr) {
60
21
  display: block;
22
+ border-top: 2px solid rgb(var(--color-current) / var(--tw-border-opacity, 0.15));
23
+ border-radius: var(--rounded);
61
24
  }
62
25
 
63
- fieldset {
64
- border: 0;
65
- margin: 0;
66
- padding: 0;
67
- }
68
-
69
- button {
70
- appearance: none;
71
- background: transparent;
72
- border: 0;
26
+ :where(ol, ul) {
73
27
  padding: 0;
74
- cursor: pointer;
75
- color: inherit;
76
- font-size: 1rem;
77
- }
78
-
79
- textarea {
80
- resize: vertical;
81
- }
82
-
83
- table {
84
- border-collapse: collapse;
85
- border-spacing: 0;
86
- }
87
-
88
- svg[class^="icon"] {
89
- width: 1em;
90
- height: 1em;
91
- }
92
-
93
- a {
94
- color: inherit;
95
- text-decoration: none;
96
-
97
- &:active,
98
- &:hover {
99
- outline-width: 0;
100
- }
101
- }
102
-
103
- * {
104
- box-sizing: border-box;
105
- outline: none;
106
- -webkit-tap-highlight-color: rgb(255 255 255 / 0);
107
- }
108
-
109
- *,
110
- ::before,
111
- ::after {
112
- border-width: 0;
113
- border-style: solid;
114
- border-color: rgb(var(--color-current) / var(--tw-text-opacity, 1));
115
- }
116
-
117
- [class*="aspect-"] {
118
- &::before {
119
- content: "";
120
- display: block;
121
- }
122
- }
123
-
124
- [hidden] {
125
- display: none;
126
- }
127
-
128
- @supports (-moz-appearance: none) {
129
- select {
130
- text-indent: -0.125rem;
131
- }
28
+ margin: 0;
132
29
  }
133
30
 
134
31
  .grecaptcha-badge {
@@ -1,2 +1,3 @@
1
1
  @import "base.css";
2
2
  @import "gutters.css";
3
+ @import "utilities.css";
@@ -1,15 +1,3 @@
1
1
  @tailwind base;
2
2
  @tailwind components;
3
3
  @tailwind utilities;
4
-
5
- @layer utilities {
6
- .current {
7
- background-color: currentColor;
8
- color: currentColor;
9
- }
10
-
11
- .animation {
12
- animation-duration: 0.5s;
13
- animation-fill-mode: both;
14
- }
15
- }
@@ -0,0 +1,48 @@
1
+ @layer utilities {
2
+ .current {
3
+ background-color: currentColor;
4
+ color: currentColor;
5
+ }
6
+
7
+ .animation {
8
+ animation-duration: 0.5s;
9
+ animation-fill-mode: both;
10
+ }
11
+
12
+ .container {
13
+ margin-left: auto;
14
+ margin-right: auto;
15
+ max-width: var(--container-width);
16
+ padding-left: var(--container-padding);
17
+ padding-right: var(--container-padding);
18
+
19
+ &:--size-sm {
20
+ --container: var(--container-width-sm);
21
+ }
22
+ }
23
+
24
+ .slider {
25
+ margin-left: calc(var(--container-padding-calc) * -1);
26
+ margin-right: calc(var(--container-padding-calc) * -1);
27
+ padding-left: var(--container-padding-calc);
28
+ scroll-padding-left: var(--container-padding-calc);
29
+ scroll-padding-right: var(--container-padding-calc);
30
+ overflow-x: auto;
31
+ overflow-y: hidden;
32
+ -webkit-overflow-scrolling: touch;
33
+ user-select: none;
34
+ scrollbar-width: none !important;
35
+ -ms-overflow-style: none;
36
+ display: flex;
37
+
38
+ & > * {
39
+ flex: 0 0 auto;
40
+ scroll-snap-align: start;
41
+
42
+ &:last-child {
43
+ box-sizing: content-box;
44
+ border-right: var(--container-padding-calc) solid transparent;
45
+ }
46
+ }
47
+ }
48
+ }
@@ -7,10 +7,12 @@
7
7
  --color-instagram: 193, 53, 132;
8
8
  --color-twitter: 29, 161, 242;
9
9
  --color-facebook: 24, 119, 242;
10
+ --color-apple: 0 0 0;
10
11
  --radius: 0.5rem;
11
12
  --container-width: 75rem;
12
13
  --container-width-sm: 50rem;
13
14
  --container-padding: 5vw;
15
+ --container-padding-calc: max(calc(50vw - (var(--container-width) / 2) + var(--container-padding)), var(--container-padding));
14
16
  --font-bold: 700;
15
17
  --font-semibold: 600;
16
18
  --font-medium: 500;
@@ -22,51 +24,38 @@
22
24
  --z-30: 30;
23
25
  --z-40: 40;
24
26
  --z-50: 50;
25
- --transition: 0.3s;
26
- --transition-color: color var(--transition) ease 0s;
27
- --transition-background: background var(--transition) ease 0s;
28
- --transition-opacity: opacity var(--transition) ease 0s;
29
- --transition-transform: transform var(--transition) ease 0s;
30
- --transition-border: border-color var(--transition) ease 0s;
31
- --transition-shadow: box-shadow var(--transition) ease 0s;
27
+ --rounded: 0.75rem;
28
+ --rounded-xs: 0.5rem;
29
+ --rounded-sm: 0.875rem;
30
+ --rounded-base: 1rem;
31
+ --rounded-md: 1.125rem;
32
+ --rounded-lg: 1.5rem;
33
+ --rounded-xl: 3rem;
34
+ --rounded-2xl: 6rem;
35
+ --rounded-3xl: 8rem;
36
+ --rounded-full: 9999px;
37
+ --spacing-xs: 0.5rem;
38
+ --spacing-sm: 0.875rem;
39
+ --spacing-base: 1rem;
40
+ --spacing-md: 1.125rem;
41
+ --spacing-lg: 1.5rem;
42
+ --spacing-xl: 3rem;
43
+ --spacing-2xl: 6rem;
44
+ --spacing-3xl: 8rem;
45
+ --spacing-section: 3rem;
46
+ --transition: 0.15s;
47
+ --transition-color: color var(--transition) ease;
48
+ --transition-background: background var(--transition) ease;
49
+ --transition-opacity: opacity var(--transition) ease;
50
+ --transition-transform: transform var(--transition) ease;
51
+ --transition-border: border-color var(--transition) ease;
52
+ --transition-shadow: box-shadow var(--transition) ease;
32
53
 
33
54
  @media (--media-t) {
34
55
  --container-padding: 3rem;
35
56
  }
36
57
  }
37
58
 
38
- /* @custom-media --media */
39
- @custom-media --media-1600 (max-width: 114.9375em);
40
- @custom-media --media-1408 (max-width: 99.9375em);
41
- @custom-media --media-1360 (max-width: 87.9375em);
42
- @custom-media --media-1216 (max-width: 84.9375em);
43
- @custom-media --media-1024 (max-width: 75.9375em);
44
- @custom-media --media-960 (max-width: 63.9375em);
45
- @custom-media --media-768 (max-width: 59.9375em);
46
- @custom-media --media-400 (max-width: 47.9375em);
47
- @custom-media --media-360 (max-width: 24.9375em);
48
- @custom-media --media-320 (max-width: 22.4375em);
49
- @custom-media --media-min-2000 (min-width: 125em);
50
- @custom-media --media-min-1600 (min-width: 100em);
51
- @custom-media --media-min-1408 (min-width: 88em);
52
- @custom-media --media-min-1360 (min-width: 85em);
53
- @custom-media --media-min-1216 (min-width: 76em);
54
- @custom-media --media-min-1024 (min-width: 64em);
55
- @custom-media --media-min-960 (min-width: 60em);
56
- @custom-media --media-min-768 (min-width: 48em);
57
- @custom-media --media-min-400 (min-width: 25em);
58
- @custom-media --media-min-360 (min-width: 22.5em);
59
- @custom-media --media-min-320 (min-width: 20em);
60
- @custom-media --media-only-1024 (max-width: 75.9375em) and (min-width: 60em);
61
- @custom-media --media-only-960 (max-width: 63.9375em) and (min-width: 60em);
62
- @custom-media --media-only-768 (max-width: 59.9375em) and (min-width: 60em);
63
- @custom-media --media-m (max-width: 47.9375em);
64
- @custom-media --media-t (min-width: 48em);
65
- @custom-media --media-d (min-width: 60em);
66
- @custom-media --media-w (min-width: 76em);
67
- @custom-media --media-hd (min-width: 88em);
68
- @custom-media --media-touch (max-width: 59.9375em);
69
-
70
59
  /* @custom-selector --theme */
71
60
  @custom-selector :--theme-dark [data-theme~="dark"];
72
61
  @custom-selector :--theme-light [data-theme~="light"];
@@ -1 +1,2 @@
1
- /* empty */
1
+ @import "winduum/src/base/reset.css";
2
+ @import "winduum/src/base/breakpoints.css";
@@ -1,6 +1,6 @@
1
- @import "Utils/normalize.css";
2
1
  @import "Utils/vendor.css";
3
2
  @import "Utils/theme/main.css";
3
+ @import "Utils/breakpoints.css";
4
4
  @import "Utils/vars.css";
5
5
  @import "Utils/default.css";
6
6
  @import "Utils/icons.css";
@@ -11,5 +11,4 @@
11
11
  @import "Sections/+.css";
12
12
  @import "Libraries/+.css";
13
13
  @import "Utils/print.css";
14
- @import "Utils/tailwind/base.css";
15
- @import "Utils/tailwind/gutters.css";
14
+ @import "Utils/tailwind/+.css";