]> _ Git - physioassist-wordpress.git/commitdiff
Wait #3470 @1
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 18 Mar 2020 09:44:37 +0000 (09:44 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 18 Mar 2020 09:44:37 +0000 (09:44 +0000)
wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php
wp-content/themes/physioassist/resources/assets/styles/widgets/profile-carousel.styl
wp-content/themes/physioassist/resources/assets/styles/widgets/video-carousel.styl
wp-content/themes/physioassist/resources/views/widgets/profile-carousel.blade.php
wp-content/themes/physioassist/resources/views/widgets/video-gallery-carousel.blade.php

index 4f25c397f9477f86e311f67eddab086ffe8030ec..1694a555cad73b61cc9cc5470f5f11d1dc753c45 100644 (file)
@@ -76,14 +76,14 @@ class TextCarousel extends Widget_Base {
                     [
                         'name' => 'title',
                         'label' => __( 'Title', 'elementor' ),
-                        'type' => Controls_Manager::TEXTAREA,
+                        'type' => Controls_Manager::TEXT,
                         'placeholder' => __( 'Enter your title', 'elementor' ),
                         'default' => '',
                     ],
                     [
                         'name' => 'subtitle',
                         'label' => __( 'Subtitle', 'cube' ),
-                        'type' => Controls_Manager::TEXT,
+                        'type' => Controls_Manager::TEXTAREA,
                         'label_block' => true,
                     ],
                     [
index 9899e03c9300b66bba37afd117f4c2cc41ac8bb7..d4970ab43cb43bc3d2caa5f394634c72b72964a2 100644 (file)
@@ -37,6 +37,7 @@
   &-body
     color: $colors.text
     font-size: 16px
+    margin-top: 1.5em
     
   &-lightbox
     horizontal-spacing(5vw)
index 1e30cf4e8e2040328848945853e58c3b7890b7cb..2abefa05f062cf980d33391f50a49c5732a23501 100644 (file)
@@ -6,10 +6,11 @@
     margin: 0 20px
 
     &-image
+      position: relative
       display: block
       width: 100%
-      position: relative
-      padding-bottom: 100%
+      max-width: 240px
+      margin: 0 auto
       background-size: cover
       background-position: center
       background-repeat: no-repeat
@@ -17,6 +18,9 @@
       box-shadow: inset 2px 2px 10px 0px rgba(0,0,0,0.3)
       overflow: hidden
 
+      &-sizer
+        padding-bottom: 100% // Make it square
+
       &:before
         content: ''
         position: absolute
index 4b5f5acc2f59396e990794c86c7a9adae546a7fd..59869fc643946ae91ca555a3a0fa730bc252291d 100644 (file)
 
         <h3 class="profile-carousel-title">{{ $item['title'] }}</h3>
 
-        {!! $item['body'] !!}
+        <div class="profile-carousel-body">
+          {!! $item['body'] !!}
+        </div>
+
       </div>
 
     </a>  {{-- .profile-carousel-item --}}
index 0b0422b90331d8f5a5c3b8c9c8d0201c4b9008b2..bd3408a5c30d7860c73e20055b61ead25bbb27fd 100644 (file)
@@ -29,7 +29,9 @@
   @foreach ($videos as $video)
     <div class="video-carousel-item slick-slide">
       <div class="slick-slide-inner" data-elementor-lightbox="{{ $video['lightbox'] }}" data-elementor-open-lightbox="yes">
-        <div class="video-carousel-item-image" style="background-image:url('{{  $video['preview'] }}')"></div>
+        <div class="video-carousel-item-image" style="background-image:url('{{  $video['preview'] }}')">
+          <div class="video-carousel-item-image-sizer"></div>
+        </div>
         <h4 class="video-carousel-item-title">{{ $video['title'] }}</h4>
         <p class="video-carousel-item-details">{{ $video['details'] }}</p>
       </div>