Skip to content

Commit 6353aef

Browse files
committed
Added FluentCart Support
1 parent 34d1f9a commit 6353aef

File tree

23 files changed

+898
-110
lines changed

23 files changed

+898
-110
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs/PERFORMANCE-OPTIMIZATIONS.md
1+
CLAUDE.md

assets/css/dark-mode.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/fluentcart.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*--------------------------------------------------------------
2+
>>> TABLE OF CONTENTS:
3+
----------------------------------------------------------------
4+
# Shop Page
5+
# Single Product
6+
# Cart Page
7+
--------------------------------------------------------------*/
8+
9+
/*--------------------------------------------------------------
10+
# Shop Page
11+
--------------------------------------------------------------*/
12+
@media screen and (max-width: 60em) {
13+
.wp-block-fluent-cart-products {
14+
margin: 2rem 0;
15+
}
16+
}
17+
18+
/* Hide FluentCart's duplicate archive title */
19+
.tax-product-categories .fc-archive-header-wrap,
20+
.tax-product-brands .fc-archive-header-wrap {
21+
display: none !important;
22+
}
23+
24+
/*--------------------------------------------------------------
25+
# Single Product
26+
--------------------------------------------------------------*/
27+
/* Hide duplicate title and featured image */
28+
.single-fluent-products .entry-header .entry-title,
29+
.single-fluent-products .entry-header-post,
30+
.single-fluent-products .post-thumbnail,
31+
.single-fluent-products .featured-wrap {
32+
display: none !important;
33+
}
34+
35+
/* Ensure proper spacing */
36+
.single-fluent-products .entry-content {
37+
margin-top: 0;
38+
}
39+
40+
/*--------------------------------------------------------------
41+
# Cart Page
42+
--------------------------------------------------------------*/
43+
44+
.fc-cart-item,
45+
.fluent-cart-cart-list-item-wrapper {
46+
background: var(--color-theme-white-box);
47+
border-color: var(--global-border-color);
48+
}
49+
50+
.fc-cart-item:first-of-type,
51+
.fluent-cart-cart-list-item-wrapper:first-of-type {
52+
border-radius: var(--global-border-radius) var(--global-border-radius) 0 0;
53+
}
54+
55+
.fluent-cart-cart-total-wrapper {
56+
background: var(--color-theme-white-box);
57+
border-radius: 0 0 var(--global-border-radius) var(--global-border-radius);
58+
}
59+
60+
.fluent-cart-cart-cart-button-wrap {
61+
margin: 1rem 0;
62+
}
63+
64+
@media screen and (max-width: 480px) {
65+
.fc-cart-item,
66+
.fluent-cart-cart-list-item-wrapper {
67+
flex-flow: row wrap;
68+
}
69+
}

