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-slider / 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-slider/style.scss

271 lines 7.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-smart-post-slider {
2 .sp-smart-post-swiper {
3 .swiper-wrapper {
4 padding-bottom: 0;
5
6 .sp-smart-post-card {
7 overflow: hidden;
8 }
9 }
10
11 &.post-slider-layout-one {
12 .sp-smart-post-template-one-content {
13 width: 100%;
14 height: 100%;
15 display: flex;
16 justify-content: center;
17 position: absolute;
18 }
19 }
20
21 &.post-slider-layout-two {
22 .sp-smart-post-template-one-content {
23 width: 100%;
24 height: 100%;
25 display: flex;
26 justify-content: center;
27 position: absolute;
28
29 .sp-smart-post-card-content {
30 padding-right: 10%;
31 }
32 }
33 }
34
35 &.post-slider-layout-three {
36 display: flex;
37 justify-content: center;
38 align-items: flex-end;
39
40 .sp-smart-post-template-one-content {
41 position: absolute;
42
43 .sp-smart-post-card-content {
44 position: absolute;
45 min-height: 50%;
46 }
47 }
48 }
49
50 &.post-slider-layout-four {
51 display: flex;
52 justify-content: flex-end;
53 align-items: center;
54
55 .sp-smart-post-template-one-content {
56 display: flex;
57 // flex-direction: column;
58 align-items: center;
59 height: 75%;
60 justify-content: center;
61 position: absolute;
62 z-index: 2;
63 }
64 }
65
66 &.post-slider-layout-five {
67 &.content-left {
68 .sp-smart-post-card-image {
69 .image-overlay {
70 width: 50%;
71 left: 0;
72 }
73 }
74
75 .sp-smart-post-template-one-content {
76 left: 0;
77 }
78 }
79
80 &.content-right {
81 .sp-smart-post-card-image {
82 .image-overlay {
83 width: 50%;
84 left: 50%;
85 }
86 }
87
88 .sp-smart-post-template-one-content {
89 left: 50%;
90 }
91 }
92
93 .sp-smart-post-template-one-content {
94 display: flex;
95 height: inherit;
96 justify-content: center;
97 position: absolute;
98 z-index: 6;
99 width: 50%;
100
101 .sp-smart-post-card-content {
102 width: 100%;
103 }
104 }
105 }
106
107 &.post-slider-layout-four {
108 .sp-smart-post-swiper-nav-arrow {
109 top: 79%;
110 left: 50%;
111 right: 100%;
112 }
113 }
114
115 &.post-slider-layout-five {
116 .sp-smart-post-swiper-nav-arrow {
117 top: 100%;
118 transform: translateY(-170%);
119 left: 70%;
120 right: 24%;
121 }
122 }
123
124 &.post-slider-layout-five {
125 .sp-smart-post-template-one-content {
126 &.left {
127 position: absolute;
128 align-items: flex-start;
129 top: 0;
130 left: 0;
131 }
132
133 &.center {
134 display: flex;
135 flex-direction: column;
136 align-items: center;
137 }
138 }
139 }
140
141 &.post-slider-layout-one {
142 .sp-smart-post-swiper-nav-arrow {
143 top: 50%;
144 }
145 }
146 }
147
148 .sp-smart-post-pagination-dots {
149 left: 50%;
150 transform: translateX(-50%);
151 }
152
153 .sp-background-image-wrapper {
154 position: relative;
155 height: 100%;
156 width: 100%;
157 }
158
159 .sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn.btn-prev {
160 left: 30px;
161 }
162
163 .sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn.btn-next {
164 left: calc(100% - 30px);
165 }
166
167 .post-slider-layout-five+.sp-smart-post-swiper-nav-arrow {
168 top: 95%;
169 }
170
171 .post-slider-layout-five+.sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn.btn-prev {
172 left: 63%;
173 }
174
175 .post-slider-layout-five+.sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn.btn-next {
176 left: 65%;
177 }
178 }
179
180 .sp-smart-post-slider .sp-swiper-fade .swiper-slide.sp-slide-item {
181 opacity: 0 !important;
182 }
183
184 .sp-smart-post-slider .sp-swiper-fade .swiper-slide.swiper-slide.sp-slide-item.swiper-slide-active {
185 opacity: 1 !important;
186 }
187
188 .sp-smart-post-slider .sp-smart-post-swiper-nav-arrow-btn i {
189 background: transparent;
190 border-color: #FFF;
191 }
192
193
194
195
196 // // title animate effect..................................................
197 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title {
198 position: relative;
199 display: inline-block;
200 }
201
202 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:after {
203 content: "";
204 position: absolute;
205 transition: width 0.6s ease;
206 }
207
208 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title::before {
209 content: "";
210 position: absolute;
211 transition: width 0.6s ease;
212 }
213
214
215 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title .line {
216 position: relative;
217 display: inline-block;
218 padding-bottom: 2px;
219 }
220
221 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title .line::after {
222 content: '';
223 position: absolute;
224 bottom: 0;
225 left: 0;
226 width: 100%;
227 // height: 2px;
228 // background: linear-gradient(90deg, #ff416c, #ff4b2b);
229 // transform-origin: left;
230 transform: scaleX(0);
231 transition: transform 0.4s ease;
232 z-index: -1;
233 }
234
235 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line::after {
236 transform: scaleX(1);
237 }
238
239 /* Using :nth-of-type to target only .line elements */
240 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after {
241 transition-delay: 0s;
242 }
243
244 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after {
245 transition-delay: 0.2s;
246 }
247
248 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after {
249 transition-delay: 0.4s;
250 }
251
252 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after {
253 transition-delay: 0.6s;
254 }
255
256 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after {
257 transition-delay: 0.8s;
258 }
259
260 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after {
261 transition-delay: 1s;
262 }
263
264
265 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(7)::after {
266 transition-delay: 1.2s;
267 }
268
269 .sp-smart-post-slider .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(8)::after {
270 transition-delay: 1.4s;
271 }