f24ffa56 by Jeff Balicki

swiper mobile

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 67f46a03
...@@ -20332,6 +20332,7 @@ ul.sf_date_field .sf-datepicker { ...@@ -20332,6 +20332,7 @@ ul.sf_date_field .sf-datepicker {
20332 left: 0%; 20332 left: 0%;
20333 width: 100vw; 20333 width: 100vw;
20334 padding: 0rem 0rem; 20334 padding: 0rem 0rem;
20335 overflow: scroll;
20335 } 20336 }
20336 } 20337 }
20337 20338
...@@ -20345,6 +20346,11 @@ ul.sf_date_field .sf-datepicker { ...@@ -20345,6 +20346,11 @@ ul.sf_date_field .sf-datepicker {
20345 margin: 0 auto; 20346 margin: 0 auto;
20346 overflow: hidden; 20347 overflow: hidden;
20347 } 20348 }
20349 @media only screen and (max-width: 67.063rem) {
20350 .carousel-items {
20351 overflow: scroll;
20352 }
20353 }
20348 20354
20349 .carousel-content { 20355 .carousel-content {
20350 height: 260px; 20356 height: 260px;
...@@ -20483,12 +20489,22 @@ ul.sf_date_field .sf-datepicker { ...@@ -20483,12 +20489,22 @@ ul.sf_date_field .sf-datepicker {
20483 height: 100%; 20489 height: 100%;
20484 max-height: 100%; 20490 max-height: 100%;
20485 } 20491 }
20492 @media only screen and (max-width: 67.063rem) {
20493 .swiper-slide {
20494 margin-right: 24px;
20495 }
20496 }
20486 20497
20487 .swiper-wrapper { 20498 .swiper-wrapper {
20488 max-height: 100%; 20499 max-height: 100%;
20489 height: 100%; 20500 height: 100%;
20490 display: flex; 20501 display: flex;
20491 } 20502 }
20503 @media only screen and (max-width: 67.063rem) {
20504 .swiper-wrapper {
20505 width: auto;
20506 }
20507 }
20492 20508
20493 .pojo-a11y-grayscale { 20509 .pojo-a11y-grayscale {
20494 overflow-y: scroll !important; 20510 overflow-y: scroll !important;
...@@ -21207,7 +21223,7 @@ ul.sf_date_field .sf-datepicker { ...@@ -21207,7 +21223,7 @@ ul.sf_date_field .sf-datepicker {
21207 max-width: 31rem; 21223 max-width: 31rem;
21208 min-width: 31rem; 21224 min-width: 31rem;
21209 min-height: 8.438rem; 21225 min-height: 8.438rem;
21210 margin-right: 30px; 21226 margin-right: 24px;
21211 } 21227 }
21212 .article-card a { 21228 .article-card a {
21213 color: white; 21229 color: white;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -26128,7 +26128,7 @@ ...@@ -26128,7 +26128,7 @@
26128 modules: [Navigation, Pagination, A11y, Keyboard], 26128 modules: [Navigation, Pagination, A11y, Keyboard],
26129 slidesOffsetAfter: 0, 26129 slidesOffsetAfter: 0,
26130 slidesOffsetBefore: 0, 26130 slidesOffsetBefore: 0,
26131 spaceBetween: 30, 26131 spaceBetween: 24,
26132 // centeredSlides: true, 26132 // centeredSlides: true,
26133 loop: false, 26133 loop: false,
26134 lazy: true, 26134 lazy: true,
...@@ -26160,7 +26160,9 @@ ...@@ -26160,7 +26160,9 @@
26160 } 26160 }
26161 } 26161 }
26162 }; 26162 };
26163 if ($(window).width() > 1074) {
26163 new Swiper(this, swiper_params); 26164 new Swiper(this, swiper_params);
26165 }
26164 }); 26166 });
26165 // $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left')); 26167 // $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left'));
26166 26168
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -15,6 +15,8 @@ jQuery(document).ready(function($) { ...@@ -15,6 +15,8 @@ jQuery(document).ready(function($) {
15 15
16 16
17 17
18
19
18 jQuery('.carousel-items').each(function() { 20 jQuery('.carousel-items').each(function() {
19 21
20 22
...@@ -24,7 +26,7 @@ jQuery(document).ready(function($) { ...@@ -24,7 +26,7 @@ jQuery(document).ready(function($) {
24 modules: [Navigation, Pagination, A11y, Keyboard], 26 modules: [Navigation, Pagination, A11y, Keyboard],
25 slidesOffsetAfter: 0, 27 slidesOffsetAfter: 0,
26 slidesOffsetBefore: 0, 28 slidesOffsetBefore: 0,
27 spaceBetween: 30, 29 spaceBetween: 24,
28 // centeredSlides: true, 30 // centeredSlides: true,
29 loop: false, 31 loop: false,
30 lazy: true, 32 lazy: true,
...@@ -60,10 +62,20 @@ jQuery(document).ready(function($) { ...@@ -60,10 +62,20 @@ jQuery(document).ready(function($) {
60 }, 62 },
61 63
62 }; 64 };
65 var mySwiper;
66 if ($(window).width() > 1074) {
67 mySwiper = new Swiper(this, swiper_params);
68 };
69 $(window).on('resize', function(){
70 if ($(window).width() > 1074) {
71 mySwiper = new Swiper(this, swiper_params);
72 }else{
73 mySwiper.destroy(true, true)
74 }
75 });
63 76
64 77
65 var mySwiper = new Swiper(this, swiper_params); 78 });
66
67 79
68 }); 80 });
69 // $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left')); 81 // $('.carousel ').css('margin-left',"-"+$('#content').css('margin-left'));
......
...@@ -27,8 +27,11 @@ ...@@ -27,8 +27,11 @@
27 left: 0%; 27 left: 0%;
28 width: 100vw; 28 width: 100vw;
29 padding: 0rem 0rem; 29 padding: 0rem 0rem;
30 overflow: scroll;
30 } 31 }
31 32
33
34
32 } 35 }
33 36
34 .carousel-items { 37 .carousel-items {
...@@ -41,7 +44,9 @@ ...@@ -41,7 +44,9 @@
41 //max-width: 75rem; 44 //max-width: 75rem;
42 margin: 0 auto; 45 margin: 0 auto;
43 overflow: hidden; 46 overflow: hidden;
44 47 @media only screen and (max-width:67.063rem) {
48 overflow: scroll;
49 }
45 50
46 } 51 }
47 .carousel-content{ 52 .carousel-content{
...@@ -184,6 +189,10 @@ height: 260px; ...@@ -184,6 +189,10 @@ height: 260px;
184 display: block; 189 display: block;
185 height: 100%; 190 height: 100%;
186 max-height: 100%; 191 max-height: 100%;
192 @media only screen and (max-width:67.063rem) {
193 margin-right: 24px;
194 }
195
187 } 196 }
188 197
189 .swiper-wrapper{ 198 .swiper-wrapper{
...@@ -191,4 +200,8 @@ height: 260px; ...@@ -191,4 +200,8 @@ height: 260px;
191 height: 100%; 200 height: 100%;
192 display: flex; 201 display: flex;
193 202
203 @media only screen and (max-width:67.063rem) {
204 width: auto;
205 }
206
194 } 207 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
119 max-width: 31rem; 119 max-width: 31rem;
120 min-width: 31rem; 120 min-width: 31rem;
121 min-height: 8.438rem; 121 min-height: 8.438rem;
122 margin-right: 30px; 122 margin-right: 24px;
123 a { 123 a {
124 color:white; 124 color:white;
125 gap: 1.625rem; 125 gap: 1.625rem;
......