@total_onion/onion-library 2.0.138 → 2.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
{% set mobileSlides = 'data-mobileslides="' ~ fields.carousel_number_of_slides_mobile ~ '"' %}
|
|
93
93
|
{% set tabletSlides = 'data-tabletslides="' ~ fields.carousel_number_of_slides_tablet ~ '"' %}
|
|
94
94
|
{% set desktopSlides = 'data-desktopslides="' ~ fields.carousel_number_of_slides_desktop ~ '"' %}
|
|
95
|
-
{% set desktopFullSlides = 'data-desktopslidesfull="' ~ fields.number_of_slides_on_desktop_full ~ '"' %}
|
|
95
|
+
{% set desktopFullSlides = 'data-desktopslidesfull="' ~ fields.number_of_slides_on_desktop_full|default(fields.carousel_number_of_slides_desktop) ~ '"' %}
|
|
96
96
|
|
|
97
97
|
{% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.carousel_number_of_slides_desktop|default(1))|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.carousel_number_of_slides_desktop|default(1))|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.carousel_number_of_slides_tablet|default(1))|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.carousel_number_of_slides_mobile|default(1))|round ~ 'vw, 100vw' %}
|
|
98
98
|
|
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
.ingredient-image {
|
|
213
213
|
max-width: core-functions-v3.fluidSize(50);
|
|
214
214
|
aspect-ratio: 1;
|
|
215
|
+
object-fit: cover;
|
|
215
216
|
|
|
216
217
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
217
218
|
max-width: core-functions-v3.fluidSize(100);
|
|
@@ -263,6 +264,7 @@
|
|
|
263
264
|
.equipment-image {
|
|
264
265
|
max-width: core-functions-v3.fluidSize(50);
|
|
265
266
|
aspect-ratio: 1;
|
|
267
|
+
object-fit: cover;
|
|
266
268
|
|
|
267
269
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
268
270
|
max-width: core-functions-v3.fluidSize(100);
|