assets/css/fluentcart.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/global.css

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,74 +189,80 @@ body.elementor-editor-active .site-wrapper {
189189

190190
@media (--sidebar-query) {
191191

192-
.has-sidebar-right:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .site-wrapper,
192+
.has-sidebar-right:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
193193
.has-sidebar-right.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
194194
.has-sidebar-right.bpsh-buddypress .site-wrapper,
195195
.has-buddypress-sidebar-right:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
196196
.has-bbpress-sidebar-right.bbpress:not(.buddypress) .site-wrapper,
197197
.has-woocommerce-sidebar-right .site-wrapper,
198+
.has-fluentcart-sidebar-right.single-fluent-products .site-wrapper,
198199
.has-sidebar-right.buddypress.search-results .site-wrapper {
199200
display: grid;
200201
grid-template-columns: 3fr 260px;
201202
grid-gap: 2rem;
202203
justify-content: center;
203204
}
204205

205-
.has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .site-wrapper,
206+
.has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
206207
.has-sidebar-left.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
207208
.has-sidebar-left.bpsh-buddypress .site-wrapper,
208209
.has-buddypress-sidebar-left:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
209210
.has-bbpress-sidebar-left.bbpress:not(.buddypress) .site-wrapper,
210211
.has-woocommerce-sidebar-left .site-wrapper,
212+
.has-fluentcart-sidebar-left.single-fluent-products .site-wrapper,
211213
.has-sidebar-left.buddypress.search-results .site-wrapper {
212214
display: grid;
213215
grid-template-columns: 260px 3fr;
214216
grid-gap: 2rem;
215217
justify-content: center;
216218
}
217219

218-
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .site-wrapper,
220+
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-wrapper,
219221
.has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container) .site-wrapper,
220222
.has-sidebar-both.bpsh-buddypress .site-wrapper,
221223
.has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-wrapper,
222224
.has-bbpress-sidebar-both.bbpress:not(.buddypress) .site-wrapper,
223225
.has-woocommerce-sidebar-both .site-wrapper,
226+
.has-fluentcart-sidebar-both.single-fluent-products .site-wrapper,
224227
.has-sidebar-both.buddypress.search-results .site-wrapper {
225228
display: grid;
226229
grid-template-columns: 260px 2fr 260px;
227230
grid-gap: 1.5rem;
228231
justify-content: center;
229232
}
230233

231-
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .primary-sidebar,
234+
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .primary-sidebar,
232235
.has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .primary-sidebar,
233236
.has-sidebar-both.bpsh-buddypress .primary-sidebar,
234237
.has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .primary-sidebar,
235238
.has-bbpress-sidebar-both.bbpress:not(.buddypress) .primary-sidebar,
236239
.has-woocommerce-sidebar-both .primary-sidebar,
240+
.has-fluentcart-sidebar-both.single-fluent-products .primary-sidebar,
237241
.has-sidebar-both.buddypress.search-results .primary-sidebar {
238242
padding: 0;
239243
grid-column: 3;
240244
min-width: 0;
241245
}
242246

243-
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .site-main,
247+
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-main,
244248
.has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-main,
245249
.has-sidebar-both.bpsh-buddypress .site-main,
246250
.has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-main,
247251
.has-bbpress-sidebar-both.bbpress:not(.buddypress) .site-main,
248252
.has-woocommerce-sidebar-both .site-main,
253+
.has-fluentcart-sidebar-both.single-fluent-products .site-main,
249254
.has-sidebar-both.buddypress.search-results .site-main {
250255
grid-column: 2;
251256
min-width: 0;
252257
}
253258

254-
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .primary-sidebar,
259+
.has-sidebar-both:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .primary-sidebar,
255260
.has-sidebar-both.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .primary-sidebar,
256261
.has-sidebar-both.bpsh-buddypress .primary-sidebar,
257262
.has-buddypress-sidebar-both:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .primary-sidebar,
258263
.has-bbpress-sidebar-both.bbpress:not(.buddypress) .primary-sidebar,
259264
.has-woocommerce-sidebar-both .primary-sidebar,
265+
.has-fluentcart-sidebar-both.single-fluent-products .primary-sidebar,
260266
.has-sidebar-both.buddypress.search-results .primary-sidebar {
261267
grid-column: 3;
262268
min-width: 0;
@@ -267,25 +273,29 @@ body.elementor-editor-active .site-wrapper {
267273
}
268274

269275
.site-main,
270-
.has-woocommerce-sidebar-right .site-wrapper>.content-area {
276+
.has-woocommerce-sidebar-right .site-wrapper>.content-area,
277+
.has-fluentcart-sidebar-right.single-fluent-products .site-wrapper>.content-area {
271278
grid-column: 1;
272279
min-width: 0;
273280
}
274281

275-
.has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress) .site-main,
282+
.has-sidebar-left:not(.buddypress):not(.bbpress):not(.woocommerce):not(.woocommerce-page):not(.page-template-full-width-container):not(.post-template-post-full-large):not(.post-template-post-full-small):not(.mediapress):not(.single-fluent-products) .site-main,
276283
.has-sidebar-left.buddyx-dokan.woocommerce:not(.buddypress):not(.bbpress):not(.woocommerce-page):not(.page-template-full-width-container) .site-main,
277284
.has-sidebar-left.bpsh-buddypress .site-main,
278285
.has-buddypress-sidebar-left:not(.bp-user):not(.single-item):not(.group-create):not(.page-template-full-width-container) .site-main,
279286
.has-bbpress-sidebar-left.bbpress:not(.buddypress) .site-main,
280287
.has-woocommerce-sidebar-left .site-main,
288+
.has-fluentcart-sidebar-left.single-fluent-products .site-main,
281289
.has-sidebar-left.buddypress.search-results .site-main {
282290
grid-column: 2;
283291
min-width: 0;
284292
}
285293

286294
.primary-sidebar,
287295
.has-woocommerce-sidebar-left .site-wrapper>.content-area,
288-
.has-woocommerce-sidebar-both .site-wrapper>.content-area {
296+
.has-woocommerce-sidebar-both .site-wrapper>.content-area,
297+
.has-fluentcart-sidebar-left.single-fluent-products .site-wrapper>.content-area,
298+
.has-fluentcart-sidebar-both.single-fluent-products .site-wrapper>.content-area {
289299
grid-column: 2;
290300
min-width: 0;
291301
}

assets/css/global.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/learndash.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)