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

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

322 lines 7.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 $currentColor: #000;
2
3 // ticker................................
4 .sp-smart-post-news-ticker {
5 // overflow: hidden;
6 position: relative;
7 white-space: nowrap;
8
9 .sp-marquee-inner {
10 display: inline-flex;
11 align-items: center;
12 white-space: nowrap;
13 will-change: transform;
14 // gap: 24px; /* control spacing */
15 }
16
17 .sp-marquee-inner .sp-ticker-item {
18 display: inline-flex;
19 align-items: center;
20 white-space: nowrap;
21 }
22
23 // slide and fade......................................................
24
25 .sps-news-ticker-slider {
26 position: relative;
27 width: 70%;
28 overflow: hidden;
29 display: flex;
30 }
31
32 .sps-news-ticker-wrapper {
33 display: flex;
34 transition: transform 0.5s ease;
35 width: 100%;
36 align-items: center;
37 }
38
39 @media only screen and (max-width: 1023px) {
40 .sp-smart-post-swiper-nav-arrow {
41 top: 25px;
42 }
43 }
44
45 .swiper-fade {
46 .sp-slide-item.swiper-slide-active {
47 opacity: 1 !important;
48 }
49
50 .sp-slide-item:not(.swiper-slide-active) {
51 opacity: 0 !important;
52 }
53 }
54
55 // typewrite......................................................
56
57 .sps-news-ticker-typewriter-js {
58 display: inline-block;
59 font-family: monospace;
60 white-space: nowrap;
61 overflow: hidden;
62 border-right: 2px solid $currentColor;
63 animation: caretBlink 1s infinite;
64 }
65
66 @keyframes caretBlink {
67
68 0%,
69 100% {
70 border-color: transparent;
71 }
72
73 50% {
74 border-color: $currentColor;
75 }
76 }
77
78 // News Ticker Default Heading Styles.................................
79 .sp-smart-post-swiper .ticker-heading {
80 display: flex;
81 position: relative;
82 justify-content: center;
83 align-items: center;
84 z-index: 2;
85 height: 100%;
86 box-sizing: border-box;
87 }
88
89 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-one-right,
90 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-two-right,
91 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-three-right,
92 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-four-right,
93 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-five-right,
94 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-seven-right {
95 margin-right: -2px !important;
96 margin-left: 5px !important;
97 }
98 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-six-right {
99 margin-right: 0px !important;
100 margin-left: 5px !important;
101 }
102
103 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-six-left,
104 .sp-smart-post-swiper .ticker-heading.sp-ticker-heading-six-right {
105 padding: 0 !important;
106 background: transparent !important;
107
108 .ticker-heading-content {
109 max-height: 90%;
110 box-sizing: border-box;
111 }
112 }
113
114 .sp-smart-post-swiper .ticker-heading {
115 &.sp-ticker-heading-six-left {
116 .ticker-heading-content {
117 border-top-left-radius: 4px;
118 border-bottom-left-radius: 4px;
119 margin-left: 2px;
120 }
121 }
122
123 &.sp-ticker-heading-six-right {
124 .ticker-heading-content {
125 border-top-right-radius: 4px;
126 border-bottom-right-radius: 4px;
127 margin-right: 2px !important;
128 }
129 }
130 }
131
132 .sp-smart-post-swiper .sp-ticker-heading-seven-left::after {
133 content: "";
134 position: absolute;
135 top: 10%;
136 bottom: 10%;
137 right: 0;
138 background: #004365;
139 border-right: 1px ridge #004365;
140 }
141
142 .sp-smart-post-swiper .sp-ticker-heading-seven-right::after {
143 content: "";
144 position: absolute;
145 top: 10%;
146 bottom: 10%;
147 left: 0;
148 background: #004365;
149 border-right: 1px ridge #004365;
150 }
151
152 // .sp-smart-post-ticker.sp-smart-ticker-separator {
153 // .rfm-child {
154 // position: relative;
155 // &::after {
156 // content: '';
157 // position: absolute;
158
159 // }
160 // }
161 // }
162
163 .sp-ticker-item {
164 .ticker-separator {
165 display: inline-block;
166 line-height: 1;
167 // font-size: 14px;
168 color: #999;
169 }
170 }
171
172 .sp-smart-post-ticker-title-img-wrapper {
173 align-items: center;
174
175 &.sp-img-left {
176 flex-direction: row;
177 }
178
179 &.sp-img-right {
180 flex-direction: row-reverse;
181 }
182
183 .sp-img-circle {
184 border-radius: 50%;
185 }
186 }
187
188 .sp-smart-post-swiper-nav-arrow-btn i {
189 box-shadow: none !important;
190 }
191 .sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn.btn-prev i {
192 transform: rotate(180deg);
193 }
194 .sp-smart-post-swiper-nav-arrow {
195 align-items: center;
196 cursor: pointer;
197 display: flex;
198 justify-content: center;
199 transition: .3s;
200 transform: translateY(-50%);
201 }
202 .sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn i {
203 display: flex;
204 align-items: center;
205 justify-content: center;
206 cursor: pointer;
207
208 &:focus {
209 outline: none !important;
210 }
211 }
212 .sp-smart-post-swiper-nav-arrow .sp-smart-post-swiper-nav-arrow-btn:focus {
213 outline: none;
214 }
215 .sp-smart-post-card-content,
216 .sp-smart-post-ticker,
217 .slider-class {
218 height: -webkit-fill-available;
219 }
220 }
221
222 .sp-smart-post-news-ticker {
223 .sp-ticker-heading-two-left {
224 clip-path: polygon(0% 0%, 85% 0%, 100% 0%, 85% 102%, 0% 102%);
225 }
226
227 .sp-ticker-heading-two-right {
228 clip-path: polygon(100% 0%, 15% 0%, 0% 0%, 15% 102%, 100% 102%);
229 }
230
231 .sp-ticker-heading-three-left {
232 clip-path: polygon(0% 0%, 85% 0%, 85% 0%, 100% 102%, 0% 102%);
233 }
234
235 .sp-ticker-heading-three-right {
236 clip-path: polygon(100% 0%, 15% 0%, 15% 0%, 0% 102%, 100% 102%);
237 }
238
239 .sp-ticker-heading-four-left {
240 clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 102%, 0% 102%);
241 }
242
243 .sp-ticker-heading-four-right {
244 clip-path: polygon(100% 0%, 15% 0%, 0% 50%, 15% 102%, 100% 102%);
245 }
246
247 // .sp-ticker-heading-five-left {
248 // clip-path: polygon(-5px -3px, 90% -7px, 90% 27%, 100% 52%, 90% 77%, 90% 102%, -3px 116%);
249 // }
250 // .sp-ticker-heading-five-right {
251 // clip-path: polygon( 100% -3px, 10% -7px, 10% 27%, 0% 52%, 10% 77%, 10% 102%, 100% 116%);
252 // }
253 .sp-ticker-heading-five-left {
254 &::after {
255 content: "";
256 position: absolute;
257 top: 50%;
258 right: 0;
259 left: 100%;
260 width: 0px;
261 height: 0px;
262 background: transparent;
263 transform: translateY(-50%);
264 border-top: 12px solid transparent;
265 border-bottom: 12px solid transparent;
266 // border-left: 12px solid black;
267 }
268 }
269
270 .sp-ticker-heading-five-right {
271 &::after {
272 content: "";
273 position: absolute;
274 top: 50%;
275 right: 0;
276 right: 100%;
277 width: 0px;
278 height: 0px;
279 background: transparent;
280 transform: translateY(-50%);
281 border-top: 12px solid transparent;
282 border-bottom: 12px solid transparent;
283 // border-right: 12px solid black;
284 }
285 }
286
287 // typography
288 .ticker-heading-label {
289 font-size: 14px;
290 line-height: 1.2;
291 font-weight: 500;
292 font-style: normal;
293 text-transform: capitalize;
294 margin-top: -1px;
295 }
296
297 .sp-smart-post-ticker-title {
298 font-size: 14px;
299 line-height: 1.2;
300 font-weight: 500;
301 font-style: normal;
302 text-transform: capitalize;
303 text-decoration: none;
304 }
305
306 .ticker-date {
307 font-size: 10px;
308 line-height: 1.2;
309 font-weight: 500;
310 font-style: normal;
311 text-transform: capitalize;
312 }
313
314 .sp-smart-post-swiper {
315 min-height: 48px;
316 height: 48px;
317 }
318 }
319
320 body .sp-smart-post-news-ticker .sp-smart-post-ticker-title {
321 text-decoration: none;
322 }