@newlogic-digital/ui 3.0.1 → 3.1.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 (113) hide show
  1. package/README.md +8 -12
  2. package/gulpfile.js +16 -168
  3. package/package.json +13 -8
  4. package/src/emails/email.css +15 -9
  5. package/src/emails/email.twig +7 -7
  6. package/src/icons.svg +32 -0
  7. package/src/main.json +14 -27
  8. package/src/scripts/Components/+.js +2 -2
  9. package/src/scripts/Components/CookieConsent.js +66 -64
  10. package/src/scripts/Components/Form.js +28 -21
  11. package/src/scripts/Layout/+.js +2 -1
  12. package/src/scripts/Layout/Header.js +18 -0
  13. package/src/scripts/Layout/Main.js +49 -45
  14. package/src/scripts/Libraries/+.js +12 -10
  15. package/src/scripts/Libraries/Anchor.js +18 -43
  16. package/src/scripts/Libraries/CookieConsent.js +37 -58
  17. package/src/scripts/Libraries/Dialog.js +56 -55
  18. package/src/scripts/Libraries/Drawer.js +23 -23
  19. package/src/scripts/Libraries/NativeSlider.js +86 -86
  20. package/src/scripts/Libraries/ReCaptcha.js +20 -18
  21. package/src/scripts/Libraries/Ripple.js +16 -32
  22. package/src/scripts/Libraries/Stimulus.js +30 -34
  23. package/src/scripts/Libraries/Swup.js +47 -50
  24. package/src/scripts/Libraries/Tabs.js +12 -18
  25. package/src/scripts/Libraries/Tippy.js +118 -0
  26. package/src/scripts/Ui/+.js +5 -3
  27. package/src/scripts/Ui/Checkbox.js +19 -0
  28. package/src/scripts/Ui/Input.js +188 -161
  29. package/src/scripts/Ui/Radio.js +23 -0
  30. package/src/scripts/Ui/Select.js +64 -37
  31. package/src/scripts/Ui/Text.js +25 -0
  32. package/src/scripts/Utils/Functions/+.js +6 -6
  33. package/src/scripts/Utils/Functions/dataValue.js +28 -25
  34. package/src/scripts/Utils/Functions/importScript.js +9 -11
  35. package/src/scripts/Utils/Functions/importStyle.js +18 -5
  36. package/src/scripts/Utils/Functions/inView.js +19 -21
  37. package/src/scripts/Utils/Functions/loadStimulus.js +22 -20
  38. package/src/scripts/Utils/cdn.js +6 -4
  39. package/src/scripts/Utils/global.js +10 -33
  40. package/src/scripts/main.js +6 -6
  41. package/src/styles/Components/CookieConsent.css +40 -179
  42. package/src/styles/Components/Dialog/Default.css +12 -15
  43. package/src/styles/Components/Form/CookieConsent.css +7 -12
  44. package/src/styles/Components/Item/+.css +1 -0
  45. package/src/styles/Layout/+.css +2 -0
  46. package/src/{templates/Components/Dialogs/.gitkeep → styles/Layout/Header.css} +0 -0
  47. package/src/styles/Layout/Main.css +28 -63
  48. package/src/styles/Layout/Nav.css +43 -0
  49. package/src/styles/Libraries/+.css +1 -1
  50. package/src/styles/Libraries/Datepicker.css +85 -39
  51. package/src/styles/Libraries/Dialog.css +6 -5
  52. package/src/styles/Libraries/Drawer.css +15 -15
  53. package/src/styles/Libraries/Hint.css +29 -23
  54. package/src/styles/Libraries/Lazysizes.css +2 -1
  55. package/src/styles/Libraries/NativeSlider.css +19 -18
  56. package/src/styles/Libraries/Ripple.css +8 -5
  57. package/src/styles/Libraries/Tabs.css +4 -4
  58. package/src/styles/Libraries/Tippy.css +87 -0
  59. package/src/styles/Sections/+.css +1 -0
  60. package/src/styles/Ui/+.css +5 -1
  61. package/src/styles/Ui/Badge.css +33 -19
  62. package/src/styles/Ui/Btn.css +80 -53
  63. package/src/styles/Ui/Checkbox.css +80 -41
  64. package/src/styles/Ui/Dropdown.css +5 -0
  65. package/src/styles/Ui/Heading.css +12 -12
  66. package/src/styles/Ui/Icon.css +27 -8
  67. package/src/styles/Ui/Image.css +23 -0
  68. package/src/styles/Ui/Input.css +295 -220
  69. package/src/styles/Ui/Label.css +14 -0
  70. package/src/styles/Ui/Link.css +3 -3
  71. package/src/styles/Ui/Notice.css +14 -16
  72. package/src/styles/Ui/Progress.css +10 -21
  73. package/src/styles/Ui/Radio.css +3 -8
  74. package/src/styles/Ui/Select.css +63 -112
  75. package/src/styles/Ui/Switch.css +70 -0
  76. package/src/styles/Ui/{Wsw.css → Text.css} +61 -80
  77. package/src/styles/Ui/Title.css +8 -4
  78. package/src/styles/Utils/default.css +75 -67
  79. package/src/styles/Utils/icons.css +9 -0
  80. package/src/styles/Utils/keyframes.css +182 -0
  81. package/src/styles/Utils/normalize.css +223 -0
  82. package/src/styles/Utils/print.css +1 -0
  83. package/src/styles/Utils/tailwind/base.css +15 -0
  84. package/src/styles/Utils/tailwind/gutters.css +264 -263
  85. package/src/styles/Utils/theme/main.css +24 -21
  86. package/src/styles/Utils/vars.css +58 -35
  87. package/src/styles/Utils/vendor.css +1 -2
  88. package/src/styles/main.css +6 -3
  89. package/src/styles/tailwind.css +1 -4
  90. package/src/templates/Components/CookieConsent.twig +30 -0
  91. package/src/templates/Components/Dialogs/Basic.twig +7 -3
  92. package/src/templates/Layout/Header.twig +42 -0
  93. package/src/templates/Layout/Main.twig +47 -64
  94. package/src/templates/Sections/Gdpr.twig +64 -0
  95. package/src/templates/Sections/Ui.twig +2104 -0
  96. package/src/templates/dialog-basic.twig +2 -2
  97. package/src/templates/gdpr.json +11 -0
  98. package/src/templates/index.json +8 -2
  99. package/src/templates/json-tippy.twig +16 -0
  100. package/src/templates/ui.json +11 -0
  101. package/CHANGELOG +0 -231
  102. package/src/icons/selection.json +0 -1
  103. package/src/icons/style.css +0 -171
  104. package/src/icons/variables.css +0 -31
  105. package/src/scripts/Ui/Wsw.js +0 -25
  106. package/src/scripts/Utils/Functions/bodyLoaded.js +0 -12
  107. package/src/styles/Libraries/Animate.css +0 -184
  108. package/src/styles/Utils/reference.css +0 -2
  109. package/src/styles/Utils/tailwind/content.css +0 -24
  110. package/src/styles/Utils/theme/vars.css +0 -19
  111. package/src/styles/preload.css +0 -29
  112. package/src/templates/Layout/Preload.twig +0 -21
  113. package/src/templates/Sections/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
