@sociallane/elements 1.0.9 → 1.0.10
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/admin/views/onboarding.php +1 -1
- package/admin/views/partials/step-complete.php +1 -1
- package/admin/views/partials/step-requirements.php +2 -2
- package/admin/views/settings.php +1 -1
- package/admin/views/setup-widget-catalog.php +2 -2
- package/assets/css/tailwind.css +1 -28
- package/elements/button/button.php +13 -9
- package/elements/button/templates/render.php +8 -24
- package/includes/button-presets.php +15 -5
- package/package.json +1 -1
- package/packages/core/assets/css/tailwind.css +1 -28
- package/packages/core/assets/dist/.vite/manifest.json +15 -3
- package/packages/core/assets/dist/animations-BfenTMbz.js +1 -0
- package/packages/core/assets/dist/tailwind-BBMzypmd.css +1 -0
- package/packages/core/assets/dist/vendor-gsap-W43tiS41.js +37 -0
- package/packages/core/assets/dist/vendor-lenis-L8jc5Amd.js +1 -0
- package/packages/core/includes/helpers.php +3 -0
- package/packages/core/package.json +1 -1
- package/packages/core/vite.config.js +25 -5
- package/packages/widgets/bento-grid/data/view.php +8 -8
- package/packages/widgets/bento-grid/templates/partials/tcsr-row1-left.php +1 -1
- package/packages/widgets/bento-grid/templates/partials/two-row-deploys.php +1 -1
- package/packages/widgets/bento-grid/templates/partials/two-row-overview.php +1 -1
- package/packages/widgets/bento-grid/templates/partials/two-row-security.php +1 -1
- package/packages/widgets/bento-grid-4/data/view.php +8 -8
- package/packages/widgets/bento-grid-4/templates/partials/tcsr-row1-left.php +1 -1
- package/packages/widgets/bento-grid-4/templates/partials/two-row-deploys.php +1 -1
- package/packages/widgets/bento-grid-4/templates/partials/two-row-overview.php +1 -1
- package/packages/widgets/bento-grid-4/templates/partials/two-row-security.php +1 -1
- package/packages/widgets/bento-grid-5/data/view.php +8 -8
- package/packages/widgets/bento-grid-5/templates/partials/tcsr-row1-left.php +1 -1
- package/packages/widgets/bento-grid-5/templates/partials/two-row-deploys.php +1 -1
- package/packages/widgets/bento-grid-5/templates/partials/two-row-overview.php +1 -1
- package/packages/widgets/bento-grid-5/templates/partials/two-row-security.php +1 -1
- package/packages/widgets/bento-grid-6/data/view.php +8 -8
- package/packages/widgets/bento-grid-6/templates/partials/tcsr-row1-left.php +1 -1
- package/packages/widgets/bento-grid-6/templates/partials/two-row-deploys.php +1 -1
- package/packages/widgets/bento-grid-6/templates/partials/two-row-overview.php +1 -1
- package/packages/widgets/bento-grid-6/templates/partials/two-row-security.php +1 -1
- package/packages/widgets/bento-portfolio/data/view.php +3 -3
- package/packages/widgets/bento-portfolio/templates/partials/portfolio-card.php +2 -2
- package/packages/widgets/bento-portfolio-4/data/view.php +3 -3
- package/packages/widgets/bento-portfolio-4/templates/partials/portfolio-card.php +2 -2
- package/packages/widgets/bento-portfolio-5/data/view.php +3 -3
- package/packages/widgets/bento-portfolio-5/templates/partials/portfolio-card.php +2 -2
- package/packages/widgets/bento-portfolio-6/data/view.php +3 -3
- package/packages/widgets/bento-portfolio-6/templates/partials/portfolio-card.php +2 -2
- package/packages/widgets/blog-grid/data/view.php +1 -1
- package/packages/widgets/card-hover-reveal/data/view.php +1 -1
- package/packages/widgets/content-block/data/view.php +4 -4
- package/packages/widgets/cta-banner/data/view.php +3 -3
- package/packages/widgets/cta-banner/templates/wrapper.php +2 -2
- package/packages/widgets/cta-split/data/view.php +4 -4
- package/packages/widgets/faq-centered/data/view.php +7 -7
- package/packages/widgets/faq-centered/templates/partials/accordion.php +4 -4
- package/packages/widgets/faq-split/data/view.php +7 -7
- package/packages/widgets/faq-split/templates/partials/accordion.php +4 -4
- package/packages/widgets/faq-stacked/data/view.php +7 -7
- package/packages/widgets/faq-stacked/templates/partials/accordion.php +4 -4
- package/packages/widgets/feature-grid/data/view.php +8 -8
- package/packages/widgets/feature-grid-centered/data/view.php +8 -8
- package/packages/widgets/feature-list/data/view.php +4 -4
- package/packages/widgets/feature-list-cta/data/view.php +6 -6
- package/packages/widgets/feature-list-cta/templates/partials/feature-item.php +1 -1
- package/packages/widgets/footer/data/view.php +4 -4
- package/packages/widgets/footer-brand/data/view.php +15 -15
- package/packages/widgets/footer-links-contact/data/view.php +2 -2
- package/packages/widgets/form-contact/data/view.php +4 -4
- package/packages/widgets/grid-team/data/view.php +4 -4
- package/packages/widgets/grid-team/templates/partials/team-card.php +1 -1
- package/packages/widgets/hero-announcement/data/view.php +1 -1
- package/packages/widgets/hero-centered-image/data/view.php +1 -1
- package/packages/widgets/hero-centered-image/templates/wrapper.php +1 -1
- package/packages/widgets/hero-collage/data/view.php +3 -3
- package/packages/widgets/hero-overlay/data/view.php +1 -1
- package/packages/widgets/hero-overlay-single/data/view.php +1 -1
- package/packages/widgets/hero-overlay-slider/data/view.php +1 -1
- package/packages/widgets/hero-saas-centered/data/view.php +5 -5
- package/packages/widgets/hero-saas-split/data/view.php +5 -5
- package/packages/widgets/hero-saas-stacked/data/view.php +5 -5
- package/packages/widgets/hero-split/data/view.php +3 -3
- package/packages/widgets/hero-stacked-image/templates/wrapper.php +4 -4
- package/packages/widgets/intro-text/data/view.php +3 -3
- package/packages/widgets/logo-grid-centered/data/view.php +4 -4
- package/packages/widgets/logo-grid-row/data/view.php +4 -4
- package/packages/widgets/logo-grid-split/data/view.php +4 -4
- package/packages/widgets/nav-centered/data/view.php +8 -8
- package/packages/widgets/nav-compact/data/view.php +8 -8
- package/packages/widgets/nav-default/data/view.php +8 -8
- package/packages/widgets/nav-floating/data/view.php +8 -8
- package/packages/widgets/nav-minimal/data/view.php +8 -8
- package/packages/widgets/newsletter/data/view.php +5 -5
- package/packages/widgets/newsletter-card/data/view.php +5 -5
- package/packages/widgets/newsletter-section/data/view.php +5 -5
- package/packages/widgets/outreach-dashboard/data/view.php +2 -2
- package/packages/widgets/outreach-dashboard/templates/partials/card-meetings.php +1 -1
- package/packages/widgets/page-hero-center/data/view.php +3 -3
- package/packages/widgets/page-hero-left/data/view.php +3 -3
- package/packages/widgets/pipeline-dashboard/data/view.php +3 -3
- package/packages/widgets/posts-grid/data/view.php +6 -6
- package/packages/widgets/posts-grid/templates/partials/card.php +3 -3
- package/packages/widgets/posts-grid-overlay/data/view.php +6 -6
- package/packages/widgets/posts-grid-overlay/templates/partials/card.php +3 -3
- package/packages/widgets/pricing-table/data/view.php +2 -2
- package/packages/widgets/sales-dashboard/data/view.php +3 -3
- package/packages/widgets/sales-dashboard/templates/partials/card-competitors.php +1 -1
- package/packages/widgets/sales-dashboard/templates/partials/card-feature.php +6 -6
- package/packages/widgets/section-stats/data/view.php +3 -3
- package/packages/widgets/section-stats/templates/partials/stat-card.php +1 -1
- package/packages/widgets/simple-page-hero/data/view.php +3 -3
- package/packages/widgets/social-proof/data/view.php +5 -5
- package/packages/widgets/social-proof/templates/partials/layout-trust.php +2 -2
- package/packages/widgets/social-proof/templates/partials/stat-card.php +1 -1
- package/packages/widgets/social-proof-trust/data/view.php +12 -12
- package/packages/widgets/social-proof-trust/templates/partials/layout-trust.php +2 -2
- package/packages/widgets/social-proof-trust/templates/partials/stat-card.php +1 -1
- package/packages/widgets/testimonials-bento/data/view.php +1 -1
- package/packages/widgets/testimonials-grid/data/view.php +1 -1
- package/packages/widgets/testimonials-masonry/data/view.php +1 -1
- package/packages/widgets/widget-filter/data/view.php +1 -1
- package/packages/widgets/widget-filter/templates/wrapper.php +63 -2
- package/packages/widgets/widget-filter/widget-filter.php +1 -1
- package/vite.config.js +25 -5
- package/widgets/bento-grid/data/view.php +8 -8
- package/widgets/bento-grid/templates/partials/tcsr-row1-left.php +1 -1
- package/widgets/bento-grid/templates/partials/two-row-deploys.php +1 -1
- package/widgets/bento-grid/templates/partials/two-row-overview.php +1 -1
- package/widgets/bento-grid/templates/partials/two-row-security.php +1 -1
- package/widgets/bento-portfolio/data/view.php +3 -3
- package/widgets/bento-portfolio/templates/partials/portfolio-card.php +2 -2
- package/widgets/blog-grid/data/view.php +1 -1
- package/widgets/card-hover-reveal/data/view.php +1 -1
- package/widgets/content-block/data/view.php +4 -4
- package/widgets/cta-banner/data/view.php +3 -3
- package/widgets/cta-banner/templates/wrapper.php +2 -2
- package/widgets/cta-split/data/view.php +4 -4
- package/widgets/faq/data/view.php +7 -7
- package/widgets/faq/templates/partials/accordion.php +4 -4
- package/widgets/feature-grid/data/view.php +8 -8
- package/widgets/feature-list/data/view.php +4 -4
- package/widgets/feature-list-cta/data/view.php +6 -6
- package/widgets/feature-list-cta/templates/partials/feature-item.php +1 -1
- package/widgets/footer/data/view.php +4 -4
- package/widgets/footer-brand/data/view.php +15 -15
- package/widgets/footer-links-contact/data/view.php +2 -2
- package/widgets/form-contact/data/view.php +4 -4
- package/widgets/grid-posts/data/view.php +6 -6
- package/widgets/grid-posts/templates/partials/card.php +3 -3
- package/widgets/grid-team/data/view.php +4 -4
- package/widgets/grid-team/templates/partials/team-card.php +1 -1
- package/widgets/grid-testimonials/data/view.php +1 -1
- package/widgets/hero-announcement/data/view.php +1 -1
- package/widgets/hero-centered-image/data/view.php +1 -1
- package/widgets/hero-centered-image/templates/wrapper.php +1 -1
- package/widgets/hero-collage/data/view.php +3 -3
- package/widgets/hero-overlay/data/view.php +1 -1
- package/widgets/hero-saas/data/view.php +5 -5
- package/widgets/hero-split/data/view.php +3 -3
- package/widgets/hero-stacked-image/templates/wrapper.php +4 -4
- package/widgets/intro-text/data/view.php +2 -2
- package/widgets/logo-grid/data/view.php +4 -4
- package/widgets/newsletter/data/view.php +5 -5
- package/widgets/outreach-dashboard/data/view.php +2 -2
- package/widgets/outreach-dashboard/templates/partials/card-meetings.php +1 -1
- package/widgets/pipeline-dashboard/data/view.php +3 -3
- package/widgets/pricing-table/data/view.php +2 -2
- package/widgets/sales-dashboard/data/view.php +3 -3
- package/widgets/sales-dashboard/templates/partials/card-competitors.php +1 -1
- package/widgets/sales-dashboard/templates/partials/card-feature.php +6 -6
- package/widgets/section-stats/data/view.php +3 -3
- package/widgets/section-stats/templates/partials/stat-card.php +1 -1
- package/widgets/simple-page-hero/data/view.php +3 -3
- package/widgets/social-proof/data/view.php +12 -12
- package/widgets/social-proof/templates/partials/layout-trust.php +2 -2
- package/widgets/social-proof/templates/partials/stat-card.php +1 -1
- package/packages/core/assets/dist/animations-BySooxN8.js +0 -37
- package/packages/core/assets/dist/tailwind-BMzFIA_O.css +0 -1
|
@@ -56,14 +56,14 @@ function prepare_feature_grid_centered_view( array $settings, string $widget_id
|
|
|
56
56
|
|
|
|
57
57
|
*/
|
|
58
58
|
$classes = [
|
|
59
|
-
'section' => 'bg-neutral-100 dark:bg-
|
|
60
|
-
'headline' => 'text-
|
|
61
|
-
'subtitle' => 'text-
|
|
62
|
-
'eyebrow' => 'text-
|
|
63
|
-
'description' => 'text-
|
|
64
|
-
'title' => 'text-
|
|
65
|
-
'link' => 'text-
|
|
66
|
-
'icon_box' => 'bg-
|
|
59
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-900',
|
|
60
|
+
'headline' => 'text-neutral-900 dark:text-neutral-200',
|
|
61
|
+
'subtitle' => 'text-neutral-900 dark:text-neutral-200',
|
|
62
|
+
'eyebrow' => 'text-neutral-900 dark:text-neutral-200',
|
|
63
|
+
'description' => 'text-neutral-900 dark:text-neutral-200',
|
|
64
|
+
'title' => 'text-neutral-900 dark:text-neutral-200',
|
|
65
|
+
'link' => 'text-neutral-900 dark:text-neutral-200 hover:underline focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
66
|
+
'icon_box' => 'bg-neutral-400 dark:bg-neutral-700 text-neutral-900 rounded-lg',
|
|
67
67
|
'icon' => 'w-6 h-6 text-white',
|
|
68
68
|
];
|
|
69
69
|
|
|
@@ -32,10 +32,10 @@ function prepare_feature_list_view( array $settings, string $widget_id ): array
|
|
|
32
32
|
|
|
33
33
|
// Light background (#F8F8F8), title dark grey, list items lighter grey, checkmark teal
|
|
34
34
|
$classes = [
|
|
35
|
-
'section' => 'bg-neutral-100 dark:bg-
|
|
36
|
-
'title' => 'text-
|
|
37
|
-
'item' => 'text-
|
|
38
|
-
'icon' => 'text-
|
|
35
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-900',
|
|
36
|
+
'title' => 'text-neutral-800 dark:text-neutral-100 font-bold font-heading',
|
|
37
|
+
'item' => 'text-neutral-600 dark:text-neutral-300',
|
|
38
|
+
'icon' => 'text-neutral-500 dark:text-neutral-400 shrink-0',
|
|
39
39
|
];
|
|
40
40
|
|
|
41
41
|
return array_merge( $fields, [
|
|
@@ -43,13 +43,13 @@ function prepare_feature_list_cta_view( array $settings, string $widget_id ): ar
|
|
|
43
43
|
|
|
44
44
|
// Light/dark: dual classes for Nav theme switcher (elementor-widget-structure, widget-utility-classes)
|
|
45
45
|
$classes = [
|
|
46
|
-
'section' => 'bg-neutral-100 dark:bg-
|
|
47
|
-
'headline' => 'text-
|
|
48
|
-
'subtitle' => 'text-
|
|
49
|
-
'card_title' => 'text-
|
|
50
|
-
'card_desc' => 'text-neutral-600 dark:text-
|
|
46
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-950',
|
|
47
|
+
'headline' => 'text-neutral-950 dark:text-white',
|
|
48
|
+
'subtitle' => 'text-neutral-950 dark:text-neutral-100/50',
|
|
49
|
+
'card_title' => 'text-neutral-950 dark:text-neutral-300',
|
|
50
|
+
'card_desc' => 'text-neutral-600 dark:text-neutral-100/50',
|
|
51
51
|
'link' => 'text-primary dark:text-primary-light hover:underline focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
52
|
-
'icon' => 'text-primary dark:text-
|
|
52
|
+
'icon' => 'text-primary dark:text-neutral-300',
|
|
53
53
|
];
|
|
54
54
|
|
|
55
55
|
return array_merge( $fields, [
|
|
@@ -20,7 +20,7 @@ $classes = $view['classes'] ?? [];
|
|
|
20
20
|
?>
|
|
21
21
|
<article class="flex flex-col items-center text-center">
|
|
22
22
|
<?php if ( ! empty( $feature['icon']['value'] ) ) : ?>
|
|
23
|
-
<div class="<?php echo esc_attr( $classes['icon'] ?? 'text-
|
|
23
|
+
<div class="<?php echo esc_attr( $classes['icon'] ?? 'text-neutral-300' ); ?> mb-4 [&_.e-icon]:w-12 [&_.e-icon]:h-12" aria-hidden="true">
|
|
24
24
|
<?php \Elementor\Icons_Manager::render_icon( $feature['icon'], [ 'aria-hidden' => 'true', 'class' => 'w-12 h-12' ] ); ?>
|
|
25
25
|
</div>
|
|
26
26
|
<?php endif; ?>
|
|
@@ -99,12 +99,12 @@ function prepare_footer_view( array $settings, string $widget_id ): array {
|
|
|
99
99
|
|
|
|
100
100
|
*/
|
|
101
101
|
$classes = [
|
|
102
|
-
'section' => 'bg-neutral-200 dark:bg-
|
|
103
|
-
'cta_heading' => 'text-
|
|
102
|
+
'section' => 'bg-neutral-200 dark:bg-neutral-900',
|
|
103
|
+
'cta_heading' => 'text-neutral-900 dark:text-neutral-200',
|
|
104
104
|
'cta_primary_class'=> 'focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
105
105
|
'cta_secondary_class' => 'border-neutral-300 dark:border-neutral-500 text-neutral-900 dark:text-white hover:bg-neutral-900 dark:hover:bg-neutral-100 hover:text-white dark:hover:text-neutral-900 focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
106
|
-
'col_heading' => 'text-
|
|
107
|
-
'link' => 'text-
|
|
106
|
+
'col_heading' => 'text-neutral-900 dark:text-neutral-200 font-bold uppercase tracking-wider text-sm',
|
|
107
|
+
'link' => 'text-neutral-600 dark:text-neutral-200 hover:text-neutral-900 dark:hover:text-neutral-100 transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
108
108
|
'copyright' => 'text-neutral-600 dark:text-neutral-400 text-sm',
|
|
109
109
|
'divider' => 'border-neutral-200 dark:border-neutral-700',
|
|
110
110
|
'select_bg' => 'bg-neutral-100 dark:bg-neutral-800 text-neutral-700 dark:text-neutral-300 border-neutral-200 dark:border-neutral-600 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900',
|
|
@@ -88,21 +88,21 @@ function prepare_footer_brand_view( array $settings, string $widget_id ): array
|
|
|
88
88
|
|
|
89
89
|
// Light/dark: dual classes (elementor-widget-structure, widget-utility-classes)
|
|
90
90
|
$classes = [
|
|
91
|
-
'section' => 'bg-white dark:bg-gradient-to-t from-
|
|
92
|
-
'col_heading' => 'text-neutral-900 dark:text-
|
|
93
|
-
'link' => 'text-neutral-600 dark:text-
|
|
94
|
-
'copyright' => 'text-neutral-600 dark:text-
|
|
95
|
-
'divider' => 'border-neutral-200 dark:border-
|
|
96
|
-
'description' => 'text-neutral-600 dark:text-
|
|
97
|
-
'logo_text' => 'text-neutral-900 dark:text-
|
|
98
|
-
'social_icon' => 'text-neutral-600 dark:text-
|
|
99
|
-
'social_href' => 'text-neutral-600 dark:text-
|
|
100
|
-
'social_attrs' => 'text-neutral-600 dark:text-
|
|
101
|
-
'social_aria_label' => 'text-neutral-600 dark:text-
|
|
102
|
-
'social_icon' => 'text-neutral-600 dark:text-
|
|
103
|
-
'social_href' => 'text-neutral-600 dark:text-
|
|
104
|
-
'social_attrs' => 'text-neutral-600 dark:text-
|
|
105
|
-
'social_aria_label' => 'text-neutral-600 dark:text-
|
|
91
|
+
'section' => 'bg-white dark:bg-gradient-to-t from-neutral-900 dark:via-neutral-950 dark:to-neutral-950',
|
|
92
|
+
'col_heading' => 'text-neutral-900 dark:text-neutral-200 font-normal font-heading uppercase tracking-wider text-sm',
|
|
93
|
+
'link' => 'text-neutral-600 dark:text-neutral-200 hover:text-neutral-900 dark:hover:text-white transition-colors',
|
|
94
|
+
'copyright' => 'text-neutral-600 dark:text-neutral-200 text-sm',
|
|
95
|
+
'divider' => 'border-neutral-200 dark:border-neutral-200',
|
|
96
|
+
'description' => 'text-neutral-600 dark:text-neutral-200 text-sm leading-relaxed',
|
|
97
|
+
'logo_text' => 'text-neutral-900 dark:text-neutral-200',
|
|
98
|
+
'social_icon' => 'text-neutral-600 dark:text-neutral-200',
|
|
99
|
+
'social_href' => 'text-neutral-600 dark:text-neutral-200',
|
|
100
|
+
'social_attrs' => 'text-neutral-600 dark:text-neutral-200',
|
|
101
|
+
'social_aria_label' => 'text-neutral-600 dark:text-neutral-200',
|
|
102
|
+
'social_icon' => 'text-neutral-600 dark:text-neutral-200',
|
|
103
|
+
'social_href' => 'text-neutral-600 dark:text-neutral-200',
|
|
104
|
+
'social_attrs' => 'text-neutral-600 dark:text-neutral-200',
|
|
105
|
+
'social_aria_label' => 'text-neutral-600 dark:text-neutral-200',
|
|
106
106
|
];
|
|
107
107
|
|
|
108
108
|
return array_merge( $fields, [
|
|
@@ -117,9 +117,9 @@ function prepare_footer_links_contact_view( array $settings, string $widget_id )
|
|
|
117
117
|
'copyright' => 'text-[#D0D0D0] dark:text-neutral-300 text-sm',
|
|
118
118
|
'logo_link' => 'inline-flex flex-col no-underline rounded focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-[#1C202B] dark:focus:ring-offset-[#15181f]',
|
|
119
119
|
'logo_box' => 'bg-white dark:bg-white inline-block px-3 py-1.5',
|
|
120
|
-
'logo_main' => 'text-
|
|
120
|
+
'logo_main' => 'text-neutral-700 dark:text-neutral-700 font-bold text-xl font-heading',
|
|
121
121
|
'logo_subtitle' => 'text-[#A0A0A0] dark:text-neutral-400 text-xs uppercase tracking-wider mt-1',
|
|
122
|
-
'logo_dot' => 'text-
|
|
122
|
+
'logo_dot' => 'text-neutral-500 dark:text-neutral-400',
|
|
123
123
|
'contact_text' => 'text-[#D0D0D0] dark:text-neutral-300 text-sm',
|
|
124
124
|
'contact_icon' => 'text-[#D0D0D0] dark:text-neutral-300 shrink-0',
|
|
125
125
|
'bottom_link' => 'text-[#D0D0D0] dark:text-neutral-300 hover:text-white dark:hover:text-white text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-[#1C202B] dark:focus:ring-offset-[#15181f] rounded',
|
|
@@ -62,11 +62,11 @@ function prepare_form_contact_view( array $settings, string $widget_id ): array
|
|
|
62
62
|
|
|
63
63
|
// Light/dark: dual classes for Nav theme switcher
|
|
64
64
|
$classes = [
|
|
65
|
-
'section' => 'bg-neutral-200 dark:bg-
|
|
66
|
-
'headline' => 'text-
|
|
67
|
-
'description' => 'text-
|
|
65
|
+
'section' => 'bg-neutral-200 dark:bg-neutral-900',
|
|
66
|
+
'headline' => 'text-neutral-900 dark:text-neutral-200',
|
|
67
|
+
'description' => 'text-neutral-800 dark:text-neutral-200',
|
|
68
68
|
'privacy' => 'text-neutral-600 dark:text-neutral-400',
|
|
69
|
-
'privacy_link' => 'text-neutral-600 dark:text-
|
|
69
|
+
'privacy_link' => 'text-neutral-600 dark:text-neutral-400 font-semibold underline hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-neutral-500 focus:ring-offset-2 focus:ring-offset-neutral-100 dark:focus:ring-offset-neutral-800 rounded',
|
|
70
70
|
'testimonial' => 'text-neutral-900 dark:text-white',
|
|
71
71
|
'quote' => 'text-neutral-700 dark:text-neutral-300',
|
|
72
72
|
'brand_name' => 'text-neutral-900 dark:text-white',
|
|
@@ -49,12 +49,12 @@ function prepare_grid_team_view( array $settings, string $widget_id ): array {
|
|
|
49
49
|
|
|
50
50
|
// Light/dark: dual classes for Nav theme switcher
|
|
51
51
|
$classes = [
|
|
52
|
-
'section' => 'bg-neutral-100 dark:bg-
|
|
53
|
-
'headline' => 'text-
|
|
54
|
-
'subtitle' => 'text-
|
|
52
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-900',
|
|
53
|
+
'headline' => 'text-neutral-900 dark:text-neutral-200',
|
|
54
|
+
'subtitle' => 'text-neutral-900 dark:text-neutral-200',
|
|
55
55
|
'card' => 'bg-neutral-50 dark:bg-neutral-800 rounded-2xl overflow-hidden shadow-lg',
|
|
56
56
|
'name' => 'text-white dark:text-white',
|
|
57
|
-
'title' => 'text-neutral-300 dark:text-
|
|
57
|
+
'title' => 'text-neutral-300 dark:text-neutral-900',
|
|
58
58
|
];
|
|
59
59
|
|
|
60
60
|
return array_merge( $fields, [
|
|
@@ -33,7 +33,7 @@ if ( $has_image ) {
|
|
|
33
33
|
<?php if ( $has_image ) : ?>
|
|
34
34
|
<?php include $elements_path . '/image/templates/render.php'; ?>
|
|
35
35
|
<?php endif; ?>
|
|
36
|
-
<div class="absolute inset-0 bg-
|
|
36
|
+
<div class="absolute inset-0 bg-neutral-700 border-t border-white-100/50 pointer-events-none" aria-hidden="true"></div>
|
|
37
37
|
<div class="absolute bottom-0 left-0 right-0 p-4 md:p-5 text-left">
|
|
38
38
|
<?php if ( $name !== '' ) : ?>
|
|
39
39
|
<p class="<?php echo esc_attr( $classes['name'] ?? 'text-white' ); ?> text-lg md:text-xl font-bold font-heading">
|
|
@@ -69,7 +69,7 @@ function prepare_hero_announcement_view( array $settings, string $widget_id ): a
|
|
|
69
69
|
|
|
70
70
|
$animation = sociallane_animation_view_data( $settings, [ 'headline' => true ] );
|
|
71
71
|
$classes = [
|
|
72
|
-
'section' => 'bg-gradient-to-br from-
|
|
72
|
+
'section' => 'bg-gradient-to-br from-neutral-50 via-neutral-50 to-neutral-100 dark:from-neutral-900 dark:via-neutral-800 dark:to-neutral-900 text-neutral-900 dark:text-neutral-100',
|
|
73
73
|
'brand' => 'text-neutral-900 dark:text-neutral-100 font-semibold no-underline hover:opacity-80',
|
|
74
74
|
'announcement_pill' => 'bg-white/80 dark:bg-neutral-800/80 text-neutral-700 dark:text-neutral-300 border border-neutral-200 dark:border-neutral-600 rounded-full px-4 py-1.5 text-sm no-underline hover:bg-white dark:hover:bg-neutral-700/80',
|
|
75
75
|
'headline' => 'text-neutral-900 dark:text-white font-bold',
|
|
@@ -61,7 +61,7 @@ function prepare_hero_centered_image_view( array $settings, string $widget_id ):
|
|
|
61
61
|
? sociallane_prepare_button_data(
|
|
62
62
|
$settings['cta_primary_text'] ?? '',
|
|
63
63
|
$settings['cta_primary_url'] ?? [],
|
|
64
|
-
[ 'preset' => $primary_preset, 'color' =>
|
|
64
|
+
[ 'preset' => $primary_preset, 'color' => 'default' ]
|
|
65
65
|
)
|
|
66
66
|
: null;
|
|
67
67
|
$cta_secondary = $show_cta_secondary
|
|
@@ -89,7 +89,7 @@ $header = [
|
|
|
89
89
|
<a
|
|
90
90
|
href="<?php echo esc_url( $view['announcement_href'] ); ?>"
|
|
91
91
|
<?php echo $view['announcement_attrs']; ?>
|
|
92
|
-
class="font-semibold text-
|
|
92
|
+
class="font-semibold text-neutral-600 dark:text-neutral-600 hover:text-neutral-700 dark:hover:text-neutral-700 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-100 rounded inline-flex items-center gap-1 transition-colors"
|
|
93
93
|
><?php echo esc_html( $view['announcement_link_text'] ); ?>
|
|
94
94
|
<svg class="size-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
95
95
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3" />
|
|
@@ -86,9 +86,9 @@ function prepare_hero_collage_view( array $settings, string $widget_id ): array
|
|
|
86
86
|
|
|
87
87
|
// Light/dark: dual classes for Nav theme switcher (mandatory)
|
|
88
88
|
$classes = [
|
|
89
|
-
'section' => 'bg-neutral-100 dark:bg-
|
|
90
|
-
'headline' => 'text-
|
|
91
|
-
'description' => 'text-
|
|
89
|
+
'section' => 'bg-neutral-100 dark:bg-neutral-900',
|
|
90
|
+
'headline' => 'text-neutral-900 dark:text-neutral-100',
|
|
91
|
+
'description' => 'text-neutral-900 dark:text-neutral-100',
|
|
92
92
|
];
|
|
93
93
|
|
|
94
94
|
return array_merge( $fields, [
|
|
@@ -97,7 +97,7 @@ function prepare_hero_overlay_view( array $settings, string $widget_id ): array
|
|
|
97
97
|
'headline' => 'text-white dark:text-white',
|
|
98
98
|
'overlay' => 'bg-neutral-900/60 dark:bg-neutral-950/70',
|
|
99
99
|
'bar_bg' => 'bg-neutral-900/50 dark:bg-neutral-950/60 border-t border-white/5 backdrop-blur-xl',
|
|
100
|
-
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-
|
|
100
|
+
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-neutral-500 hover:bg-neutral-600 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline',
|
|
101
101
|
'anchor_btn' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-transparent border-2 border-white/90 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline shrink-0',
|
|
102
102
|
'nav_btn' => 'text-white hover:text-white/90 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 rounded-full p-2 transition-colors',
|
|
103
103
|
];
|
|
@@ -98,7 +98,7 @@ function prepare_hero_overlay_single_view( array $settings, string $widget_id ):
|
|
|
98
98
|
'headline' => 'text-white dark:text-white',
|
|
99
99
|
'overlay' => 'bg-neutral-900/60 dark:bg-neutral-950/70',
|
|
100
100
|
'bar_bg' => 'bg-neutral-900/50 dark:bg-neutral-950/60 border-t border-white/5 backdrop-blur-xl',
|
|
101
|
-
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-
|
|
101
|
+
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-neutral-500 hover:bg-neutral-600 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline',
|
|
102
102
|
'anchor_btn' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-transparent border-2 border-white/90 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline shrink-0',
|
|
103
103
|
'nav_btn' => 'text-white hover:text-white/90 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 rounded-full p-2 transition-colors',
|
|
104
104
|
];
|
|
@@ -98,7 +98,7 @@ function prepare_hero_overlay_slider_view( array $settings, string $widget_id ):
|
|
|
98
98
|
'headline' => 'text-white dark:text-white',
|
|
99
99
|
'overlay' => 'bg-neutral-900/60 dark:bg-neutral-950/70',
|
|
100
100
|
'bar_bg' => 'bg-neutral-900/50 dark:bg-neutral-950/60 border-t border-white/5 backdrop-blur-xl',
|
|
101
|
-
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-
|
|
101
|
+
'cta_bar' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-neutral-500 hover:bg-neutral-600 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline',
|
|
102
102
|
'anchor_btn' => 'inline-flex items-center justify-center gap-2 rounded-full px-6 py-3.5 text-base font-semibold text-white bg-transparent border-2 border-white/90 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 transition-colors no-underline shrink-0',
|
|
103
103
|
'nav_btn' => 'text-white hover:text-white/90 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-950 rounded-full p-2 transition-colors',
|
|
104
104
|
];
|
|
@@ -55,11 +55,11 @@ function prepare_hero_saas_centered_view( array $settings, string $widget_id ):
|
|
|
55
55
|
|
|
56
56
|
// Light/dark mode: dual classes so widget responds to Nav theme switcher
|
|
57
57
|
$classes = [
|
|
58
|
-
'section' => 'bg-neutral-100 text-
|
|
59
|
-
'text' => 'bg-neutral-100 text-
|
|
60
|
-
'subtext' => 'bg-neutral-100 text-
|
|
61
|
-
'eyebrow' => 'bg-neutral-100 text-
|
|
62
|
-
'trust' => 'text-neutral-400 dark:text-
|
|
58
|
+
'section' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
59
|
+
'text' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
60
|
+
'subtext' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
61
|
+
'eyebrow' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
62
|
+
'trust' => 'text-neutral-400 dark:text-neutral-100/50',
|
|
63
63
|
'image_box' => 'border border-neutral-200 dark:border-neutral-700',
|
|
64
64
|
];
|
|
65
65
|
|
|
@@ -55,11 +55,11 @@ function prepare_hero_saas_split_view( array $settings, string $widget_id ): arr
|
|
|
55
55
|
|
|
56
56
|
// Light/dark mode: dual classes so widget responds to Nav theme switcher
|
|
57
57
|
$classes = [
|
|
58
|
-
'section' => 'bg-neutral-100 text-
|
|
59
|
-
'text' => 'bg-neutral-100 text-
|
|
60
|
-
'subtext' => 'bg-neutral-100 text-
|
|
61
|
-
'eyebrow' => 'bg-neutral-100 text-
|
|
62
|
-
'trust' => 'text-neutral-400 dark:text-
|
|
58
|
+
'section' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
59
|
+
'text' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
60
|
+
'subtext' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
61
|
+
'eyebrow' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
62
|
+
'trust' => 'text-neutral-400 dark:text-neutral-100/50',
|
|
63
63
|
'image_box' => 'border border-neutral-200 dark:border-neutral-700',
|
|
64
64
|
];
|
|
65
65
|
|
|
@@ -55,11 +55,11 @@ function prepare_hero_saas_stacked_view( array $settings, string $widget_id ): a
|
|
|
55
55
|
|
|
56
56
|
// Light/dark mode: dual classes so widget responds to Nav theme switcher
|
|
57
57
|
$classes = [
|
|
58
|
-
'section' => 'bg-neutral-100 text-
|
|
59
|
-
'text' => 'bg-neutral-100 text-
|
|
60
|
-
'subtext' => 'bg-neutral-100 text-
|
|
61
|
-
'eyebrow' => 'bg-neutral-100 text-
|
|
62
|
-
'trust' => 'text-neutral-400 dark:text-
|
|
58
|
+
'section' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
59
|
+
'text' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
60
|
+
'subtext' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
61
|
+
'eyebrow' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
62
|
+
'trust' => 'text-neutral-400 dark:text-neutral-100/50',
|
|
63
63
|
'image_box' => 'border border-neutral-200 dark:border-neutral-700',
|
|
64
64
|
];
|
|
65
65
|
|
|
@@ -60,9 +60,9 @@ function prepare_hero_split_view( array $settings, string $widget_id ): array {
|
|
|
60
60
|
|
|
61
61
|
// Light/dark mode: dual classes so widget responds to Nav theme switcher
|
|
62
62
|
$classes = [
|
|
63
|
-
'section' => 'bg-neutral-100 text-
|
|
64
|
-
'text' => 'text-
|
|
65
|
-
'subtext' => 'text-
|
|
63
|
+
'section' => 'bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-100',
|
|
64
|
+
'text' => 'text-neutral-900 dark:text-neutral-100',
|
|
65
|
+
'subtext' => 'text-neutral-900 dark:text-neutral-300',
|
|
66
66
|
'eyebrow' => 'text-primary dark:text-primary-light',
|
|
67
67
|
];
|
|
68
68
|
|
|
@@ -47,13 +47,13 @@ $elements_path = SOCIALLANE_ELEMENTS_PATH . 'elements';
|
|
|
47
47
|
<?php // ========== HERO STACKED IMAGE START ========== ?>
|
|
48
48
|
|
|
49
49
|
<section
|
|
50
|
-
class="relative flex flex-col bg-neutral-100 text-
|
|
50
|
+
class="relative flex flex-col bg-neutral-100 text-neutral-900 dark:bg-neutral-900 dark:text-neutral-300<?php echo $has_media ? '' : ' min-h-screen'; ?>"
|
|
51
51
|
<?php echo $section_attrs ? ' ' . $section_attrs : ''; ?>
|
|
52
52
|
<?php if ( $has_heading ) : ?>aria-labelledby="<?php echo esc_attr( $hero_id ); ?>"<?php endif; ?>
|
|
53
53
|
>
|
|
54
54
|
<?php /* Subtle glow behind hero content */ ?>
|
|
55
55
|
<div class="absolute inset-0 pointer-events-none" aria-hidden="true">
|
|
56
|
-
<div class="absolute left-1/2 top-1/3 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[400px] bg-
|
|
56
|
+
<div class="absolute left-1/2 top-1/3 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[400px] bg-neutral-600/20 dark:bg-neutral-500/10 rounded blur-3xl"></div>
|
|
57
57
|
</div>
|
|
58
58
|
|
|
59
59
|
<div class="container relative z-10 mx-auto <?php echo $has_media ? 'px-4 sm:px-6 lg:px-8 pt-16 md:pt-24 lg:pt-32 pb-0' : 'flex-1 flex flex-col justify-center px-4 sm:px-6 lg:px-8 pt-4 md:pt-12 lg:pt-32 md:pb-24'; ?>">
|
|
@@ -67,8 +67,8 @@ $elements_path = SOCIALLANE_ELEMENTS_PATH . 'elements';
|
|
|
67
67
|
'show_secondary' => $view['show_cta_secondary'] && $view['cta_secondary'],
|
|
68
68
|
'secondary' => $view['cta_secondary'] ?? null,
|
|
69
69
|
'class' => 'mt-10 flex flex-col sm:flex-row items-center justify-center gap-4',
|
|
70
|
-
'primary_extras' => 'focus:ring-white focus:ring-offset-
|
|
71
|
-
'secondary_extras'=> 'focus:ring-white focus:ring-offset-
|
|
70
|
+
'primary_extras' => 'focus:ring-white focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-900',
|
|
71
|
+
'secondary_extras'=> 'focus:ring-white focus:ring-offset-neutral-900 dark:focus:ring-offset-neutral-900',
|
|
72
72
|
'elements_path' => $elements_path,
|
|
73
73
|
];
|
|
74
74
|
include $elements_path . '/cta-group/templates/render.php';
|
|
@@ -58,9 +58,9 @@ function prepare_intro_text_view( array $settings, string $widget_id ): array {
|
|
|
58
58
|
|
|
59
59
|
$animation = sociallane_animation_view_data( $settings, [ 'headline' => true ] );
|
|
60
60
|
$classes = [
|
|
61
|
-
'section' => 'bg-white dark:bg-
|
|
62
|
-
'eyebrow' => 'text-
|
|
63
|
-
'lead' => 'text-
|
|
61
|
+
'section' => 'bg-white dark:bg-neutral-900',
|
|
62
|
+
'eyebrow' => 'text-neutral-900 dark:text-neutral-200',
|
|
63
|
+
'lead' => 'text-neutral-900 dark:text-neutral-200',
|
|
64
64
|
];
|
|
65
65
|
|
|
66
66
|
return array_merge( $fields, [
|
|
@@ -61,10 +61,10 @@ function prepare_logo_grid_centered_view( array $settings, string $widget_id ):
|
|
|
61
61
|
|
|
62
62
|
// Light/dark: dual classes for Nav theme switcher (elementor-widget-structure, widget-utility-classes)
|
|
63
63
|
$classes = [
|
|
64
|
-
'section' => 'bg-
|
|
65
|
-
'headline' => 'text-
|
|
66
|
-
'description' => 'text-
|
|
67
|
-
'logo_block' => 'group bg-neutral-100 dark:bg-
|
|
64
|
+
'section' => 'bg-neutral-950 dark:bg-gradient-to-t from-neutral-900 dark:via-neutral-950 dark:to-neutral-950',
|
|
65
|
+
'headline' => 'text-neutral-300 dark:text-neutral-200',
|
|
66
|
+
'description' => 'text-neutral-300 dark:text-neutral-200',
|
|
67
|
+
'logo_block' => 'group bg-neutral-100 dark:bg-neutral-800 rounded-xl border border-neutral-100 dark:border-neutral-100/20 flex items-center justify-center p-6 md:p-8 min-h-[100px]',
|
|
68
68
|
'logo_block_row' => 'group flex items-center justify-center shrink-0 p-4',
|
|
69
69
|
];
|
|
70
70
|
|
|
@@ -61,10 +61,10 @@ function prepare_logo_grid_row_view( array $settings, string $widget_id ): array
|
|
|
61
61
|
|
|
62
62
|
// Light/dark: dual classes for Nav theme switcher (elementor-widget-structure, widget-utility-classes)
|
|
63
63
|
$classes = [
|
|
64
|
-
'section' => 'bg-
|
|
65
|
-
'headline' => 'text-
|
|
66
|
-
'description' => 'text-
|
|
67
|
-
'logo_block' => 'group bg-neutral-100 dark:bg-
|
|
64
|
+
'section' => 'bg-neutral-950 dark:bg-gradient-to-t from-neutral-900 dark:via-neutral-950 dark:to-neutral-950',
|
|
65
|
+
'headline' => 'text-neutral-300 dark:text-neutral-200',
|
|
66
|
+
'description' => 'text-neutral-300 dark:text-neutral-200',
|
|
67
|
+
'logo_block' => 'group bg-neutral-100 dark:bg-neutral-800 rounded-xl border border-neutral-100 dark:border-neutral-100/20 flex items-center justify-center p-6 md:p-8 min-h-[100px]',
|
|
68
68
|
'logo_block_row' => 'group flex items-center justify-center shrink-0 p-4',
|
|
69
69
|
];
|
|
70
70
|
|
|
@@ -61,10 +61,10 @@ function prepare_logo_grid_split_view( array $settings, string $widget_id ): arr
|
|
|
61
61
|
|
|
62
62
|
// Light/dark: dual classes for Nav theme switcher (elementor-widget-structure, widget-utility-classes)
|
|
63
63
|
$classes = [
|
|
64
|
-
'section' => 'bg-
|
|
65
|
-
'headline' => 'text-
|
|
66
|
-
'description' => 'text-
|
|
67
|
-
'logo_block' => 'group bg-neutral-100 dark:bg-
|
|
64
|
+
'section' => 'bg-neutral-950 dark:bg-gradient-to-t from-neutral-900 dark:via-neutral-950 dark:to-neutral-950',
|
|
65
|
+
'headline' => 'text-neutral-300 dark:text-neutral-200',
|
|
66
|
+
'description' => 'text-neutral-300 dark:text-neutral-200',
|
|
67
|
+
'logo_block' => 'group bg-neutral-100 dark:bg-neutral-800 rounded-xl border border-neutral-100 dark:border-neutral-100/20 flex items-center justify-center p-6 md:p-8 min-h-[100px]',
|
|
68
68
|
'logo_block_row' => 'group flex items-center justify-center shrink-0 p-4',
|
|
69
69
|
];
|
|
70
70
|
|
|
@@ -150,35 +150,35 @@ function prepare_nav_centered_view( array $settings, string $widget_id ): array
|
|
|
150
150
|
// Variant: bar style and padding
|
|
151
151
|
$bar_styles = [
|
|
152
152
|
'default' => [
|
|
153
|
-
'bar' => 'bg-neutral-100 text-
|
|
153
|
+
'bar' => 'bg-neutral-100 text-neutral-900 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
154
154
|
'drop_out' => 'bg-white border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
155
155
|
'padding' => 'py-4',
|
|
156
156
|
'centered' => false,
|
|
157
157
|
'is_floating' => false,
|
|
158
158
|
],
|
|
159
159
|
'centered' => [
|
|
160
|
-
'bar' => 'bg-
|
|
161
|
-
'drop_out' => 'bg-
|
|
160
|
+
'bar' => 'bg-neutral-950 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
161
|
+
'drop_out' => 'bg-neutral-800 border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
162
162
|
'padding' => 'py-4',
|
|
163
163
|
'centered' => true,
|
|
164
164
|
'is_floating' => false,
|
|
165
165
|
],
|
|
166
166
|
'minimal' => [
|
|
167
|
-
'bar' => 'bg-
|
|
167
|
+
'bar' => 'bg-neutral-950 dark:bg-neutral-900 dark:border-neutral-700',
|
|
168
168
|
'drop_out' => 'bg-white/95 dark:bg-neutral-900/95 border-t border-neutral-200 dark:border-neutral-700',
|
|
169
169
|
'padding' => 'py-4',
|
|
170
170
|
'centered' => false,
|
|
171
171
|
'is_floating' => false,
|
|
172
172
|
],
|
|
173
173
|
'compact' => [
|
|
174
|
-
'bar' => 'bg-
|
|
174
|
+
'bar' => 'bg-neutral-950 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
175
175
|
'drop_out' => 'bg-white border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
176
176
|
'padding' => 'py-2',
|
|
177
177
|
'centered' => false,
|
|
178
178
|
'is_floating' => false,
|
|
179
179
|
],
|
|
180
180
|
'floating' => [
|
|
181
|
-
'bar' => 'bg-
|
|
181
|
+
'bar' => 'bg-neutral-950 dark:bg-neutral-900 shadow-lg rounded-full',
|
|
182
182
|
'drop_out' => 'bg-white dark:bg-neutral-900 border-t border-neutral-200 dark:border-neutral-700',
|
|
183
183
|
'padding' => 'py-3 px-6',
|
|
184
184
|
'centered' => false,
|
|
@@ -193,9 +193,9 @@ function prepare_nav_centered_view( array $settings, string $widget_id ): array
|
|
|
193
193
|
$classes = [
|
|
194
194
|
'bar' => $variant_style['bar'],
|
|
195
195
|
'drop_out' => $variant_style['drop_out'],
|
|
196
|
-
'link' => 'no-underline text-
|
|
196
|
+
'link' => 'no-underline text-neutral-900 hover:text-neutral-500 hover:underline focus:text-neutral-900 dark:text-neutral-300 dark:hover:text-white dark:focus:text-white',
|
|
197
197
|
'logo' => 'no-underline text-neutral-900 dark:text-white',
|
|
198
|
-
'skip' => 'no-underline bg-primary text-
|
|
198
|
+
'skip' => 'no-underline bg-primary text-neutral-900 focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-neutral-900',
|
|
199
199
|
];
|
|
200
200
|
|
|
201
201
|
$is_floating = ! empty( $variant_style['is_floating'] );
|
|
@@ -150,35 +150,35 @@ function prepare_nav_compact_view( array $settings, string $widget_id ): array {
|
|
|
150
150
|
// Variant: bar style and padding
|
|
151
151
|
$bar_styles = [
|
|
152
152
|
'default' => [
|
|
153
|
-
'bar' => 'bg-neutral-100 text-
|
|
153
|
+
'bar' => 'bg-neutral-100 text-neutral-900 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
154
154
|
'drop_out' => 'bg-white border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
155
155
|
'padding' => 'py-4',
|
|
156
156
|
'centered' => false,
|
|
157
157
|
'is_floating' => false,
|
|
158
158
|
],
|
|
159
159
|
'centered' => [
|
|
160
|
-
'bar' => 'bg-
|
|
161
|
-
'drop_out' => 'bg-
|
|
160
|
+
'bar' => 'bg-neutral-950 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
161
|
+
'drop_out' => 'bg-neutral-800 border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
162
162
|
'padding' => 'py-4',
|
|
163
163
|
'centered' => true,
|
|
164
164
|
'is_floating' => false,
|
|
165
165
|
],
|
|
166
166
|
'minimal' => [
|
|
167
|
-
'bar' => 'bg-
|
|
167
|
+
'bar' => 'bg-neutral-950 dark:bg-neutral-900 dark:border-neutral-700',
|
|
168
168
|
'drop_out' => 'bg-white/95 dark:bg-neutral-900/95 border-t border-neutral-200 dark:border-neutral-700',
|
|
169
169
|
'padding' => 'py-4',
|
|
170
170
|
'centered' => false,
|
|
171
171
|
'is_floating' => false,
|
|
172
172
|
],
|
|
173
173
|
'compact' => [
|
|
174
|
-
'bar' => 'bg-
|
|
174
|
+
'bar' => 'bg-neutral-950 border-b border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
175
175
|
'drop_out' => 'bg-white border-t border-neutral-200 dark:bg-neutral-900 dark:border-neutral-700',
|
|
176
176
|
'padding' => 'py-2',
|
|
177
177
|
'centered' => false,
|
|
178
178
|
'is_floating' => false,
|
|
179
179
|
],
|
|
180
180
|
'floating' => [
|
|
181
|
-
'bar' => 'bg-
|
|
181
|
+
'bar' => 'bg-neutral-950 dark:bg-neutral-900 shadow-lg rounded-full',
|
|
182
182
|
'drop_out' => 'bg-white dark:bg-neutral-900 border-t border-neutral-200 dark:border-neutral-700',
|
|
183
183
|
'padding' => 'py-3 px-6',
|
|
184
184
|
'centered' => false,
|
|
@@ -193,9 +193,9 @@ function prepare_nav_compact_view( array $settings, string $widget_id ): array {
|
|
|
193
193
|
$classes = [
|
|
194
194
|
'bar' => $variant_style['bar'],
|
|
195
195
|
'drop_out' => $variant_style['drop_out'],
|
|
196
|
-
'link' => 'no-underline text-
|
|
196
|
+
'link' => 'no-underline text-neutral-900 hover:text-neutral-500 hover:underline focus:text-neutral-900 dark:text-neutral-300 dark:hover:text-white dark:focus:text-white',
|
|
197
197
|
'logo' => 'no-underline text-neutral-900 dark:text-white',
|
|
198
|
-
'skip' => 'no-underline bg-primary text-
|
|
198
|
+
'skip' => 'no-underline bg-primary text-neutral-900 focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-neutral-900',
|
|
199
199
|
];
|
|
200
200
|
|
|
201
201
|
$is_floating = ! empty( $variant_style['is_floating'] );
|