]> _ Git - c6-wordpress.git/commitdiff
wait #7626 @8:00
authorsoufiane <soufiane@cubedesigners.com>
Thu, 3 Jul 2025 13:12:32 +0000 (15:12 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 3 Jul 2025 13:12:32 +0000 (15:12 +0200)
wp-content/themes/c6/app/setup.php
wp-content/themes/c6/resources/assets/scripts/main.js
wp-content/themes/c6/resources/assets/scripts/navigation.js
wp-content/themes/c6/resources/assets/styles/common/global.styl
wp-content/themes/c6/resources/assets/styles/components/navigation-offcanvas.styl
wp-content/themes/c6/resources/assets/styles/layouts/header.styl
wp-content/themes/c6/resources/assets/styles/widgets/feature-block.styl

index 7a452711074ed4685d2896cadf1677be9315f573..d5c2797ffe78e23d3129214426c4b44959b53dcf 100644 (file)
@@ -69,9 +69,9 @@ add_action('wp_enqueue_scripts', function () {
     // NOTE: 'elementor-frontend' and 'elementor-animations' are added as dependencies for the main stylesheet to
     // ensure that our stylesheet is always loaded afterwards, allowing us to override the default styles.
     // On 404 pages, this wasn't happening.
-    wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), ['elementor-frontend', 'elementor-animations'], null);
+    wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), ['elementor-frontend']);
     wp_enqueue_script('sage/main.js', asset_path('scripts/main.js'), ['jquery'], null, true);
