@moreonion/foundist 3.2.6 → 3.3.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/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moreonion/foundist",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Foundation based default theme for Impact Stack landing pages.",
|
|
5
5
|
"author": "More Onion <kontakt@more-onion.at>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
|
+
"type": "module",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
11
|
"url": "https://gitlab.more-onion.com/themes/foundist"
|
|
@@ -23,11 +24,11 @@
|
|
|
23
24
|
"fix:css": "stylelint --fix src/scss && prettier --write 'src/scss/**/*.scss'",
|
|
24
25
|
"fix:js": "eslint --fix src",
|
|
25
26
|
"fix": "yarn run fix:css && yarn run fix:js",
|
|
26
|
-
"prepare": "husky
|
|
27
|
+
"prepare": "husky"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@moreonion/foundation-base": "^3.
|
|
30
|
-
"vite-plugin-nunjucks": "^0.
|
|
30
|
+
"@moreonion/foundation-base": "^3.3.0",
|
|
31
|
+
"vite-plugin-nunjucks": "^0.2.0"
|
|
31
32
|
},
|
|
32
33
|
"lint-staged": {
|
|
33
34
|
"*.scss": [
|
package/src/scss/_util.scss
CHANGED
|
@@ -121,5 +121,17 @@
|
|
|
121
121
|
background-color: get-background-color($card-background);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
// Replace letter background if it’s the same as the background.
|
|
125
|
+
@if meta.type-of($letter-background) == color and $letter-background != transparent {
|
|
126
|
+
@if $letter-background == $background {
|
|
127
|
+
.letter {
|
|
128
|
+
@include letter-background-gradient(get-background-color($body-background));
|
|
129
|
+
}
|
|
130
|
+
} @else if $force {
|
|
131
|
+
.letter {
|
|
132
|
+
@include letter-background-gradient($letter-background);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
124
136
|
}
|
|
125
137
|
}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
// Letter
|
|
2
2
|
// - - - - - - - - - - - - - - -
|
|
3
|
-
//
|
|
3
|
+
// Additional styles for the letter component.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$letter-background: $card-background !default;
|
|
8
|
-
$letter-padding: (2 * $global-padding) (1.25 * $global-padding) !default;
|
|
9
|
-
$letter-margin: 0 0 $global-margin 0 !default;
|
|
10
|
-
$letter-shadow-color: color.scale(
|
|
11
|
-
get-background-color($letter-background),
|
|
12
|
-
$lightness: -60%,
|
|
13
|
-
$alpha: -60%
|
|
14
|
-
) !default;
|
|
15
|
-
|
|
16
|
-
$letter-signature-max-width: 12rem !default;
|
|
17
|
-
$letter-signature-justify-content: flex-start !default;
|
|
5
|
+
$letter-signature-font-weight: $global-weight-bold !default;
|
|
6
|
+
$letter-signature-image-margin: 0 0 (0.5 * $global-margin) !default;
|
|
18
7
|
|
|
19
8
|
$letter-counter-font-family: $header-font-family !default;
|
|
20
9
|
$letter-counter-font-size: $large-font-size !default;
|
|
@@ -26,72 +15,14 @@ $letter-counter-line-height: if(
|
|
|
26
15
|
$letter-counter-font-weight: $global-weight-bold !default;
|
|
27
16
|
|
|
28
17
|
.letter {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: $letter-padding;
|
|
33
|
-
margin: $letter-margin;
|
|
34
|
-
box-shadow: 0 0.1rem 0.2rem $letter-shadow-color;
|
|
35
|
-
|
|
36
|
-
@extend .small-reverse-container-padding;
|
|
37
|
-
@extend .small-add-container-padding;
|
|
38
|
-
|
|
39
|
-
#{$text-tags} {
|
|
40
|
-
padding-#{$global-right}: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Additional shadows for a curling paper effect.
|
|
44
|
-
&:before,
|
|
45
|
-
&:after {
|
|
46
|
-
content: "";
|
|
47
|
-
position: absolute;
|
|
48
|
-
width: 50%;
|
|
49
|
-
height: 5rem;
|
|
50
|
-
bottom: 0.1rem;
|
|
51
|
-
background: transparent;
|
|
52
|
-
box-shadow: 0 0.5rem 0.6rem $letter-shadow-color;
|
|
53
|
-
z-index: -1;
|
|
54
|
-
}
|
|
55
|
-
&:before {
|
|
56
|
-
left: 0.1rem;
|
|
57
|
-
transform: skew(-3deg) rotate(-3deg);
|
|
58
|
-
transform-origin: bottom left;
|
|
59
|
-
}
|
|
60
|
-
&:after {
|
|
61
|
-
right: 0.1rem;
|
|
62
|
-
transform: skew(3deg) rotate(3deg);
|
|
63
|
-
transform-origin: bottom right;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Styles for uploaded signature images + name and description
|
|
67
|
-
.signatures {
|
|
68
|
-
@extend .no-bullet;
|
|
69
|
-
display: grid;
|
|
70
|
-
grid-template-rows: auto;
|
|
71
|
-
grid-template-columns: auto;
|
|
72
|
-
gap: $global-margin;
|
|
73
|
-
|
|
74
|
-
@include breakpoint(medium) {
|
|
75
|
-
grid-template-columns: repeat(2, auto);
|
|
76
|
-
}
|
|
77
|
-
@include breakpoint(xlarge) {
|
|
78
|
-
grid-template-columns: repeat(3, auto);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
li {
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
justify-content: $letter-signature-justify-content;
|
|
85
|
-
max-width: $letter-signature-max-width;
|
|
86
|
-
}
|
|
18
|
+
// Styles for uploaded signature images
|
|
19
|
+
.signature-image {
|
|
20
|
+
margin: $letter-signature-image-margin;
|
|
87
21
|
}
|
|
88
22
|
|
|
23
|
+
// Styles for the signature name + description
|
|
89
24
|
.signature-name {
|
|
90
|
-
font-weight: $
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.signature-image {
|
|
94
|
-
margin-bottom: 0.5 * $global-margin;
|
|
25
|
+
font-weight: $letter-signature-font-weight;
|
|
95
26
|
}
|
|
96
27
|
|
|
97
28
|
// Styles for some big text with a counter
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
$sticky-cta-background: $form-background !default;
|
|
9
9
|
$sticky-cta-boxshadow: 0 0 rem-calc(3) color.scale($black, $alpha: -75%) !default;
|
|
10
|
-
$sticky-button-max-width:
|
|
10
|
+
$sticky-button-max-width: $button-max-width !default;
|
|
11
11
|
|
|
12
12
|
.sticky-cta {
|
|
13
13
|
@include sticky-button;
|
package/src/scss/main.scss
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
// Custom components
|
|
86
86
|
@include mo-button;
|
|
87
|
+
@include mo-centered-button;
|
|
87
88
|
@include mo-close-button;
|
|
88
89
|
@include mo-form-group;
|
|
89
90
|
@include mo-form-steps;
|
|
@@ -94,6 +95,8 @@
|
|
|
94
95
|
@include mo-drupal-ajax-loading;
|
|
95
96
|
@include mo-payment-icons;
|
|
96
97
|
@include mo-giftaid;
|
|
98
|
+
@include mo-letter;
|
|
99
|
+
@include mo-letter-signatures;
|
|
97
100
|
@include mo-cookiebar;
|
|
98
101
|
@include mo-slideshow;
|
|
99
102
|
|