diff --git a/asset/css/carousel.css b/asset/css/carousel.css index eb552d6..89e605e 100644 --- a/asset/css/carousel.css +++ b/asset/css/carousel.css @@ -3,7 +3,7 @@ flex-wrap: nowrap !important; } .siema { - margin: 1rem 0; + margin: margin: 0; /*1rem 0;*/ background-color: #000; position: relative; } @@ -12,9 +12,10 @@ display: block; margin-left: auto; margin-right: auto; + width: 100%; } -#siema-ui { +.siema-ui { display: flex; justify-content: space-between; position: absolute; @@ -33,11 +34,11 @@ opacity: 1; } -.caret#left { +.caret-left { margin-left: 20px; } -.caret#right { +.caret-right { transform: rotate(180deg); margin-right: 20px; } diff --git a/src/Site/BlockLayout/Carousel.php b/src/Site/BlockLayout/Carousel.php index 045157e..77ac1cf 100644 --- a/src/Site/BlockLayout/Carousel.php +++ b/src/Site/BlockLayout/Carousel.php @@ -93,9 +93,9 @@ class Carousel extends AbstractBlockLayout } } + $wrap = $block->dataValue('wrapStyle') . "height:" . $block->dataValue('height') . ";"; return $view->partial('common/block-layout/simple-carousel', [ 'carousel_id' => 'ic_' . ++$id, - 'height' => $block->dataValue('height'), 'duration' => $block->dataValue('duration'), 'perPage' => $block->dataValue('perPage'), 'loop' => $block->dataValue('loop'), @@ -104,7 +104,7 @@ class Carousel extends AbstractBlockLayout 'images' => $images, 'autoSlide' => $block->dataValue('autoSlide'), 'autoSlideInt' => $block->dataValue('autoSlideInt'), - 'wrapStyle' => $block->dataValue('wrapStyle'), + 'wrapStyle' => $wrap, 'imgStyle' => $block->dataValue('imgStyle'), 'ui_background' => $block->dataValue('ui_background'), 'renderSourceLink' => $block->dataValue('renderSourceLink'), diff --git a/view/common/block-layout/simple-carousel.phtml b/view/common/block-layout/simple-carousel.phtml index 53567ee..2c57ab5 100644 --- a/view/common/block-layout/simple-carousel.phtml +++ b/view/common/block-layout/simple-carousel.phtml @@ -7,11 +7,8 @@ ?> @@ -24,7 +21,8 @@
-
+
-
+
+
@@ -48,14 +48,14 @@