- export { default as bodyLoaded } from './bodyLoaded.js';
2
- import './dataValue.js';
3
- export { default as importScript } from './importScript.js';
4
- export { default as importStyle } from './importStyle.js';
5
- export { default as inView } from './inView.js';
6
- export { default as loadStimulus } from './loadStimulus.js';
1
+ import './dataValue.js'
2
+ export { default as fetchHandler } from './fetchHandler.js'
3
+ export { default as importScript } from './importScript.js'
4
+ export { default as importStyle } from './importStyle.js'
5
+ export { default as inView } from './inView.js'
6
+ export { default as loadStimulus } from './loadStimulus.js'
@@ -1,49 +1,52 @@
1
1
  Element.prototype._addDataValue = function(key, value) {
2
- key = `data-${key}`;
2
+ key = `data-${key}`
3
3
 
4
- let attribute = this.getAttribute(key);
4
+ let attribute = this.getAttribute(key)
5
5
 
6
6
  if (attribute === null) {
7
- this.setAttribute(key, value);
7
+ this.setAttribute(key, value)
8
8
  } else {
9
- value = value.split(" ");
10
- attribute = attribute.split(" ");
9
+ value = value.split(' ')
10
+ attribute = attribute.split(' ')
11
11
 
12
- value.map(value => {
13
- !attribute.includes(value) && attribute.push(value)
14
- });
12
+ value.map(value => !attribute.includes(value) && attribute.push(value))
15
13
 
16
- this.setAttribute(key, attribute.join(" "));
14
+ this.setAttribute(key, attribute.join(' '))
17
15
  }
18
16
  }
