* @return string\r
*/\r
public function logos($logos, $wrapper_element = 'section') {\r
- $this->headScript()->addDynamicMarquee();\r
-\r
$images = CubeIT_Util_Cms::extractFiles($logos);\r
if (!count($images)) {\r
return;\r
// https://www.youtube.com/watch?v=uw5jVO1eNF8\r
foreach ($images as $image) {\r
$img = $this->imageCms($image, '', null, null, ['class' => 'logos-image']);\r
- $res .= $this->htmlElement($img, 'div', ['class' => 'logos-item', 'aria-hidden' => 'true']);\r
+ $res .= $this->htmlElement($img, 'div', ['class' => 'logos-item logos-item-home', 'aria-hidden' => 'true']);\r
}\r
\r
$res = $this->htmlElement($res, 'div', ['class' => 'logos-grid', 'id' => 'marquee']);\r
@import "000-imports";\r
\r
+[data-template="home"] .logos {\r
+ &-grid {\r
+ justify-content: left;\r
+ width: max-content;\r
+ animation: marquee 35s linear infinite forwards;\r
+ }\r
+}\r
+\r
+body:not([data-template="home"]) {\r
+ .logos-item-home {\r
+ display: none;\r
+ }\r
+}\r
+\r
.logos {\r
&-wrapper {\r
background-color: #e8eefa;\r
&-grid {\r
display: flex !important;\r
align-items: center;\r
+ justify-content: center;\r
padding: 0 0 0 70px;\r
- gap: 90px;\r
- width: max-content;\r
- animation: marquee 40s linear infinite forwards;\r
+ gap: 70px;\r
\r
@media (max-width: 1299px) {\r
padding: 0;\r
}\r
\r
&-image {\r
- width: 100%;\r
- height: 100%;\r
+ width: 120px;\r
+ height: 45px;\r
max-width: 120px;\r
- max-height: 50px;\r
+ max-height: 45px;\r
}\r
}\r
\r