-    wp_enqueue_script('sage/navigation.js', asset_path('scripts/navigation.js'), ['jquery'], null, true);
+    //wp_enqueue_script('sage/navigation.js', asset_path('scripts/navigation.js'), ['jquery'], false, null);
 
     if (is_single() && comments_open() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
index 4f35376558cd3c3e6f2b875fbfb2c990b2ac3f78..cad3818830e0283a79eae62d41a4c0145248ad0f 100644 (file)
@@ -10,6 +10,8 @@ import common from './routes/common';
 import home from './routes/home';
 import aboutUs from './routes/about';
 
+import './navigation'
+
 /** Populate Router instance with DOM routes */
 const routes = new Router({
   // All pages
index 3e3a1eafed283c6222eedc26b614686dfcd8a6c2..fe9999f0943d3fd71fee84f77f0bc22dbc5ca806 100644 (file)
@@ -10,8 +10,7 @@ jQuery(document).ready(function($){
         scrollDelta = 10,
         scrollOffset = 500;
 
-    $(window).on('scroll', function(){
-
+    $(window).on('scroll', function(e){
         if( !scrolling ) {
             scrolling = true;
             mainHeader.addClass('scrolling');
@@ -39,4 +38,4 @@ jQuery(document).ready(function($){
         previousTop = currentTop;
         scrolling = false;
     }
-});
\ No newline at end of file
+});
index 7d657718370e4122e9fa2dce3e588ce849ccc8b8..4c4ae89a4b8bfb42d8478cc0ba2c5a409bb93304 100644 (file)
@@ -64,7 +64,7 @@ $divider-height = 5vw
 $section-vertical-padding = 7.5vw // Must be vw or % units
 $max-bottom-padding = unit($section-vertical-padding / 100, '') * $content-max-width // Get the constrained padding amount
 
-.elementor-section-wrap > .elementor-section
+.elementor > .elementor-section
   vertical-spacing($section-vertical-padding)
 
   // Only apply extra padding if there is a shape divider on the section
@@ -82,8 +82,8 @@ $max-bottom-padding = unit($section-vertical-padding / 100, '') * $content-max-w
   constrain(margin-bottom, $vertical-gutter) // Set margin bottom to standard gutter
 
 // Get rid of default 10px padding around elements
-.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated
-  padding: 0
+.elementor-column-gap-default > .elementor-column > .elementor-element-populated
+  padding: 0 !important
 
 .elementor-column-gap-wide > .elementor-row > .elementor-column > .elementor-element-populated
   +below(450px)
@@ -142,3 +142,8 @@ $translateDistance = -2.32em // Width of arrow (1.32em) + margin from text (1em)
 
   polygon, path
     fill: currentColor
+
+.elementor-widget-image-box .elementor-image-box-description {
+  font-size: 16px
+  max-width: 325px
+}
index 74848a364e3e78e13c4b7b8ff53ea9497d086f63..163fc4c683c6e93bc3811c54ac68815f06d19a3a 100644 (file)
@@ -1,3 +1,5 @@
+$sidebar-width = 260px
+
 #offcanvas-menu
   background-color: #000
   color: #fff
@@ -6,16 +8,16 @@
   top: 0
   height: 100%
   z-index: 999999
-  width: $offcanvas-menu-width
+  width: $sidebar-width
   overflow-x: hidden
   overflow-y: auto
 
   &.right
     left: auto
-    right: - $offcanvas-menu-width
+    right: - $sidebar-width
 
   &.left
-    left: - $offcanvas-menu-width
+    left: - $sidebar-width
     right: auto
 
   .header-logo
       // Otherwise the gap above the submenu looks a bit too big
       margin-top: -0.25em
 
-    ul
-      a // Second level links
-        padding-left: 40px
-        color: #bbb
-        font-weight: normal
-        text-transform: none
-      ul
-        a
-          padding-left: 70px
+    ul a // Second level links
+      padding-left: 40px
+      color: #bbb
+      font-weight: normal
+      text-transform: none
 
   a
     font-smoothing()
index 55b4495a16b811fc21f1d0c7d75fc2ef2435fd53..4f98a93b42dd48529c67db5bed10ea40d20ee389 100644 (file)
@@ -6,10 +6,16 @@
 //  padding-top: 65px
 
 header.site
-  position: relative
   z-index: 10
   min-width: 320px
   font-size: 16px
+  position: fixed !important
+  top: 0
+  left: 0
+  width: 100%
+  transform: translateZ(0)
+  will-change: transform
+  transition: all .5s ease
 
   // Disable the header when editing with Elementor so it
   // doesn't block the home hero blcok section controls
@@ -34,30 +40,24 @@ header.site
 
   // Hero block header overrides
   .hero-header &, .home & // Also applied for home since .hero-header class seems to be added to body too late for Elementor editor
+    position: absolute
     width: 100%
     color: #fff
     .inner
       background-color: transparent
 
+    .menu-icon
+      fill: #fff
+
 // Main logo
 .header-logo
   flex: 0 1 auto
   padding-right: 50px // Ensure some breathing space between logo and burger menu icon
-  transition: opacity 0.3s ease-out
 
   &-svg
     max-width: 84px
     height: auto
 
-  // When the menu is open, the logo doesn't move because it is fixed position
-  // So we hide it...
-  .offcanvas-menu-open &
-    opacity: 0
-    transition: none
-
-  #offcanvas-menu &
-    opacity: 1
-
 
 .locales
   flex: 0 1 auto
@@ -81,6 +81,7 @@ header.site
       height: 0.6em // Needed for IE 11
       overflow: hidden // Also needed for IE 11
 
+
       path
         stroke: currentColor
 
@@ -126,23 +127,5 @@ header.site
     display: block
 
 .menu-icon
-  height: 52px
-  width: 52px
-  fill: currentColor
-
-header.site
-  position: fixed
-  top: 0
-  left: 0
-  width: 100%
-  transform: translateZ(0)
-  will-change: transform
-  transition: all .5s ease
-
-header.site.is-hidden
-  transform: translateY(-100%)
-
-header.site.scrolling
-  background: white
-  color: #000
-  transition: all .5s ease
\ No newline at end of file
+  width: r(60px)
+  height: @width
index cbc7726e279d8b6189cd7a0eda977d21fe1d6d87..6c1928466c85c51a4f6047b0de92bf3d5ba04890 100644 (file)
@@ -44,9 +44,6 @@ $breakpoint-circles = 1200px // Below this, circles aren't shown because content
     text-align: center
     border-radius: 4px
 
-    +below($breakpoint-columns)
-      border-radius: 0
-
     // Make a circle within the square wrapper
     .feature-block-circle &
       +above($breakpoint-circles)