PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / blocks / thumbnail-slider-two / style.scss

style.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at src/blocks/thumbnail-slider-two/style.scss

788 lines 25.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-smart-post-wrapper.sp-smart-thumbnail-slider-two {
2 .sp-smart-post-thumbnail-two-thumb {
3 .sp-smart-post-swiper2 {
4 margin-top: 0;
5 .sp-smart-post-thumbs-template {
6 cursor: pointer;
7 }
8 }
9 .sp-taxonomy-type-tag,
10 .sp-taxonomy-type-category,
11 .sp-smart-post-title,
12 .sp-smart-post-card-content {
13 pointer-events: none !important;
14 }
15 }
16
17 .sp-smart-post-block-wrapper {
18 &.sp-smart-thumbnail-slider-two {
19 position: relative;
20 .sp-smart-post-thumbnail-slide-two {
21 width: 100%;
22 margin-bottom: 0;
23 .sp-background-image-wrapper {
24 .image-overlay.overlay-custom {
25 left: 0;
26 }
27 }
28 .sp-smart-post-template-one-content {
29 .sp-smart-post-card-content {
30 height: max-content;
31 gap: 6px;
32 }
33 }
34 .swiper-wrapper {
35 height: fit-content;
36 }
37 }
38 .sp-smart-post-thumbnail-two-thumb {
39 position: absolute;
40 }
41 }
42 &.thumbnail-slider-two-layout-one,
43 &.thumbnail-slider-two-layout-two {
44 .sp-smart-post-category {
45 .post-categories li a {
46 background: #fff;
47 }
48 }
49 .sp-smart-post-category {
50 .post-categories li a:hover {
51 background: var( --smart-post-secondary );
52 color: #333;
53 border-style: none;
54 }
55 }
56 }
57
58 // Layout One
59 &.thumbnail-slider-two-layout-one {
60 .sp-smart-post-swiper-nav-arrow {
61 // top: 83%;
62 gap: 100%;
63 .btn-prev {
64 left: 32px;
65 }
66 .btn-next {
67 left: unset;
68 right: 32px;
69 }
70 }
71 .sp-smart-post-template-one-content {
72 align-items: unset;
73 }
74 .sp-smart-post-thumbnail-two-thumb {
75 width: 60%;
76 bottom: 0;
77 overflow: hidden;
78 .sp-smart-post-swiper2 {
79 .swiper-wrapper {
80 align-items: flex-end;
81 }
82 .sp-smart-post-card {
83 padding: 18px 20px !important;
84 cursor: pointer;
85 &:hover {
86 .sp-smart-post-title {
87 color: #FFF;
88 }
89 }
90 .sp-smart-post-title {
91 display: flex;
92 flex-direction: column;
93 gap: 8px;
94 color: #333;
95 font-size: 18px;
96 }
97 }
98 .swiper-slide-thumb-active {
99 .sp-smart-post-card {
100 padding-top: 46px !important;
101 .sp-smart-post-title {
102 display: flex;
103 flex-direction: column;
104 gap: 8px;
105 color: #FFF;
106 }
107 }
108 }
109 .sp-smart-post-card {
110 .sp-smart-post-title-text {
111 display: flex;
112 flex-direction: column;
113 gap: 8px;
114 }
115 }
116 }
117 }
118 }
119 // Layout two
120 &.thumbnail-slider-two-layout-two {
121 .sp-smart-post-swiper-nav-arrow {
122 // top: 83%;
123 gap: 100%;
124 .btn-prev {
125 left: 32px;
126 }
127 .btn-next {
128 left: unset;
129 right: 32px;
130 }
131 }
132 .sp-smart-post-template-one-content {
133 align-items: unset;
134 }
135 .sp-smart-post-thumbnail-two-thumb {
136 .sp-smart-post-card {
137 position: relative;
138 padding: 0 !important;
139 background: transparent !important;
140 .sp-smart-post-title {
141 color: #FFF;
142 font-size: 16px;
143 }
144 .sp-smart-post-title-wrapper {
145 // position: relative;
146 width: 100%;
147 .sp-thumbnail-progress-bar {
148 position: absolute;
149 display: inline-block;
150 background: #fff;
151 }
152 }
153 .sp-smart-post-card-content {
154 height: 100%;
155 align-content: end;
156 padding-bottom: 8px;
157 }
158 }
159 &.thumbnails-bottom {
160 width: 80%;
161 bottom: 80px;
162 left: 50%;
163 transform: translateX(-50%);
164 z-index: 1;
165 }
166 &.thumbnails-left {
167 top: 0;
168 width: 20%;
169 left: 40px;
170 margin: 5% auto;
171 }
172 &.thumbnails-right {
173 top: 0;
174 width: 20%;
175 right: 40px;
176 margin: 5% auto;
177 }
178 .swiper-slide-thumb-active {
179 .sp-smart-post-card {
180 .sp-smart-post-title-wrapper {
181 .sp-thumbnail-progress-bar {
182 &::after {
183 content: '';
184 position: absolute;
185 // animation: progress 2s linear forwards;
186 }
187 }
188 }
189 }
190 }
191 &.progress-bar-left .swiper-slide-thumb-active {
192 .sp-smart-post-card {
193 .sp-smart-post-title-wrapper {
194 .sp-thumbnail-progress-bar {
195 &::after {
196 content: '';
197 position: absolute;
198 // animation: progress-left 2s linear forwards;
199 }
200 }
201 }
202 }
203 }
204 &.progress-bar-top {
205 .swiper-wrapper .sp-smart-post-template-one-content {
206 align-items: flex-start !important;
207 .sp-smart-post-title {
208 padding-top: 4px;
209 }
210 .sp-thumbnail-progress-bar {
211 top: 0;
212 left: 0;
213 // animation: 3s ease-in 1s infinite reverse both running progress;
214 &::after {
215 width: 0%;
216 height: 100%;
217 top: 0;
218 left: 0;
219 }
220 }
221 }
222 }
223 &.progress-bar-bottom {
224 .swiper-wrapper .sp-smart-post-template-one-content {
225 align-items: flex-end !important;
226 .sp-smart-post-title {
227 padding-bottom: 4px;
228 }
229 .sp-thumbnail-progress-bar{
230 bottom: 0;
231 left: 0;
232 &::after {
233 width: 0%;
234 height: 100%;
235 top: 0;
236 left: 0;
237 }
238 }
239 }
240 }
241 &.progress-bar-left {
242 .swiper-wrapper .sp-smart-post-template-one-content {
243 align-items: center !important;
244 .sp-smart-post-title {
245 padding-left: 8px;
246 }
247 .sp-thumbnail-progress-bar {
248 bottom: 0;
249 left: 0;
250 &::after {
251 width: 100%;
252 height: 0%;
253 bottom: 0;
254 left: 0;
255 }
256 }
257 }
258 }
259
260 }
261 }
262
263 // Layout three
264 &.thumbnail-slider-two-layout-three {
265 .sp-smart-post-thumbnail-two-thumb {
266 .sp-smart-post-card-image {
267 border-style: none !important;
268 border-radius: 0 !important;
269 }
270 }
271 .sp-smart-post-swiper-nav-arrow {
272 top: 90%;
273 .btn-prev {
274 left: 56%;
275 }
276 .btn-next {
277 left: calc(56% + 15px);
278 }
279 }
280 .swiper {
281 z-index: unset;
282 }
283 &.sp-thumbnail-left {
284 .sp-smart-post-thumbnail-slide-two {
285 .sp-smart-post-template-one-content {
286 display: flex;
287 justify-content: flex-end;
288 }
289 }
290 .sp-smart-post-swiper-nav-arrow {
291 .btn-prev {
292 left: 15%;
293 }
294 .btn-next {
295 left: calc(15% + 15px);
296 }
297 }
298 }
299 .sp-smart-post-card-content {
300 width: 45%;
301 }
302 .sp-smart-post-thumbnail-two-thumb {
303 bottom: 100px;
304 width: 40%;
305 &.thumbnails-right {
306 right: 12.5%;
307 }
308 &.thumbnails-left {
309 left: 12.5%;
310 }
311 .sp-smart-post-card-content {
312 width: 100%;
313 }
314 .sp-smart-post-card {
315 background: transparent !important;
316
317 .sp-background-image-wrapper {
318 .sp-background-image-styles {
319 background-repeat: no-repeat !important;
320 background-size: cover !important;
321 }
322 .image-overlay.overlay-custom {
323 background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.68) 100%) !important;
324 left: 0;
325 width: 100%;
326 opacity: 1;
327 }
328 }
329 .sp-smart-post-template-one-content {
330 align-items: flex-end;
331 padding-left:12px !important;
332 padding-right: 12px !important;
333 padding-bottom: 14px !important;
334 .sp-smart-post-category a {
335 font-weight: 300 !important;
336 }
337 }
338 }
339 .sp-slide-item-thumb {
340 border: 3px solid #ffffff33;
341 }
342 }
343 }
344 // Layout four
345 &.thumbnail-slider-two-layout-four {
346 .sp-smart-post-swiper-nav-arrow {
347 top: 83%;
348 .btn-prev {
349 left: 65%;
350 }
351 .btn-next {
352 left: calc(65% + 15px);
353 }
354 }
355 .swiper {
356 z-index: unset;
357 }
358 .sp-smart-post-thumbnail-slide-two{
359 .sp-smart-post-card-content {
360 width: 50%;
361 }
362 }
363 &.sp-thumbnail-left {
364 .sp-smart-post-thumbnail-slide-two{
365 .sp-smart-post-card-content {
366 margin-left: auto;
367 }
368 }
369 .sp-smart-post-swiper-nav-arrow {
370 .btn-prev {
371 left: 24%;
372 }
373 .btn-next {
374 left: calc(24% + 15px);
375 }
376 }
377 }
378 .sp-smart-post-thumbnail-two-thumb {
379 width: 25%;
380 max-height: 86%;
381 top: 40%;
382 transform: translateY(-40%);
383 z-index: 1;
384
385 .sp-smart-post-swiper2 {
386 height: 100%;
387 }
388 &.thumbnails-right {
389 right: 14%;
390 }
391 &.thumbnails-left {
392 left: 14%;
393 }
394 .sp-slide-item-thumb {
395 border: 1px solid #ffffff1a;
396 background: rgba(0, 0, 0, 0.10);
397 backdrop-filter: blur(2px);
398 min-height: 64px !important;
399
400 &.swiper-slide-thumb-active {
401 border-color: #ffffff66;
402 }
403 .sp-smart-post-card {
404 display: flex;
405 flex-direction: row;
406 align-items: center;
407 padding: 8px !important;
408 gap: 12px;
409 height: 100% !important;
410 background: rgba(0, 0, 0, 0.10) !important;
411 backdrop-filter: blur( 2px );
412
413 .sp-smart-post-card-image {
414 width: 26% !important;
415 height: 85%;
416 a img {
417 width: 100%;
418 height: 100% !important;
419 }
420 }
421 .sp-smart-post-template-one-content {
422 width: 70%;
423 left: 30%;
424 .sp-smart-post-category a {
425 font-weight: 300 !important;
426 }
427 }
428 }
429 }
430 }
431 }
432
433 // Layout five
434 &.thumbnail-slider-two-layout-five {
435 .sp-smart-post-swiper-nav-arrow {
436 top: 90%;
437 i {
438 border-radius: 0;
439 }
440 .btn-prev {
441 left: 84%;
442 }
443 .btn-next {
444 left: calc(84% + 15px);
445 }
446 }
447 .swiper {
448 z-index: unset;
449 }
450 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card-content {
451 width: 70%;
452 }
453 .sp-smart-post-thumbnail-two-thumb {
454 width: 30%;
455 height: 100%;
456 top: 0;
457 bottom: 0;
458 right: 0;
459 // transform: translateY(-40%);
460 z-index: 1;
461 backdrop-filter: blur(4px);
462 .sp-smart-post-swiper2 {
463 height: 78%;
464 margin-top: 34px;
465 margin-right: 12%;
466 margin-bottom: 90px;
467 margin-left: 12%;
468 }
469 .sp-slide-item-thumb {
470 &.swiper-slide-thumb-active {
471 .sp-smart-post-card-image {
472 a img {
473 border: 2px solid #fff;
474 box-sizing: border-box;
475 }
476 }
477 }
478 .sp-smart-post-card {
479 display: flex;
480 flex-direction: row;
481 align-items: center;
482 // padding: 8px !important;
483 gap: 12px;
484 height: 100% !important;
485 background: transparent !important;
486
487 .sp-smart-post-card-image {
488 width: 26% !important;
489 height: 100%;
490 a img {
491 width: 100%;
492 height: 100% !important;
493 }
494 }
495 .sp-smart-post-template-one-content {
496 width: 70%;
497 left: 30%;
498 align-items: center !important;
499 .sp-smart-post-category a {
500 font-weight: 300 !important;
501 }
502 }
503 }
504 }
505 }
506 }
507
508 &.thumbnail-slider-two-layout-three,
509 &.thumbnail-slider-two-layout-four,
510 &.thumbnail-slider-two-layout-five {
511 .sp-smart-post-title {
512 color: #FFF;
513 font-size: 14px;
514 font-style: normal;
515 font-weight: 600;
516 line-height: 125%;
517 }
518 .sp-smart-post-category {
519 a {
520 margin: 0 !important;
521 padding: 0 !important;
522 background: transparent !important;
523 position: relative;
524 color: #fff
525 }
526 .post-categories li a {
527 margin: 0 !important;
528 padding: 0 !important;
529 background: transparent !important;
530 position: relative;
531 color: #fff;
532 }
533 }
534 }
535 &.thumbnail-slider-two-layout-three,
536 &.thumbnail-slider-two-layout-four {
537 .sp-smart-post-category {
538 a {
539 padding-top: 8px !important;
540 &::before {
541 content: '';
542 position: absolute;
543 top: 0;
544 left: 0;
545 width: 80%;
546 height: 2px;
547 }
548 }
549 .post-categories li a {
550 padding-top: 8px !important;
551 &::before {
552 content: '';
553 position: absolute;
554 top: 0;
555 left: 0;
556 width: 80%;
557 height: 2px;
558 }
559 }
560 }
561 }
562 &.thumbnail-slider-two-layout-four {
563 .sp-smart-post-thumbs-template {
564 .sp-smart-post-template-one-content {
565 padding-left: 8px;
566 }
567 }
568 }
569 &.thumbnail-slider-two-layout-five {
570 .sp-smart-post-category {
571 a {
572 padding-bottom: 8px !important;
573 &::before {
574 content: '';
575 position: absolute;
576 bottom: 0;
577 left: 0;
578 width: 80%;
579 height: 2px;
580 }
581 }
582 .post-categories li a {
583 padding-bottom: 8px !important;
584 &::before {
585 content: '';
586 position: absolute;
587 bottom: 0;
588 left: 0;
589 width: 80%;
590 height: 2px;
591 }
592 }
593 }
594 }
595 }
596
597 /* Hide content area's extra overlay */
598 .sp-smart-thumbnail-slider-two {
599 .sp-smart-post-template-one-content {
600 // .overlay-warm-sunset
601 &[class*="overlay-"]*="overlay-""] {
602 background: transparent;
603 }
604 }
605 }
606
607 /* Hide scrollbar in WebKit browsers (Chrome, Safari) */
608 .sp-smart-post-thumbnail-two-thumb.thumbnails-left::-webkit-scrollbar,
609 .sp-smart-post-thumbnail-two-thumb.thumbnails-right::-webkit-scrollbar {
610 width: 0;
611 }
612
613 /* Hide scrollbar in Firefox */
614 .sp-smart-post-thumbnail-two-thumb.thumbnails-left,
615 .sp-smart-post-thumbnail-two-thumb.thumbnails-right {
616 scrollbar-width: none;
617 }
618
619 @keyframes progress-auto-off {
620 0% {
621 width: 0%;
622 }
623 40% {
624 width: 50%;
625 }
626 80% {
627 left: 0;
628 }
629 100% {
630 width: 100%;
631 left: 0;
632 }
633 }
634 @keyframes progress-left-auto-off {
635 0% {
636 height: 0%;
637 }
638 40% {
639 height: 50%;
640 }
641 80% {
642 }
643 100% {
644 height: 100%;
645 // bottom: 100%;
646 }
647 }
648 @keyframes progress {
649 0% {
650 width: 0%;
651 }
652 40% {
653 width: 50%;
654 }
655 80% {
656 width: 100%;
657 left: 0;
658 }
659 90% {
660 width: 50%;
661 left: 50%;
662 }
663 100% {
664 width: 0%;
665 left: 100%;
666 }
667 }
668 @keyframes progress-left {
669 0% {
670 height: 0%;
671 bottom: 0%;
672 }
673 40% {
674 height: 50%;
675 bottom: 0%;
676 }
677 80% {
678 height: 100%;
679 bottom: 0%;
680 }
681 100% {
682 height: 0%;
683 bottom: 100%;
684 }
685 }
686
687 .sp-smart-post-thumbnail-two-thumb.thumbs-align-left {
688 left: 0;
689 }
690 .sp-smart-post-thumbnail-two-thumb.thumbs-align-center {
691 left: 20%;
692 }
693 .sp-smart-post-thumbnail-two-thumb.thumbs-align-right {
694 left: 40%;
695 }
696 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-template-one-content {
697 margin-left: auto;
698 margin-right: auto;
699 }
700 .sp-smart-post-background-layout .sp-smart-post-card {
701 padding: 0px !important;
702 }
703 }
704
705 @media screen and (max-width: 1023px) {
706 .sp-smart-post-block-wrapper.thumbnail-slider-two-layout-four .sp-smart-post-thumbnail-two-thumb.thumbnails-right {
707 right: 14px;
708 }
709 .sp-smart-post-block-wrapper.thumbnail-slider-two-layout-four .sp-smart-post-thumbnail-two-thumb.thumbnails-left {
710 left: 14px;
711 }
712 }
713 .sp-smart-post-thumbnail-two-thumb .sp-smart-post-card a {
714 pointer-events: none;
715 }
716
717
718
719
720 // // title animate effect..................................................
721 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title {
722 position: relative;
723 display: inline-block;
724 }
725
726 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:after {
727 content: "";
728 position: absolute;
729 transition: width 0.6s ease;
730 }
731
732 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title::before {
733 content: "";
734 position: absolute;
735 transition: width 0.6s ease;
736 }
737
738
739 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title .line {
740 position: relative;
741 display: inline-block;
742 padding-bottom: 2px;
743 }
744
745 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title .line::after {
746 content: '';
747 position: absolute;
748 bottom: 0;
749 left: 0;
750 width: 100%;
751 // height: 2px;
752 // background: linear-gradient(90deg, #ff416c, #ff4b2b);
753 // transform-origin: left;
754 transform: scaleX(0);
755 transition: transform 0.4s ease;
756 z-index: -1;
757 }
758 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line::after {
759 transform: scaleX(1);
760 }
761
762 /* Using :nth-of-type to target only .line elements */
763 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after {
764 transition-delay: 0s;
765 }
766
767 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after {
768 transition-delay: 0.2s;
769 }
770
771 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after {
772 transition-delay: 0.4s;
773 }
774
775 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after {
776 transition-delay: 0.6s;
777 }
778
779 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after {
780 transition-delay: 0.8s;
781 }
782 .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after {
783 transition-delay: 1s;
784 }
785
786
787
788