Skip to content

Commit

Permalink
uikit update
Browse files Browse the repository at this point in the history
  • Loading branch information
jellygnite committed Oct 23, 2024
1 parent 83ab1a5 commit 3ee9e87
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Model/ElementFeature.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ElementFeature extends BaseElement
'Left Align Image' => 'uk-flex-first@s',
'Right Align Image' => 'uk-flex-last@s',
]
],
]
];

// allows us to store templates in this module folder
Expand Down
1 change: 1 addition & 0 deletions src/Model/ElementImageGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function getCMSFields()
SortableUploadField::create(
'Images', $this->fieldLabel('Images')
)->setRightTitle('Supports bulk image uploads')
->setFolderName('images')
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion templates/Jellygnite/Elements/Includes/Background.ss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<source src="$BackgroundVideo.URL" type="video/mp4">
</video>
<% else %>
<img srcset="$BackgroundImage.ScaleMaxHeight(768).ScaleMaxWidth(508,768).URL 480w,
<img srcset="$BackgroundImage.ScaleMaxHeight(1024).URL 480w,
$BackgroundImage.ScaleMaxWidth(768).URL 768w,
$BackgroundImage.ScaleMaxWidth(960).URL 960w,
$BackgroundImage.ScaleMaxWidth(1440).URL 1440w,
Expand Down
4 changes: 2 additions & 2 deletions templates/Jellygnite/Elements/Layout/ElementHolder.ss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section class="element <% if $StyleVariant %> $StyleVariant<% end_if %>" id="$Anchor">
<section class="element<% if $StyleVariant %> $StyleVariant<% end_if %> $StyleByLocation('element.class')" id="$Anchor" data-jes-element="$ID">
<% include Jellygnite/Elements/Background %>
$Element
</section>
</section>
3 changes: 2 additions & 1 deletion templates/Jellygnite/Elements/Layout/ElementHolder_Popups.ss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<section class="element<% if $StyleVariant %> $StyleVariant<% end_if %>" id="$Anchor">
<section class="element<% if $StyleVariant %> $StyleVariant<% end_if %> $StyleByLocation('element.class')" id="$Anchor">
<% include Jellygnite/Elements/Background %>
$Element
</section>
<% with $Element %>
Expand Down
4 changes: 2 additions & 2 deletions templates/Jellygnite/Elements/Model/ElementSponsors.ss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<% if $isCarousel %>
<div data-uk-slider="{center: false,infinite: true,autoplay:true,autoplayInterval:2000,pauseOnHover:true}">
<div class="uk-slider-container">
<div class="uk-slider uk-slider-slow uk-grid uk-grid-xlarge uk-flex-middle uk-grid-width-1-2 uk-grid-width-small-1-3 uk-grid-width-medium-1-6 mt-5" data-uk-grid-margin>
<div class="uk-slider uk-slider-slow uk-grid uk-grid-xlarge uk-flex-middle uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-6@m mt-5" data-uk-grid>
<% include Jellygnite/Elements/SponsorsGrid %>
</div>
</div>
</div>
<% else %>
<div class="uk-grid uk-grid-xlarge uk-flex-middle uk-grid-width-1-2 uk-grid-width-small-1-3 uk-grid-width-medium-1-4 mt-5" data-uk-grid-margin>
<div class="uk-grid uk-grid-xlarge uk-flex-middle uk-flex-center uk-child-width-1-2 uk-grid-width-1-3@s uk-child-width-1-4@m mt-5" data-uk-grid>
<% include Jellygnite/Elements/SponsorsGrid %>
</div>
<% end_if %>
Expand Down

0 comments on commit 3ee9e87

Please sign in to comment.