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

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

410 lines 8.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .layoutOne .sp-smart-post-live-filter-parent {
2 .block-editor-inner-blocks .block-editor-block-list__layout {
3 display: flex;
4 flex-wrap: wrap;
5 }
6
7 .wp-block-sp-smart-post-show-live-filter {
8 flex-wrap: wrap;
9 }
10
11 // Child blocks.
12 .sp-smart-post-live-filter {
13 position: relative;
14 width: 280px;
15
16 &-label {
17 font-size: 16px;
18 font-weight: 600;
19 color: #4e4f52;
20 display: block;
21 line-height: 24px;
22 margin-bottom: 5px;
23 }
24
25 &-btn {
26 display: flex;
27 width: 100%;
28 justify-content: space-between;
29 align-items: center;
30 background: transparent;
31 color: #838487;
32 border: 1px solid #838487;
33 padding: 10px 12px;
34 border-radius: 2px;
35 font-size: 14px;
36 text-transform: capitalize;
37 cursor: pointer;
38 transition: all 0.3s ease-in-out;
39
40 &:focus {
41 box-shadow: 0 0 0 1px #1a74e4;
42 outline: none;
43 }
44 }
45
46 &-dropdown {
47 list-style: none;
48 position: absolute;
49 top: 100%;
50 left: 0;
51 // width: max-content;
52 width: 100%;
53 border-radius: 2px;
54 box-shadow:
55 0 10px 15px -3px rgba(0, 0, 0, 0.1),
56 0 4px 6px -2px rgba(0, 0, 0, 0.05);
57 background-color: #fff;
58 outline: none;
59 z-index: 99;
60 opacity: 0;
61 transform-origin: top left;
62 visibility: hidden;
63 // overflow: hidden;
64 margin: 0;
65 padding: 0;
66
67 li {
68 margin: 0;
69 padding: 0;
70
71 a {
72 color: #4e4f52;
73 padding: 8px 12px;
74 text-decoration: none !important;
75 display: block;
76 text-transform: capitalize;
77 transition: 0.3s ease-in-out;
78 }
79
80 a:hover {
81 background: #ccc;
82 }
83 }
84
85 .sp-dropdown-search-field {
86 padding: 8px 12px;
87
88 input {
89 width: 100%;
90
91 &:focus {
92 box-shadow: none;
93 outline: none;
94 border-color: #4e4f52;
95 }
96 }
97 }
98 }
99
100 &-button {
101 list-style: none;
102 display: flex;
103 gap: 8px;
104 flex-wrap: wrap;
105 margin: 0;
106 padding: 0;
107
108 li {
109 margin: 0;
110 padding: 0;
111
112 a {
113 padding: 10px 20px;
114 border: 1px solid #4e4f52;
115 color: #4e4f52;
116 font-size: 14px;
117 font-weight: 500;
118 text-decoration: none !important;
119 display: inline-block;
120
121 &.active {
122 color: #fff;
123 background: #4e4f52;
124 }
125 }
126 }
127 }
128
129 &-button li a:focus,
130 &-dropdown li a:focus {
131 box-shadow: none;
132 outline: none;
133 }
134
135 &-dropdown.open {
136 opacity: 1;
137 visibility: visible;
138 z-index: 99999;
139 }
140
141 .sp-smart-post-search-field {
142 input {
143 width: 100%;
144 min-height: auto;
145 height: auto;
146 border: none;
147 line-height: 24px;
148 padding: 0 0 0 8px;
149
150 &:focus {
151 box-shadow: none;
152 outline: none;
153 border-color: #4e4f52;
154 }
155 }
156
157 input::placeholder {
158 opacity: 0.7;
159 }
160 }
161 }
162 }
163
164 .layoutOne.sp-smart-full {
165 .sp-smart-post-live-filter,
166 .sp-smart-post-sort-filter,
167 .sp-smart-post-taxonomy-filter {
168 width: 100%;
169 flex-grow: 1;
170 }
171 .block-editor-inner-blocks .block-editor-block-list__layout {
172 flex-wrap: nowrap;
173 }
174 }
175
176 .sp-smart-full {
177 // .sp-smart-post-live-filter {
178 // width: auto;
179 // }
180
181 .block-editor-inner-blocks .block-editor-block-list__layout {
182 flex-wrap: nowrap;
183 }
184
185 .sp-smart-post-live-filter-parent .wp-block-sp-smart-post-show-live-filter {
186 flex-wrap: nowrap;
187 }
188
189 .sp-smart-post-live-filter,
190 .wp-block-sp-smart-post-show-sort-filter,
191 .wp-block-sp-smart-post-show-search-filter,
192 .wp-block-sp-smart-post-show-author-filter,
193 .wp-block-sp-smart-post-show-taxonomy-filter {
194 width: 100%;
195 white-space: nowrap;
196 }
197
198 .sp-smart-post-live-filter-dropdown {
199 width: 100%;
200 }
201 }
202
203 .sp-smart-full.sp-width-33 {
204 .block-editor-inner-blocks .block-editor-block-list__layout {
205 flex-wrap: wrap;
206 }
207
208 .sp-smart-post-live-filter-parent .wp-block-sp-smart-post-show-live-filter {
209 flex-wrap: wrap;
210 }
211
212 // .wp-block-sp-smart-post-show-sort-filter,
213 // .wp-block-sp-smart-post-show-search-filter,
214 // .wp-block-sp-smart-post-show-author-filter,
215 // .wp-block-sp-smart-post-show-taxonomy-filter {
216 // width: 33%;
217 // }
218 }
219
220 @media screen and (max-width: 767px) {
221
222 .sp-smart-post-live-filter-parent .wp-block-sp-smart-post-show-live-filter,
223 .block-editor-inner-blocks .block-editor-block-list__layout {
224 flex-wrap: wrap;
225 }
226 .layoutOne.sp-smart-full {
227 .sp-smart-post-live-filter,
228 .sp-smart-post-sort-filter,
229 .block-editor-inner-blocks .block-editor-block-list__layout {
230 flex-wrap: wrap;
231 }
232 }
233 }
234
235 .sp-smart-post-search-field-icon {
236 height: 20px;
237 width: 20px;
238 padding-top: 2px;
239 }
240
241 .sp-smart-post-live-filter-label {
242 font-size: 16px;
243 line-height: 1.2;
244 font-weight: 600;
245 text-transform: capitalize;
246 }
247
248 .sp-smart-post-live-filter-button li a,
249 .sp-smart-post-live-filter-dropdown li a,
250 .sp-smart-post-live-filter-btn,
251 .sp-smart-post-live-filter-btn svg path {
252 font-size: 14px;
253 line-height: 1.2;
254 font-weight: 400;
255 text-transform: capitalize;
256 }
257
258
259 //..........layout two...........
260
261
262 a:focus,
263 a:focus .gravatar,
264 a:focus .media-icon img,
265 a:focus .plugin-icon {
266 box-shadow: none !important;
267 outline: none !important;
268 }
269
270 .sps-live-filter-navbar {
271 display: flex;
272 justify-content: space-between;
273 position: relative;
274 align-items: end;
275 }
276
277
278 .sps-live-filter-latest-post-btn {
279 border: none;
280 padding: 10px 20px;
281 font-weight: 600;
282 cursor: pointer;
283 transition: background-color 0.3s;
284 position: relative;
285 z-index: 1;
286 margin: 0;
287 transition: all 0.3s,
288 }
289
290
291
292 .sps-live-filter-nav-container {
293 flex-grow: 1;
294 display: flex;
295 position: relative;
296 z-index: 1;
297
298 }
299
300 .sps-live-filter-nav-menu {
301 display: flex;
302 list-style: none;
303 margin: 0;
304 padding: 0;
305 align-items: center;
306 // max-height: 47px;
307 }
308
309 .sps-live-filter-nav-item {
310 position: relative;
311 }
312
313 .sps-live-filter-nav-link {
314 text-decoration: none;
315 font-weight: 500;
316 padding: 8px 12px;
317 transition: background-color 0.3s, color 0.3s;
318 display: flex;
319 align-items: center;
320 }
321
322
323 .sps-live-filter-dropdown-arrow {
324 display: flex;
325 align-items: center;
326 justify-content: center;
327 margin-left: 5px;
328 transition: transform 0.3s;
329 }
330
331 .sps-live-filter-dropdown-menu {
332 position: absolute;
333 top: 112%;
334 right: 0;
335 background-color: white;
336 min-width: 150px;
337 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
338 border-radius: 4px;
339 padding: 8px 0;
340 display: none;
341 z-index: 100;
342 }
343
344 .sps-live-filter-dropdown.active .sps-live-filter-dropdown-menu {
345 display: block;
346 max-height: 400px;
347 overflow-y: auto;
348 overflow-x: hidden;
349 }
350
351 .sps-live-filter-dropdown.active .sps-live-filter-dropdown-arrow {
352 transform: rotate(180deg);
353 }
354
355 .sps-live-filter-dropdown-item {
356 display: block;
357 padding: 8px 16px;
358 color: #333;
359 text-decoration: none;
360 transition: background-color 0.3s;
361 }
362
363 // .sps-live-filter-dropdown-item:hover {
364 // background-color: #f0f0f0;
365 // color: #e53935;
366 // }
367
368 // .sps-live-filter-dropdown-item.active {
369 // color: #e53935;
370 // font-weight: 600;
371 // }
372
373 .sps-live-filter-latest-post-btn.styleFive {
374 text-decoration-line: underline;
375 text-decoration-style: wavy;
376 text-decoration-skip-ink: auto;
377 text-decoration-color: #503AA8;
378 }
379
380 .sps-live-filter-layout-two .sps-live-filter-latest-post-btn {
381
382 background-color: var(--smart-post-secondary);
383
384 }
385
386
387 .sps-live-filter-layout-two .sps-live-filter-nav-link {
388 color: var(--smart-post-dark-2-text);
389 }
390
391 .sps-live-filter-layout-two .sps-live-filter-nav-link.active {
392 color: var(--smart-post-secondary);
393 }
394
395 .sps-live-filter-latest-post-btn.styleOne {
396 color: var(--smart-post-light-text);
397 }
398
399 .sps-live-filter-latest-post-btn.styleTwo,
400 .sps-live-filter-latest-post-btn.styleThree,
401 .sps-live-filter-latest-post-btn.styleFour,
402 .sps-live-filter-latest-post-btn.styleFive {
403 color: #4E4F52;
404 background-color: #00960300
405 }
406 .layoutOne.sp-smart-post-wrapper,
407 .layoutTwo.sp-smart-post-wrapper {
408 position: relative;
409 z-index: 9;
410 }