mp-design-system 1.2.46 → 1.2.48
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/build/js/app.js +1 -1
- package/dist/build/js/app.js.map +1 -1
- package/dist/build/scss/main.css +1 -1
- package/dist/build/scss/main.css.map +1 -1
- package/package.json +1 -1
- package/src/_headers +1 -1
- package/src/_includes/components/product-signpost/product-signpost.scss +2 -5
- package/src/assets/js/imports/off-canvas.js +0 -2
- package/src/assets/scss/components/form.scss +5 -1
- package/src/assets/scss/utilities/space.scss +3 -0
- package/src/prototype/form-altcha.njk +705 -0
- package/src/prototype/form-cloudflare.njk +688 -0
- package/src/prototype/form-hcaptcha.njk +693 -0
- package/src/prototype/forms.njk +0 -3105
package/package.json
CHANGED
package/src/_headers
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Content-Security-Policy: default-src 'self';
|
2
|
+
Content-Security-Policy: default-src 'self'; base-uri 'self'; block-all-mixed-content; font-src 'self' https://fonts.gstatic.com; form-action 'self'; frame-src 'self' https://brand.malvernpanalytical.com https://www.youtube.com https://challenges.cloudflare.com https://newassets.hcaptcha.com; frame-ancestors 'self' https://brand.malvernpanalytical.com; img-src 'self' data: https://p3.aprimocdn.net https://img.youtube.com; object-src 'none'; picture-in-picture 'self'; sandbox allow-forms allow-same-origin allow-scripts allow-downloads; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://polyfill.io https://eu.altcha.org https://challenges.cloudflare.com https://js.hcaptcha.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; upgrade-insecure-requests;
|
3
3
|
X-Content-Type-Options: nosniff
|
4
4
|
X-Frame-Options: SAMEORIGIN
|
5
5
|
X-XSS-Protection: 1; mode=block
|
@@ -21,14 +21,11 @@
|
|
21
21
|
flex-shrink: 0;
|
22
22
|
}
|
23
23
|
|
24
|
-
&__content {
|
25
|
-
flex-grow: 1;
|
26
|
-
}
|
27
|
-
|
28
24
|
&__wrapper {
|
29
25
|
display: flex;
|
30
26
|
flex-direction: column;
|
31
|
-
@include space(
|
27
|
+
@include space("gap", "xs-s");
|
28
|
+
max-width: 100%;
|
32
29
|
}
|
33
30
|
|
34
31
|
.o-prose p {
|
@@ -40,8 +40,6 @@ function isVisible(element) {
|
|
40
40
|
// Function to handle off-canvas behavior based on visibility
|
41
41
|
function handleOffCanvas(toggle, isVisible) {
|
42
42
|
const target = document.getElementById(toggle.getAttribute('data-target'));
|
43
|
-
console.log(target);
|
44
|
-
console.log(isVisible);
|
45
43
|
if (isVisible === true) {
|
46
44
|
createOffCanvas(target);
|
47
45
|
} else {
|
@@ -17,6 +17,10 @@
|
|
17
17
|
|
18
18
|
.c-form__input {
|
19
19
|
flex: 1 0 298px;
|
20
|
+
|
21
|
+
@media only screen and (max-width: 31.25em) {
|
22
|
+
flex-shrink: 1;
|
23
|
+
}
|
20
24
|
}
|
21
25
|
|
22
26
|
.c-input {
|
@@ -26,7 +30,7 @@
|
|
26
30
|
|
27
31
|
&__input-wrap {
|
28
32
|
display: flex;
|
29
|
-
gap: var(--space-s);
|
33
|
+
gap: var(--space-3xs) var(--space-s);
|
30
34
|
flex-wrap: wrap;
|
31
35
|
align-items: flex-start;
|
32
36
|
|