dataviews.css
1847 lines
| 1 | /** |
| 2 | * Colors |
| 3 | */ |
| 4 | /** |
| 5 | * SCSS Variables. |
| 6 | * |
| 7 | * Please use variables from this sheet to ensure consistency across the UI. |
| 8 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 9 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 10 | */ |
| 11 | /** |
| 12 | * Fonts & basic variables. |
| 13 | */ |
| 14 | /** |
| 15 | * Typography |
| 16 | */ |
| 17 | /** |
| 18 | * Grid System. |
| 19 | * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 20 | */ |
| 21 | /** |
| 22 | * Radius scale. |
| 23 | */ |
| 24 | /** |
| 25 | * Elevation scale. |
| 26 | */ |
| 27 | /** |
| 28 | * Dimensions. |
| 29 | */ |
| 30 | /** |
| 31 | * Mobile specific styles |
| 32 | */ |
| 33 | /** |
| 34 | * Editor styles. |
| 35 | */ |
| 36 | /** |
| 37 | * Block & Editor UI. |
| 38 | */ |
| 39 | /** |
| 40 | * Block paddings. |
| 41 | */ |
| 42 | /** |
| 43 | * React Native specific. |
| 44 | * These variables do not appear to be used anywhere else. |
| 45 | */ |
| 46 | /** |
| 47 | * Typography |
| 48 | */ |
| 49 | /** |
| 50 | * Breakpoints & Media Queries |
| 51 | */ |
| 52 | /** |
| 53 | * Converts a hex value into the rgb equivalent. |
| 54 | * |
| 55 | * @param {string} hex - the hexadecimal value to convert |
| 56 | * @return {string} comma separated rgb values |
| 57 | */ |
| 58 | /** |
| 59 | * Long content fade mixin |
| 60 | * |
| 61 | * Creates a fading overlay to signify that the content is longer |
| 62 | * than the space allows. |
| 63 | */ |
| 64 | /** |
| 65 | * Breakpoint mixins |
| 66 | */ |
| 67 | /** |
| 68 | * Focus styles. |
| 69 | */ |
| 70 | /** |
| 71 | * Applies editor left position to the selector passed as argument |
| 72 | */ |
| 73 | /** |
| 74 | * Styles that are reused verbatim in a few places |
| 75 | */ |
| 76 | /** |
| 77 | * Allows users to opt-out of animations via OS-level preferences. |
| 78 | */ |
| 79 | /** |
| 80 | * Reset default styles for JavaScript UI based pages. |
| 81 | * This is a WP-admin agnostic reset |
| 82 | */ |
| 83 | /** |
| 84 | * Reset the WP Admin page styles for Gutenberg-like pages. |
| 85 | */ |
| 86 | .dataviews-wrapper, |
| 87 | .dataviews-picker-wrapper { |
| 88 | height: 100%; |
| 89 | overflow: auto; |
| 90 | box-sizing: border-box; |
| 91 | scroll-padding-bottom: 64px; |
| 92 | /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ |
| 93 | container: dataviews-wrapper/inline-size; |
| 94 | display: flex; |
| 95 | flex-direction: column; |
| 96 | font-size: 13px; |
| 97 | line-height: 1.4; |
| 98 | } |
| 99 | |
| 100 | .dataviews__view-actions, |
| 101 | .dataviews-filters__container { |
| 102 | box-sizing: border-box; |
| 103 | padding: 16px 48px; |
| 104 | flex-shrink: 0; |
| 105 | position: sticky; |
| 106 | left: 0; |
| 107 | } |
| 108 | @media not (prefers-reduced-motion) { |
| 109 | .dataviews__view-actions, |
| 110 | .dataviews-filters__container { |
| 111 | transition: padding ease-out 0.1s; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | .dataviews-no-results, |
| 116 | .dataviews-loading { |
| 117 | padding: 0 48px; |
| 118 | flex-grow: 1; |
| 119 | display: flex; |
| 120 | align-items: center; |
| 121 | justify-content: center; |
| 122 | } |
| 123 | @media not (prefers-reduced-motion) { |
| 124 | .dataviews-no-results, |
| 125 | .dataviews-loading { |
| 126 | transition: padding ease-out 0.1s; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | .dataviews-loading-more { |
| 131 | text-align: center; |
| 132 | } |
| 133 | |
| 134 | @container (max-width: 430px) { |
| 135 | .dataviews__view-actions, |
| 136 | .dataviews-filters__container { |
| 137 | padding: 12px 24px; |
| 138 | } |
| 139 | .dataviews-no-results, |
| 140 | .dataviews-loading { |
| 141 | padding-left: 24px; |
| 142 | padding-right: 24px; |
| 143 | } |
| 144 | } |
| 145 | .dataviews-title-field { |
| 146 | font-size: 13px; |
| 147 | font-weight: 499; |
| 148 | color: #2f2f2f; |
| 149 | text-overflow: ellipsis; |
| 150 | white-space: nowrap; |
| 151 | width: 100%; |
| 152 | } |
| 153 | .dataviews-title-field a { |
| 154 | text-decoration: none; |
| 155 | text-overflow: ellipsis; |
| 156 | white-space: nowrap; |
| 157 | overflow: hidden; |
| 158 | display: block; |
| 159 | flex-grow: 0; |
| 160 | color: #2f2f2f; |
| 161 | } |
| 162 | .dataviews-title-field a:hover { |
| 163 | color: var(--wp-admin-theme-color); |
| 164 | } |
| 165 | .dataviews-title-field a:focus { |
| 166 | color: var(--wp-admin-theme-color--rgb); |
| 167 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba); |
| 168 | border-radius: 2px; |
| 169 | } |
| 170 | .dataviews-title-field button.components-button.is-link { |
| 171 | text-decoration: none; |
| 172 | font-weight: inherit; |
| 173 | text-overflow: ellipsis; |
| 174 | white-space: nowrap; |
| 175 | overflow: hidden; |
| 176 | display: block; |
| 177 | width: 100%; |
| 178 | color: #1e1e1e; |
| 179 | } |
| 180 | .dataviews-title-field button.components-button.is-link:hover { |
| 181 | color: var(--wp-admin-theme-color); |
| 182 | } |
| 183 | |
| 184 | .dataviews-title-field--clickable { |
| 185 | cursor: pointer; |
| 186 | color: #2f2f2f; |
| 187 | } |
| 188 | .dataviews-title-field--clickable:hover { |
| 189 | color: var(--wp-admin-theme-color); |
| 190 | } |
| 191 | .dataviews-title-field--clickable:focus { |
| 192 | color: var(--wp-admin-theme-color--rgb); |
| 193 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba); |
| 194 | border-radius: 2px; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Applying a consistent 24px padding when DataViews are placed within cards. |
| 199 | */ |
| 200 | .components-card__body:has(> .dataviews-wrapper), |
| 201 | .components-card__body:has(> .dataviews-picker-wrapper) { |
| 202 | padding: 8px 0 0; |
| 203 | overflow: hidden; |
| 204 | } |
| 205 | .components-card__body:has(> .dataviews-wrapper) .dataviews__view-actions, |
| 206 | .components-card__body:has(> .dataviews-wrapper) .dataviews-filters__container, |
| 207 | .components-card__body:has(> .dataviews-wrapper) .dataviews-footer, |
| 208 | .components-card__body:has(> .dataviews-wrapper) .dataviews-view-grid, |
| 209 | .components-card__body:has(> .dataviews-wrapper) .dataviews-loading, |
| 210 | .components-card__body:has(> .dataviews-wrapper) .dataviews-no-results, |
| 211 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews__view-actions, |
| 212 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-filters__container, |
| 213 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-footer, |
| 214 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-view-grid, |
| 215 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-loading, |
| 216 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-no-results { |
| 217 | padding-inline: 24px; |
| 218 | } |
| 219 | .components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr td:first-child, |
| 220 | .components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr th:first-child, |
| 221 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-view-table tr td:first-child, |
| 222 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-view-table tr th:first-child { |
| 223 | padding-inline-start: 24px; |
| 224 | } |
| 225 | .components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr td:last-child, |
| 226 | .components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr th:last-child, |
| 227 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-view-table tr td:last-child, |
| 228 | .components-card__body:has(> .dataviews-picker-wrapper) .dataviews-view-table tr th:last-child { |
| 229 | padding-inline-end: 24px; |
| 230 | } |
| 231 | |
| 232 | .dataviews-bulk-actions-footer__item-count { |
| 233 | color: #1e1e1e; |
| 234 | font-weight: 499; |
| 235 | font-size: 11px; |
| 236 | text-transform: uppercase; |
| 237 | } |
| 238 | |
| 239 | .dataviews-bulk-actions-footer__container { |
| 240 | margin-right: auto; |
| 241 | min-height: 32px; |
| 242 | } |
| 243 | |
| 244 | .dataviews-filters__button { |
| 245 | position: relative; |
| 246 | } |
| 247 | |
| 248 | .dataviews-filters__container { |
| 249 | padding-top: 0; |
| 250 | } |
| 251 | |
| 252 | .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true], .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover { |
| 253 | opacity: 0; |
| 254 | } |
| 255 | .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus { |
| 256 | opacity: 1; |
| 257 | } |
| 258 | |
| 259 | .dataviews-filters__summary-popover { |
| 260 | font-size: 13px; |
| 261 | line-height: 1.4; |
| 262 | } |
| 263 | .dataviews-filters__summary-popover .components-popover__content { |
| 264 | width: 100%; |
| 265 | min-width: 230px; |
| 266 | max-width: 250px; |
| 267 | border-radius: 4px; |
| 268 | } |
| 269 | .dataviews-filters__summary-popover.components-dropdown__content .components-popover__content { |
| 270 | padding: 0; |
| 271 | } |
| 272 | |
| 273 | .dataviews-filters__summary-operators-container { |
| 274 | padding: 8px 16px; |
| 275 | } |
| 276 | .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-listbox), .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-no-elements), .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__user-input-widget) { |
| 277 | border-bottom: 1px solid #e0e0e0; |
| 278 | } |
| 279 | .dataviews-filters__summary-operators-container:empty { |
| 280 | display: none; |
| 281 | } |
| 282 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name { |
| 283 | color: #757575; |
| 284 | white-space: nowrap; |
| 285 | overflow: hidden; |
| 286 | text-overflow: ellipsis; |
| 287 | flex-shrink: 0; /* Prevents this element from shrinking */ |
| 288 | max-width: calc(100% - 55px); |
| 289 | } |
| 290 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select { |
| 291 | width: 100%; |
| 292 | white-space: nowrap; |
| 293 | overflow: hidden; |
| 294 | } |
| 295 | |
| 296 | .dataviews-filters__summary-chip-container { |
| 297 | position: relative; |
| 298 | white-space: pre-wrap; |
| 299 | } |
| 300 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip { |
| 301 | border-radius: 16px; |
| 302 | border: 1px solid transparent; |
| 303 | cursor: pointer; |
| 304 | padding: 4px 12px; |
| 305 | min-height: 32px; |
| 306 | background: #f0f0f0; |
| 307 | color: #2f2f2f; |
| 308 | position: relative; |
| 309 | display: flex; |
| 310 | align-items: center; |
| 311 | box-sizing: border-box; |
| 312 | } |
| 313 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable { |
| 314 | cursor: default; |
| 315 | } |
| 316 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset { |
| 317 | padding-inline-end: 28px; |
| 318 | } |
| 319 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] { |
| 320 | background: #e0e0e0; |
| 321 | color: #1e1e1e; |
| 322 | } |
| 323 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values { |
| 324 | color: var(--wp-admin-theme-color); |
| 325 | background: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 326 | } |
| 327 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true] { |
| 328 | background: rgba(var(--wp-admin-theme-color--rgb), 0.12); |
| 329 | } |
| 330 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible { |
| 331 | outline: none; |
| 332 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 333 | } |
| 334 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name { |
| 335 | font-weight: 499; |
| 336 | } |
| 337 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove { |
| 338 | width: 24px; |
| 339 | height: 24px; |
| 340 | border-radius: 50%; |
| 341 | border: 0; |
| 342 | padding: 0; |
| 343 | position: absolute; |
| 344 | right: 4px; |
| 345 | top: 50%; |
| 346 | transform: translateY(-50%); |
| 347 | display: flex; |
| 348 | align-items: center; |
| 349 | justify-content: center; |
| 350 | background: transparent; |
| 351 | cursor: pointer; |
| 352 | } |
| 353 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg { |
| 354 | fill: #757575; |
| 355 | } |
| 356 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus { |
| 357 | background: #e0e0e0; |
| 358 | } |
| 359 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg { |
| 360 | fill: #1e1e1e; |
| 361 | } |
| 362 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg { |
| 363 | fill: var(--wp-admin-theme-color); |
| 364 | } |
| 365 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover { |
| 366 | background: rgba(var(--wp-admin-theme-color--rgb), 0.08); |
| 367 | } |
| 368 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible { |
| 369 | outline: none; |
| 370 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 371 | } |
| 372 | |
| 373 | .dataviews-filters__search-widget-filter-combobox-list { |
| 374 | max-height: 184px; |
| 375 | padding: 4px; |
| 376 | overflow: auto; |
| 377 | border-top: 1px solid #e0e0e0; |
| 378 | } |
| 379 | .dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value] { |
| 380 | font-weight: 600; |
| 381 | } |
| 382 | |
| 383 | .dataviews-filters__search-widget-listbox { |
| 384 | padding: 4px; |
| 385 | overflow: auto; |
| 386 | } |
| 387 | |
| 388 | .dataviews-filters__search-widget-listitem { |
| 389 | display: flex; |
| 390 | align-items: center; |
| 391 | gap: 8px; |
| 392 | border-radius: 2px; |
| 393 | box-sizing: border-box; |
| 394 | padding: 4px 12px; |
| 395 | cursor: default; |
| 396 | min-height: 32px; |
| 397 | font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 398 | font-weight: 400; |
| 399 | font-size: 13px; |
| 400 | line-height: 20px; |
| 401 | } |
| 402 | .dataviews-filters__search-widget-listitem:last-child { |
| 403 | margin-block-end: 0; |
| 404 | } |
| 405 | .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus { |
| 406 | background-color: var(--wp-admin-theme-color); |
| 407 | color: #fff; |
| 408 | } |
| 409 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description { |
| 410 | color: #fff; |
| 411 | } |
| 412 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection { |
| 413 | border-color: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 414 | background: #fff; |
| 415 | } |
| 416 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 417 | border-color: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 418 | background: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 419 | } |
| 420 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection { |
| 421 | border-color: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 422 | } |
| 423 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 424 | border-color: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 425 | background: var(--wp-admin-theme-color-darker-20, #183ad6); |
| 426 | } |
| 427 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description { |
| 428 | display: block; |
| 429 | overflow: hidden; |
| 430 | text-overflow: ellipsis; |
| 431 | font-size: 12px; |
| 432 | line-height: 16px; |
| 433 | color: #757575; |
| 434 | } |
| 435 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 436 | border: 1px solid #1e1e1e; |
| 437 | margin-right: 12px; |
| 438 | transition: none; |
| 439 | border-radius: 50%; |
| 440 | width: 24px; |
| 441 | height: 24px; |
| 442 | min-width: 24px; |
| 443 | max-width: 24px; |
| 444 | position: relative; |
| 445 | } |
| 446 | @media not (prefers-reduced-motion) { |
| 447 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 448 | transition: box-shadow 0.1s linear; |
| 449 | } |
| 450 | } |
| 451 | @media (min-width: 600px) { |
| 452 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 453 | height: 16px; |
| 454 | width: 16px; |
| 455 | min-width: 16px; |
| 456 | max-width: 16px; |
| 457 | } |
| 458 | } |
| 459 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked::before { |
| 460 | box-sizing: inherit; |
| 461 | width: 12px; |
| 462 | height: 12px; |
| 463 | position: absolute; |
| 464 | top: 50%; |
| 465 | left: 50%; |
| 466 | transform: translate(-50%, -50%); |
| 467 | margin: 0; |
| 468 | background-color: #fff; |
| 469 | border: 4px solid #fff; |
| 470 | } |
| 471 | @media (min-width: 600px) { |
| 472 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked::before { |
| 473 | width: 8px; |
| 474 | height: 8px; |
| 475 | } |
| 476 | } |
| 477 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus { |
| 478 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 479 | outline: 2px solid transparent; |
| 480 | } |
| 481 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked { |
| 482 | background: var(--wp-admin-theme-color); |
| 483 | border: none; |
| 484 | } |
| 485 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 486 | margin: 0; |
| 487 | padding: 0; |
| 488 | } |
| 489 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 490 | background: var(--wp-admin-theme-color, #3858e9); |
| 491 | border-color: var(--wp-admin-theme-color, #3858e9); |
| 492 | } |
| 493 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| 494 | content: ""; |
| 495 | border-radius: 50%; |
| 496 | box-sizing: inherit; |
| 497 | width: 12px; |
| 498 | height: 12px; |
| 499 | position: absolute; |
| 500 | top: 50%; |
| 501 | left: 50%; |
| 502 | transform: translate(-50%, -50%); |
| 503 | margin: 0; |
| 504 | background-color: #fff; |
| 505 | border: 4px solid #fff; |
| 506 | } |
| 507 | @media (min-width: 600px) { |
| 508 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| 509 | width: 8px; |
| 510 | height: 8px; |
| 511 | } |
| 512 | } |
| 513 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 514 | --checkbox-size: 24px; |
| 515 | border: 1px solid #1e1e1e; |
| 516 | margin-right: 12px; |
| 517 | transition: none; |
| 518 | border-radius: 2px; |
| 519 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 520 | padding: 6px 8px; |
| 521 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 522 | font-size: 16px; |
| 523 | /* Override core line-height. To be reviewed. */ |
| 524 | line-height: normal; |
| 525 | box-shadow: 0 0 0 transparent; |
| 526 | border-radius: 2px; |
| 527 | border: 1px solid #949494; |
| 528 | } |
| 529 | @media not (prefers-reduced-motion) { |
| 530 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 531 | transition: box-shadow 0.1s linear; |
| 532 | } |
| 533 | } |
| 534 | @media (min-width: 600px) { |
| 535 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 536 | font-size: 13px; |
| 537 | /* Override core line-height. To be reviewed. */ |
| 538 | line-height: normal; |
| 539 | } |
| 540 | } |
| 541 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 542 | border-color: var(--wp-admin-theme-color); |
| 543 | box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); |
| 544 | outline: 2px solid transparent; |
| 545 | } |
| 546 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder { |
| 547 | color: rgba(30, 30, 30, 0.62); |
| 548 | } |
| 549 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder { |
| 550 | color: rgba(30, 30, 30, 0.62); |
| 551 | } |
| 552 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder { |
| 553 | color: rgba(30, 30, 30, 0.62); |
| 554 | } |
| 555 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 556 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 557 | outline: 2px solid transparent; |
| 558 | } |
| 559 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked { |
| 560 | background: var(--wp-admin-theme-color); |
| 561 | border-color: var(--wp-admin-theme-color); |
| 562 | } |
| 563 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check { |
| 564 | opacity: 0; |
| 565 | } |
| 566 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before { |
| 567 | margin: -3px -5px; |
| 568 | color: #fff; |
| 569 | } |
| 570 | @media (min-width: 782px) { |
| 571 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before { |
| 572 | margin: -4px 0 0 -5px; |
| 573 | } |
| 574 | } |
| 575 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed] { |
| 576 | background: var(--wp-admin-theme-color); |
| 577 | border-color: var(--wp-admin-theme-color); |
| 578 | } |
| 579 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before { |
| 580 | content: "\f460"; |
| 581 | float: left; |
| 582 | display: inline-block; |
| 583 | vertical-align: middle; |
| 584 | width: 16px; |
| 585 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 586 | font: normal 30px/1 dashicons; |
| 587 | speak: none; |
| 588 | -webkit-font-smoothing: antialiased; |
| 589 | -moz-osx-font-smoothing: grayscale; |
| 590 | } |
| 591 | @media (min-width: 782px) { |
| 592 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before { |
| 593 | float: none; |
| 594 | font-size: 21px; |
| 595 | } |
| 596 | } |
| 597 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled { |
| 598 | background: #f0f0f0; |
| 599 | border-color: #ddd; |
| 600 | cursor: default; |
| 601 | opacity: 1; |
| 602 | } |
| 603 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 604 | position: relative; |
| 605 | background: #fff; |
| 606 | color: #1e1e1e; |
| 607 | margin: 0; |
| 608 | padding: 0; |
| 609 | width: var(--checkbox-size); |
| 610 | height: var(--checkbox-size); |
| 611 | } |
| 612 | @media (min-width: 600px) { |
| 613 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 614 | --checkbox-size: 16px; |
| 615 | } |
| 616 | } |
| 617 | @media not (prefers-reduced-motion) { |
| 618 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 619 | transition: 0.1s border-color ease-in-out; |
| 620 | } |
| 621 | } |
| 622 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 623 | background: var(--wp-admin-theme-color, #3858e9); |
| 624 | border-color: var(--wp-admin-theme-color, #3858e9); |
| 625 | } |
| 626 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg { |
| 627 | --checkmark-size: var(--checkbox-size); |
| 628 | fill: #fff; |
| 629 | position: absolute; |
| 630 | left: 50%; |
| 631 | top: 50%; |
| 632 | transform: translate(-50%, -50%); |
| 633 | width: var(--checkmark-size); |
| 634 | height: var(--checkmark-size); |
| 635 | } |
| 636 | @media (min-width: 600px) { |
| 637 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg { |
| 638 | --checkmark-size: calc(var(--checkbox-size) + 4px); |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | .dataviews-filters__search-widget-filter-combobox__wrapper { |
| 643 | position: relative; |
| 644 | padding: 8px; |
| 645 | } |
| 646 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 647 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 648 | padding: 6px 8px; |
| 649 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 650 | font-size: 16px; |
| 651 | /* Override core line-height. To be reviewed. */ |
| 652 | line-height: normal; |
| 653 | box-shadow: 0 0 0 transparent; |
| 654 | border-radius: 2px; |
| 655 | border: 1px solid #949494; |
| 656 | } |
| 657 | @media not (prefers-reduced-motion) { |
| 658 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 659 | transition: box-shadow 0.1s linear; |
| 660 | } |
| 661 | } |
| 662 | @media (min-width: 600px) { |
| 663 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 664 | font-size: 13px; |
| 665 | /* Override core line-height. To be reviewed. */ |
| 666 | line-height: normal; |
| 667 | } |
| 668 | } |
| 669 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 670 | border-color: var(--wp-admin-theme-color); |
| 671 | box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); |
| 672 | outline: 2px solid transparent; |
| 673 | } |
| 674 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder { |
| 675 | color: rgba(30, 30, 30, 0.62); |
| 676 | } |
| 677 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder { |
| 678 | color: rgba(30, 30, 30, 0.62); |
| 679 | } |
| 680 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder { |
| 681 | color: rgba(30, 30, 30, 0.62); |
| 682 | } |
| 683 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 684 | display: block; |
| 685 | padding: 0 8px 0 32px; |
| 686 | width: 100%; |
| 687 | height: 32px; |
| 688 | margin-left: 0; |
| 689 | margin-right: 0; |
| 690 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 691 | font-size: 16px; |
| 692 | } |
| 693 | @media (min-width: 600px) { |
| 694 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 695 | font-size: 13px; |
| 696 | } |
| 697 | } |
| 698 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 699 | background: #fff; |
| 700 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 701 | } |
| 702 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 703 | color: #757575; |
| 704 | } |
| 705 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration { |
| 706 | -webkit-appearance: none; |
| 707 | } |
| 708 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon { |
| 709 | position: absolute; |
| 710 | inset-inline-start: 12px; |
| 711 | top: 0; |
| 712 | bottom: 0; |
| 713 | display: flex; |
| 714 | align-items: center; |
| 715 | justify-content: center; |
| 716 | width: 24px; |
| 717 | } |
| 718 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr) { |
| 719 | transform: scaleX(-1); |
| 720 | } |
| 721 | |
| 722 | .dataviews-filters__container-visibility-toggle { |
| 723 | position: relative; |
| 724 | flex-shrink: 0; |
| 725 | } |
| 726 | |
| 727 | .dataviews-filters-toggle__count { |
| 728 | position: absolute; |
| 729 | top: 0; |
| 730 | right: 0; |
| 731 | transform: translate(50%, -50%); |
| 732 | background: var(--wp-admin-theme-color, #3858e9); |
| 733 | height: 16px; |
| 734 | min-width: 16px; |
| 735 | line-height: 16px; |
| 736 | padding: 0 4px; |
| 737 | text-align: center; |
| 738 | border-radius: 8px; |
| 739 | font-size: 11px; |
| 740 | outline: var(--wp-admin-border-width-focus) solid #fff; |
| 741 | color: #fff; |
| 742 | box-sizing: border-box; |
| 743 | } |
| 744 | |
| 745 | .dataviews-search { |
| 746 | width: fit-content; |
| 747 | } |
| 748 | |
| 749 | .dataviews-filters__user-input-widget { |
| 750 | padding: 16px; |
| 751 | } |
| 752 | .dataviews-filters__user-input-widget .components-input-control__prefix { |
| 753 | padding-left: 8px; |
| 754 | } |
| 755 | |
| 756 | .dataviews-filters__search-widget-no-elements { |
| 757 | display: flex; |
| 758 | align-items: center; |
| 759 | justify-content: center; |
| 760 | padding: 16px; |
| 761 | } |
| 762 | |
| 763 | .dataviews-footer { |
| 764 | position: sticky; |
| 765 | bottom: 0; |
| 766 | left: 0; |
| 767 | background-color: #fff; |
| 768 | padding: 12px 48px; |
| 769 | border-top: 1px solid #f0f0f0; |
| 770 | flex-shrink: 0; |
| 771 | } |
| 772 | @media not (prefers-reduced-motion) { |
| 773 | .dataviews-footer { |
| 774 | transition: padding ease-out 0.1s; |
| 775 | } |
| 776 | } |
| 777 | .dataviews-footer { |
| 778 | z-index: 2; |
| 779 | } |
| 780 | |
| 781 | @container (max-width: 430px) { |
| 782 | .dataviews-footer { |
| 783 | padding: 12px 24px; |
| 784 | } |
| 785 | } |
| 786 | @container (max-width: 560px) { |
| 787 | .dataviews-footer { |
| 788 | flex-direction: column !important; |
| 789 | } |
| 790 | .dataviews-footer .dataviews-bulk-actions-footer__container { |
| 791 | width: 100%; |
| 792 | } |
| 793 | .dataviews-footer .dataviews-bulk-actions-footer__item-count { |
| 794 | flex-grow: 1; |
| 795 | } |
| 796 | .dataviews-footer .dataviews-pagination { |
| 797 | width: 100%; |
| 798 | justify-content: space-between; |
| 799 | } |
| 800 | } |
| 801 | .dataviews-pagination__page-select { |
| 802 | font-size: 11px; |
| 803 | font-weight: 499; |
| 804 | text-transform: uppercase; |
| 805 | } |
| 806 | @media (min-width: 600px) { |
| 807 | .dataviews-pagination__page-select .components-select-control__input { |
| 808 | font-size: 11px !important; |
| 809 | font-weight: 499; |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | .dataviews-action-modal { |
| 814 | z-index: 1000001; |
| 815 | } |
| 816 | |
| 817 | .dataviews-picker-footer__bulk-selection { |
| 818 | align-self: flex-start; |
| 819 | height: 32px; |
| 820 | } |
| 821 | |
| 822 | .dataviews-picker-footer__actions { |
| 823 | align-self: flex-end; |
| 824 | } |
| 825 | |
| 826 | .dataviews-selection-checkbox { |
| 827 | --checkbox-input-size: 24px; |
| 828 | } |
| 829 | @media (min-width: 600px) { |
| 830 | .dataviews-selection-checkbox { |
| 831 | --checkbox-input-size: 16px; |
| 832 | } |
| 833 | } |
| 834 | .dataviews-selection-checkbox { |
| 835 | line-height: 0; |
| 836 | flex-shrink: 0; |
| 837 | } |
| 838 | .dataviews-selection-checkbox .components-checkbox-control__input-container { |
| 839 | margin: 0; |
| 840 | } |
| 841 | |
| 842 | .dataviews-view-config { |
| 843 | width: 320px; |
| 844 | /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */ |
| 845 | container-type: inline-size; |
| 846 | font-size: 13px; |
| 847 | line-height: 1.4; |
| 848 | } |
| 849 | |
| 850 | .dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper { |
| 851 | overflow-y: scroll; |
| 852 | height: 100%; |
| 853 | } |
| 854 | .dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config { |
| 855 | width: auto; |
| 856 | } |
| 857 | |
| 858 | .dataviews-view-config__sort-direction .components-toggle-group-control-option-base { |
| 859 | text-transform: uppercase; |
| 860 | } |
| 861 | |
| 862 | .dataviews-settings-section__title.dataviews-settings-section__title { |
| 863 | line-height: 24px; |
| 864 | font-size: 15px; |
| 865 | } |
| 866 | |
| 867 | .dataviews-settings-section__sidebar { |
| 868 | grid-column: span 4; |
| 869 | } |
| 870 | |
| 871 | .dataviews-settings-section__content, |
| 872 | .dataviews-settings-section__content > * { |
| 873 | grid-column: span 8; |
| 874 | } |
| 875 | |
| 876 | .dataviews-settings-section__content .is-divided-in-two { |
| 877 | display: contents; |
| 878 | } |
| 879 | .dataviews-settings-section__content .is-divided-in-two > * { |
| 880 | grid-column: span 4; |
| 881 | } |
| 882 | |
| 883 | .dataviews-settings-section:has(.dataviews-settings-section__content:empty) { |
| 884 | display: none; |
| 885 | } |
| 886 | |
| 887 | @container (max-width: 500px) { |
| 888 | .dataviews-settings-section.dataviews-settings-section { |
| 889 | grid-template-columns: repeat(2, 1fr); |
| 890 | } |
| 891 | .dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar { |
| 892 | grid-column: span 2; |
| 893 | } |
| 894 | .dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content { |
| 895 | grid-column: span 2; |
| 896 | } |
| 897 | } |
| 898 | .dataviews-view-config__label { |
| 899 | text-wrap: nowrap; |
| 900 | } |
| 901 | |
| 902 | .dataviews-view-grid-items { |
| 903 | margin-bottom: auto; |
| 904 | display: grid; |
| 905 | gap: 32px; |
| 906 | grid-template-rows: max-content; |
| 907 | grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); |
| 908 | padding: 0 48px 24px; |
| 909 | container-type: inline-size; |
| 910 | /** |
| 911 | * Breakpoints were adjusted from media queries breakpoints to account for |
| 912 | * the sidebar width. This was done to match the existing styles we had. |
| 913 | */ |
| 914 | } |
| 915 | @container (max-width: 430px) { |
| 916 | .dataviews-view-grid-items { |
| 917 | padding-left: 24px; |
| 918 | padding-right: 24px; |
| 919 | } |
| 920 | } |
| 921 | @media not (prefers-reduced-motion) { |
| 922 | .dataviews-view-grid-items { |
| 923 | transition: padding ease-out 0.1s; |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | .dataviews-view-grid .dataviews-view-grid__card { |
| 928 | height: 100%; |
| 929 | justify-content: flex-start; |
| 930 | position: relative; |
| 931 | } |
| 932 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions { |
| 933 | padding: 8px 0 4px; |
| 934 | } |
| 935 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field { |
| 936 | min-height: 24px; |
| 937 | overflow: hidden; |
| 938 | align-content: center; |
| 939 | text-align: start; |
| 940 | } |
| 941 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable { |
| 942 | width: fit-content; |
| 943 | } |
| 944 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value { |
| 945 | color: #1e1e1e; |
| 946 | } |
| 947 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, |
| 948 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { |
| 949 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); |
| 950 | } |
| 951 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after { |
| 952 | box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); |
| 953 | } |
| 954 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { |
| 955 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 956 | } |
| 957 | .dataviews-view-grid .dataviews-view-grid__media { |
| 958 | width: 100%; |
| 959 | aspect-ratio: 1/1; |
| 960 | background-color: #fff; |
| 961 | border-radius: 4px; |
| 962 | overflow: hidden; |
| 963 | position: relative; |
| 964 | } |
| 965 | .dataviews-view-grid .dataviews-view-grid__media img { |
| 966 | object-fit: cover; |
| 967 | width: 100%; |
| 968 | height: 100%; |
| 969 | } |
| 970 | .dataviews-view-grid .dataviews-view-grid__media::after { |
| 971 | content: ""; |
| 972 | position: absolute; |
| 973 | top: 0; |
| 974 | left: 0; |
| 975 | width: 100%; |
| 976 | height: 100%; |
| 977 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); |
| 978 | border-radius: 4px; |
| 979 | pointer-events: none; |
| 980 | } |
| 981 | .dataviews-view-grid .dataviews-view-grid__fields { |
| 982 | position: relative; |
| 983 | font-size: 12px; |
| 984 | line-height: 16px; |
| 985 | } |
| 986 | .dataviews-view-grid .dataviews-view-grid__fields:not(:empty) { |
| 987 | padding: 0 0 12px; |
| 988 | } |
| 989 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty) { |
| 990 | min-height: 24px; |
| 991 | line-height: 20px; |
| 992 | padding-top: 2px; |
| 993 | } |
| 994 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field { |
| 995 | min-height: 24px; |
| 996 | align-items: center; |
| 997 | } |
| 998 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name { |
| 999 | width: 35%; |
| 1000 | color: #757575; |
| 1001 | overflow: hidden; |
| 1002 | text-overflow: ellipsis; |
| 1003 | white-space: nowrap; |
| 1004 | } |
| 1005 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value { |
| 1006 | width: 65%; |
| 1007 | overflow: hidden; |
| 1008 | text-overflow: ellipsis; |
| 1009 | white-space: nowrap; |
| 1010 | } |
| 1011 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))) { |
| 1012 | display: none; |
| 1013 | } |
| 1014 | .dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty) { |
| 1015 | padding-bottom: 12px; |
| 1016 | } |
| 1017 | |
| 1018 | .dataviews-view-grid__field-value:empty, |
| 1019 | .dataviews-view-grid__field:empty { |
| 1020 | display: none; |
| 1021 | } |
| 1022 | |
| 1023 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1024 | position: absolute; |
| 1025 | top: -9999em; |
| 1026 | left: 8px; |
| 1027 | z-index: 1; |
| 1028 | opacity: 0; |
| 1029 | } |
| 1030 | @media not (prefers-reduced-motion) { |
| 1031 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1032 | transition: opacity 0.1s linear; |
| 1033 | } |
| 1034 | } |
| 1035 | @media (hover: none) { |
| 1036 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1037 | opacity: 1; |
| 1038 | top: 8px; |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | .dataviews-view-grid__card:hover .dataviews-selection-checkbox, |
| 1043 | .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox, |
| 1044 | .dataviews-view-grid__card.is-selected .dataviews-selection-checkbox { |
| 1045 | opacity: 1; |
| 1046 | top: 8px; |
| 1047 | } |
| 1048 | |
| 1049 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1050 | position: absolute; |
| 1051 | top: 4px; |
| 1052 | opacity: 0; |
| 1053 | right: 4px; |
| 1054 | } |
| 1055 | .dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button { |
| 1056 | background-color: #fff; |
| 1057 | } |
| 1058 | @media not (prefers-reduced-motion) { |
| 1059 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1060 | transition: opacity 0.1s linear; |
| 1061 | } |
| 1062 | } |
| 1063 | @media (hover: none) { |
| 1064 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1065 | opacity: 1; |
| 1066 | top: 4px; |
| 1067 | } |
| 1068 | } |
| 1069 | |
| 1070 | .dataviews-view-grid__card:hover .dataviews-view-grid__media-actions, |
| 1071 | .dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions, |
| 1072 | .dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]) { |
| 1073 | opacity: 1; |
| 1074 | } |
| 1075 | |
| 1076 | .dataviews-view-grid__media--clickable { |
| 1077 | cursor: pointer; |
| 1078 | } |
| 1079 | |
| 1080 | .dataviews-view-grid__group-header { |
| 1081 | font-size: 15px; |
| 1082 | font-weight: 499; |
| 1083 | color: #1e1e1e; |
| 1084 | margin: 0 0 8px 0; |
| 1085 | padding: 0 48px; |
| 1086 | container-type: inline-size; |
| 1087 | } |
| 1088 | @container (max-width: 430px) { |
| 1089 | .dataviews-view-grid__group-header { |
| 1090 | padding-left: 24px; |
| 1091 | padding-right: 24px; |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | div.dataviews-view-list { |
| 1096 | list-style-type: none; |
| 1097 | } |
| 1098 | |
| 1099 | .dataviews-view-list { |
| 1100 | margin: 0 0 auto; |
| 1101 | } |
| 1102 | .dataviews-view-list div[role=row], |
| 1103 | .dataviews-view-list div[role=article] { |
| 1104 | margin: 0; |
| 1105 | border-top: 1px solid #f0f0f0; |
| 1106 | } |
| 1107 | .dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper, |
| 1108 | .dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper { |
| 1109 | position: relative; |
| 1110 | padding: 16px 24px; |
| 1111 | box-sizing: border-box; |
| 1112 | } |
| 1113 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions, |
| 1114 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions { |
| 1115 | display: flex; |
| 1116 | width: max-content; |
| 1117 | flex: 0 0 auto; |
| 1118 | gap: 4px; |
| 1119 | } |
| 1120 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button, |
| 1121 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button { |
| 1122 | position: relative; |
| 1123 | z-index: 1; |
| 1124 | } |
| 1125 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div, |
| 1126 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > div { |
| 1127 | height: 24px; |
| 1128 | } |
| 1129 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child), |
| 1130 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) { |
| 1131 | flex: 0; |
| 1132 | overflow: hidden; |
| 1133 | width: 0; |
| 1134 | } |
| 1135 | .dataviews-view-list div[role=row]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child), |
| 1136 | .dataviews-view-list div[role=article]:where(.is-selected, .is-hovered, :focus-within) .dataviews-view-list__item-actions > :not(:last-child) { |
| 1137 | flex-basis: min-content; |
| 1138 | width: auto; |
| 1139 | overflow: unset; |
| 1140 | } |
| 1141 | @media (hover: none) { |
| 1142 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child), |
| 1143 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) { |
| 1144 | flex-basis: min-content; |
| 1145 | width: auto; |
| 1146 | overflow: unset; |
| 1147 | } |
| 1148 | } |
| 1149 | .dataviews-view-list div[role=row].is-selected.is-selected, |
| 1150 | .dataviews-view-list div[role=article].is-selected.is-selected { |
| 1151 | border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); |
| 1152 | } |
| 1153 | .dataviews-view-list div[role=row].is-selected.is-selected + div[role=row], .dataviews-view-list div[role=row].is-selected.is-selected + div[role=article], |
| 1154 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=row], |
| 1155 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=article] { |
| 1156 | border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); |
| 1157 | } |
| 1158 | .dataviews-view-list div[role=row]:not(.is-selected) .dataviews-view-list__title-field, |
| 1159 | .dataviews-view-list div[role=article]:not(.is-selected) .dataviews-view-list__title-field { |
| 1160 | color: #1e1e1e; |
| 1161 | } |
| 1162 | .dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within, |
| 1163 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| 1164 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered, |
| 1165 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within { |
| 1166 | color: var(--wp-admin-theme-color); |
| 1167 | background-color: #f8f8f8; |
| 1168 | } |
| 1169 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__title-field, |
| 1170 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__title-field, |
| 1171 | .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__title-field, |
| 1172 | .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__fields, |
| 1173 | .dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__title-field, |
| 1174 | .dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__fields, |
| 1175 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__title-field, |
| 1176 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__fields, |
| 1177 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__title-field, |
| 1178 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__fields { |
| 1179 | color: var(--wp-admin-theme-color); |
| 1180 | } |
| 1181 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 1182 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| 1183 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper, |
| 1184 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper { |
| 1185 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 1186 | color: #1e1e1e; |
| 1187 | } |
| 1188 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field, |
| 1189 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields, |
| 1190 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field, |
| 1191 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields, |
| 1192 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__title-field, |
| 1193 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields, |
| 1194 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__title-field, |
| 1195 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields { |
| 1196 | color: var(--wp-admin-theme-color); |
| 1197 | } |
| 1198 | .dataviews-view-list .dataviews-view-list__item { |
| 1199 | position: absolute; |
| 1200 | z-index: 1; |
| 1201 | inset: 0; |
| 1202 | scroll-margin: 8px 0; |
| 1203 | appearance: none; |
| 1204 | border: none; |
| 1205 | background: none; |
| 1206 | padding: 0; |
| 1207 | cursor: pointer; |
| 1208 | } |
| 1209 | .dataviews-view-list .dataviews-view-list__item:focus-visible { |
| 1210 | outline: none; |
| 1211 | } |
| 1212 | .dataviews-view-list .dataviews-view-list__item:focus-visible::before { |
| 1213 | position: absolute; |
| 1214 | content: ""; |
| 1215 | inset: var(--wp-admin-border-width-focus); |
| 1216 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 1217 | border-radius: 2px; |
| 1218 | outline: 2px solid transparent; |
| 1219 | } |
| 1220 | .dataviews-view-list .dataviews-view-list__title-field { |
| 1221 | flex: 1; |
| 1222 | min-height: 24px; |
| 1223 | line-height: 24px; |
| 1224 | overflow: hidden; |
| 1225 | } |
| 1226 | .dataviews-view-list .dataviews-view-list__title-field:has(a, button) { |
| 1227 | z-index: 1; |
| 1228 | } |
| 1229 | .dataviews-view-list .dataviews-view-list__media-wrapper { |
| 1230 | width: 52px; |
| 1231 | height: 52px; |
| 1232 | overflow: hidden; |
| 1233 | position: relative; |
| 1234 | flex-shrink: 0; |
| 1235 | background-color: #fff; |
| 1236 | border-radius: 4px; |
| 1237 | } |
| 1238 | .dataviews-view-list .dataviews-view-list__media-wrapper img { |
| 1239 | width: 100%; |
| 1240 | height: 100%; |
| 1241 | object-fit: cover; |
| 1242 | } |
| 1243 | .dataviews-view-list .dataviews-view-list__media-wrapper::after { |
| 1244 | content: ""; |
| 1245 | position: absolute; |
| 1246 | top: 0; |
| 1247 | left: 0; |
| 1248 | width: 100%; |
| 1249 | height: 100%; |
| 1250 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); |
| 1251 | border-radius: 4px; |
| 1252 | } |
| 1253 | .dataviews-view-list .dataviews-view-list__field-wrapper { |
| 1254 | min-height: 52px; |
| 1255 | flex-grow: 1; |
| 1256 | } |
| 1257 | .dataviews-view-list .dataviews-view-list__fields { |
| 1258 | color: #757575; |
| 1259 | display: flex; |
| 1260 | gap: 12px; |
| 1261 | row-gap: 4px; |
| 1262 | flex-wrap: wrap; |
| 1263 | font-size: 12px; |
| 1264 | } |
| 1265 | .dataviews-view-list .dataviews-view-list__fields:empty { |
| 1266 | display: none; |
| 1267 | } |
| 1268 | .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty) { |
| 1269 | display: none; |
| 1270 | } |
| 1271 | .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1272 | min-height: 24px; |
| 1273 | line-height: 20px; |
| 1274 | display: flex; |
| 1275 | align-items: center; |
| 1276 | } |
| 1277 | .dataviews-view-list + .dataviews-pagination { |
| 1278 | justify-content: space-between; |
| 1279 | } |
| 1280 | |
| 1281 | .dataviews-view-list__group-header { |
| 1282 | font-size: 15px; |
| 1283 | font-weight: 499; |
| 1284 | color: #1e1e1e; |
| 1285 | margin: 0 0 8px 0; |
| 1286 | padding: 0 24px; |
| 1287 | } |
| 1288 | |
| 1289 | .dataviews-view-table { |
| 1290 | width: 100%; |
| 1291 | text-indent: 0; |
| 1292 | border-color: inherit; |
| 1293 | border-collapse: collapse; |
| 1294 | position: relative; |
| 1295 | color: #757575; |
| 1296 | margin-bottom: auto; |
| 1297 | } |
| 1298 | .dataviews-view-table th { |
| 1299 | text-align: left; |
| 1300 | color: #1e1e1e; |
| 1301 | font-weight: normal; |
| 1302 | font-size: 13px; |
| 1303 | } |
| 1304 | .dataviews-view-table td, |
| 1305 | .dataviews-view-table th { |
| 1306 | padding: 12px; |
| 1307 | } |
| 1308 | .dataviews-view-table td.dataviews-view-table__actions-column, |
| 1309 | .dataviews-view-table th.dataviews-view-table__actions-column { |
| 1310 | text-align: right; |
| 1311 | } |
| 1312 | .dataviews-view-table td.dataviews-view-table__actions-column--sticky, |
| 1313 | .dataviews-view-table th.dataviews-view-table__actions-column--sticky { |
| 1314 | position: sticky; |
| 1315 | right: 0; |
| 1316 | background-color: #fff; |
| 1317 | } |
| 1318 | .dataviews-view-table td.dataviews-view-table__actions-column--stuck::after, |
| 1319 | .dataviews-view-table th.dataviews-view-table__actions-column--stuck::after { |
| 1320 | display: block; |
| 1321 | content: ""; |
| 1322 | position: absolute; |
| 1323 | top: 0; |
| 1324 | bottom: 0; |
| 1325 | left: 0; |
| 1326 | width: 1px; |
| 1327 | background-color: #f0f0f0; |
| 1328 | } |
| 1329 | .dataviews-view-table td.dataviews-view-table__checkbox-column, |
| 1330 | .dataviews-view-table th.dataviews-view-table__checkbox-column { |
| 1331 | padding-right: 0; |
| 1332 | } |
| 1333 | .dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper, |
| 1334 | .dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper { |
| 1335 | max-width: auto; |
| 1336 | min-width: auto; |
| 1337 | } |
| 1338 | .dataviews-view-table tr { |
| 1339 | border-top: 1px solid #f0f0f0; |
| 1340 | } |
| 1341 | .dataviews-view-table tr .dataviews-view-table-header-button { |
| 1342 | gap: 4px; |
| 1343 | } |
| 1344 | .dataviews-view-table tr td:first-child, |
| 1345 | .dataviews-view-table tr th:first-child { |
| 1346 | padding-left: 48px; |
| 1347 | } |
| 1348 | .dataviews-view-table tr td:first-child .dataviews-view-table-header-button, |
| 1349 | .dataviews-view-table tr th:first-child .dataviews-view-table-header-button { |
| 1350 | margin-left: -8px; |
| 1351 | } |
| 1352 | .dataviews-view-table tr td:last-child, |
| 1353 | .dataviews-view-table tr th:last-child { |
| 1354 | padding-right: 48px; |
| 1355 | } |
| 1356 | .dataviews-view-table tr:last-child { |
| 1357 | border-bottom: 0; |
| 1358 | } |
| 1359 | .dataviews-view-table tr.is-hovered, .dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky { |
| 1360 | background-color: #f8f8f8; |
| 1361 | } |
| 1362 | .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input { |
| 1363 | opacity: 0; |
| 1364 | } |
| 1365 | .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus { |
| 1366 | opacity: 1; |
| 1367 | } |
| 1368 | .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 1369 | opacity: 0; |
| 1370 | } |
| 1371 | .dataviews-view-table tr:focus-within .components-checkbox-control__input, |
| 1372 | .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .components-checkbox-control__input, |
| 1373 | .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .components-checkbox-control__input, |
| 1374 | .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 1375 | opacity: 1; |
| 1376 | } |
| 1377 | @media (hover: none) { |
| 1378 | .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input, |
| 1379 | .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 1380 | opacity: 1; |
| 1381 | } |
| 1382 | } |
| 1383 | .dataviews-view-table tr.is-selected { |
| 1384 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 1385 | color: #757575; |
| 1386 | } |
| 1387 | .dataviews-view-table tr.is-selected, .dataviews-view-table tr.is-selected + tr { |
| 1388 | border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); |
| 1389 | } |
| 1390 | .dataviews-view-table tr.is-selected:hover { |
| 1391 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); |
| 1392 | } |
| 1393 | .dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky { |
| 1394 | background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff); |
| 1395 | } |
| 1396 | .dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky { |
| 1397 | background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 8%, #fff); |
| 1398 | } |
| 1399 | .dataviews-view-table thead { |
| 1400 | position: sticky; |
| 1401 | inset-block-start: 0; |
| 1402 | z-index: 1; |
| 1403 | } |
| 1404 | .dataviews-view-table thead tr { |
| 1405 | border: 0; |
| 1406 | } |
| 1407 | .dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input { |
| 1408 | opacity: 1; |
| 1409 | } |
| 1410 | .dataviews-view-table thead th { |
| 1411 | background-color: #fff; |
| 1412 | padding-top: 8px; |
| 1413 | padding-bottom: 8px; |
| 1414 | padding-left: 12px; |
| 1415 | font-size: 11px; |
| 1416 | text-transform: uppercase; |
| 1417 | font-weight: 499; |
| 1418 | } |
| 1419 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child) { |
| 1420 | padding-left: 4px; |
| 1421 | } |
| 1422 | .dataviews-view-table tbody td { |
| 1423 | vertical-align: top; |
| 1424 | } |
| 1425 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper { |
| 1426 | min-height: 32px; |
| 1427 | display: flex; |
| 1428 | align-items: center; |
| 1429 | white-space: nowrap; |
| 1430 | } |
| 1431 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end { |
| 1432 | justify-content: flex-end; |
| 1433 | } |
| 1434 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center { |
| 1435 | justify-content: center; |
| 1436 | } |
| 1437 | .dataviews-view-table tbody .components-v-stack > .dataviews-view-table__cell-content-wrapper:not(:first-child) { |
| 1438 | min-height: 0; |
| 1439 | } |
| 1440 | .dataviews-view-table .dataviews-view-table-header-button { |
| 1441 | padding: 4px 8px; |
| 1442 | font-size: 11px; |
| 1443 | text-transform: uppercase; |
| 1444 | font-weight: 499; |
| 1445 | } |
| 1446 | .dataviews-view-table .dataviews-view-table-header-button:not(:hover) { |
| 1447 | color: #1e1e1e; |
| 1448 | } |
| 1449 | .dataviews-view-table .dataviews-view-table-header-button span { |
| 1450 | speak: none; |
| 1451 | } |
| 1452 | .dataviews-view-table .dataviews-view-table-header-button span:empty { |
| 1453 | display: none; |
| 1454 | } |
| 1455 | .dataviews-view-table .dataviews-view-table-header { |
| 1456 | padding-left: 4px; |
| 1457 | } |
| 1458 | .dataviews-view-table .dataviews-view-table__actions-column { |
| 1459 | width: auto; |
| 1460 | white-space: nowrap; |
| 1461 | } |
| 1462 | .dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input { |
| 1463 | opacity: 1; |
| 1464 | } |
| 1465 | .dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child) { |
| 1466 | padding-left: 0; |
| 1467 | } |
| 1468 | .dataviews-view-table.has-compact-density td, |
| 1469 | .dataviews-view-table.has-compact-density th { |
| 1470 | padding: 4px 8px; |
| 1471 | } |
| 1472 | .dataviews-view-table.has-comfortable-density td, |
| 1473 | .dataviews-view-table.has-comfortable-density th { |
| 1474 | padding: 16px 12px; |
| 1475 | } |
| 1476 | .dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column, |
| 1477 | .dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column, .dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column, |
| 1478 | .dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column { |
| 1479 | padding-right: 0; |
| 1480 | } |
| 1481 | |
| 1482 | @container (max-width: 430px) { |
| 1483 | .dataviews-view-table tr td:first-child, |
| 1484 | .dataviews-view-table tr th:first-child { |
| 1485 | padding-left: 24px; |
| 1486 | } |
| 1487 | .dataviews-view-table tr td:last-child, |
| 1488 | .dataviews-view-table tr th:last-child { |
| 1489 | padding-right: 24px; |
| 1490 | } |
| 1491 | } |
| 1492 | .dataviews-view-table-selection-checkbox { |
| 1493 | --checkbox-input-size: 24px; |
| 1494 | } |
| 1495 | @media (min-width: 600px) { |
| 1496 | .dataviews-view-table-selection-checkbox { |
| 1497 | --checkbox-input-size: 16px; |
| 1498 | } |
| 1499 | } |
| 1500 | |
| 1501 | .dataviews-column-primary__media { |
| 1502 | max-width: 60px; |
| 1503 | overflow: hidden; |
| 1504 | position: relative; |
| 1505 | flex-shrink: 0; |
| 1506 | background-color: #fff; |
| 1507 | border-radius: 4px; |
| 1508 | } |
| 1509 | .dataviews-column-primary__media img { |
| 1510 | width: 100%; |
| 1511 | height: 100%; |
| 1512 | object-fit: cover; |
| 1513 | } |
| 1514 | .dataviews-column-primary__media::after { |
| 1515 | content: ""; |
| 1516 | position: absolute; |
| 1517 | top: 0; |
| 1518 | left: 0; |
| 1519 | width: 100%; |
| 1520 | height: 100%; |
| 1521 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); |
| 1522 | border-radius: 4px; |
| 1523 | } |
| 1524 | |
| 1525 | .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media), |
| 1526 | .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) { |
| 1527 | min-width: 15ch; |
| 1528 | max-width: 80ch; |
| 1529 | } |
| 1530 | |
| 1531 | .dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell { |
| 1532 | font-weight: 499; |
| 1533 | padding: 12px 48px; |
| 1534 | color: #1e1e1e; |
| 1535 | } |
| 1536 | |
| 1537 | /* Column width intents via colgroup: make non-primary columns shrink-to-fit */ |
| 1538 | .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-primary) { |
| 1539 | width: 1%; |
| 1540 | } |
| 1541 | |
| 1542 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card { |
| 1543 | height: 100%; |
| 1544 | justify-content: flex-start; |
| 1545 | position: relative; |
| 1546 | } |
| 1547 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions { |
| 1548 | padding: 8px 0 4px; |
| 1549 | } |
| 1550 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field { |
| 1551 | min-height: 24px; |
| 1552 | overflow: hidden; |
| 1553 | align-content: center; |
| 1554 | text-align: start; |
| 1555 | } |
| 1556 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable { |
| 1557 | width: fit-content; |
| 1558 | } |
| 1559 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value { |
| 1560 | color: #1e1e1e; |
| 1561 | } |
| 1562 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after, |
| 1563 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { |
| 1564 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); |
| 1565 | } |
| 1566 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after { |
| 1567 | box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); |
| 1568 | } |
| 1569 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { |
| 1570 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 1571 | } |
| 1572 | .dataviews-view-picker-grid:focus-visible[aria-activedescendant] { |
| 1573 | outline: none; |
| 1574 | } |
| 1575 | .dataviews-view-picker-grid:focus-visible [data-active-item=true] { |
| 1576 | outline: 2px solid var(--wp-admin-theme-color); |
| 1577 | } |
| 1578 | .dataviews-view-picker-grid .dataviews-selection-checkbox { |
| 1579 | top: 8px !important; |
| 1580 | } |
| 1581 | .dataviews-view-picker-grid .dataviews-selection-checkbox input { |
| 1582 | pointer-events: none; |
| 1583 | } |
| 1584 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media { |
| 1585 | width: 100%; |
| 1586 | aspect-ratio: 1/1; |
| 1587 | background-color: #fff; |
| 1588 | border-radius: 4px; |
| 1589 | position: relative; |
| 1590 | } |
| 1591 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media img { |
| 1592 | object-fit: cover; |
| 1593 | width: 100%; |
| 1594 | height: 100%; |
| 1595 | } |
| 1596 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media::after { |
| 1597 | content: ""; |
| 1598 | position: absolute; |
| 1599 | top: 0; |
| 1600 | left: 0; |
| 1601 | width: 100%; |
| 1602 | height: 100%; |
| 1603 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); |
| 1604 | border-radius: 4px; |
| 1605 | pointer-events: none; |
| 1606 | } |
| 1607 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields { |
| 1608 | position: relative; |
| 1609 | font-size: 12px; |
| 1610 | line-height: 16px; |
| 1611 | } |
| 1612 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty) { |
| 1613 | padding: 0 0 12px; |
| 1614 | } |
| 1615 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty) { |
| 1616 | min-height: 24px; |
| 1617 | line-height: 20px; |
| 1618 | padding-top: 2px; |
| 1619 | } |
| 1620 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field { |
| 1621 | min-height: 24px; |
| 1622 | align-items: center; |
| 1623 | } |
| 1624 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name { |
| 1625 | width: 35%; |
| 1626 | color: #757575; |
| 1627 | overflow: hidden; |
| 1628 | text-overflow: ellipsis; |
| 1629 | white-space: nowrap; |
| 1630 | } |
| 1631 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value { |
| 1632 | width: 65%; |
| 1633 | overflow: hidden; |
| 1634 | text-overflow: ellipsis; |
| 1635 | white-space: nowrap; |
| 1636 | } |
| 1637 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))) { |
| 1638 | display: none; |
| 1639 | } |
| 1640 | .dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty) { |
| 1641 | padding-bottom: 12px; |
| 1642 | } |
| 1643 | |
| 1644 | .dataviews-view-picker-grid__field-value:empty, |
| 1645 | .dataviews-view-picker-grid__field:empty { |
| 1646 | display: none; |
| 1647 | } |
| 1648 | |
| 1649 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 1650 | position: absolute; |
| 1651 | top: -9999em; |
| 1652 | left: 8px; |
| 1653 | z-index: 1; |
| 1654 | } |
| 1655 | @media (hover: none) { |
| 1656 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 1657 | top: 8px; |
| 1658 | } |
| 1659 | } |
| 1660 | |
| 1661 | .dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox, |
| 1662 | .dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox, |
| 1663 | .dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox { |
| 1664 | top: 8px; |
| 1665 | } |
| 1666 | |
| 1667 | .dataviews-view-picker-grid__media--clickable { |
| 1668 | cursor: pointer; |
| 1669 | } |
| 1670 | |
| 1671 | .dataviews-view-picker-grid-group__header { |
| 1672 | font-size: 15px; |
| 1673 | font-weight: 499; |
| 1674 | color: #1e1e1e; |
| 1675 | margin: 0 0 8px 0; |
| 1676 | padding: 0 48px; |
| 1677 | } |
| 1678 | |
| 1679 | .dataviews-view-picker-table tbody:focus-visible[aria-activedescendant] { |
| 1680 | outline: none; |
| 1681 | } |
| 1682 | .dataviews-view-picker-table tbody:focus-visible [data-active-item=true] { |
| 1683 | outline: 2px solid var(--wp-admin-theme-color); |
| 1684 | } |
| 1685 | .dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input { |
| 1686 | pointer-events: none; |
| 1687 | opacity: 1; |
| 1688 | } |
| 1689 | .dataviews-view-picker-table .dataviews-view-table__row { |
| 1690 | cursor: pointer; |
| 1691 | } |
| 1692 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected { |
| 1693 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 1694 | } |
| 1695 | .dataviews-view-picker-table .dataviews-view-table__row.is-hovered { |
| 1696 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); |
| 1697 | } |
| 1698 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered { |
| 1699 | background-color: rgba(var(--wp-admin-theme-color--rgb), 0.12); |
| 1700 | } |
| 1701 | |
| 1702 | .dataviews-controls__datetime { |
| 1703 | border: none; |
| 1704 | padding: 0; |
| 1705 | } |
| 1706 | |
| 1707 | .dataviews-controls__relative-date-number, |
| 1708 | .dataviews-controls__relative-date-unit { |
| 1709 | flex: 1 1 50%; |
| 1710 | } |
| 1711 | |
| 1712 | .dataviews-controls__date input[type=date]::-webkit-inner-spin-button, |
| 1713 | .dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator { |
| 1714 | display: none; |
| 1715 | -webkit-appearance: none; |
| 1716 | } |
| 1717 | |
| 1718 | .dataviews-controls__date-preset { |
| 1719 | border: 1px solid #ddd; |
| 1720 | } |
| 1721 | .dataviews-controls__date-preset:active { |
| 1722 | background-color: #000; |
| 1723 | } |
| 1724 | |
| 1725 | .dataforms-layouts-panel__field { |
| 1726 | width: 100%; |
| 1727 | min-height: 32px; |
| 1728 | justify-content: flex-start !important; |
| 1729 | align-items: flex-start !important; |
| 1730 | } |
| 1731 | |
| 1732 | .dataforms-layouts-panel__field-label { |
| 1733 | width: 38%; |
| 1734 | flex-shrink: 0; |
| 1735 | min-height: 32px; |
| 1736 | display: flex; |
| 1737 | align-items: center; |
| 1738 | line-height: 20px; |
| 1739 | hyphens: auto; |
| 1740 | } |
| 1741 | .dataforms-layouts-panel__field-label--label-position-side { |
| 1742 | align-self: center; |
| 1743 | } |
| 1744 | |
| 1745 | .dataforms-layouts-panel__field-control { |
| 1746 | flex-grow: 1; |
| 1747 | min-height: 32px; |
| 1748 | display: flex; |
| 1749 | align-items: center; |
| 1750 | } |
| 1751 | .dataforms-layouts-panel__field-control .components-button { |
| 1752 | max-width: 100%; |
| 1753 | text-align: left; |
| 1754 | white-space: normal; |
| 1755 | text-wrap: balance; |
| 1756 | text-wrap: pretty; |
| 1757 | min-height: 32px; |
| 1758 | } |
| 1759 | .dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true] { |
| 1760 | text-decoration: none; |
| 1761 | } |
| 1762 | .dataforms-layouts-panel__field-control .components-dropdown { |
| 1763 | max-width: 100%; |
| 1764 | } |
| 1765 | |
| 1766 | .dataforms-layouts-panel__field-dropdown .components-popover__content { |
| 1767 | min-width: 320px; |
| 1768 | padding: 16px; |
| 1769 | } |
| 1770 | |
| 1771 | .dataforms-layouts-panel__dropdown-header { |
| 1772 | margin-bottom: 16px; |
| 1773 | } |
| 1774 | |
| 1775 | .dataforms-layouts-panel__modal-footer { |
| 1776 | margin-top: 16px; |
| 1777 | } |
| 1778 | |
| 1779 | .components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown { |
| 1780 | z-index: 159990; |
| 1781 | } |
| 1782 | |
| 1783 | .dataforms-layouts-regular__field { |
| 1784 | width: 100%; |
| 1785 | min-height: 32px; |
| 1786 | justify-content: flex-start !important; |
| 1787 | align-items: flex-start !important; |
| 1788 | } |
| 1789 | |
| 1790 | .dataforms-layouts-regular__field-label { |
| 1791 | width: 38%; |
| 1792 | flex-shrink: 0; |
| 1793 | min-height: 32px; |
| 1794 | display: flex; |
| 1795 | align-items: center; |
| 1796 | line-height: 20px; |
| 1797 | hyphens: auto; |
| 1798 | } |
| 1799 | .dataforms-layouts-regular__field-label--label-position-side { |
| 1800 | align-self: center; |
| 1801 | } |
| 1802 | |
| 1803 | .dataforms-layouts-regular__field-control { |
| 1804 | flex-grow: 1; |
| 1805 | min-height: 32px; |
| 1806 | display: flex; |
| 1807 | align-items: center; |
| 1808 | } |
| 1809 | |
| 1810 | .dataforms-layouts-card__field-header-label { |
| 1811 | font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1812 | font-weight: 499; |
| 1813 | font-size: 15px; |
| 1814 | line-height: 20px; |
| 1815 | } |
| 1816 | |
| 1817 | .dataforms-layouts-card__field { |
| 1818 | width: 100%; |
| 1819 | } |
| 1820 | |
| 1821 | .dataforms-layouts-card__field-description { |
| 1822 | color: #757575; |
| 1823 | display: block; |
| 1824 | font-size: 13px; |
| 1825 | margin-bottom: 16px; |
| 1826 | } |
| 1827 | |
| 1828 | .dataforms-layouts-card__field-summary { |
| 1829 | display: flex; |
| 1830 | flex-direction: row; |
| 1831 | gap: 16px; |
| 1832 | } |
| 1833 | |
| 1834 | .dataforms-layouts-details__content { |
| 1835 | padding-top: 12px; |
| 1836 | } |
| 1837 | |
| 1838 | .dataforms-layouts-row__field-control { |
| 1839 | width: 100%; |
| 1840 | } |
| 1841 | |
| 1842 | .dataforms-layouts__wrapper { |
| 1843 | font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1844 | font-weight: 400; |
| 1845 | font-size: 13px; |
| 1846 | line-height: 20px; |
| 1847 | } |