| 1 |
/** |
| 2 |
* Dynamic Posts Grid Widget Styles |
| 3 |
* King Addons for Elementor |
| 4 |
*/ |
| 5 |
|
| 6 |
/* Wrapper */ |
| 7 |
.king-addons-dpg-wrapper { |
| 8 |
width: 100%; |
| 9 |
position: relative; |
| 10 |
} |
| 11 |
|
| 12 |
/* Elementor Editor Wrapper Fixes */ |
| 13 |
/* .elementor-editor-active .king-addons-dpg-wrapper { |
| 14 |
width: 100% !important; |
| 15 |
max-width: 100% !important; |
| 16 |
overflow: visible !important; |
| 17 |
} |
| 18 |
|
| 19 |
.elementor-editor-active .elementor-widget-king-addons-dynamic-posts-grid { |
| 20 |
width: 100% !important; |
| 21 |
} |
| 22 |
|
| 23 |
.elementor-editor-active .elementor-widget-king-addons-dynamic-posts-grid .elementor-widget-container { |
| 24 |
width: 100% !important; |
| 25 |
overflow: visible !important; |
| 26 |
} */ |
| 27 |
|
| 28 |
/* Filter Bar Styles */ |
| 29 |
.king-addons-dpg-filter-bar { |
| 30 |
/* Margin controlled by Elementor - see Filter Section Spacing */ |
| 31 |
} |
| 32 |
|
| 33 |
.king-addons-dpg-filter-header { |
| 34 |
/* Margin controlled by Elementor - see Filter Section Spacing */ |
| 35 |
} |
| 36 |
|
| 37 |
.king-addons-dpg-filter-title { |
| 38 |
/* Styles controlled by Elementor - see Filter Title style section */ |
| 39 |
} |
| 40 |
|
| 41 |
.king-addons-dpg-filter-controls { |
| 42 |
display: flex; |
| 43 |
align-items: center; |
| 44 |
/* Gap controlled by Elementor - see Filter Section Spacing */ |
| 45 |
flex-wrap: wrap; |
| 46 |
} |
| 47 |
|
| 48 |
.king-addons-dpg-filter-dropdown { |
| 49 |
position: relative; |
| 50 |
} |
| 51 |
|
| 52 |
.king-addons-dpg-posts-filter { |
| 53 |
/* Main styles controlled by Elementor - see Filter Controls style section */ |
| 54 |
cursor: pointer; |
| 55 |
min-width: 200px; |
| 56 |
appearance: none; |
| 57 |
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); |
| 58 |
background-position: right 12px center; |
| 59 |
background-repeat: no-repeat; |
| 60 |
background-size: 16px; |
| 61 |
transition: all 0.3s ease; |
| 62 |
} |
| 63 |
|
| 64 |
.king-addons-dpg-posts-filter:focus { |
| 65 |
outline: none; |
| 66 |
border-color: #D1D5DB; |
| 67 |
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05); |
| 68 |
} |
| 69 |
|
| 70 |
/* Custom dropdown icon */ |
| 71 |
.king-addons-dpg-filter-dropdown .dropdown-icon { |
| 72 |
position: absolute; |
| 73 |
top: 50%; |
| 74 |
right: 12px; |
| 75 |
transform: translateY(-50%); |
| 76 |
pointer-events: none; |
| 77 |
display: flex; |
| 78 |
align-items: center; |
| 79 |
justify-content: center; |
| 80 |
color: #6B7280; |
| 81 |
} |
| 82 |
|
| 83 |
.king-addons-dpg-filter-dropdown .dropdown-icon svg, |
| 84 |
.king-addons-dpg-filter-dropdown .dropdown-icon i { |
| 85 |
color: currentColor; |
| 86 |
fill: currentColor; |
| 87 |
} |
| 88 |
|
| 89 |
/* Custom dropdown image */ |
| 90 |
.king-addons-dpg-filter-dropdown .dropdown-image { |
| 91 |
position: absolute; |
| 92 |
top: 50%; |
| 93 |
right: 12px; |
| 94 |
transform: translateY(-50%); |
| 95 |
pointer-events: none; |
| 96 |
display: flex; |
| 97 |
align-items: center; |
| 98 |
justify-content: center; |
| 99 |
width: 16px; /* Default size, overridden by Elementor */ |
| 100 |
height: 16px; /* Default size, overridden by Elementor */ |
| 101 |
flex-shrink: 0; |
| 102 |
} |
| 103 |
|
| 104 |
.king-addons-dpg-filter-dropdown .dropdown-image img { |
| 105 |
object-fit: contain; |
| 106 |
opacity: 0.8; |
| 107 |
max-width: 100%; |
| 108 |
max-height: 100%; |
| 109 |
transition: opacity 0.3s ease; |
| 110 |
} |
| 111 |
|
| 112 |
/* Hide default arrow when using custom icon or image */ |
| 113 |
.king-addons-dpg-filter-dropdown.has-custom-icon .king-addons-dpg-posts-filter { |
| 114 |
background-image: none; |
| 115 |
} |
| 116 |
|
| 117 |
/* Search Input */ |
| 118 |
.king-addons-dpg-search-input { |
| 119 |
/* Main styles controlled by Elementor - see Filter Controls style section */ |
| 120 |
position: relative; |
| 121 |
display: flex; |
| 122 |
align-items: center; |
| 123 |
overflow: hidden; |
| 124 |
transition: all 0.3s ease; |
| 125 |
min-width: 350px; |
| 126 |
} |
| 127 |
|
| 128 |
.king-addons-dpg-search-input:focus-within { |
| 129 |
border-color: #D1D5DB; |
| 130 |
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05); |
| 131 |
} |
| 132 |
|
| 133 |
.king-addons-dpg-posts-search { |
| 134 |
/* Main styles controlled by Elementor - see Filter Controls style section */ |
| 135 |
border: none; |
| 136 |
background: transparent; |
| 137 |
flex: 1; |
| 138 |
min-width: 280px; |
| 139 |
} |
| 140 |
|
| 141 |
.king-addons-dpg-posts-search:focus { |
| 142 |
outline: none; |
| 143 |
} |
| 144 |
|
| 145 |
.king-addons-dpg-posts-search::placeholder { |
| 146 |
/* Placeholder color controlled by Elementor */ |
| 147 |
font-weight: 400; |
| 148 |
} |
| 149 |
|
| 150 |
.king-addons-dpg-search-btn { |
| 151 |
/* Styles controlled by Elementor - see Filter Controls > Search Button section */ |
| 152 |
cursor: pointer; |
| 153 |
display: flex; |
| 154 |
align-items: center; |
| 155 |
justify-content: center; |
| 156 |
border: none; |
| 157 |
border-radius: 0; |
| 158 |
} |
| 159 |
|
| 160 |
.king-addons-dpg-search-btn:hover { |
| 161 |
/* Hover styles controlled by Elementor - see Filter Controls > Search Button section */ |
| 162 |
} |
| 163 |
|
| 164 |
.king-addons-dpg-search-btn svg { |
| 165 |
fill: currentColor; |
| 166 |
width: 18px; |
| 167 |
height: 18px; |
| 168 |
} |
| 169 |
|
| 170 |
.king-addons-dpg-search-btn i { |
| 171 |
/* Icon styles controlled by Elementor - see Filter Controls > Search Button Icon section */ |
| 172 |
font-size: 18px; |
| 173 |
color: currentColor; |
| 174 |
} |
| 175 |
|
| 176 |
/* Grid Styles */ |
| 177 |
.king-addons-dpg-grid { |
| 178 |
display: grid; |
| 179 |
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
| 180 |
gap: 24px; |
| 181 |
/* Margin controlled by Elementor - see Grid Spacing section */ |
| 182 |
} |
| 183 |
|
| 184 |
/* Elementor Editor Compatibility */ |
| 185 |
/* .elementor-editor-active .king-addons-dpg-grid { |
| 186 |
display: grid !important; |
| 187 |
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; |
| 188 |
gap: 24px !important; |
| 189 |
} */ |
| 190 |
|
| 191 |
/* Elementor Preview Mode */ |
| 192 |
.elementor-device-desktop .king-addons-dpg-grid { |
| 193 |
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
| 194 |
} |
| 195 |
|
| 196 |
.elementor-device-tablet .king-addons-dpg-grid { |
| 197 |
grid-template-columns: repeat(2, 1fr); |
| 198 |
gap: 20px; |
| 199 |
} |
| 200 |
|
| 201 |
.elementor-device-mobile .king-addons-dpg-grid { |
| 202 |
grid-template-columns: 1fr; |
| 203 |
gap: 16px; |
| 204 |
} |
| 205 |
|
| 206 |
/* Force Grid Layout in Editor (override Isotope) */ |
| 207 |
/* .elementor-editor-active .king-addons-dpg-grid .king-addons-dpg-item { |
| 208 |
position: static !important; |
| 209 |
transform: none !important; |
| 210 |
width: auto !important; |
| 211 |
height: auto !important; |
| 212 |
left: auto !important; |
| 213 |
top: auto !important; |
| 214 |
} |
| 215 |
|
| 216 |
/* Disable Isotope animations in editor */ |
| 217 |
/* .elementor-editor-active .king-addons-dpg-grid { |
| 218 |
height: auto !important; |
| 219 |
} |
| 220 |
|
| 221 |
.elementor-editor-active .king-addons-dpg-grid .king-addons-dpg-card { |
| 222 |
position: static !important; |
| 223 |
transform: none !important; |
| 224 |
} */ |
| 225 |
|
| 226 |
/* Grid Item (Card) Styles */ |
| 227 |
.king-addons-dpg-card { |
| 228 |
/* Main styles controlled by Elementor - see Cards style section */ |
| 229 |
overflow: hidden; |
| 230 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 231 |
position: relative; |
| 232 |
display: flex; |
| 233 |
flex-direction: column; |
| 234 |
height: 100%; |
| 235 |
} |
| 236 |
|
| 237 |
/* Elementor Editor Card Fixes */ |
| 238 |
/* .elementor-editor-active .king-addons-dpg-card { |
| 239 |
display: flex !important; |
| 240 |
flex-direction: column !important; |
| 241 |
height: 100% !important; |
| 242 |
width: 100% !important; |
| 243 |
box-sizing: border-box !important; |
| 244 |
} |
| 245 |
|
| 246 |
.elementor-editor-active .king-addons-dpg-item { |
| 247 |
width: 100% !important; |
| 248 |
display: block !important; |
| 249 |
} |
| 250 |
|
| 251 |
/* Fix content distribution in editor */ |
| 252 |
/* .elementor-editor-active .king-addons-dpg-content { |
| 253 |
flex: 1 !important; |
| 254 |
display: flex !important; |
| 255 |
flex-direction: column !important; |
| 256 |
} |
| 257 |
|
| 258 |
.elementor-editor-active .king-addons-dpg-cta { |
| 259 |
margin-top: auto !important; |
| 260 |
} */ |
| 261 |
|
| 262 |
.king-addons-dpg-card:hover { |
| 263 |
/* Hover styles controlled by Elementor - see Card Hover Effects section */ |
| 264 |
} |
| 265 |
|
| 266 |
/* Card clickable styles */ |
| 267 |
.king-addons-dpg-cards-clickable .king-addons-dpg-card { |
| 268 |
cursor: pointer; |
| 269 |
} |
| 270 |
|
| 271 |
.king-addons-dpg-cards-clickable .king-addons-dpg-card:hover { |
| 272 |
/* Enhanced interaction feedback when clickable */ |
| 273 |
} |
| 274 |
|
| 275 |
/* Ensure buttons and links inside clickable cards still have proper cursor */ |
| 276 |
.king-addons-dpg-cards-clickable .king-addons-dpg-card a, |
| 277 |
.king-addons-dpg-cards-clickable .king-addons-dpg-card button { |
| 278 |
cursor: pointer; |
| 279 |
} |
| 280 |
|
| 281 |
/* Post Type Header */ |
| 282 |
.king-addons-dpg-header { |
| 283 |
/* Padding controlled by Elementor - see Card Header style section */ |
| 284 |
display: flex; |
| 285 |
align-items: center; |
| 286 |
justify-content: space-between; |
| 287 |
} |
| 288 |
|
| 289 |
/* Icon Position - Left (default) */ |
| 290 |
.king-addons-icon-left .king-addons-dpg-header { |
| 291 |
justify-content: flex-start; |
| 292 |
gap: 12px; |
| 293 |
} |
| 294 |
|
| 295 |
/* Icon Position - Right */ |
| 296 |
.king-addons-icon-right .king-addons-dpg-header { |
| 297 |
justify-content: space-between; |
| 298 |
flex-direction: row-reverse; |
| 299 |
gap: 12px; |
| 300 |
} |
| 301 |
|
| 302 |
.king-addons-dpg-icon { |
| 303 |
/* Styles controlled by Elementor - see Card Header style section */ |
| 304 |
display: flex; |
| 305 |
align-items: center; |
| 306 |
justify-content: center; |
| 307 |
flex-shrink: 0; |
| 308 |
position: relative; |
| 309 |
} |
| 310 |
|
| 311 |
.king-addons-dpg-icon svg { |
| 312 |
/* Size and color controlled by Elementor */ |
| 313 |
opacity: 0.8; |
| 314 |
} |
| 315 |
|
| 316 |
.king-addons-dpg-icon i { |
| 317 |
/* Size and color controlled by Elementor */ |
| 318 |
opacity: 0.8; |
| 319 |
} |
| 320 |
|
| 321 |
.king-addons-dpg-icon img { |
| 322 |
/* Size controlled by Elementor */ |
| 323 |
object-fit: contain; |
| 324 |
} |
| 325 |
|
| 326 |
/* Category icon and image styles */ |
| 327 |
.king-addons-dpg-icon .category-icon { |
| 328 |
/* Icon styles controlled by Elementor - see Card Header style section */ |
| 329 |
opacity: 0.8; |
| 330 |
} |
| 331 |
|
| 332 |
.king-addons-dpg-icon .category-image { |
| 333 |
/* Image styles controlled by Elementor - see Card Header style section */ |
| 334 |
object-fit: contain; |
| 335 |
border-radius: 2px; |
| 336 |
} |
| 337 |
|
| 338 |
.king-addons-dpg-label { |
| 339 |
/* Typography and color controlled by Elementor - see Card Header style section */ |
| 340 |
opacity: 0.9; |
| 341 |
} |
| 342 |
|
| 343 |
/* Category Color Variations - Dynamic styles set via Elementor controls */ |
| 344 |
.king-addons-dpg-category-default { |
| 345 |
background: #F8F9FA; |
| 346 |
border-left: 4px solid #DEE2E6; |
| 347 |
} |
| 348 |
|
| 349 |
.king-addons-dpg-category-default .king-addons-dpg-header { |
| 350 |
background: #E9ECEF; |
| 351 |
} |
| 352 |
|
| 353 |
.king-addons-dpg-category-default .king-addons-dpg-icon, |
| 354 |
.king-addons-dpg-category-default .king-addons-dpg-label { |
| 355 |
color: #6C757D; |
| 356 |
} |
| 357 |
|
| 358 |
/* Common Category Colors (fallback if Elementor colors not applied) */ |
| 359 |
.king-addons-dpg-card.king-addons-dpg-category-uncategorized, |
| 360 |
.king-addons-dpg-card.filter-uncategorized { |
| 361 |
background: #F3F4F6; |
| 362 |
} |
| 363 |
|
| 364 |
.king-addons-dpg-card.king-addons-dpg-category-surfing, |
| 365 |
.king-addons-dpg-card.filter-surfing { |
| 366 |
background: #DBEAFE; |
| 367 |
} |
| 368 |
|
| 369 |
.king-addons-dpg-card.king-addons-dpg-category-diving-experience, |
| 370 |
.king-addons-dpg-card.filter-diving-experience { |
| 371 |
background: #FEF3C7; |
| 372 |
} |
| 373 |
|
| 374 |
.king-addons-dpg-card.king-addons-dpg-category-events, |
| 375 |
.king-addons-dpg-card.filter-events { |
| 376 |
background: #FBCFE8; |
| 377 |
} |
| 378 |
|
| 379 |
.king-addons-dpg-card.king-addons-dpg-category-surfing-tips, |
| 380 |
.king-addons-dpg-card.filter-surfing-tips { |
| 381 |
background: #FEE2E2; |
| 382 |
} |
| 383 |
|
| 384 |
.king-addons-dpg-card.king-addons-dpg-category-kayaking, |
| 385 |
.king-addons-dpg-card.filter-kayaking { |
| 386 |
background: #FEF3C7; |
| 387 |
} |
| 388 |
|
| 389 |
.king-addons-dpg-card.king-addons-dpg-category-diving-tips, |
| 390 |
.king-addons-dpg-card.filter-diving-tips { |
| 391 |
background: #DBEAFE; |
| 392 |
} |
| 393 |
|
| 394 |
/* Dynamic category classes will be generated with inline styles via selectors */ |
| 395 |
|
| 396 |
/* Post Content */ |
| 397 |
.king-addons-dpg-content { |
| 398 |
/* Padding and alignment controlled by Elementor - see Card Content style section */ |
| 399 |
flex: 1; |
| 400 |
display: flex; |
| 401 |
flex-direction: column; |
| 402 |
} |
| 403 |
|
| 404 |
.king-addons-dpg-title { |
| 405 |
/* Typography controlled by Elementor - see Card Content style section */ |
| 406 |
margin: 0 0 0 0; |
| 407 |
} |
| 408 |
|
| 409 |
/* Excerpt - controlled by PHP conditional rendering */ |
| 410 |
.king-addons-dpg-excerpt { |
| 411 |
/* Styles controlled by Elementor - see Card Content > Excerpt section */ |
| 412 |
} |
| 413 |
|
| 414 |
.king-addons-dpg-title a { |
| 415 |
/* Color controlled by Elementor - see Card Content style section */ |
| 416 |
text-decoration: none; |
| 417 |
transition: color 0.3s ease; |
| 418 |
display: block; |
| 419 |
} |
| 420 |
|
| 421 |
.king-addons-dpg-title a:hover { |
| 422 |
/* Hover color controlled by Elementor */ |
| 423 |
} |
| 424 |
|
| 425 |
.king-addons-dpg-excerpt { |
| 426 |
color: #64748B; |
| 427 |
font-size: 14px; |
| 428 |
line-height: 1.5; |
| 429 |
margin-bottom: 24px; |
| 430 |
display: none; /* Hidden in this design */ |
| 431 |
} |
| 432 |
|
| 433 |
/* CTA Button */ |
| 434 |
.king-addons-dpg-cta { |
| 435 |
/* Padding controlled by Elementor - see Card Button style section */ |
| 436 |
margin-top: auto; |
| 437 |
} |
| 438 |
|
| 439 |
.king-addons-dpg-button { |
| 440 |
/* All styles controlled by Elementor - see Card Button style section */ |
| 441 |
display: inline-block; |
| 442 |
text-decoration: none; |
| 443 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 444 |
backdrop-filter: blur(8px); |
| 445 |
} |
| 446 |
|
| 447 |
.king-addons-dpg-button:hover { |
| 448 |
/* Hover styles controlled by Elementor */ |
| 449 |
transform: translateY(-1px); |
| 450 |
} |
| 451 |
|
| 452 |
/* Load More Section */ |
| 453 |
.king-addons-dpg-pagination { |
| 454 |
text-align: center; |
| 455 |
/* Margin controlled by Elementor - see Pagination section */ |
| 456 |
} |
| 457 |
|
| 458 |
.king-addons-dpg-load-more-btn { |
| 459 |
/* All styles controlled by Elementor - see Load More Button style section */ |
| 460 |
display: inline-block; |
| 461 |
border: none; |
| 462 |
cursor: pointer; |
| 463 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 464 |
position: relative; |
| 465 |
overflow: hidden; |
| 466 |
} |
| 467 |
|
| 468 |
.king-addons-dpg-load-more-btn:hover { |
| 469 |
/* Hover styles controlled by Elementor */ |
| 470 |
transform: translateY(-2px); |
| 471 |
} |
| 472 |
|
| 473 |
.king-addons-dpg-load-more-btn:active { |
| 474 |
transform: translateY(0); |
| 475 |
} |
| 476 |
|
| 477 |
.king-addons-dpg-load-more-btn:disabled { |
| 478 |
opacity: 0.6; |
| 479 |
cursor: not-allowed; |
| 480 |
transform: none; |
| 481 |
} |
| 482 |
|
| 483 |
.king-addons-dpg-pagination-loading { |
| 484 |
/* Color controlled by Elementor - see Pagination section */ |
| 485 |
font-style: italic; |
| 486 |
margin: 20px 0; |
| 487 |
} |
| 488 |
|
| 489 |
.king-addons-dpg-pagination-finish { |
| 490 |
/* Styles controlled by Elementor - see Pagination section */ |
| 491 |
text-align: center; |
| 492 |
} |
| 493 |
|
| 494 |
.king-addons-dpg-current-count, |
| 495 |
.king-addons-dpg-total-count { |
| 496 |
/* Color controlled by Elementor - see Pagination section */ |
| 497 |
font-weight: 600; |
| 498 |
} |
| 499 |
|
| 500 |
.king-addons-dpg-pagination-info { |
| 501 |
/* Styles controlled by Elementor - see Pagination section */ |
| 502 |
text-align: center; |
| 503 |
} |
| 504 |
|
| 505 |
/* No Posts Message */ |
| 506 |
.king-addons-dpg-no-posts { |
| 507 |
/* All styles controlled by Elementor - see Messages section */ |
| 508 |
text-align: center; |
| 509 |
} |
| 510 |
|
| 511 |
/* Error Message */ |
| 512 |
.king-addons-dpg-error-message { |
| 513 |
/* All styles controlled by Elementor - see Messages section */ |
| 514 |
} |
| 515 |
|
| 516 |
/* Animation Classes */ |
| 517 |
.king-addons-dpg-zero-opacity { |
| 518 |
opacity: 0; |
| 519 |
transition: opacity 0.3s ease; |
| 520 |
} |
| 521 |
|
| 522 |
.king-addons-dpg-fade-in { |
| 523 |
animation: kingAddonsDpgFadeIn 0.6s ease-out; |
| 524 |
} |
| 525 |
|
| 526 |
@keyframes kingAddonsDpgFadeIn { |
| 527 |
from { |
| 528 |
opacity: 0; |
| 529 |
transform: translateY(20px); |
| 530 |
} |
| 531 |
to { |
| 532 |
opacity: 1; |
| 533 |
transform: translateY(0); |
| 534 |
} |
| 535 |
} |
| 536 |
|
| 537 |
/* Loading Animation */ |
| 538 |
.king-addons-dpg-loading-spinner { |
| 539 |
display: inline-block; |
| 540 |
width: 20px; |
| 541 |
height: 20px; |
| 542 |
border: 3px solid #f3f3f3; |
| 543 |
border-top: 3px solid #6c5ce7; |
| 544 |
border-radius: 50%; |
| 545 |
animation: kingAddonsSpinner 1s linear infinite; |
| 546 |
margin-right: 10px; |
| 547 |
} |
| 548 |
|
| 549 |
@keyframes kingAddonsSpinner { |
| 550 |
0% { transform: rotate(0deg); } |
| 551 |
100% { transform: rotate(360deg); } |
| 552 |
} |
| 553 |
|
| 554 |
/* Responsive Design */ |
| 555 |
@media (max-width: 1200px) { |
| 556 |
.king-addons-dpg-grid { |
| 557 |
grid-template-columns: repeat(2, 1fr); |
| 558 |
gap: 20px; |
| 559 |
} |
| 560 |
} |
| 561 |
|
| 562 |
@media (max-width: 768px) { |
| 563 |
.king-addons-dpg-grid { |
| 564 |
grid-template-columns: 1fr; |
| 565 |
gap: 16px; |
| 566 |
} |
| 567 |
|
| 568 |
.king-addons-dpg-filter-title { |
| 569 |
font-size: 28px; |
| 570 |
} |
| 571 |
|
| 572 |
.king-addons-dpg-filter-controls { |
| 573 |
flex-direction: column; |
| 574 |
gap: 16px; |
| 575 |
align-items: stretch; |
| 576 |
} |
| 577 |
|
| 578 |
.king-addons-dpg-posts-filter, |
| 579 |
.king-addons-dpg-search-input { |
| 580 |
min-width: auto; |
| 581 |
width: 100%; |
| 582 |
} |
| 583 |
|
| 584 |
.king-addons-dpg-posts-search { |
| 585 |
min-width: auto; |
| 586 |
} |
| 587 |
|
| 588 |
.king-addons-dpg-title { |
| 589 |
font-size: 17px; |
| 590 |
} |
| 591 |
|
| 592 |
.king-addons-dpg-card { |
| 593 |
min-height: 240px; |
| 594 |
} |
| 595 |
|
| 596 |
.king-addons-dpg-content { |
| 597 |
padding: 0 20px 20px 20px; |
| 598 |
} |
| 599 |
|
| 600 |
.king-addons-dpg-cta { |
| 601 |
padding: 0 20px 20px 20px; |
| 602 |
} |
| 603 |
|
| 604 |
.king-addons-dpg-header { |
| 605 |
padding: 16px 20px 12px 20px; |
| 606 |
} |
| 607 |
|
| 608 |
.king-addons-dpg-search-input { |
| 609 |
min-width: 100%; |
| 610 |
} |
| 611 |
|
| 612 |
.king-addons-dpg-posts-filter { |
| 613 |
min-width: 100%; |
| 614 |
} |
| 615 |
} |
| 616 |
|
| 617 |
@media (max-width: 480px) { |
| 618 |
.king-addons-dpg-filter-title { |
| 619 |
font-size: 24px; |
| 620 |
margin-bottom: 16px; |
| 621 |
} |
| 622 |
|
| 623 |
.king-addons-dpg-grid { |
| 624 |
gap: 12px; |
| 625 |
margin-bottom: 30px; |
| 626 |
} |
| 627 |
|
| 628 |
.king-addons-dpg-card { |
| 629 |
min-height: 240px; |
| 630 |
} |
| 631 |
|
| 632 |
.king-addons-dpg-title { |
| 633 |
font-size: 16px; |
| 634 |
} |
| 635 |
|
| 636 |
.king-addons-dpg-load-more-btn { |
| 637 |
padding: 14px 32px; |
| 638 |
font-size: 13px; |
| 639 |
} |
| 640 |
|
| 641 |
.king-addons-dpg-pagination-info { |
| 642 |
font-size: 13px; |
| 643 |
margin-bottom: 24px; |
| 644 |
} |
| 645 |
} |
| 646 |
|
| 647 |
/* RTL Support */ |
| 648 |
[dir="rtl"] .king-addons-dpg-header { |
| 649 |
flex-direction: row-reverse; |
| 650 |
} |
| 651 |
|
| 652 |
[dir="rtl"] .king-addons-dpg-posts-filter { |
| 653 |
background-position: left 10px center; |
| 654 |
padding: 10px 15px 10px 40px; |
| 655 |
} |
| 656 |
|
| 657 |
/* High Contrast Mode */ |
| 658 |
@media (prefers-contrast: high) { |
| 659 |
.king-addons-dpg-card { |
| 660 |
border-width: 2px; |
| 661 |
} |
| 662 |
|
| 663 |
.king-addons-dpg-title a { |
| 664 |
color: #000; |
| 665 |
} |
| 666 |
|
| 667 |
.king-addons-dpg-button { |
| 668 |
border-width: 3px; |
| 669 |
} |
| 670 |
} |
| 671 |
|
| 672 |
/* Reduced Motion */ |
| 673 |
/* @media (prefers-reduced-motion: reduce) { |
| 674 |
.king-addons-dpg-card, |
| 675 |
.king-addons-dpg-button, |
| 676 |
.king-addons-dpg-load-more-btn { |
| 677 |
transition: none; |
| 678 |
} |
| 679 |
|
| 680 |
.king-addons-dpg-card:hover { |
| 681 |
transform: none !important; |
| 682 |
} |
| 683 |
|
| 684 |
.king-addons-dpg-fade-in { |
| 685 |
animation: none; |
| 686 |
} |
| 687 |
} */ |