PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
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 / post-grid-four / style.scss

style.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/blocks/post-grid-four/style.scss

178 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-smart-show-pro.grid-four-container {
2
3 &.grid-four-layout-one,
4 &.grid-four-layout-two,
5 &.grid-four-layout-three,
6 &.grid-four-layout-four,
7 &.grid-four-layout-five {
8 .sp-smart-post-grid-four-static-contents {
9 grid-template-columns: repeat(4, 1fr);
10 }
11 }
12
13 &.grid-four-layout-one {
14 .sp-smart-post-grid-four-static-contents {
15 div:nth-child(2) {
16 grid-column: 2/4;
17 grid-row: 1/3;
18 }
19 }
20 }
21
22 &.grid-four-layout-two {
23 .sp-smart-post-grid-four-static-contents {
24 div:nth-child(1) {
25 grid-column: 1/3;
26 grid-row: 1/3;
27 }
28 }
29 }
30
31 &.grid-four-layout-three {
32 .sp-smart-post-grid-four-static-contents {
33 div:nth-child(3) {
34 grid-column: 3/5;
35 grid-row: 1/3;
36 }
37 }
38 }
39
40 &.grid-four-layout-four {
41 .sp-smart-post-grid-four-static-contents {
42 div:nth-child(1) {
43 grid-column: 1/3;
44 grid-row: 1/3;
45 }
46
47 div:nth-child(2) {
48 grid-column: 3/5;
49 }
50 }
51 }
52
53 &.grid-four-layout-five {
54 .sp-smart-post-grid-four-static-contents {
55 div:nth-child(1) {
56 grid-column: 1/3;
57 grid-row: 1/3;
58 }
59
60 div:nth-child(4) {
61 grid-column: 3/5;
62 }
63 }
64 }
65
66 &.grid-four-layout-six {
67 .sp-smart-post-grid-four-static-contents {
68 grid-template-columns: repeat(3, 1fr);
69
70 div:nth-child(1) {
71 grid-column: 1/3;
72 grid-row: 1/3;
73 }
74 }
75 }
76
77 .sp-smart-post-grid-four-static-contents {
78 display: grid;
79 min-height: 500px;
80 }
81 }
82
83 @media screen and (max-width: 768px) {
84 .grid-four-container .sp-smart-post-grid-four-static-contents {
85 height: auto !important;
86 }
87
88 .grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(1),
89 .grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(3),
90 .grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(4),
91 .grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(2) {
92 grid-column: auto !important;
93 grid-row: auto !important;
94 }
95 }
96
97
98
99
100 // // title animate effect..................................................
101 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title {
102 position: relative;
103 display: inline-block;
104 }
105
106 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:after {
107 content: "";
108 position: absolute;
109 transition: width 0.6s ease;
110 }
111
112 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title::before {
113 content: "";
114 position: absolute;
115 transition: width 0.6s ease;
116 }
117
118
119
120 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title .line {
121 position: relative;
122 display: inline-block;
123 padding-bottom: 2px;
124 }
125
126 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title .line::after {
127 content: '';
128 position: absolute;
129 bottom: 0;
130 left: 0;
131 width: 100%;
132 // height: 2px;
133 // background: linear-gradient(90deg, #ff416c, #ff4b2b);
134 // transform-origin: left;
135 transform: scaleX(0);
136 transition: transform 0.4s ease;
137 z-index: -1;
138 }
139
140 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line::after {
141 transform: scaleX(1);
142 }
143
144 /* Using :nth-of-type to target only .line elements */
145 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after {
146 transition-delay: 0s;
147 }
148
149 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after {
150 transition-delay: 0.2s;
151 }
152
153 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after {
154 transition-delay: 0.4s;
155 }
156
157 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after {
158 transition-delay: 0.6s;
159 }
160
161 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after {
162 transition-delay: 0.8s;
163 }
164
165 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after {
166 transition-delay: 1s;
167 }
168
169
170
171 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(7)::after {
172 transition-delay: 1.2s;
173 }
174
175
176 .sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(8)::after {
177 transition-delay: 1.4s;
178 }