From: soufiane Date: Fri, 11 Oct 2024 09:27:49 +0000 (+0200) Subject: wait #7070 @1:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5546fed6ad25814b24a833fd467aec62a7718e3d;p=spinepro.git wait #7070 @1:00 --- diff --git a/wp-content/themes/CCV/dist/styles/app.css b/wp-content/themes/CCV/dist/styles/app.css index ddec2a14..4ef126e2 100644 --- a/wp-content/themes/CCV/dist/styles/app.css +++ b/wp-content/themes/CCV/dist/styles/app.css @@ -2897,7 +2897,7 @@ h4, color: rgba(255, 255, 255, var(--text-opacity)); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - background: rgba(3,18,54,0.84); + background: #031236; text-transform: none; padding: 3.75em 2em 0.75em 2.5em; margin: 0 !important; diff --git a/wp-content/themes/CCV/resources/assets/scripts/header-slideshow.js b/wp-content/themes/CCV/resources/assets/scripts/header-slideshow.js index 41b3c1a1..5ee49029 100644 --- a/wp-content/themes/CCV/resources/assets/scripts/header-slideshow.js +++ b/wp-content/themes/CCV/resources/assets/scripts/header-slideshow.js @@ -37,6 +37,7 @@ import debounce from 'lodash.debounce'; setTimeout(function() { revealText(slidesText) }, 1000) + revealLastText(slidesText); } function showSlide(index) { @@ -45,19 +46,19 @@ import debounce from 'lodash.debounce'; currentSlide = (index + slides.length) % slides.length; addBySlides(slides) addBySlides(slidesText) - revealText(slidesText) } function removeBySlide(slides) { $(slides[currentSlide]).removeClass('showing'); $scope.find(`[data-slide="${currentSlide}"]`).removeClass('active'); - $(slides[currentSlide]).find(".header-slideshow-title, .header-slideshow-body p,.header-slideshow-body li").removeClass("showing") + $(slides[currentSlide]).not(':last-child').find(".header-slideshow-title, .header-slideshow-body p,.header-slideshow-body li").removeClass("showing") } function addBySlides(slides) { $(slides[currentSlide]).addClass('showing'); $scope.find(`[data-slide="${currentSlide}"]`).addClass('active'); + revealText(slidesText) } function nextSlide() { @@ -80,6 +81,10 @@ import debounce from 'lodash.debounce'; }) } + function revealLastText(slides) { + $(slides).last().find(".header-slideshow-title,.header-slideshow-body p,.header-slideshow-body li").addClass('showing') + } + }); }); })(jQuery); diff --git a/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl b/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl index 70551dc0..36356773 100644 --- a/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl +++ b/wp-content/themes/CCV/resources/assets/styles/widgets/header-slideshow.styl @@ -1,5 +1,5 @@ $breakpoint-slideshow-images = 600px -$title_bg = rgba(#031236, 0.84) +$title_bg = #031236 .header-slideshow position: relative