| 1 |
/** |
| 2 |
* grid one block's all layouts css. |
| 3 |
* frontend and backend |
| 4 |
*/ |
| 5 |
|
| 6 |
@mixin large-image-css { |
| 7 |
height: 600px; |
| 8 |
width: 100%; |
| 9 |
object-fit: cover; |
| 10 |
} |
| 11 |
|
| 12 |
@mixin medium-image-css { |
| 13 |
height: 300px; |
| 14 |
width: 100%; |
| 15 |
object-fit: cover; |
| 16 |
} |
| 17 |
|
| 18 |
@mixin small-image-css { |
| 19 |
height: 200px; |
| 20 |
width: 100%; |
| 21 |
object-fit: cover; |
| 22 |
} |
| 23 |
|
| 24 |
@mixin extra-small-image-css { |
| 25 |
height: 150px; |
| 26 |
width: 100%; |
| 27 |
object-fit: cover; |
| 28 |
} |
| 29 |
|
| 30 |
.sp-smart-post-wrapper { |
| 31 |
.sp-smart-post-dynamic-grid-contents:not(.grid-one-layout-five) { |
| 32 |
display: grid; |
| 33 |
} |
| 34 |
|
| 35 |
.grid-one-layout-five { |
| 36 |
.sp-smart-post-dynamic-grid-contents { |
| 37 |
display: grid; |
| 38 |
grid-template-columns: repeat(3, 1fr); |
| 39 |
grid-template-rows: auto; |
| 40 |
|
| 41 |
div:nth-child(4n + 1) { |
| 42 |
grid-column: span 2; |
| 43 |
} |
| 44 |
|
| 45 |
div:nth-child(4n + 2) { |
| 46 |
grid-column: span 1; |
| 47 |
} |
| 48 |
|
| 49 |
div:nth-child(4n + 3) { |
| 50 |
grid-column: span 1; |
| 51 |
} |
| 52 |
|
| 53 |
div:nth-child(4n + 4) { |
| 54 |
grid-column: span 2; |
| 55 |
} |
| 56 |
|
| 57 |
div { |
| 58 |
div a img { |
| 59 |
@include medium-image-css; |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
.grid-one-layout-three { |
| 66 |
.sp-smart-post-static-grid-contents { |
| 67 |
display: grid; |
| 68 |
grid-template-columns: repeat(6, 1fr); |
| 69 |
// height: 600px; |
| 70 |
|
| 71 |
div:nth-child(1) { |
| 72 |
grid-column: 1/4; |
| 73 |
} |
| 74 |
|
| 75 |
div:nth-child(2) { |
| 76 |
grid-column: 4/7; |
| 77 |
} |
| 78 |
|
| 79 |
div { |
| 80 |
grid-column: span 2; |
| 81 |
|
| 82 |
img { |
| 83 |
@include medium-image-css; |
| 84 |
} |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
.grid-one-layout-four { |
| 90 |
.sp-smart-post-static-grid-contents { |
| 91 |
display: grid; |
| 92 |
grid-template-columns: repeat(3, 1fr); |
| 93 |
|
| 94 |
div:nth-child(1) { |
| 95 |
grid-column: 1/3; |
| 96 |
} |
| 97 |
|
| 98 |
div { |
| 99 |
img { |
| 100 |
@include medium-image-css; |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
// .grid-one-layout-six .sp-smart-post-large-item-part-two .sp-smart-post-title, |
| 107 |
// .grid-one-layout-seven .sp-smart-post-large-item-part-two .sp-smart-post-title, |
| 108 |
// .grid-one-layout-eight .sp-smart-post-large-item-part-two .sp-smart-post-title, |
| 109 |
// .grid-one-layout-nine .sp-smart-post-large-item-part-two .sp-smart-post-title, |
| 110 |
// .grid-one-layout-six-updated .sp-smart-post-large-item-part-two .sp-smart-post-title { |
| 111 |
// font-size: 18px !important; |
| 112 |
// } |
| 113 |
.grid-one-layout-six .sp-smart-post-dynamic-grid-contents .sp-smart-post-title, |
| 114 |
.grid-one-layout-seven .sp-smart-post-dynamic-grid-contents .sp-smart-post-title, |
| 115 |
.grid-one-layout-eight .sp-smart-post-dynamic-grid-contents .sp-smart-post-title, |
| 116 |
.grid-one-layout-nine .sp-smart-post-dynamic-grid-contents .sp-smart-post-title, |
| 117 |
.grid-one-layout-six-updated .sp-smart-post-dynamic-grid-contents .sp-smart-post-title { |
| 118 |
font-size: 22px !important; |
| 119 |
line-height: 26px !important; |
| 120 |
} |
| 121 |
|
| 122 |
.grid-one-container .sp-smart-post-static-grid-contents { |
| 123 |
.sp-smart-post-large-item-part-one { |
| 124 |
.sp-smart-post-card-image { |
| 125 |
height: fit-content !important; |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|
| 130 |
.grid-one-container .sp-smart-post-static-grid-contents { |
| 131 |
.sp-smart-post-large-item-part-two { |
| 132 |
.sp-smart-post-card-image { |
| 133 |
height: fit-content !important; |
| 134 |
} |
| 135 |
} |
| 136 |
} |
| 137 |
|
| 138 |
.grid-one-layout-six { |
| 139 |
.sp-smart-post-large-item-part-one { |
| 140 |
width: 66%; |
| 141 |
flex-shrink: 0; |
| 142 |
align-self: start; |
| 143 |
|
| 144 |
img { |
| 145 |
height: 386px; |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
.sp-smart-post-large-item-part-two { |
| 150 |
display: flex; |
| 151 |
flex-direction: column; |
| 152 |
gap: 20px; |
| 153 |
flex-grow: 1; |
| 154 |
|
| 155 |
.sp-smart-post-card-image img { |
| 156 |
height: 206px; |
| 157 |
} |
| 158 |
} |
| 159 |
|
| 160 |
&.right { |
| 161 |
.sp-smart-post-static-grid-contents { |
| 162 |
flex-direction: row-reverse; |
| 163 |
} |
| 164 |
} |
| 165 |
} |
| 166 |
|
| 167 |
.grid-one-layout-six-updated { |
| 168 |
.sp-smart-post-static-grid-contents { |
| 169 |
.sp-smart-post-large-item-part-one { |
| 170 |
width: 60%; |
| 171 |
|
| 172 |
img { |
| 173 |
height: 460px; |
| 174 |
} |
| 175 |
} |
| 176 |
|
| 177 |
.sp-smart-post-large-item-part-two { |
| 178 |
width: 40%; |
| 179 |
display: flex; |
| 180 |
flex-direction: column; |
| 181 |
gap: 20px; |
| 182 |
|
| 183 |
.sp-smart-post-card-image { |
| 184 |
width: 45%; |
| 185 |
max-height: 157px !important; |
| 186 |
flex-shrink: 0; |
| 187 |
} |
| 188 |
|
| 189 |
.sp-smart-post-card { |
| 190 |
display: flex; |
| 191 |
flex-direction: row; |
| 192 |
gap: 20px; |
| 193 |
} |
| 194 |
} |
| 195 |
} |
| 196 |
|
| 197 |
&.right { |
| 198 |
.sp-smart-post-static-grid-contents { |
| 199 |
flex-direction: row-reverse; |
| 200 |
} |
| 201 |
} |
| 202 |
|
| 203 |
} |
| 204 |
|
| 205 |
.grid-one-layout-seven { |
| 206 |
.sp-smart-post-static-grid-contents { |
| 207 |
align-items: start; |
| 208 |
} |
| 209 |
|
| 210 |
.sp-smart-post-large-item-part-one { |
| 211 |
width: 50%; |
| 212 |
flex-shrink: 0; |
| 213 |
|
| 214 |
img { |
| 215 |
height: 360px; |
| 216 |
} |
| 217 |
} |
| 218 |
|
| 219 |
.sp-smart-post-large-item-part-two { |
| 220 |
display: grid; |
| 221 |
grid-template-columns: repeat(2, 1fr); |
| 222 |
align-items: flex-start; |
| 223 |
gap: 20px; |
| 224 |
width: 50%; |
| 225 |
|
| 226 |
img { |
| 227 |
height: 209px; |
| 228 |
} |
| 229 |
} |
| 230 |
|
| 231 |
&.right { |
| 232 |
.sp-smart-post-static-grid-contents { |
| 233 |
flex-direction: row-reverse; |
| 234 |
} |
| 235 |
} |
| 236 |
|
| 237 |
} |
| 238 |
|
| 239 |
.grid-one-layout-eight { |
| 240 |
.sp-smart-post-static-grid-contents { |
| 241 |
.sp-smart-post-large-item-part-one { |
| 242 |
width: 50%; |
| 243 |
|
| 244 |
.sp-smart-post-card-image img { |
| 245 |
height: 360px; |
| 246 |
} |
| 247 |
} |
| 248 |
|
| 249 |
.sp-smart-post-large-item-part-two { |
| 250 |
display: grid; |
| 251 |
width: 50%; |
| 252 |
flex-shrink: 0; |
| 253 |
align-self: flex-start; |
| 254 |
gap: 20px; |
| 255 |
|
| 256 |
div:nth-child(1) { |
| 257 |
grid-column: 1/3; |
| 258 |
grid-row: 1/3; |
| 259 |
|
| 260 |
.sp-smart-post-card-image img { |
| 261 |
height: 232px; |
| 262 |
} |
| 263 |
} |
| 264 |
|
| 265 |
div:not(:nth-child(1)) { |
| 266 |
.sp-smart-post-card-image img { |
| 267 |
height: 209px; |
| 268 |
} |
| 269 |
} |
| 270 |
} |
| 271 |
} |
| 272 |
|
| 273 |
&.right { |
| 274 |
.sp-smart-post-static-grid-contents { |
| 275 |
flex-direction: row-reverse; |
| 276 |
} |
| 277 |
} |
| 278 |
|
| 279 |
} |
| 280 |
|
| 281 |
.grid-one-layout-nine { |
| 282 |
.sp-smart-post-static-grid-contents { |
| 283 |
.sp-smart-post-large-item-part-one { |
| 284 |
width: 50%; |
| 285 |
|
| 286 |
.sp-smart-post-card-image img { |
| 287 |
height: 360px; |
| 288 |
} |
| 289 |
} |
| 290 |
|
| 291 |
.sp-smart-post-large-item-part-two { |
| 292 |
display: grid; |
| 293 |
width: 50%; |
| 294 |
flex-shrink: 0; |
| 295 |
align-self: flex-start; |
| 296 |
grid-template-columns: repeat(2, 1fr); |
| 297 |
gap: 20px; |
| 298 |
|
| 299 |
.sp-smart-post-card-image a { |
| 300 |
height: 100%; |
| 301 |
} |
| 302 |
div:nth-child(3) { |
| 303 |
grid-column: 1/3; |
| 304 |
grid-row: 2/3; |
| 305 |
|
| 306 |
.sp-smart-post-card-image { |
| 307 |
height: 232px !important; |
| 308 |
} |
| 309 |
} |
| 310 |
|
| 311 |
div:not(:nth-child(3)) { |
| 312 |
.sp-smart-post-card-image img { |
| 313 |
height: 209px; |
| 314 |
} |
| 315 |
} |
| 316 |
} |
| 317 |
} |
| 318 |
|
| 319 |
&.right { |
| 320 |
.sp-smart-post-static-grid-contents { |
| 321 |
flex-direction: row-reverse; |
| 322 |
} |
| 323 |
} |
| 324 |
|
| 325 |
} |
| 326 |
|
| 327 |
.sp-smart-post-static-grid-contents { |
| 328 |
display: flex; |
| 329 |
overflow: hidden; |
| 330 |
} |
| 331 |
} |
| 332 |
|
| 333 |
.sp-smart-post-grid-one.sp-smart-post-wrapper .grid-one-layout-six-updated .sp-smart-post-large-item-part-two .sp-smart-post-template-one-content { |
| 334 |
margin-top: 0; |
| 335 |
justify-content: left; |
| 336 |
flex-grow: 1; |
| 337 |
} |
| 338 |
|
| 339 |
|
| 340 |
@media screen and (max-width: 768px) { |
| 341 |
.sp-smart-post-static-grid-contents { |
| 342 |
flex-direction: column !important; |
| 343 |
} |
| 344 |
.sp-smart-post-large-item-part-one { |
| 345 |
width: 100% !important; |
| 346 |
|
| 347 |
.sp-smart-post-read-more-button, |
| 348 |
.sp-smart-post-excerpt-wrapper, |
| 349 |
.sp-smart-post-category { |
| 350 |
display: none; |
| 351 |
} |
| 352 |
} |
| 353 |
.sp-smart-post-large-item-part-two { |
| 354 |
width: 100% !important; |
| 355 |
grid-template-columns: repeat(1, 1fr) !important; |
| 356 |
|
| 357 |
.sp-smart-post-card { |
| 358 |
flex-direction: column !important; |
| 359 |
} |
| 360 |
.sp-smart-post-card-image { |
| 361 |
width: 100% !important; |
| 362 |
} |
| 363 |
} |
| 364 |
.sp-smart-post-wrapper .grid-one-layout-five .sp-smart-post-dynamic-grid-contents { |
| 365 |
display: flex; |
| 366 |
flex-direction: column; |
| 367 |
} |
| 368 |
.sp-smart-post-wrapper .grid-one-layout-eight .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-two div:nth-child(1), |
| 369 |
.sp-smart-post-wrapper .grid-one-layout-nine .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-two div:nth-child(3) { |
| 370 |
grid-column: auto !important; |
| 371 |
grid-row: auto !important; |
| 372 |
} |
| 373 |
} |
| 374 |
|
| 375 |
// @media screen and (max-width: 600px) { |
| 376 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents { |
| 377 |
// display: block; |
| 378 |
// } |
| 379 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-two, |
| 380 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-one { |
| 381 |
// width: 100%; |
| 382 |
// } |
| 383 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-two .sp-smart-post-card .sp-smart-post-card-image { |
| 384 |
// width: 100%; |
| 385 |
// } |
| 386 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-two .sp-smart-post-card { |
| 387 |
// flex-direction: column; |
| 388 |
// } |
| 389 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-one .sp-smart-post-read-more-button, |
| 390 |
// .sp-smart-post-wrapper.sp-smart-post-post-grid-one .grid-one-layout-six-updated .sp-smart-post-static-grid-contents .sp-smart-post-large-item-part-one .sp-smart-post-excerpt-wrapper { |
| 391 |
// display: none; |
| 392 |
// } |
| 393 |
// } |
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
// .grid-one-layout-six-updated .sp-smart-post-large-item-part-two .sp-smart-post-card-content { |
| 398 |
// background: #ffffff !important; |
| 399 |
// } |
| 400 |
|
| 401 |
// .grid-one-layout-six-updated .sp-smart-post-dynamic-grid-contents .sp-smart-post-card-content { |
| 402 |
// background: #ffffff !important; |
| 403 |
// padding: 0px 15px 15px 0px !important; |
| 404 |
// } |
| 405 |
|
| 406 |
// .grid-one-layout-six-updated .sp-smart-post-dynamic-grid-contents .sp-smart-post-template-one-content { |
| 407 |
|
| 408 |
// margin-top: 0px !important; |
| 409 |
// justify-content: left !important; |
| 410 |
// padding: 0px 15px 15px 0px !important; |
| 411 |
// } |