From f04a5ce42abb7b6fbe9342523372075f94436945 Mon Sep 17 00:00:00 2001 From: walaa nawar Date: Fri, 19 Jan 2024 18:39:22 +0100 Subject: [PATCH] .slick-dots li.slick-active button:before --- src/app/home/home.component.css | 33 +---- src/assets/css/owl.carousel.css | 216 -------------------------------- src/assets/js/main.js | 23 ++++ src/styles.css | 36 ++++-- 4 files changed, 51 insertions(+), 257 deletions(-) delete mode 100644 src/assets/css/owl.carousel.css diff --git a/src/app/home/home.component.css b/src/app/home/home.component.css index 9fe5bda..5b553a5 100644 --- a/src/app/home/home.component.css +++ b/src/app/home/home.component.css @@ -25,15 +25,6 @@ border: none; width: 100%; } -.block-slider .slick-dots ul li, -.block-slider ul li { - list-style: none; -} -.block-slider .slick-dots ul li, -.block-slider .bx-pager { - display: none; -} - .block-slider img { width: 100%; @@ -65,29 +56,7 @@ [4. Slidershow] ------------------*/ -.block-slider .bx-pager { - display: block; - text-align: center; -} -.block-slider .bx-pager-item { - width: 15px; - height: 15px; - background: #fff; - font-size: 0; - display: inline-block; - border-radius: 50%; - margin: 0 3px; -} -.block-slider .bx-pager-item a { - width: 100%; - height: 100%; - background: #999; - display: block; - border-radius: 50%; -} -.block-slider .bx-pager-item a.active { - background: #1bd172; - } + .block-slider .caption-group { position: absolute; diff --git a/src/assets/css/owl.carousel.css b/src/assets/css/owl.carousel.css deleted file mode 100644 index d144af2..0000000 --- a/src/assets/css/owl.carousel.css +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Owl Carousel - Animate Plugin - */ -.owl-carousel .animated { - -webkit-animation-duration: 1000ms; - animation-duration: 1000ms; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} -.owl-carousel .owl-animated-in { - z-index: 0; -} -.owl-carousel .owl-animated-out { - z-index: 1; -} -.owl-carousel .fadeOut { - -webkit-animation-name: fadeOut; - animation-name: fadeOut; -} - -@-webkit-keyframes fadeOut { - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -} -@keyframes fadeOut { - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -} - -/* - * Owl Carousel - Auto Height Plugin - */ -.owl-height { - -webkit-transition: height 500ms ease-in-out; - -moz-transition: height 500ms ease-in-out; - -ms-transition: height 500ms ease-in-out; - -o-transition: height 500ms ease-in-out; - transition: height 500ms ease-in-out; -} - -/* - * Core Owl Carousel CSS File - */ -.owl-carousel { - display: none; - width: 100%; - -webkit-tap-highlight-color: transparent; - /* position relative and z-index fix webkit rendering fonts issue */ - position: relative; - z-index: 1; -} -.owl-carousel .owl-stage { - position: relative; - -ms-touch-action: pan-Y; -} -.owl-carousel .owl-stage:after { - content: "."; - display: block; - clear: both; - visibility: hidden; - line-height: 0; - height: 0; -} -.owl-carousel .owl-stage-outer { - position: relative; - overflow: hidden; - /* fix for flashing background */ - -webkit-transform: translate3d(0px, 0px, 0px); -} -.owl-carousel .owl-controls .owl-nav .owl-prev, -.owl-carousel .owl-controls .owl-nav .owl-next, -.owl-carousel .owl-controls .owl-dot { - cursor: pointer; - cursor: hand; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.owl-carousel.owl-loaded { - display: block; -} -.owl-carousel.owl-loading { - opacity: 0; - display: block; -} -.owl-carousel.owl-hidden { - opacity: 0; -} -.owl-carousel .owl-refresh .owl-item { - display: none; -} -.owl-carousel .owl-item { - position: relative; - min-height: 1px; - float: left; - -webkit-backface-visibility: hidden; - -webkit-tap-highlight-color: transparent; - -webkit-touch-callout: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.owl-carousel .owl-item img { - display: block; - width: 100%; - -webkit-transform-style: preserve-3d; -} -.owl-carousel.owl-text-select-on .owl-item { - -webkit-user-select: auto; - -moz-user-select: auto; - -ms-user-select: auto; - user-select: auto; -} -.owl-carousel .owl-grab { - cursor: move; - cursor: -webkit-grab; - cursor: -o-grab; - cursor: -ms-grab; - cursor: grab; -} -.owl-carousel.owl-rtl { - direction: rtl; -} -.owl-carousel.owl-rtl .owl-item { - float: right; -} - -/* No Js */ -.no-js .owl-carousel { - display: block; -} - -/* - * Owl Carousel - Lazy Load Plugin - */ -.owl-carousel .owl-item .owl-lazy { - opacity: 0; - -webkit-transition: opacity 400ms ease; - -moz-transition: opacity 400ms ease; - -ms-transition: opacity 400ms ease; - -o-transition: opacity 400ms ease; - transition: opacity 400ms ease; -} -.owl-carousel .owl-item img { - transform-style: preserve-3d; -} - -/* - * Owl Carousel - Video Plugin - */ -.owl-carousel .owl-video-wrapper { - position: relative; - height: 100%; - background: #000; -} -.owl-carousel .owl-video-play-icon { - position: absolute; - height: 80px; - width: 80px; - left: 50%; - top: 50%; - margin-left: -40px; - margin-top: -40px; - /* background: url("owl.video.play.png") no-repeat; */ - cursor: pointer; - z-index: 1; - -webkit-backface-visibility: hidden; - -webkit-transition: scale 100ms ease; - -moz-transition: scale 100ms ease; - -ms-transition: scale 100ms ease; - -o-transition: scale 100ms ease; - transition: scale 100ms ease; -} -.owl-carousel .owl-video-play-icon:hover { - -webkit-transition: scale(1.3, 1.3); - -moz-transition: scale(1.3, 1.3); - -ms-transition: scale(1.3, 1.3); - -o-transition: scale(1.3, 1.3); - transition: scale(1.3, 1.3); -} -.owl-carousel .owl-video-playing .owl-video-tn, -.owl-carousel .owl-video-playing .owl-video-play-icon { - display: none; -} -.owl-carousel .owl-video-tn { - opacity: 0; - height: 100%; - background-position: center center; - background-repeat: no-repeat; - -webkit-background-size: contain; - -moz-background-size: contain; - -o-background-size: contain; - background-size: contain; - -webkit-transition: opacity 400ms ease; - -moz-transition: opacity 400ms ease; - -ms-transition: opacity 400ms ease; - -o-transition: opacity 400ms ease; - transition: opacity 400ms ease; -} -.owl-carousel .owl-video-frame { - position: relative; - z-index: 1; -} diff --git a/src/assets/js/main.js b/src/assets/js/main.js index 72d2128..a85382d 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -21,3 +21,26 @@ jQuery(document).ready(function ($) { ga('create', 'UA-10146041-21', 'auto'); ga('send', 'pageview'); +// Slick corasoul animation + +// function initCarousel() { + +// $('.my-carousel').slick({ +// slidesToShow: 1, +// slidesToScroll: 1, +// autoplay: false, +// adaptiveHeight: false, +// fade: true, +// speed: 0, // removes Slick's standard animation +// }).on('beforeChange', function(event, slick, currentSlideIndex, nextSlideIndex) { +// if(nextSlideIndex > currentSlideIndex) { +// // Animation to go to next slide +// $('.my-carousel .slick-slide[data-slick-index=' + currentSlideIndex + ']').addClass('fadeOutLeft').removeClass('fadeInRight'); +// $('.my-carousel .slick-slide[data-slick-index=' + nextSlideIndex + ']').addClass('fadeInRight').removeClass('fadeOutLeft fadeOutRight'); +// } else { +// // Animation to go to previous slide +// $('.my-carousel .slick-slide[data-slick-index=' + currentSlideIndex + ']').addClass('fadeOutRight').removeClass('fadeInRight'); +// $('.my-carousel .slick-slide[data-slick-index=' + nextSlideIndex + ']').addClass('fadeInLeft').removeClass('fadeOutLeft fadeOutRight'); +// } +// }); +// } \ No newline at end of file diff --git a/src/styles.css b/src/styles.css index 64c162c..d1a0f67 100644 --- a/src/styles.css +++ b/src/styles.css @@ -44,7 +44,6 @@ h6 { body { font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; - } .header-area { @@ -157,6 +156,24 @@ body { } /* Main Slick Courasol*/ + +/* slick dots default css */ +.slick-dots li button ,.slick-dots li{ + /* position: absolute; */ + /* z-index: 9; */ + /* transform: scale(2, 2); */ +} +.slick-dots li button:before { + width: 100%; + height: 100%; + background: #999; + display: block; + border-radius: 50%; +} +/* slick dots active link css */ +.slick-dots li.slick-active button:before { + color: #1bd172; +} .slider-area { width: 85%; margin: 0 auto; @@ -165,11 +182,6 @@ body { display: flex; text-align: center; } -.slick-dots { - position: absolute; - z-index: 9; - transform: scale(2, 2); -} .mainslick-next:hover, .mainslick-prev:hover { @@ -225,6 +237,12 @@ body { right: 0; top: 0; } +.slick-dots ul li { + list-style: none; + margin: 0; + padding: 0; + color: #17a78b; +} /*---------------------- [10. Block top seller ] ------------------------*/ @@ -498,7 +516,7 @@ body { } .product-wid-title { - font-family: "Raleway", sans-serif;; + font-family: "Raleway", sans-serif; font-size: 30px; font-weight: 100; margin-bottom: 40px; @@ -575,7 +593,7 @@ body { color: #5a88ca; } .footer-wid-title { - font-family: "Raleway", sans-serif;; + font-family: "Raleway", sans-serif; font-size: 30px; font-weight: 100; color: #fff; @@ -722,7 +740,7 @@ ol.slide-indicators li.active { } .product-bit-title h2 { - font-family: "Raleway", sans-serif;; + font-family: "Raleway", sans-serif; font-size: 50px; font-weight: 200; margin: 0;