19
17
 
20
18
  Element.prototype._removeDataValue = function(key, value) {
21
- let result = [];
19
+ const result = []
22
20
 
23
- key = `data-${key}`;
21
+ key = `data-${key}`
24
22
 
25
- let attribute = this.getAttribute(key);
23
+ const attribute = this.getAttribute(key)
26
24
 
27
- if (attribute === null) {
28
- return;
29
- }
25
+ if (attribute === null) return
30
26
 
31
- attribute.split(" ").map(attribute => {
32
- !value.split(" ").includes(attribute) && result.push(attribute)
33
- });
27
+ attribute.split(' ').map(attribute => !value.split(' ').includes(attribute) && result.push(attribute))
34
28
 
35
29
  if (result.length !== 0) {
36
- this.setAttribute(key, result.join(" "));
30
+ this.setAttribute(key, result.join(' '))
37
31
  } else {
38
- this.removeAttribute(key);
32
+ this.removeAttribute(key)
39
33
  }
40
34
  }
41
35
 
42
36
  Element.prototype._hasDataValue = function(key, value) {
43
- key = `data-${key}`;
37
+ key = `data-${key}`
44
38
 
45
- let attribute = this.getAttribute(key);
39
+ const attribute = this.getAttribute(key)
40
+
41
+ if (attribute === null) return false
42
+ return attribute.split(' ').includes(value)
43
+ }
46
44
 
