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 / smart-info-box / style.scss

style.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at src/blocks/smart-info-box/style.scss

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