@faststore/ui 2.0.117-alpha.0 → 2.0.128-alpha.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/dist/index.d.ts +0 -6
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/Logo/styles.scss +12 -0
- package/src/components/molecules/Banner/styles.scss +125 -0
- package/src/components/molecules/Carousel/styles.scss +171 -0
- package/src/components/molecules/NavbarLinks/styles.scss +1 -3
- package/src/components/molecules/ProductCardSkeleton/styles.scss +56 -0
- package/src/components/molecules/ProductTile/styles.scss +79 -0
- package/src/components/organisms/BannerNewsletter/styles.scss +21 -0
- package/src/components/organisms/FilterSkeleton/styles.scss +49 -0
- package/src/components/organisms/Footer/styles.scss +218 -0
- package/src/components/organisms/Incentives/styles.scss +120 -0
- package/src/components/organisms/Navbar/styles.scss +1 -3
- package/src/components/organisms/Newsletter/styles.scss +133 -0
- package/src/components/organisms/ProductDetails/styles.scss +183 -0
- package/src/components/organisms/ProductGallery/styles.scss +180 -0
- package/src/components/organisms/ProductShelf/styles.scss +2 -3
- package/src/components/organisms/Tiles/styles.scss +56 -0
- package/src/index.ts +0 -16
- package/src/styles/components.scss +14 -1
- package/src/styles/global.scss +0 -1
- package/dist/components/molecules/Bullets/Bullets.d.ts +0 -35
- package/dist/components/molecules/Bullets/Bullets.js +0 -12
- package/dist/components/molecules/Bullets/Bullets.js.map +0 -1
- package/dist/components/molecules/Bullets/index.d.ts +0 -2
- package/dist/components/molecules/Bullets/index.js +0 -2
- package/dist/components/molecules/Bullets/index.js.map +0 -1
- package/dist/components/molecules/Carousel/Arrows.d.ts +0 -12
- package/dist/components/molecules/Carousel/Arrows.js +0 -6
- package/dist/components/molecules/Carousel/Arrows.js.map +0 -1
- package/dist/components/molecules/Carousel/Carousel.d.ts +0 -54
- package/dist/components/molecules/Carousel/Carousel.js +0 -183
- package/dist/components/molecules/Carousel/Carousel.js.map +0 -1
- package/dist/components/molecules/Carousel/CarouselItem.d.ts +0 -11
- package/dist/components/molecules/Carousel/CarouselItem.js +0 -18
- package/dist/components/molecules/Carousel/CarouselItem.js.map +0 -1
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +0 -9
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js +0 -29
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +0 -1
- package/dist/components/molecules/Carousel/index.d.ts +0 -2
- package/dist/components/molecules/Carousel/index.js +0 -3
- package/dist/components/molecules/Carousel/index.js.map +0 -1
- package/dist/hooks/useSlider/index.d.ts +0 -2
- package/dist/hooks/useSlider/index.js +0 -3
- package/dist/hooks/useSlider/index.js.map +0 -1
- package/dist/hooks/useSlider/useSlider.d.ts +0 -64
- package/dist/hooks/useSlider/useSlider.js +0 -103
- package/dist/hooks/useSlider/useSlider.js.map +0 -1
- package/src/components/molecules/Bullets/Bullets.tsx +0 -88
- package/src/components/molecules/Bullets/index.ts +0 -2
- package/src/components/molecules/Carousel/Arrows.tsx +0 -58
- package/src/components/molecules/Carousel/Carousel.tsx +0 -387
- package/src/components/molecules/Carousel/CarouselItem.tsx +0 -54
- package/src/components/molecules/Carousel/hooks/useSlideVisibility.ts +0 -59
- package/src/components/molecules/Carousel/index.ts +0 -2
- package/src/hooks/useSlider/index.ts +0 -2
- package/src/hooks/useSlider/useSlider.ts +0 -209
- /package/src/components/{molecules → organisms}/NavbarSlider/styles.scss +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
[data-fs-footer] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Footer
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-footer-spacing-vertical-mobile : var(--fs-spacing-4);
|
|
8
|
+
--fs-footer-spacing-vertical-notebook : var(--fs-spacing-5);
|
|
9
|
+
--fs-footer-spacing-horizontal-notebook : var(--fs-grid-gap-3);
|
|
10
|
+
|
|
11
|
+
--fs-footer-bkg-color : var(--fs-color-neutral-bkg);
|
|
12
|
+
|
|
13
|
+
// Divisor
|
|
14
|
+
--fs-footer-divisor-border-width : var(--fs-border-width);
|
|
15
|
+
--fs-footer-divisor-border-color : var(--fs-border-color-light);
|
|
16
|
+
|
|
17
|
+
// Title
|
|
18
|
+
--fs-footer-title-size : var(--fs-text-size-body);
|
|
19
|
+
--fs-footer-title-line-height : 1.25;
|
|
20
|
+
--fs-footer-title-weight : var(--fs-text-weight-bold);
|
|
21
|
+
--fs-footer-title-margin-bottom : var(--fs-spacing-1);
|
|
22
|
+
|
|
23
|
+
// --------------------------------------------------------
|
|
24
|
+
// Structural Styles
|
|
25
|
+
// --------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
&[data-fs-footer] {
|
|
28
|
+
background-color: var(--fs-footer-bkg-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include media("<notebook") {
|
|
32
|
+
padding-top: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-fs-logo] {
|
|
36
|
+
background-position-y: var(--fs-spacing-0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-fs-footer-title] {
|
|
40
|
+
margin-bottom: var(--fs-footer-title-margin-bottom);
|
|
41
|
+
font-size: var(--fs-footer-title-size);
|
|
42
|
+
font-weight: var(--fs-footer-title-weight);
|
|
43
|
+
line-height: var(--fs-footer-title-line-height);
|
|
44
|
+
|
|
45
|
+
@include media("<notebook") {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-fs-footer-note],
|
|
51
|
+
[data-fs-footer-nav] {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
|
|
55
|
+
@include media("<notebook") {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@include media(">=notebook") {
|
|
60
|
+
display: grid;
|
|
61
|
+
grid-template-columns: repeat(12, 1fr);
|
|
62
|
+
column-gap: var(--fs-footer-spacing-horizontal-notebook);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:not(:first-of-type)::before {
|
|
66
|
+
width: 100%;
|
|
67
|
+
content: "";
|
|
68
|
+
border-top: var(--fs-footer-divisor-border-width) solid var(--fs-footer-divisor-border-color);
|
|
69
|
+
|
|
70
|
+
@include media(">=notebook") {
|
|
71
|
+
grid-column: span 12;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-fs-footer-nav] {
|
|
77
|
+
@include media(">=notebook") {
|
|
78
|
+
row-gap: var(--fs-footer-spacing-vertical-notebook);
|
|
79
|
+
padding-bottom: var(--fs-footer-spacing-vertical-notebook);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-fs-footer-note] {
|
|
84
|
+
position: relative;
|
|
85
|
+
|
|
86
|
+
@include media("<notebook") {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
text-align: center;
|
|
91
|
+
|
|
92
|
+
&::before {
|
|
93
|
+
padding-bottom: var(--fs-footer-spacing-vertical-mobile);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include media(">=notebook") {
|
|
98
|
+
row-gap: var(--fs-footer-spacing-vertical-notebook);
|
|
99
|
+
padding-top: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-fs-footer-social],
|
|
104
|
+
[data-fs-payment-methods] {
|
|
105
|
+
@include media(">=notebook") {
|
|
106
|
+
grid-column: 11 / span 2;
|
|
107
|
+
margin-left: calc(-1 * var(--fs-spacing-3));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-fs-footer-social] {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
|
|
115
|
+
@include media("<notebook") {
|
|
116
|
+
padding: var(--fs-footer-spacing-vertical-mobile) 0 var(--fs-spacing-3);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-fs-list] {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
|
|
123
|
+
@include media(">=notebook") {
|
|
124
|
+
justify-content: space-between;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-fs-link] {
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
min-width: var(--fs-control-tap-size);
|
|
132
|
+
min-height: var(--fs-control-tap-size);
|
|
133
|
+
padding: var(--fs-spacing-1);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-fs-payment-methods] {
|
|
139
|
+
@include media("<notebook") {
|
|
140
|
+
margin: var(--fs-footer-spacing-vertical-mobile) auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@include media(">=notebook") {
|
|
144
|
+
order: 3;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-fs-icon] {
|
|
149
|
+
@include media(">=notebook") {
|
|
150
|
+
grid-column: span 2;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-fs-footer-copyright] {
|
|
155
|
+
p + p {
|
|
156
|
+
margin: var(--fs-spacing-2) auto;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
address {
|
|
160
|
+
font-style: normal;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@include media(">=notebook") {
|
|
164
|
+
grid-column: span 6;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-fs-footer-links-columns] {
|
|
169
|
+
display: grid;
|
|
170
|
+
grid-template-columns: repeat(auto-fit, minmax(0, auto));
|
|
171
|
+
grid-gap: var(--fs-footer-spacing-horizontal-notebook);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&[data-fs-footer-links] {
|
|
175
|
+
[data-fs-link] {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
padding-left: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@include media(">=notebook") {
|
|
181
|
+
grid-column: span 9;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@include media(">=desktop") {
|
|
185
|
+
grid-column: span 8;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// --------------------------------------------------------
|
|
190
|
+
// Variants Styles
|
|
191
|
+
// --------------------------------------------------------
|
|
192
|
+
|
|
193
|
+
&[data-fs-footer-incentives="true"] {
|
|
194
|
+
@include media(">=notebook") {
|
|
195
|
+
padding-top: 0;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:not([data-fs-footer-social="true"]) {
|
|
200
|
+
[data-fs-footer-note]::before {
|
|
201
|
+
@include media("<notebook") {
|
|
202
|
+
border-color: transparent;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-fs-footer-links] {
|
|
207
|
+
@include media(">=notebook") {
|
|
208
|
+
grid-column: span 12;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:not([data-fs-footer-payment-methods="true"]) [data-fs-footer-copyright] {
|
|
214
|
+
@include media(">=notebook") {
|
|
215
|
+
grid-column: span 10;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
[data-fs-incentives] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Incentives
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-incentives-bkg-color : var(--fs-color-primary-bkg-light);
|
|
8
|
+
|
|
9
|
+
--fs-incentives-gap : var(--fs-spacing-4);
|
|
10
|
+
--fs-incentives-padding-top : var(--fs-incentives-gap);
|
|
11
|
+
--fs-incentives-padding-bottom : var(--fs-incentives-gap);
|
|
12
|
+
|
|
13
|
+
--fs-incentives-border-color : var(--fs-border-color-light);
|
|
14
|
+
--fs-incentives-border-width : var(--fs-border-width);
|
|
15
|
+
|
|
16
|
+
// Title
|
|
17
|
+
--fs-incentives-title-size : var(--fs-text-size-1);
|
|
18
|
+
--fs-incentives-title-weight : var(--fs-text-weight-bold);
|
|
19
|
+
--fs-incentives-title-line-height : 1.42;
|
|
20
|
+
--fs-incentives-title-color : var(--fs-color-text);
|
|
21
|
+
|
|
22
|
+
// Description
|
|
23
|
+
--fs-incentives-description-size : var(--fs-incentives-title-size);
|
|
24
|
+
--fs-incentives-description-line-height : 1.14;
|
|
25
|
+
--fs-incentives-description-color : var(--fs-incentives-title-color);
|
|
26
|
+
|
|
27
|
+
// Incentive Icon
|
|
28
|
+
--fs-incentives-icon-color : var(--fs-incentives-title-color);
|
|
29
|
+
|
|
30
|
+
// --------------------------------------------------------
|
|
31
|
+
// Structural Styles
|
|
32
|
+
// --------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
padding-top: var(--fs-incentives-padding-top);
|
|
37
|
+
padding-bottom: var(--fs-incentives-padding-bottom);
|
|
38
|
+
|
|
39
|
+
[data-fs-list] {
|
|
40
|
+
display: flex;
|
|
41
|
+
width: fit-content;
|
|
42
|
+
overflow-x: auto;
|
|
43
|
+
overflow-y: hidden;
|
|
44
|
+
|
|
45
|
+
@include media(">=notebook") {
|
|
46
|
+
justify-content: center;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-fs-incentive] {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
|
|
56
|
+
@include media("<notebook") {
|
|
57
|
+
row-gap: var(--fs-spacing-0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include media(">=notebook") {
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
|
|
63
|
+
[data-fs-incentive-content] {
|
|
64
|
+
margin-left: var(--fs-spacing-2);
|
|
65
|
+
text-align: left;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-fs-incentive-title] {
|
|
71
|
+
font-size: var(--fs-incentives-title-size);
|
|
72
|
+
font-weight: var(--fs-incentives-title-weight);
|
|
73
|
+
line-height: var(--fs-incentives-title-line-height);
|
|
74
|
+
color: var(--fs-incentives-title-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-fs-incentive-description] {
|
|
78
|
+
display: block;
|
|
79
|
+
font-size: var(--fs-incentives-description-size);
|
|
80
|
+
line-height: var(--fs-incentives-description-line-height);
|
|
81
|
+
color: var(--fs-incentives-description-color);
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-fs-incentive-content] {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-fs-incentive-icon] {
|
|
90
|
+
color: var(--fs-incentives-icon-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// --------------------------------------------------------
|
|
94
|
+
// Variants Styles
|
|
95
|
+
// --------------------------------------------------------
|
|
96
|
+
|
|
97
|
+
&[data-fs-incentives-colored="true"] {
|
|
98
|
+
background-color: var(--fs-incentives-bkg-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-fs-incentives-variant="vertical"] {
|
|
102
|
+
ul {
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
li:not(:last-child) {
|
|
107
|
+
padding-bottom: var(--fs-incentives-gap);
|
|
108
|
+
margin-bottom: var(--fs-incentives-gap);
|
|
109
|
+
border-bottom: var(--fs-incentives-border-width) solid var(--fs-incentives-border-color);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&[data-fs-incentives-variant="horizontal"] {
|
|
114
|
+
li:not(:last-child) {
|
|
115
|
+
padding-right: var(--fs-incentives-gap);
|
|
116
|
+
margin-right: var(--fs-incentives-gap);
|
|
117
|
+
border-right: var(--fs-incentives-border-width) solid var(--fs-incentives-border-color);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
// Structural Styles
|
|
41
41
|
// --------------------------------------------------------
|
|
42
42
|
|
|
43
|
-
position: sticky;
|
|
44
|
-
top: 0;
|
|
45
|
-
z-index: var(--fs-z-index-high);
|
|
46
43
|
display: flex;
|
|
47
44
|
flex-direction: column;
|
|
48
45
|
justify-content: center;
|
|
@@ -183,6 +180,7 @@
|
|
|
183
180
|
}
|
|
184
181
|
|
|
185
182
|
[data-fs-navbar-header] {
|
|
183
|
+
z-index: var(--fs-z-index-top);
|
|
186
184
|
padding: var(--fs-navbar-header-padding);
|
|
187
185
|
overflow-x: clip;
|
|
188
186
|
background-color: var(--fs-navbar-bkg-color);
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
[data-fs-newsletter] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Newsletter
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-newsletter-padding : var(--fs-spacing-4) var(--fs-spacing-1) var(--fs-spacing-5) var(--fs-spacing-1);
|
|
8
|
+
--fs-newsletter-bkg : var(--fs-color-primary-bkg);
|
|
9
|
+
--fs-newsletter-text-color : var(--fs-color-text-inverse);
|
|
10
|
+
|
|
11
|
+
// Title
|
|
12
|
+
--fs-newsletter-title-size : var(--fs-text-size-title-section);
|
|
13
|
+
--fs-newsletter-title-weight : var(--fs-text-weight-bold);
|
|
14
|
+
|
|
15
|
+
// Card
|
|
16
|
+
--fs-newsletter-card-border-radius : var(--fs-border-radius);
|
|
17
|
+
|
|
18
|
+
// --------------------------------------------------------
|
|
19
|
+
// Structural Styles
|
|
20
|
+
// --------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: var(--fs-newsletter-padding);
|
|
27
|
+
color: var(--fs-newsletter-text-color);
|
|
28
|
+
background-color: var(--fs-newsletter-bkg);
|
|
29
|
+
|
|
30
|
+
[data-fs-newsletter-form] {
|
|
31
|
+
@include media(">=notebook") {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(2, 1fr);
|
|
34
|
+
column-gap: var(--fs-spacing-8);
|
|
35
|
+
padding-top: var(--fs-spacing-6);
|
|
36
|
+
padding-bottom: var(--fs-spacing-6);
|
|
37
|
+
|
|
38
|
+
[data-fs-newsletter-header] {
|
|
39
|
+
align-content: flex-start;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-fs-newsletter-controls] {
|
|
44
|
+
@include media(">=notebook") {
|
|
45
|
+
grid-template-columns: repeat(3, 1fr);
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
|
|
48
|
+
[data-fs-input-field] {
|
|
49
|
+
grid-column: 1 / span 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-fs-button-inverse] {
|
|
53
|
+
grid-column: 3;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-fs-newsletter-addendum] {
|
|
57
|
+
grid-column: 1 / span 3;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-fs-newsletter-header] {
|
|
64
|
+
display: grid;
|
|
65
|
+
row-gap: var(--fs-spacing-2);
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
text-align: center;
|
|
68
|
+
|
|
69
|
+
@include media(">=notebook") {
|
|
70
|
+
text-align: left;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-fs-newsletter-header] h3 {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: var(--fs-spacing-5) auto;
|
|
77
|
+
column-gap: var(--fs-spacing-1);
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
font-size: var(--fs-newsletter-title-size);
|
|
81
|
+
font-weight: var(--fs-newsletter-title-weight);
|
|
82
|
+
color: var(--fs-newsletter-text-color);
|
|
83
|
+
|
|
84
|
+
@include media(">=notebook") {
|
|
85
|
+
justify-content: left;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-fs-newsletter-controls] {
|
|
90
|
+
display: grid;
|
|
91
|
+
row-gap: var(--fs-spacing-3);
|
|
92
|
+
margin-top: var(--fs-spacing-4);
|
|
93
|
+
|
|
94
|
+
[data-fs-button-inverse] {
|
|
95
|
+
margin-top: var(--fs-spacing-3);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-fs-newsletter-addendum] {
|
|
100
|
+
text-align: center;
|
|
101
|
+
|
|
102
|
+
@include media(">=notebook") {
|
|
103
|
+
text-align: left;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// --------------------------------------------------------
|
|
108
|
+
// Variants Styles
|
|
109
|
+
// --------------------------------------------------------
|
|
110
|
+
|
|
111
|
+
&[data-fs-newsletter="card"] {
|
|
112
|
+
text-align: center;
|
|
113
|
+
border-radius: var(--fs-newsletter-card-border-radius);
|
|
114
|
+
|
|
115
|
+
[data-fs-newsletter-header] {
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include media(">=notebook") {
|
|
120
|
+
[data-fs-newsletter-form] {
|
|
121
|
+
display: block;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-fs-newsletter-controls] {
|
|
125
|
+
margin-top: var(--fs-spacing-4);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-fs-newsletter-header] h3 {
|
|
130
|
+
justify-content: center;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
[data-fs-product-details] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Product Details
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-product-details-vertical-spacing : var(--fs-spacing-4);
|
|
8
|
+
|
|
9
|
+
--fs-product-details-section-border-radius : var(--fs-border-radius);
|
|
10
|
+
--fs-product-details-section-border-color : var(--fs-border-color-light);
|
|
11
|
+
--fs-product-details-section-border-width : var(--fs-border-width);
|
|
12
|
+
|
|
13
|
+
// --------------------------------------------------------
|
|
14
|
+
// Structural Styles
|
|
15
|
+
// --------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
|
|
19
|
+
[data-fs-product-details-body] {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
row-gap: var(--fs-product-details-vertical-spacing);
|
|
23
|
+
|
|
24
|
+
@include media(">=tablet") {
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-template-columns: repeat(12, 1fr);
|
|
27
|
+
row-gap: 0;
|
|
28
|
+
column-gap: var(--fs-product-details-vertical-spacing);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-fs-product-details-section] {
|
|
33
|
+
height: fit-content;
|
|
34
|
+
|
|
35
|
+
[data-fs-buy-button] {
|
|
36
|
+
width: 100%;
|
|
37
|
+
margin-top: var(--fs-spacing-3);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-fs-price] {
|
|
41
|
+
display: block;
|
|
42
|
+
|
|
43
|
+
&[data-fs-price-variant="spot"] {
|
|
44
|
+
margin: 0;
|
|
45
|
+
font-weight: var(--fs-text-weight-black);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include media(">=tablet") {
|
|
50
|
+
padding: var(--fs-spacing-3);
|
|
51
|
+
border: var(--fs-product-details-section-border-width) solid var(--fs-product-details-section-border-color);
|
|
52
|
+
|
|
53
|
+
&:not(:first-child) {
|
|
54
|
+
border-top: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include media(">=notebook") {
|
|
59
|
+
padding: var(--fs-product-details-vertical-spacing) var(--fs-spacing-5);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-fs-product-details-title],
|
|
64
|
+
[data-fs-product-details-info] {
|
|
65
|
+
@include media(">=tablet") {
|
|
66
|
+
grid-column: 8 / span 5;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@include media(">=notebook") {
|
|
71
|
+
grid-column: 9 / span 4;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// -----------------------------
|
|
76
|
+
// Title Section
|
|
77
|
+
// -----------------------------
|
|
78
|
+
|
|
79
|
+
[data-fs-product-details-title] {
|
|
80
|
+
@include media(">=tablet") {
|
|
81
|
+
border-bottom: 0;
|
|
82
|
+
border-radius: var(--fs-product-details-section-border-radius) var(--fs-product-details-section-border-radius) 0 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// -----------------------------
|
|
87
|
+
// Info Section
|
|
88
|
+
// -----------------------------
|
|
89
|
+
|
|
90
|
+
[data-fs-product-details-info] {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
row-gap: var(--fs-product-details-vertical-spacing);
|
|
94
|
+
|
|
95
|
+
@include media(">=tablet") {
|
|
96
|
+
grid-row: span 5;
|
|
97
|
+
row-gap: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Settings
|
|
102
|
+
|
|
103
|
+
[data-fs-product-details-settings] {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
row-gap: var(--fs-product-details-vertical-spacing);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[data-fs-product-details-selectors] {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
row-gap: var(--fs-product-details-vertical-spacing);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-fs-product-details-values] {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Shipping
|
|
121
|
+
|
|
122
|
+
[data-fs-product-details-shipping] {
|
|
123
|
+
@include media(">=tablet") {
|
|
124
|
+
border-radius: 0 0 var(--fs-product-details-section-border-radius) var(--fs-product-details-section-border-radius);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// -----------------------------
|
|
129
|
+
// Gallery Section
|
|
130
|
+
// -----------------------------
|
|
131
|
+
|
|
132
|
+
[data-fs-product-details-gallery] {
|
|
133
|
+
@include media(">=tablet") {
|
|
134
|
+
grid-row: 1 / span 3;
|
|
135
|
+
grid-column: span 7;
|
|
136
|
+
max-height: 23.75rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@include media(">tablet", "<notebook") {
|
|
140
|
+
max-height: 35rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@include media(">=notebook") {
|
|
144
|
+
max-height: 33.125rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&[data-fs-image-gallery="without-selector"] {
|
|
148
|
+
@include media(">=notebook") {
|
|
149
|
+
grid-row-end: span 4;
|
|
150
|
+
grid-column: span 8;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&[data-fs-image-gallery="with-selector"] {
|
|
155
|
+
@include media(">=notebook") {
|
|
156
|
+
grid-row: 1 / span 4;
|
|
157
|
+
grid-column: span 8;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// -----------------------------
|
|
163
|
+
// Content Section
|
|
164
|
+
// -----------------------------
|
|
165
|
+
|
|
166
|
+
[data-fs-product-details-content] {
|
|
167
|
+
@include media(">=tablet") {
|
|
168
|
+
grid-row: span 10;
|
|
169
|
+
grid-column: span 7;
|
|
170
|
+
margin-top: var(--fs-spacing-7);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@include media(">=notebook") {
|
|
174
|
+
grid-column: span 8;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-fs-image-gallery="with-selector"] ~ [data-fs-product-details-content] {
|
|
179
|
+
@include media(">=notebook") {
|
|
180
|
+
grid-column: 2 / 9;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|