47
- if (attribute === null) return false;
48
- return attribute.split(" ").includes(value);
49
- }
45
+ Element.prototype._getDataValue = function(key) {
46
+ key = `data-${key}`
47
+
48
+ const attribute = this.getAttribute(key)
49
+
50
+ if (attribute === null) return ''
51
+ return attribute
52
+ }
@@ -1,19 +1,17 @@
1
- function importScript(url) {
1
+ export default function importScript(url) {
2
2
  return new Promise((resolve, reject) => {
3
3
  if (document.querySelector(`script[src="${url}"]`) === null) {
4
- const script = document.createElement('script');
4
+ const script = document.createElement('script')
5
5
 
6
- script._importScript = new Promise((load, error) => {
7
- script.src = url;
8
- script.onload = () => {load(); resolve()};
9
- script.onerror = () => {error(); reject()};
10
- });
6
+ script._importScript = new Promise((resolve, reject) => {
7
+ script.src = url
8
+ script.onload = resolve
9
+ script.onerror = reject
10
+ }).then(resolve).catch(reject)
11
11
 
12
- document.head.appendChild(script);
12
+ document.head.appendChild(script)
13
13
  } else {
14
- document.querySelector(`script[src="${url}"]`)._importScript.then(resolve);
14
+ document.querySelector(`script[src="${url}"]`)._importScript.then(resolve)
15
15
  }
16
16
  })
17
17
  }
18
-
19
- export default importScript;
@@ -1,5 +1,18 @@
1
- export default function importStyle (url) {
2
- if (document.querySelector(`link[href="${url}"]`) === null) {
3
- document.head.insertAdjacentHTML("beforeend", `<link rel="stylesheet" href="${url}" />`);
4
- }
5
- }
1
+ export default function importStyle(url) {
2
+ return new Promise((resolve, reject) => {
3
+ if (document.querySelector(`link[href="${url}"]`) === null) {
4
+ const style = document.createElement('link')
5
+
6
+ style._importStyle = new Promise((resolve, reject) => {
7
+ style.href = url
8
+ style.rel = 'stylesheet'
9
+ style.onload = resolve
10
+ style.onerror = reject
11
+ }).then(resolve).catch(reject)
12
+
13
+ document.head.prepend(style)
14
+ } else {
15
+ document.querySelector(`link[href="${url}"]`)._importStyle.then(resolve)
16
+ }
17
+ })
18
+ }
@@ -1,27 +1,25 @@
1
- export default function inView(element, callback, options) {
2
- let inView = false;
1
+ export default function inView(element, options) {
2
+ let inView = false
3
3
 
4
- if (typeof IntersectionObserver === "undefined" && callback) {
5
- callback();
6
- return false;
7
- }
4
+ return new Promise((resolve) => {
5
+ if (typeof IntersectionObserver === 'undefined') {
6
+ resolve()
7
+ return false
8
+ }
8
9
 
9
- if (typeof options === "undefined") {
10
- options = {};
11
- }
10
+ if (typeof options === 'undefined') {
11
+ options = {}
12
+ }
12
13
 
13
- if (typeof options.rootMargin === "undefined") {
14
- options.rootMargin = "100px";
15
- }
14
+ if (typeof options.rootMargin === 'undefined') {
15
+ options.rootMargin = '100px'
16
+ }
16
17
 
17
- new IntersectionObserver(
18
- entries => {
18
+ new IntersectionObserver(entries => {
19
19
  if (entries[0].isIntersecting && inView === false) {
20
- inView = entries[0].isIntersecting;
21
- if (callback) {
22
- callback()
23
- }
20
+ inView = entries[0].isIntersecting
21
+ resolve()
24
22
  }
25
- }, options
26
- ).observe(element);
27
- }
23
+ }, options).observe(element)
24
+ })
25
+ }
@@ -1,37 +1,39 @@
1
- let dynamicControllers = ["ui-input", "ui-select", "ui-wsw", "c-cookieconsent", "c-form-cookieconsent"];
2
- let dynamicActions = [[`a[href^="#"]`, "click->lib#anchor"], [`.ui-btn`, "click->lib#ripple"]];
1
+ const dynamicControllers = ['ui-input', 'ui-select', 'ui-text', 'ui-checkbox', 'ui-radio', 'c-cookieconsent', 'c-form-cookieconsent']
2
+ const dynamicActions = [['.ui-btn', 'click->lib#ripple']]
3
+
4
+ if (!('scrollBehavior' in document.documentElement.style)) {
5
+ dynamicActions.push(['a[href^="#"]', 'click->lib#anchor'])
6
+ }
3
7
 
4
8
  function loadControllers(parent, selectors) {
5
9
  if (parent !== null) {
6
- selectors.forEach((selector) => {
7
- [...parent.getElementsByClassName(selector)].filter((element) => {
8
- if (element.getAttribute("data-controller") === null) {
9
- element.setAttribute("data-controller", element.className.split(" ")[0]);
10
+ selectors.forEach(selector => {
11
+ [...parent.getElementsByClassName(selector)].forEach(element => {
12
+ if (element.getAttribute('data-controller') === null) {
13
+ element.setAttribute('data-controller', selector)
10
14
  }
11
- });
12
- });
15
+ })
16
+ })
13
17
  }
14
18
  }
15
19
 
16
20
  function loadActions(parent, selectors) {
17
21
  if (parent !== null) {
18
- selectors.forEach((selector) => {
19
- [...parent.querySelectorAll(selector[0])].filter((element) => {
20
- let attribute = element.getAttribute("data-action");
22
+ selectors.forEach(selector => {
23
+ parent.querySelectorAll(selector[0]).forEach(element => {
24
+ const attribute = element.getAttribute('data-action')
21
25
 
22
26
  if (attribute === null) {
23
- element.setAttribute("data-action", selector[1]);
27
+ element.setAttribute('data-action', selector[1])
24
28
  } else if (attribute.indexOf(selector[1]) === -1) {
25
- element.setAttribute("data-action", `${attribute} ${selector[1]}`);
29
+ element.setAttribute('data-action', `${attribute} ${selector[1]}`)
26
30
  }
27
- });
28
- });
31
+ })
32
+ })
29
33
  }
30
34
  }
31
35
 
32
- function loadStimulus(selector) {
33
- loadControllers(selector, dynamicControllers);
34
- loadActions(selector, dynamicActions);
36
+ export default function loadStimulus(selector) {
37
+ loadControllers(selector, dynamicControllers)
38
+ loadActions(selector, dynamicActions)
35
39
  }
36
-
37
- export default loadStimulus;
@@ -1,5 +1,7 @@
1
1
  export default {
2
- "recaptcha": "https://www.google.com/recaptcha/api.js?render={apikey}",
3
- "seamless": "https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@1.2.3/dist/es5/seamless.min.js",
4
- "pickr_css": "https://cdn.jsdelivr.net/npm/@simonwep/pickr@1.8.0/dist/themes/nano.min.css"
5
- }
2
+ recaptcha: 'https://www.google.com/recaptcha/enterprise.js?render={apikey}',
3
+ seamless: 'https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@2.1.6/lib/bundle.min.js',
4
+ pickr_css: 'https://cdn.jsdelivr.net/npm/@simonwep/pickr@1.8.0/dist/themes/nano.min.css',
5
+ tippy: 'https://cdn.jsdelivr.net/combine/npm/tippy.js@6.3.7/dist/tippy.css,npm/tippy.js@6.3.1/dist/svg-arrow.css,npm/tippy.js@6.3.7/themes/light-border.css,npm/tippy.js@6.3.7/animations/scale.css',
6
+ datepicker: 'https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/css/datepicker.min.css'
7
+ }
@@ -1,40 +1,17 @@
1
- if ('serviceWorker' in navigator && location.protocol === "https:") {
2
- window.addEventListener('load', function () {
3
- if (!document.documentElement.classList.contains("no-sw")) {
4
- navigator.serviceWorker.register('/sw.js').catch(function (e) {
5
- console.error('Error during service worker registration:', e);
6
- });
1
+ if ('serviceWorker' in navigator && location.protocol === 'https:') {
2
+ window.addEventListener('load', () => {
3
+ if (!document.documentElement.classList.contains('no-sw')) {
4
+ navigator.serviceWorker.register('/sw.js').catch(e => {
5
+ console.error('Error during service worker registration:', e)
6
+ })
7
7
  } else {
8
- navigator.serviceWorker.getRegistrations().then(function (registrations) {
8
+ navigator.serviceWorker.getRegistrations().then(registrations => {
9
9
  if (registrations.length > 0) {
10
- for (let registration of registrations) {
10
+ for (const registration of registrations) {
11
11
  registration.unregister()
12
12
  }
13
13
  }
14
- });
14
+ })
15
15
  }
16
- });
16
+ })
17
17
  }
18
-
19
- if (document.body.classList.contains("is-body-preload")) {
20
- document.body.classList.remove("is-body-preload");
21
- setTimeout(function () {
22
- document.body.classList.add("is-body-loaded");
23
- }, 300);
24
- }
25
-
26
- if (document.querySelector("[data-loadcss]") !== null) {
27
- if (typeof document.fonts !== "undefined") {
28
- document.fonts.ready.then(function () {
29
- document.documentElement.classList.add("wf-active");
30
- });
31
-
32
- setTimeout(() => {
33
- if (!document.documentElement.classList.contains("wf-active")) {
34
- document.documentElement.classList.add("wf-active");
35
- }
36
- }, 500);
37
- } else {
38
- document.documentElement.classList.add("wf-active");
39
- }
40
- }
@@ -1,6 +1,6 @@
1
- import "./Utils/global.js";
2
- import "./Libraries/+.js";
3
- import "./Layout/+.js";
4
- import "./Sections/+.js";
5
- import "./Components/+.js";
6
- import "./Ui/+.js";
1
+ import './Utils/global.js'
2
+ import './Libraries/+.js'
3
+ import './Layout/+.js'
4
+ import './Sections/+.js'
5
+ import './Components/+.js'
6
+ import './Ui/+.js'
@@ -1,210 +1,71 @@
1
1
  .c-cookieconsent {
2
2
  position: fixed;
3
+ inset: 0;
3
4
  display: none;
4
- z-index: 1;
5
- color: rgb(var(--color-invert));
6
- left: 1rem;
7
- bottom: 1rem;
8
- background-color: rgb(var(--color-default));
9
- padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
10
-
11
- @media (--media-400) {
12
- display: block;
13
- transform: translateY(100%);
14
-
15
- &.is-animate {
16
- &:before {
17
- transform: translateX(-50%) translateY(0);
18
- }
19
- }
20
-
21
- &.is-mobile-show {
22
- &:before {
23
- transform: translateY(125%) translateX(-50%);
24
- opacity: 0;
25
- z-index: -2;
26
- }
27
- }
28
-
29
- &.is-background-light {
30
- &:after {
31
- background-color: rgb(var(--color-background));
32
- }
33
- }
34
-
35
- &:after {
36
- position: absolute;
37
- inset: 0;
38
- background-color: rgb(var(--color-default));
39
- content: "";
40
- z-index: -1;
41
- }
42
-
43
- &:before {
44
- color: rgb(var(--color-invert));
45
- font-size: 0.875rem;
46
- height: 2.625rem;
47
- display: block;
48
- position: absolute;
49
- background-color: rgb(var(--color-default));
50
- left: 50%;
51
- bottom: 100%;
52
- content: attr(data-title);
53
- line-height: 2.625rem;
54
- padding: 0 1.5rem;
55
- transform: translateY(125%) translateX(-50%);
56
- white-space: nowrap;
57
- cursor: pointer;
58
- transition: var(--transition-opacity), var(--transition-transform);
59
- margin-bottom: calc(0.625rem + env(safe-area-inset-bottom));
60
- border-radius: var(--radius);
61
- }
5
+ z-index: var(--z-50);
6
+ background-color: rgb(var(--color-dark) / 0.75);
7
+ justify-content: center;
8
+ align-items: center;
9
+ flex-direction: column;
10
+
11
+ @media print {
12
+ display: none !important;
62
13
  }
63
14
 
64
- &.is-background-light {
65
- color: rgb(var(--color-default));
66
- background-color: rgb(var(--color-background));
67
- box-shadow: 0 1px 3px 0 rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
68
- }
69
-
70
- @media (--media-min-960) {
71
- width: 40rem;
15
+ &:not(.is-animate) {
16
+ animation: 0.5s ease 0s forwards 1 fade-out;
72
17
  }
73
18
 
74
- @media (--media-only-768) {
75
- left: 50%;
76
- width: 40rem;
77
- margin-left: -20rem;
78
- bottom: 0;
19
+ &.is-animate {
20
+ animation: 0.5s ease 0s backwards 1 fade-in;
79
21
  }
80
22
 
81
- @media (--media-400) {
82
- left: 0;
83
- right: 0;
84
- bottom: 0;
23
+ &:--state-active {
24
+ display: flex;
85
25
  }
86
26
 
87
- &:not(.is-animate) {
88
- @media (--media-min-768) {
89
- animation: 0.5s ease 0s forwards 1 slideOutDown;
90
- }
27
+ & .wrp {
28
+ max-width: 32rem;
29
+ width: calc(100% - 2rem);
30
+ border-radius: var(--radius);
31
+ padding: 2rem;
91
32
 
92
- @media (--media-min-960) {
93
- animation: 0.5s ease 0s forwards 1 fadeOutLeft;
94
- }
33
+ @nest :--type-center& {
34
+ max-width: 26rem;
35
+ text-align: center;
95
36
 
96
- @media (--media-400) {
97
- &.is-mobile-show {
98
- animation: 0.5s ease 0s forwards 1 slideOutDown;
37
+ & .ui-image {
38
+ margin-left: auto;
39
+ margin-right: auto;
99
40
  }
100
41
  }
101
- }
102
-
103
- &.is-animate {
104
- @media (--media-min-768) {
105
- animation: 0.5s ease 0s backwards 1 slideInUp;
106
- }
107
42
 
108
- @media (--media-min-960) {
109
- animation: 0.5s ease 0s backwards 1 fadeInLeft;
110
- }
43
+ & .wrp_c_head {
44
+ margin-bottom: 1rem;
111
45
 
112
- @media (--media-400) {
113
- &.is-mobile-show {
114
- animation: 0.5s ease 0s forwards 1 slideInUp;
46
+ @media (--media-t) {
47
+ margin-bottom: 1.5rem;
115
48
  }
116
49
  }
117
- }
118
50
 
119
- &[data-state="active"] {
120
- display: block;
121
-
122
- @media (--media-400) {
123
- max-width: 100%;
51
+ & .wrp_c_body {
52
+ & .ui-text {
53
+ --ui-text-size: 0.875rem;
54
+ }
124
55
  }
125
- }
126
56
 
127
- & .wrp {
128
- & .wrp_c_options {
57
+ & .wrp_c_foot {
129
58
  display: flex;
130
- margin-top: 1.5rem;
131
59
  align-items: center;
60
+ margin-top: 1.5rem;
132
61
 
133
- @media (--media-400) {
134
- justify-content: center;
135
- flex-wrap: wrap;
136
- flex-direction: column;
62
+ @media (--media-t) {
63
+ margin-top: 2rem;
137
64
  }
138
65
 
139
66
  & .ui-link {
140
- margin-right: 1rem;
141
-
142
- @media (--media-400) {
143
- margin: 0 1rem 1rem;
144
- }
145
-
146
- & span {
147
- display: block;
148
-
149
- @media (--media-min-768) {
150
- font-size: 0.75rem;
151
- }
152
-
153
- &:before {
154
- border-color: rgb(var(--color-invert));
155
-
156
- @nest .is-background-light& {
157
- border-color: rgb(var(--color-default));
158
- }
159
- }
160
- }
67
+ font-weight: var(--font-normal);
161
68
  }
162
-
163
- & .ui-btn {
164
-
165
- @media (--media-min-768) {
166
- margin-left: auto;
167
- padding: 0.625rem 0.75rem;
168
- }
169
-
170
- @media (--media-400) {
171
- margin-top: 0.375rem;
172
- }
173
-
174
- &[data-lib-cookieconsent-approve] {
175
- color: rgb(var(--color-success));
176
- }
177
-
178
- & span {
179
- &:not(.icon-l) {
180
- @media (--media-min-768) {
181
- font-size: 0.75rem;
182
- }
183
- }
184
-
185
- &.icon-l {
186
- &:before {
187
- font-size: 1rem;
188
- }
189
- }
190
- }
191
- }
192
- }
193
- }
194
-
195
- & p {
196
- margin: 0;
197
- font-size: 0.875rem;
198
-
199
- @media (--media-min-768) {
200
- font-size: 0.75rem;
201
- line-height: 2;
202
- padding-right: 1rem;
203
- }
204
-
205
- @media (--media-400) {
206
- line-height: 1.75;
207
- text-align: center;
208
69
  }
209
70
  }
210
- }
71
+ }
@@ -2,7 +2,8 @@
2
2
  --c-dialog-py: 1rem;
3
3
  --c-dialog-px: 1.5rem;
4
4
  --c-dialog-offset-y: 2rem;
5
- animation: 0.3s ease 0s backwards 1 fadeInDown;
5
+
6
+ animation: 0.3s ease 0s backwards 1 fade-in-down;
6
7
  position: relative;
7
8
  z-index: var(--z-30);
8
9
  display: flex;
@@ -16,31 +17,32 @@
16
17
  border-bottom: var(--c-dialog-offset-y) solid transparent;
17
18
  width: calc(100% - 2rem);
18
19
 
19
- @nest [data-state*="hiding"] & {
20
- animation: 0.3s ease 0s forwards 1 fadeOutUp;
20
+ @nest :--state-hiding & {
21
+ animation: 0.3s ease 0s forwards 1 fade-out-up;
21
22
  }
22
23
 
23
- @media (--media-min-768) {
24
+ @media (--media-t) {
24
25
  --c-dialog-offset-y: 4rem;
26
+
25
27
  width: 100%;
26
28
  min-width: 18.75rem;
27
29
  max-width: 40rem;
28
30
  }
29
31
 
30
- &[data-size="sm"] {
32
+ &:--size-sm {
31
33
  max-width: 31.25rem;
32
34
  }
33
35
 
34
- &[data-size="base"] {
36
+ &:--size-base {
35
37
  max-width: none;
36
38
  width: auto;
37
39
  }
38
40
 
39
- &[data-size="lg"] {
41
+ &:--size-lg {
40
42
  max-width: 80rem;
41
43
  }
42
44
 
43
- &[data-type="scrollable"] {
45
+ &:--type-scrollable {
44
46
  height: 100%;
45
47
 
46
48
  & .wrp_dialog_body {
@@ -63,7 +65,7 @@
63
65
  flex-direction: column;
64
66
  max-height: 100%;
65
67
 
66
- @media (--media-min-768) {
68
+ @media (--media-t) {
67
69
  --c-dialog-py: 1.25rem;
68
70
  }
69
71
  }
@@ -72,10 +74,5 @@
72
74
  position: absolute;
73
75
  right: 1rem;
74
76
  top: 1rem;
75
- transition: var(--transition-opacity);
76
-
77
- &:hover {
78
- opacity: 0.8;
79
- }
80
77
  }
81
- }
78
+ }