build/styles/components
style-rtl.css
120.2 KB
3 months ago
style-rtl.min.css
100.2 KB
3 months ago
style.css
120.4 KB
3 months ago
style.min.css
100.2 KB
3 months ago
style.css in Gutenberg 23.2.0, at build/styles/components/style.css
| 1 | @charset "UTF-8"; |
| 2 | /** |
| 3 | * Typography |
| 4 | */ |
| 5 | /** |
| 6 | * SCSS Variables. |
| 7 | * |
| 8 | * Please use variables from this sheet to ensure consistency across the UI. |
| 9 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 10 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 11 | */ |
| 12 | /** |
| 13 | * Colors |
| 14 | */ |
| 15 | /** |
| 16 | * Fonts & basic variables. |
| 17 | */ |
| 18 | /** |
| 19 | * Typography |
| 20 | */ |
| 21 | /** |
| 22 | * Grid System. |
| 23 | * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 24 | */ |
| 25 | /** |
| 26 | * Radius scale. |
| 27 | */ |
| 28 | /** |
| 29 | * Elevation scale. |
| 30 | */ |
| 31 | /** |
| 32 | * Dimensions. |
| 33 | */ |
| 34 | /** |
| 35 | * Mobile specific styles |
| 36 | */ |
| 37 | /** |
| 38 | * Editor styles. |
| 39 | */ |
| 40 | /** |
| 41 | * Block & Editor UI. |
| 42 | */ |
| 43 | /** |
| 44 | * Block paddings. |
| 45 | */ |
| 46 | /** |
| 47 | * React Native specific. |
| 48 | * These variables do not appear to be used anywhere else. |
| 49 | */ |
| 50 | /** |
| 51 | * Breakpoints & Media Queries |
| 52 | */ |
| 53 | /** |
| 54 | * Converts a hex value into the rgb equivalent. |
| 55 | * |
| 56 | * @param {string} hex - the hexadecimal value to convert |
| 57 | * @return {string} comma separated rgb values |
| 58 | */ |
| 59 | /** |
| 60 | * Long content fade mixin |
| 61 | * |
| 62 | * Creates a fading overlay to signify that the content is longer |
| 63 | * than the space allows. |
| 64 | */ |
| 65 | /** |
| 66 | * Breakpoint mixins |
| 67 | */ |
| 68 | /** |
| 69 | * Focus styles. |
| 70 | */ |
| 71 | /** |
| 72 | * Applies editor left position to the selector passed as argument |
| 73 | */ |
| 74 | /** |
| 75 | * Styles that are reused verbatim in a few places |
| 76 | */ |
| 77 | /** |
| 78 | * Allows users to opt-out of animations via OS-level preferences. |
| 79 | */ |
| 80 | /** |
| 81 | * Reset default styles for JavaScript UI based pages. |
| 82 | * This is a WP-admin agnostic reset |
| 83 | */ |
| 84 | /** |
| 85 | * Reset the WP Admin page styles for Gutenberg-like pages. |
| 86 | */ |
| 87 | /** |
| 88 | * Creates a checkerboard pattern background to indicate transparency. |
| 89 | * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 90 | */ |
| 91 | @media not (prefers-reduced-motion) { |
| 92 | .components-animate__appear { |
| 93 | animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; |
| 94 | animation-fill-mode: forwards; |
| 95 | } |
| 96 | } |
| 97 | .components-animate__appear.is-from-top, .components-animate__appear.is-from-top.is-from-left { |
| 98 | transform-origin: top left; |
| 99 | } |
| 100 | .components-animate__appear.is-from-top.is-from-right { |
| 101 | transform-origin: top right; |
| 102 | } |
| 103 | .components-animate__appear.is-from-bottom, .components-animate__appear.is-from-bottom.is-from-left { |
| 104 | transform-origin: bottom left; |
| 105 | } |
| 106 | .components-animate__appear.is-from-bottom.is-from-right { |
| 107 | transform-origin: bottom right; |
| 108 | } |
| 109 | |
| 110 | @keyframes components-animate__appear-animation { |
| 111 | from { |
| 112 | transform: translateY(-2em) scaleY(0) scaleX(0); |
| 113 | } |
| 114 | to { |
| 115 | transform: translateY(0%) scaleY(1) scaleX(1); |
| 116 | } |
| 117 | } |
| 118 | @media not (prefers-reduced-motion) { |
| 119 | .components-animate__slide-in { |
| 120 | animation: components-animate__slide-in-animation 0.1s cubic-bezier(0, 0, 0.2, 1); |
| 121 | animation-fill-mode: forwards; |
| 122 | } |
| 123 | .components-animate__slide-in.is-from-left { |
| 124 | transform: translateX(100%); |
| 125 | } |
| 126 | .components-animate__slide-in.is-from-right { |
| 127 | transform: translateX(-100%); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | @keyframes components-animate__slide-in-animation { |
| 132 | 100% { |
| 133 | transform: translateX(0%); |
| 134 | } |
| 135 | } |
| 136 | @media not (prefers-reduced-motion) { |
| 137 | .components-animate__loading { |
| 138 | animation: components-animate__loading 1.6s ease-in-out infinite; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | @keyframes components-animate__loading { |
| 143 | 0% { |
| 144 | opacity: 0.5; |
| 145 | } |
| 146 | 50% { |
| 147 | opacity: 1; |
| 148 | } |
| 149 | 100% { |
| 150 | opacity: 0.5; |
| 151 | } |
| 152 | } |
| 153 | .components-autocomplete__popover .components-popover__content { |
| 154 | padding: 8px; |
| 155 | min-width: 200px; |
| 156 | } |
| 157 | |
| 158 | .components-autocomplete__result.components-button { |
| 159 | display: flex; |
| 160 | height: auto; |
| 161 | min-height: 36px; |
| 162 | text-align: left; |
| 163 | width: 100%; |
| 164 | } |
| 165 | .components-autocomplete__result.components-button:focus:not(:disabled) { |
| 166 | box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 167 | outline: 2px solid transparent; |
| 168 | } |
| 169 | |
| 170 | .components-badge { |
| 171 | box-sizing: border-box; |
| 172 | } |
| 173 | .components-badge *, |
| 174 | .components-badge *::before, |
| 175 | .components-badge *::after { |
| 176 | box-sizing: inherit; |
| 177 | } |
| 178 | .components-badge { |
| 179 | background-color: color-mix(in srgb, #fff 90%, var(--base-color)); |
| 180 | color: color-mix(in srgb, #000 50%, var(--base-color)); |
| 181 | padding: 2px 8px; |
| 182 | min-height: 24px; |
| 183 | border-radius: 2px; |
| 184 | line-height: 0; |
| 185 | max-width: 100%; |
| 186 | display: inline-block; |
| 187 | } |
| 188 | .components-badge:where(.is-default) { |
| 189 | background-color: #f0f0f0; |
| 190 | color: #2f2f2f; |
| 191 | } |
| 192 | .components-badge.has-icon { |
| 193 | padding-inline-start: 4px; |
| 194 | } |
| 195 | .components-badge.is-info { |
| 196 | --base-color: #3858e9; |
| 197 | } |
| 198 | .components-badge.is-warning { |
| 199 | --base-color: #f0b849; |
| 200 | } |
| 201 | .components-badge.is-error { |
| 202 | --base-color: #cc1818; |
| 203 | } |
| 204 | .components-badge.is-success { |
| 205 | --base-color: #4ab866; |
| 206 | } |
| 207 | |
| 208 | .components-badge__flex-wrapper { |
| 209 | display: inline-flex; |
| 210 | align-items: center; |
| 211 | gap: 2px; |
| 212 | max-width: 100%; |
| 213 | font-size: 12px; |
| 214 | font-weight: 400; |
| 215 | line-height: 20px; |
| 216 | } |
| 217 | |
| 218 | .components-badge__icon { |
| 219 | flex-shrink: 0; |
| 220 | } |
| 221 | |
| 222 | .components-badge__content { |
| 223 | overflow: hidden; |
| 224 | white-space: nowrap; |
| 225 | text-overflow: ellipsis; |
| 226 | } |
| 227 | |
| 228 | .components-button-group { |
| 229 | display: inline-block; |
| 230 | } |
| 231 | .components-button-group .components-button { |
| 232 | border-radius: 0; |
| 233 | display: inline-flex; |
| 234 | color: #1e1e1e; |
| 235 | box-shadow: inset 0 0 0 1px #1e1e1e; |
| 236 | } |
| 237 | .components-button-group .components-button + .components-button { |
| 238 | margin-left: -1px; |
| 239 | } |
| 240 | .components-button-group .components-button:first-child { |
| 241 | border-radius: 2px 0 0 2px; |
| 242 | } |
| 243 | .components-button-group .components-button:last-child { |
| 244 | border-radius: 0 2px 2px 0; |
| 245 | } |
| 246 | .components-button-group .components-button:focus, .components-button-group .components-button.is-primary { |
| 247 | position: relative; |
| 248 | z-index: 1; |
| 249 | } |
| 250 | .components-button-group .components-button.is-primary { |
| 251 | box-shadow: inset 0 0 0 1px #1e1e1e; |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * For easier testing of potential regressions, you can use a Button variant matrix |
| 256 | * available in a special Storybook instance by running `npm run storybook:e2e:dev`. |
| 257 | * |
| 258 | * @see https://github.com/WordPress/gutenberg/blob/trunk/test/storybook-playwright/README.md |
| 259 | */ |
| 260 | .components-button { |
| 261 | display: inline-flex; |
| 262 | text-decoration: none; |
| 263 | font-family: inherit; |
| 264 | font-size: 13px; |
| 265 | font-weight: 499; |
| 266 | margin: 0; |
| 267 | border: 0; |
| 268 | cursor: var(--wpds-cursor-control, pointer); |
| 269 | appearance: none; |
| 270 | background: none; |
| 271 | } |
| 272 | @media not (prefers-reduced-motion) { |
| 273 | .components-button { |
| 274 | transition: box-shadow 0.1s linear; |
| 275 | } |
| 276 | } |
| 277 | .components-button { |
| 278 | height: 36px; |
| 279 | align-items: center; |
| 280 | box-sizing: border-box; |
| 281 | padding: 4px 12px; |
| 282 | border-radius: 2px; |
| 283 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 284 | } |
| 285 | .components-button.is-next-40px-default-size { |
| 286 | height: 40px; |
| 287 | } |
| 288 | .components-button[aria-expanded=true], .components-button:hover:not(:disabled, [aria-disabled=true]) { |
| 289 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 290 | } |
| 291 | .components-button:focus:not(:active) { |
| 292 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 293 | } |
| 294 | .components-button { |
| 295 | /** |
| 296 | * Primary button style. |
| 297 | */ |
| 298 | } |
| 299 | .components-button.is-primary { |
| 300 | white-space: nowrap; |
| 301 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 302 | color: var(--wp-components-color-accent-inverted, #fff); |
| 303 | text-decoration: none; |
| 304 | text-shadow: none; |
| 305 | outline: 1px solid transparent; |
| 306 | } |
| 307 | .components-button.is-primary:hover:not(:disabled) { |
| 308 | background: var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6)); |
| 309 | color: var(--wp-components-color-accent-inverted, #fff); |
| 310 | } |
| 311 | .components-button.is-primary:active:not(:disabled) { |
| 312 | background: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)); |
| 313 | border-color: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)); |
| 314 | color: var(--wp-components-color-accent-inverted, #fff); |
| 315 | } |
| 316 | .components-button.is-primary:focus:not(:active) { |
| 317 | box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 318 | } |
| 319 | .components-button.is-primary:disabled, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary[aria-disabled=true], .components-button.is-primary[aria-disabled=true]:enabled, .components-button.is-primary[aria-disabled=true]:active:enabled { |
| 320 | color: rgba(255, 255, 255, 0.4); |
| 321 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 322 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 323 | outline: none; |
| 324 | } |
| 325 | .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled=true]:focus:enabled, .components-button.is-primary[aria-disabled=true]:enabled:focus:enabled, .components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled { |
| 326 | box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 327 | } |
| 328 | .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled=true] { |
| 329 | color: var(--wp-components-color-accent-inverted, #fff); |
| 330 | background-size: 100px 100%; |
| 331 | /* stylelint-disable -- Disable reason: This function call looks nicer when each argument is on its own line. */ |
| 332 | background-image: linear-gradient(-45deg, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 33%, var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)) 70%, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 70%); |
| 333 | /* stylelint-enable */ |
| 334 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 335 | } |
| 336 | .components-button { |
| 337 | /** |
| 338 | * Secondary and tertiary buttons. |
| 339 | */ |
| 340 | } |
| 341 | .components-button.is-secondary, .components-button.is-tertiary { |
| 342 | outline: 1px solid transparent; |
| 343 | } |
| 344 | .components-button.is-secondary:active:not(:disabled), .components-button.is-tertiary:active:not(:disabled) { |
| 345 | box-shadow: none; |
| 346 | } |
| 347 | .components-button.is-secondary:disabled, .components-button.is-secondary[aria-disabled=true], .components-button.is-secondary[aria-disabled=true]:hover, .components-button.is-tertiary:disabled, .components-button.is-tertiary[aria-disabled=true], .components-button.is-tertiary[aria-disabled=true]:hover { |
| 348 | color: #949494; |
| 349 | background: transparent; |
| 350 | transform: none; |
| 351 | } |
| 352 | .components-button { |
| 353 | /** |
| 354 | * Secondary button style. |
| 355 | */ |
| 356 | } |
| 357 | .components-button.is-secondary { |
| 358 | box-shadow: inset 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)), 0 0 0 currentColor; |
| 359 | outline: 1px solid transparent; |
| 360 | white-space: nowrap; |
| 361 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 362 | background: transparent; |
| 363 | } |
| 364 | .components-button.is-secondary:hover:not(:disabled, [aria-disabled=true], .is-pressed) { |
| 365 | box-shadow: inset 0 0 0 1px var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)); |
| 366 | color: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)); |
| 367 | background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent); |
| 368 | } |
| 369 | .components-button.is-secondary:disabled:not(:focus), .components-button.is-secondary[aria-disabled=true]:not(:focus), .components-button.is-secondary[aria-disabled=true]:hover:not(:focus) { |
| 370 | box-shadow: inset 0 0 0 1px #ddd; |
| 371 | } |
| 372 | .components-button.is-secondary:focus:not(:active) { |
| 373 | box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 374 | } |
| 375 | .components-button { |
| 376 | /** |
| 377 | * Tertiary buttons. |
| 378 | */ |
| 379 | } |
| 380 | .components-button.is-tertiary { |
| 381 | white-space: nowrap; |
| 382 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 383 | background: transparent; |
| 384 | } |
| 385 | .components-button.is-tertiary:hover:not(:disabled, [aria-disabled=true], .is-pressed) { |
| 386 | background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent); |
| 387 | color: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6)); |
| 388 | } |
| 389 | .components-button.is-tertiary:active:not(:disabled, [aria-disabled=true]) { |
| 390 | background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 8%, transparent); |
| 391 | } |
| 392 | p + .components-button.is-tertiary { |
| 393 | margin-left: -6px; |
| 394 | } |
| 395 | .components-button.is-tertiary:disabled:not(:focus), .components-button.is-tertiary[aria-disabled=true]:not(:focus), .components-button.is-tertiary[aria-disabled=true]:hover:not(:focus) { |
| 396 | box-shadow: none; |
| 397 | outline: none; |
| 398 | } |
| 399 | .components-button { |
| 400 | /** |
| 401 | * Destructive buttons. |
| 402 | */ |
| 403 | } |
| 404 | .components-button.is-destructive { |
| 405 | --wp-components-color-accent: #cc1818; |
| 406 | --wp-components-color-accent-darker-10: rgb(158.3684210526, 18.6315789474, 18.6315789474); |
| 407 | --wp-components-color-accent-darker-20: rgb(112.7368421053, 13.2631578947, 13.2631578947); |
| 408 | } |
| 409 | .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link) { |
| 410 | color: #cc1818; |
| 411 | } |
| 412 | .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled, [aria-disabled=true]) { |
| 413 | color: rgb(112.7368421053, 13.2631578947, 13.2631578947); |
| 414 | } |
| 415 | .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:active) { |
| 416 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #cc1818; |
| 417 | } |
| 418 | .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled, [aria-disabled=true]) { |
| 419 | background: #ccc; |
| 420 | } |
| 421 | .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled, .components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true] { |
| 422 | color: #949494; |
| 423 | } |
| 424 | .components-button.is-destructive.is-tertiary:hover:not(:disabled, [aria-disabled=true]), .components-button.is-destructive.is-secondary:hover:not(:disabled, [aria-disabled=true]) { |
| 425 | background: rgba(204, 24, 24, 0.04); |
| 426 | } |
| 427 | .components-button.is-destructive.is-tertiary:active:not(:disabled, [aria-disabled=true]), .components-button.is-destructive.is-secondary:active:not(:disabled, [aria-disabled=true]) { |
| 428 | background: rgba(204, 24, 24, 0.08); |
| 429 | } |
| 430 | .components-button { |
| 431 | /** |
| 432 | * Link buttons. |
| 433 | */ |
| 434 | } |
| 435 | .components-button.is-link { |
| 436 | margin: 0; |
| 437 | padding: 0; |
| 438 | box-shadow: none; |
| 439 | border: 0; |
| 440 | border-radius: 0; |
| 441 | background: none; |
| 442 | outline: none; |
| 443 | text-align: left; |
| 444 | font-weight: 400; |
| 445 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 446 | text-decoration: underline; |
| 447 | text-underline-offset: 0.2em; |
| 448 | text-decoration-thickness: from-font; |
| 449 | } |
| 450 | @media not (prefers-reduced-motion) { |
| 451 | .components-button.is-link { |
| 452 | transition-property: border, background, color; |
| 453 | transition-duration: 0.05s; |
| 454 | transition-timing-function: ease-in-out; |
| 455 | } |
| 456 | } |
| 457 | .components-button.is-link { |
| 458 | height: auto; |
| 459 | } |
| 460 | .components-button.is-link:focus { |
| 461 | border-radius: 2px; |
| 462 | } |
| 463 | .components-button.is-link:disabled, .components-button.is-link[aria-disabled=true] { |
| 464 | color: #949494; |
| 465 | } |
| 466 | .components-button:focus { |
| 467 | outline: 3px solid transparent; |
| 468 | } |
| 469 | .components-button:not(:disabled, [aria-disabled=true]):active { |
| 470 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 471 | } |
| 472 | .components-button:disabled, .components-button[aria-disabled=true] { |
| 473 | cursor: default; |
| 474 | color: #949494; |
| 475 | } |
| 476 | @media not (prefers-reduced-motion) { |
| 477 | .components-button.is-busy, .components-button.is-secondary.is-busy, .components-button.is-secondary.is-busy:disabled, .components-button.is-secondary.is-busy[aria-disabled=true] { |
| 478 | animation: components-button__busy-animation 2500ms infinite linear; |
| 479 | } |
| 480 | } |
| 481 | .components-button.is-busy, .components-button.is-secondary.is-busy, .components-button.is-secondary.is-busy:disabled, .components-button.is-secondary.is-busy[aria-disabled=true] { |
| 482 | background-size: 100px 100%; |
| 483 | /* stylelint-disable -- Disable reason: This function call looks nicer when each argument is on its own line. */ |
| 484 | background-image: linear-gradient(-45deg, rgb(249.9, 249.9, 249.9) 33%, rgb(224.4, 224.4, 224.4) 33%, rgb(224.4, 224.4, 224.4) 70%, rgb(249.9, 249.9, 249.9) 70%); |
| 485 | /* stylelint-enable */ |
| 486 | } |
| 487 | .components-button.is-compact { |
| 488 | height: 32px; |
| 489 | } |
| 490 | .components-button.is-compact.has-icon:not(.has-text) { |
| 491 | padding: 0; |
| 492 | min-width: 32px; |
| 493 | } |
| 494 | .components-button.is-small { |
| 495 | height: 24px; |
| 496 | line-height: 22px; |
| 497 | padding: 0 8px; |
| 498 | font-size: 11px; |
| 499 | } |
| 500 | .components-button.is-small.has-icon:not(.has-text) { |
| 501 | padding: 0; |
| 502 | min-width: 24px; |
| 503 | } |
| 504 | .components-button.has-icon { |
| 505 | padding: 6px; |
| 506 | min-width: 36px; |
| 507 | justify-content: center; |
| 508 | } |
| 509 | .components-button.has-icon.is-next-40px-default-size { |
| 510 | min-width: 40px; |
| 511 | } |
| 512 | .components-button.has-icon .dashicon { |
| 513 | display: inline-flex; |
| 514 | justify-content: center; |
| 515 | align-items: center; |
| 516 | padding: 2px; |
| 517 | box-sizing: content-box; |
| 518 | } |
| 519 | .components-button.has-icon.has-text { |
| 520 | justify-content: start; |
| 521 | padding-right: 12px; |
| 522 | padding-left: 8px; |
| 523 | gap: 4px; |
| 524 | } |
| 525 | .components-button.has-icon.has-text.has-icon-right { |
| 526 | padding-right: 8px; |
| 527 | padding-left: 12px; |
| 528 | } |
| 529 | .components-button.is-pressed, .components-button.is-pressed:hover { |
| 530 | color: var(--wp-components-color-foreground-inverted, #fff); |
| 531 | } |
| 532 | .components-button.is-pressed:not(:disabled, [aria-disabled=true]), .components-button.is-pressed:hover:not(:disabled, [aria-disabled=true]) { |
| 533 | background: var(--wp-components-color-foreground, #1e1e1e); |
| 534 | } |
| 535 | .components-button.is-pressed:disabled, .components-button.is-pressed[aria-disabled=true] { |
| 536 | color: #949494; |
| 537 | } |
| 538 | .components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary), .components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary) { |
| 539 | color: var(--wp-components-color-foreground-inverted, #fff); |
| 540 | background: #949494; |
| 541 | } |
| 542 | .components-button.is-pressed:focus:not(:active) { |
| 543 | box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 544 | } |
| 545 | .components-button.is-pressed:focus { |
| 546 | outline: 2px solid transparent; |
| 547 | } |
| 548 | .components-button:focus:active { |
| 549 | outline: none; |
| 550 | } |
| 551 | .components-button svg { |
| 552 | fill: currentColor; |
| 553 | outline: none; |
| 554 | flex-shrink: 0; |
| 555 | } |
| 556 | @media (forced-colors: active) { |
| 557 | .components-button svg { |
| 558 | fill: CanvasText; |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | @keyframes components-button__busy-animation { |
| 563 | 0% { |
| 564 | background-position: 200px 0; |
| 565 | } |
| 566 | } |
| 567 | /* Root of the component. */ |
| 568 | .components-calendar { |
| 569 | position: relative; /* Required to position the navigation toolbar. */ |
| 570 | box-sizing: border-box; |
| 571 | display: inline flow-root; |
| 572 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 573 | background-color: var(--wp-components-color-background, #fff); |
| 574 | font-size: 13px; |
| 575 | font-weight: 400; |
| 576 | z-index: 0; |
| 577 | } |
| 578 | .components-calendar *, |
| 579 | .components-calendar *::before, |
| 580 | .components-calendar *::after { |
| 581 | box-sizing: border-box; |
| 582 | } |
| 583 | |
| 584 | .components-calendar__day { |
| 585 | padding: 0; |
| 586 | position: relative; |
| 587 | } |
| 588 | .components-calendar__day:has(.components-calendar__day-button:disabled) { |
| 589 | color: var(--wp-components-color-gray-400, #ccc); |
| 590 | } |
| 591 | .components-calendar__day:has(.components-calendar__day-button:hover:not(:disabled)), .components-calendar__day:has(.components-calendar__day-button:focus-visible) { |
| 592 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 593 | } |
| 594 | |
| 595 | .components-calendar__day-button { |
| 596 | background: none; |
| 597 | padding: 0; |
| 598 | margin: 0; |
| 599 | cursor: var(--wpds-cursor-control, pointer); |
| 600 | justify-content: center; |
| 601 | align-items: center; |
| 602 | display: flex; |
| 603 | position: relative; |
| 604 | width: 32px; |
| 605 | height: 32px; |
| 606 | border: none; |
| 607 | border-radius: 2px; |
| 608 | font: inherit; |
| 609 | font-variant-numeric: tabular-nums; |
| 610 | color: inherit; |
| 611 | } |
| 612 | .components-calendar__day-button::before { |
| 613 | content: ""; |
| 614 | position: absolute; |
| 615 | z-index: -1; |
| 616 | inset: 0; |
| 617 | border: none; |
| 618 | border-radius: 2px; |
| 619 | } |
| 620 | .components-calendar__day-button::after { |
| 621 | content: ""; |
| 622 | position: absolute; |
| 623 | z-index: 1; |
| 624 | inset: 0; |
| 625 | pointer-events: none; |
| 626 | } |
| 627 | .components-calendar__day-button:disabled { |
| 628 | cursor: revert; |
| 629 | } |
| 630 | @media (forced-colors: active) { |
| 631 | .components-calendar__day-button:disabled { |
| 632 | text-decoration: line-through; |
| 633 | } |
| 634 | } |
| 635 | .components-calendar__day-button:focus-visible { |
| 636 | outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 637 | outline-offset: 1px; |
| 638 | } |
| 639 | |
| 640 | .components-calendar__caption-label { |
| 641 | z-index: 1; |
| 642 | position: relative; |
| 643 | display: inline-flex; |
| 644 | align-items: center; |
| 645 | white-space: nowrap; |
| 646 | border: 0; |
| 647 | text-transform: capitalize; |
| 648 | } |
| 649 | |
| 650 | .components-calendar__button-next, |
| 651 | .components-calendar__button-previous { |
| 652 | border: none; |
| 653 | border-radius: 2px; |
| 654 | background: none; |
| 655 | padding: 0; |
| 656 | margin: 0; |
| 657 | cursor: var(--wpds-cursor-control, pointer); |
| 658 | appearance: none; |
| 659 | display: inline-flex; |
| 660 | align-items: center; |
| 661 | justify-content: center; |
| 662 | position: relative; |
| 663 | width: 32px; |
| 664 | height: 32px; |
| 665 | color: inherit; |
| 666 | } |
| 667 | .components-calendar__button-next:disabled, .components-calendar__button-next[aria-disabled=true], |
| 668 | .components-calendar__button-previous:disabled, |
| 669 | .components-calendar__button-previous[aria-disabled=true] { |
| 670 | cursor: revert; |
| 671 | color: var(--wp-components-color-gray-600, #949494); |
| 672 | } |
| 673 | .components-calendar__button-next:focus-visible, |
| 674 | .components-calendar__button-previous:focus-visible { |
| 675 | outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 676 | } |
| 677 | |
| 678 | .components-calendar__chevron { |
| 679 | display: inline-block; |
| 680 | fill: currentColor; |
| 681 | width: 16px; |
| 682 | height: 16px; |
| 683 | } |
| 684 | |
| 685 | .components-calendar[dir=rtl] .components-calendar__nav .components-calendar__chevron { |
| 686 | transform: rotate(180deg); |
| 687 | transform-origin: 50%; |
| 688 | } |
| 689 | |
| 690 | .components-calendar__month-caption { |
| 691 | display: flex; |
| 692 | justify-content: center; |
| 693 | align-content: center; |
| 694 | height: 32px; |
| 695 | margin-bottom: 12px; |
| 696 | } |
| 697 | |
| 698 | .components-calendar__months { |
| 699 | position: relative; |
| 700 | display: flex; |
| 701 | justify-content: center; |
| 702 | flex-wrap: wrap; |
| 703 | gap: 16px; |
| 704 | max-width: fit-content; |
| 705 | } |
| 706 | |
| 707 | .components-calendar__month-grid { |
| 708 | border-collapse: separate; |
| 709 | border-spacing: 0 4px; |
| 710 | } |
| 711 | |
| 712 | .components-calendar__nav { |
| 713 | position: absolute; |
| 714 | inset-block-start: 0; |
| 715 | inset-inline-start: 0; |
| 716 | inset-inline-end: 0; |
| 717 | display: flex; |
| 718 | align-items: center; |
| 719 | justify-content: space-between; |
| 720 | height: 32px; |
| 721 | } |
| 722 | |
| 723 | .components-calendar__weekday { |
| 724 | width: 32px; |
| 725 | height: 32px; |
| 726 | padding: 0; |
| 727 | color: var(--wp-components-color-gray-700, #757575); |
| 728 | text-align: center; |
| 729 | text-transform: uppercase; |
| 730 | } |
| 731 | |
| 732 | /* DAY MODIFIERS */ |
| 733 | .components-calendar__day--today::after { |
| 734 | content: ""; |
| 735 | position: absolute; |
| 736 | z-index: 1; |
| 737 | inset-block-start: 2px; |
| 738 | inset-inline-end: 2px; |
| 739 | width: 0; |
| 740 | height: 0; |
| 741 | border-radius: 50%; |
| 742 | border: 2px solid currentColor; |
| 743 | } |
| 744 | |
| 745 | .components-calendar__day--selected:not(.components-calendar__range-middle):has(.components-calendar__day-button, |
| 746 | .components-calendar__day-button:hover:not(:disabled)) { |
| 747 | color: var(--wp-components-color-foreground-inverted, #fff); |
| 748 | } |
| 749 | .components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button::before { |
| 750 | background-color: var(--wp-components-color-foreground, #1e1e1e); |
| 751 | border: 1px solid transparent; |
| 752 | } |
| 753 | .components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:disabled::before { |
| 754 | background-color: var(--wp-components-color-gray-400, #ccc); |
| 755 | } |
| 756 | .components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:hover:not(:disabled)::before { |
| 757 | background-color: var(--wp-components-color-gray-800, #2f2f2f); |
| 758 | } |
| 759 | |
| 760 | .components-calendar__day--outside { |
| 761 | color: var(--wp-components-color-gray-600, #949494); |
| 762 | } |
| 763 | |
| 764 | .components-calendar__day--hidden { |
| 765 | visibility: hidden; |
| 766 | } |
| 767 | |
| 768 | .components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button, .components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button::before { |
| 769 | border-start-end-radius: 0; |
| 770 | border-end-end-radius: 0; |
| 771 | } |
| 772 | |
| 773 | .components-calendar__range-middle .components-calendar__day-button::before { |
| 774 | background-color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent); |
| 775 | border-radius: 0; |
| 776 | border-width: 1px 0; |
| 777 | border-color: transparent; |
| 778 | border-style: solid; |
| 779 | } |
| 780 | |
| 781 | .components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button, .components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button::before { |
| 782 | border-start-start-radius: 0; |
| 783 | border-end-start-radius: 0; |
| 784 | } |
| 785 | |
| 786 | /* |
| 787 | * RANGE PREVIEW (range calendar only) |
| 788 | * |
| 789 | * The preview is rendered in the button's ::after pseudo-element, so that it |
| 790 | * can be rendered over the button's contents. |
| 791 | * The selection preview is shown with a dashed border. In order to have |
| 792 | * control over the dash pattern (especially the seams between days), the |
| 793 | * dashed borders are rendered as SVGs via the url() CSS function. |
| 794 | * Since SVGs rendered in the url() function don't seem to be able to access |
| 795 | * CSS variables, we're using the SVGs as masks, and using `background-color` |
| 796 | * to consume the accent color variable. |
| 797 | */ |
| 798 | .components-calendar__day--preview svg { |
| 799 | position: absolute; |
| 800 | inset: 0; |
| 801 | pointer-events: none; |
| 802 | color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 16%, transparent); |
| 803 | } |
| 804 | @media (forced-colors: active) { |
| 805 | .components-calendar__day--preview svg { |
| 806 | color: inherit; |
| 807 | } |
| 808 | } |
| 809 | .components-calendar[dir=rtl] .components-calendar__day--preview svg { |
| 810 | transform: scaleX(-1); |
| 811 | } |
| 812 | |
| 813 | .components-calendar__day--preview.components-calendar__range-middle .components-calendar__day-button::before { |
| 814 | border: none; |
| 815 | } |
| 816 | |
| 817 | /* ANIMATIONS */ |
| 818 | @keyframes slide-in-left { |
| 819 | 0% { |
| 820 | transform: translateX(-100%); |
| 821 | } |
| 822 | 100% { |
| 823 | transform: translateX(0); |
| 824 | } |
| 825 | } |
| 826 | @keyframes slide-in-right { |
| 827 | 0% { |
| 828 | transform: translateX(100%); |
| 829 | } |
| 830 | 100% { |
| 831 | transform: translateX(0); |
| 832 | } |
| 833 | } |
| 834 | @keyframes slide-out-left { |
| 835 | 0% { |
| 836 | transform: translateX(0); |
| 837 | } |
| 838 | 100% { |
| 839 | transform: translateX(-100%); |
| 840 | } |
| 841 | } |
| 842 | @keyframes slide-out-right { |
| 843 | 0% { |
| 844 | transform: translateX(0); |
| 845 | } |
| 846 | 100% { |
| 847 | transform: translateX(100%); |
| 848 | } |
| 849 | } |
| 850 | @keyframes fade-in { |
| 851 | from { |
| 852 | opacity: 0; |
| 853 | } |
| 854 | to { |
| 855 | opacity: 1; |
| 856 | } |
| 857 | } |
| 858 | @keyframes fade-out { |
| 859 | from { |
| 860 | opacity: 1; |
| 861 | } |
| 862 | to { |
| 863 | opacity: 0; |
| 864 | } |
| 865 | } |
| 866 | .components-calendar__weeks-before-enter, |
| 867 | .components-calendar__weeks-before-exit, |
| 868 | .components-calendar__weeks-after-enter, |
| 869 | .components-calendar__weeks-after-exit, |
| 870 | .components-calendar__caption-after-enter, |
| 871 | .components-calendar__caption-after-exit, |
| 872 | .components-calendar__caption-before-enter, |
| 873 | .components-calendar__caption-before-exit { |
| 874 | animation-duration: 0s; |
| 875 | animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
| 876 | animation-fill-mode: forwards; |
| 877 | } |
| 878 | @media not (prefers-reduced-motion) { |
| 879 | .components-calendar__weeks-before-enter, |
| 880 | .components-calendar__weeks-before-exit, |
| 881 | .components-calendar__weeks-after-enter, |
| 882 | .components-calendar__weeks-after-exit, |
| 883 | .components-calendar__caption-after-enter, |
| 884 | .components-calendar__caption-after-exit, |
| 885 | .components-calendar__caption-before-enter, |
| 886 | .components-calendar__caption-before-exit { |
| 887 | animation-duration: 0.3s; |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | .components-calendar__weeks-before-enter, |
| 892 | .components-calendar[dir=rtl] .components-calendar__weeks-after-enter { |
| 893 | animation-name: slide-in-left; |
| 894 | } |
| 895 | |
| 896 | .components-calendar__weeks-before-exit, |
| 897 | .components-calendar[dir=rtl] .components-calendar__weeks-after-exit { |
| 898 | animation-name: slide-out-left; |
| 899 | } |
| 900 | |
| 901 | .components-calendar__weeks-after-enter, |
| 902 | .components-calendar[dir=rtl] .components-calendar__weeks-before-enter { |
| 903 | animation-name: slide-in-right; |
| 904 | } |
| 905 | |
| 906 | .components-calendar__weeks-after-exit, |
| 907 | .components-calendar[dir=rtl] .components-calendar__weeks-before-exit { |
| 908 | animation-name: slide-out-right; |
| 909 | } |
| 910 | |
| 911 | .components-calendar__caption-after-enter { |
| 912 | animation-name: fade-in; |
| 913 | } |
| 914 | |
| 915 | .components-calendar__caption-after-exit { |
| 916 | animation-name: fade-out; |
| 917 | } |
| 918 | |
| 919 | .components-calendar__caption-before-enter { |
| 920 | animation-name: fade-in; |
| 921 | } |
| 922 | |
| 923 | .components-calendar__caption-before-exit { |
| 924 | animation-name: fade-out; |
| 925 | } |
| 926 | |
| 927 | .components-checkbox-control { |
| 928 | --checkbox-input-size: 24px; |
| 929 | } |
| 930 | @media (min-width: 600px) { |
| 931 | .components-checkbox-control { |
| 932 | --checkbox-input-size: 16px; |
| 933 | } |
| 934 | } |
| 935 | .components-checkbox-control { |
| 936 | --checkbox-input-margin: 8px; |
| 937 | } |
| 938 | |
| 939 | .components-checkbox-control__label { |
| 940 | line-height: var(--checkbox-input-size); |
| 941 | } |
| 942 | .components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label { |
| 943 | cursor: var(--wpds-cursor-control, pointer); |
| 944 | } |
| 945 | |
| 946 | .components-checkbox-control__input[type=checkbox] { |
| 947 | border: 1px solid #1e1e1e; |
| 948 | margin-right: 12px; |
| 949 | transition: none; |
| 950 | border-radius: 2px; |
| 951 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 952 | padding: 6px 8px; |
| 953 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 954 | font-size: 16px; |
| 955 | /* Override core line-height. To be reviewed. */ |
| 956 | line-height: normal; |
| 957 | box-shadow: 0 0 0 transparent; |
| 958 | border-radius: 2px; |
| 959 | border: 1px solid #949494; |
| 960 | } |
| 961 | @media not (prefers-reduced-motion) { |
| 962 | .components-checkbox-control__input[type=checkbox] { |
| 963 | transition: box-shadow 0.1s linear; |
| 964 | } |
| 965 | } |
| 966 | @media (min-width: 600px) { |
| 967 | .components-checkbox-control__input[type=checkbox] { |
| 968 | font-size: 13px; |
| 969 | /* Override core line-height. To be reviewed. */ |
| 970 | line-height: normal; |
| 971 | } |
| 972 | } |
| 973 | .components-checkbox-control__input[type=checkbox]:focus { |
| 974 | border-color: var(--wp-admin-theme-color); |
| 975 | box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); |
| 976 | outline: 2px solid transparent; |
| 977 | } |
| 978 | .components-checkbox-control__input[type=checkbox]::placeholder { |
| 979 | color: rgba(30, 30, 30, 0.62); |
| 980 | } |
| 981 | .components-checkbox-control__input[type=checkbox]:focus { |
| 982 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 983 | outline: 2px solid transparent; |
| 984 | } |
| 985 | .components-checkbox-control__input[type=checkbox]:checked { |
| 986 | background: var(--wp-admin-theme-color); |
| 987 | border-color: var(--wp-admin-theme-color); |
| 988 | } |
| 989 | .components-checkbox-control__input[type=checkbox]:checked::before, .components-checkbox-control__input[type=checkbox][aria-checked=mixed]::before { |
| 990 | margin: -3px -5px; |
| 991 | color: #fff; |
| 992 | } |
| 993 | @media (min-width: 782px) { |
| 994 | .components-checkbox-control__input[type=checkbox]:checked::before, .components-checkbox-control__input[type=checkbox][aria-checked=mixed]::before { |
| 995 | margin: -4px 0 0 -5px; |
| 996 | } |
| 997 | } |
| 998 | .components-checkbox-control__input[type=checkbox][aria-checked=mixed] { |
| 999 | background: var(--wp-admin-theme-color); |
| 1000 | border-color: var(--wp-admin-theme-color); |
| 1001 | } |
| 1002 | .components-checkbox-control__input[type=checkbox][aria-checked=mixed]::before { |
| 1003 | content: "\f460"; |
| 1004 | float: left; |
| 1005 | display: inline-block; |
| 1006 | vertical-align: middle; |
| 1007 | width: 16px; |
| 1008 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 1009 | font: normal 30px/1 dashicons; |
| 1010 | speak: none; |
| 1011 | -webkit-font-smoothing: antialiased; |
| 1012 | -moz-osx-font-smoothing: grayscale; |
| 1013 | } |
| 1014 | @media (min-width: 782px) { |
| 1015 | .components-checkbox-control__input[type=checkbox][aria-checked=mixed]::before { |
| 1016 | float: none; |
| 1017 | font-size: 21px; |
| 1018 | } |
| 1019 | } |
| 1020 | .components-checkbox-control__input[type=checkbox][aria-disabled=true], .components-checkbox-control__input[type=checkbox]:disabled { |
| 1021 | background: #f0f0f0; |
| 1022 | border-color: #ddd; |
| 1023 | cursor: default; |
| 1024 | opacity: 1; |
| 1025 | } |
| 1026 | .components-checkbox-control__input[type=checkbox] { |
| 1027 | background: #fff; |
| 1028 | color: #1e1e1e; |
| 1029 | clear: none; |
| 1030 | display: inline-block; |
| 1031 | line-height: 0; |
| 1032 | margin: 0 4px 0 0; |
| 1033 | outline: 0; |
| 1034 | padding: 0 !important; |
| 1035 | text-align: center; |
| 1036 | vertical-align: top; |
| 1037 | width: var(--checkbox-input-size); |
| 1038 | height: var(--checkbox-input-size); |
| 1039 | appearance: none; |
| 1040 | } |
| 1041 | @media not (prefers-reduced-motion) { |
| 1042 | .components-checkbox-control__input[type=checkbox] { |
| 1043 | transition: 0.1s border-color ease-in-out; |
| 1044 | } |
| 1045 | } |
| 1046 | .components-checkbox-control__input[type=checkbox]:focus { |
| 1047 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color); |
| 1048 | outline: 2px solid transparent; |
| 1049 | outline-offset: 2px; |
| 1050 | } |
| 1051 | .components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked, :indeterminate) { |
| 1052 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1053 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1054 | } |
| 1055 | .components-checkbox-control__input[type=checkbox]:not(:disabled) { |
| 1056 | cursor: var(--wpds-cursor-control, pointer); |
| 1057 | } |
| 1058 | .components-checkbox-control__input[type=checkbox]:checked::before { |
| 1059 | content: none; |
| 1060 | } |
| 1061 | |
| 1062 | .components-checkbox-control__input-container { |
| 1063 | position: relative; |
| 1064 | display: inline-block; |
| 1065 | margin-right: var(--checkbox-input-margin); |
| 1066 | vertical-align: middle; |
| 1067 | width: var(--checkbox-input-size); |
| 1068 | aspect-ratio: 1; |
| 1069 | line-height: 1; |
| 1070 | flex-shrink: 0; |
| 1071 | } |
| 1072 | |
| 1073 | svg.components-checkbox-control__checked, |
| 1074 | svg.components-checkbox-control__indeterminate { |
| 1075 | --checkmark-size: var(--checkbox-input-size); |
| 1076 | fill: #fff; |
| 1077 | cursor: var(--wpds-cursor-control, pointer); |
| 1078 | position: absolute; |
| 1079 | left: 50%; |
| 1080 | top: 50%; |
| 1081 | transform: translate(-50%, -50%); |
| 1082 | width: var(--checkmark-size); |
| 1083 | height: var(--checkmark-size); |
| 1084 | -webkit-user-select: none; |
| 1085 | user-select: none; |
| 1086 | pointer-events: none; |
| 1087 | } |
| 1088 | @media (min-width: 600px) { |
| 1089 | svg.components-checkbox-control__checked, |
| 1090 | svg.components-checkbox-control__indeterminate { |
| 1091 | --checkmark-size: calc(var(--checkbox-input-size) + 4px); |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | .components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked, |
| 1096 | .components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate { |
| 1097 | fill: var(--wp-components-color-gray-400, #ccc); |
| 1098 | } |
| 1099 | |
| 1100 | .components-checkbox-control__help { |
| 1101 | display: inline-block; |
| 1102 | margin-inline-start: calc(var(--checkbox-input-size) + var(--checkbox-input-margin)); |
| 1103 | } |
| 1104 | |
| 1105 | .components-circular-option-picker { |
| 1106 | display: inline-block; |
| 1107 | width: 100%; |
| 1108 | min-width: 188px; |
| 1109 | isolation: isolate; |
| 1110 | } |
| 1111 | .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { |
| 1112 | display: flex; |
| 1113 | justify-content: flex-end; |
| 1114 | margin-top: 12px; |
| 1115 | } |
| 1116 | .components-circular-option-picker .components-circular-option-picker__swatches { |
| 1117 | display: flex; |
| 1118 | flex-wrap: wrap; |
| 1119 | gap: 12px; |
| 1120 | position: relative; |
| 1121 | z-index: 1; |
| 1122 | } |
| 1123 | .components-circular-option-picker > *:not(.components-circular-option-picker__swatches) { |
| 1124 | position: relative; |
| 1125 | z-index: 0; |
| 1126 | } |
| 1127 | |
| 1128 | .components-circular-option-picker__option-wrapper { |
| 1129 | display: inline-block; |
| 1130 | height: 28px; |
| 1131 | width: 28px; |
| 1132 | vertical-align: top; |
| 1133 | transform: scale(1); |
| 1134 | } |
| 1135 | @media not (prefers-reduced-motion) { |
| 1136 | .components-circular-option-picker__option-wrapper { |
| 1137 | transition: 100ms transform ease; |
| 1138 | will-change: transform; |
| 1139 | } |
| 1140 | } |
| 1141 | .components-circular-option-picker__option-wrapper:hover { |
| 1142 | transform: scale(1.2); |
| 1143 | } |
| 1144 | .components-circular-option-picker__option-wrapper > div { |
| 1145 | height: 100%; |
| 1146 | width: 100%; |
| 1147 | } |
| 1148 | |
| 1149 | .components-circular-option-picker__option-wrapper::before { |
| 1150 | content: ""; |
| 1151 | position: absolute; |
| 1152 | top: 1px; |
| 1153 | left: 1px; |
| 1154 | bottom: 1px; |
| 1155 | right: 1px; |
| 1156 | border-radius: 50%; |
| 1157 | z-index: -1; |
| 1158 | /* stylelint-disable-next-line function-url-quotes -- We need quotes for the data URL to use the SVG inline. */ |
| 1159 | background: url('data:image/svg+xml,%3Csvg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6 8V6H4v2h2zM8 8V6h2v2H8zM10 16H8v-2h2v2zM12 16v-2h2v2h-2zM12 18v-2h-2v2H8v2h2v-2h2zM14 18v2h-2v-2h2zM16 18h-2v-2h2v2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z" fill="%23555D65"/%3E%3Cpath d="M18 18v2h-2v-2h2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z" fill="%23555D65"/%3E%3C/svg%3E'); |
| 1160 | } |
| 1161 | |
| 1162 | .components-circular-option-picker__option { |
| 1163 | display: inline-block; |
| 1164 | vertical-align: top; |
| 1165 | height: 100% !important; |
| 1166 | aspect-ratio: 1; |
| 1167 | border: none; |
| 1168 | border-radius: 50%; |
| 1169 | background: transparent; |
| 1170 | box-shadow: inset 0 0 0 14px; |
| 1171 | } |
| 1172 | @media not (prefers-reduced-motion) { |
| 1173 | .components-circular-option-picker__option { |
| 1174 | transition: 100ms box-shadow ease; |
| 1175 | } |
| 1176 | } |
| 1177 | .components-circular-option-picker__option { |
| 1178 | cursor: var(--wpds-cursor-control, pointer); |
| 1179 | } |
| 1180 | .components-circular-option-picker__option:hover { |
| 1181 | box-shadow: inset 0 0 0 14px !important; |
| 1182 | } |
| 1183 | .components-circular-option-picker__option[aria-pressed=true], .components-circular-option-picker__option[aria-selected=true] { |
| 1184 | box-shadow: inset 0 0 0 4px; |
| 1185 | position: relative; |
| 1186 | z-index: 1; |
| 1187 | overflow: visible; |
| 1188 | } |
| 1189 | .components-circular-option-picker__option[aria-pressed=true] + svg, .components-circular-option-picker__option[aria-selected=true] + svg { |
| 1190 | position: absolute; |
| 1191 | left: 2px; |
| 1192 | top: 2px; |
| 1193 | border-radius: 50%; |
| 1194 | z-index: 2; |
| 1195 | pointer-events: none; |
| 1196 | } |
| 1197 | .components-circular-option-picker__option::after { |
| 1198 | content: ""; |
| 1199 | position: absolute; |
| 1200 | top: -1px; |
| 1201 | left: -1px; |
| 1202 | bottom: -1px; |
| 1203 | right: -1px; |
| 1204 | border-radius: 50%; |
| 1205 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); |
| 1206 | border: 1px solid transparent; |
| 1207 | box-sizing: inherit; |
| 1208 | } |
| 1209 | .components-circular-option-picker__option:focus::after { |
| 1210 | content: ""; |
| 1211 | border-radius: 50%; |
| 1212 | box-shadow: inset 0 0 0 2px #fff; |
| 1213 | position: absolute; |
| 1214 | top: 50%; |
| 1215 | left: 50%; |
| 1216 | transform: translate(-50%, -50%); |
| 1217 | border: 2px solid #757575; |
| 1218 | width: calc(100% + 4px); |
| 1219 | height: calc(100% + 4px); |
| 1220 | } |
| 1221 | .components-circular-option-picker__option.components-button:focus { |
| 1222 | background-color: transparent; |
| 1223 | box-shadow: inset 0 0 0 14px; |
| 1224 | outline: none; |
| 1225 | } |
| 1226 | |
| 1227 | .components-circular-option-picker__button-action .components-circular-option-picker__option { |
| 1228 | color: #fff; |
| 1229 | background: #fff; |
| 1230 | } |
| 1231 | |
| 1232 | .components-circular-option-picker__dropdown-link-action { |
| 1233 | margin-right: 16px; |
| 1234 | } |
| 1235 | .components-circular-option-picker__dropdown-link-action .components-button { |
| 1236 | line-height: 22px; |
| 1237 | } |
| 1238 | |
| 1239 | .components-palette-edit__popover-gradient-picker { |
| 1240 | width: 260px; |
| 1241 | padding: 8px; |
| 1242 | } |
| 1243 | |
| 1244 | .components-dropdown-menu__menu .components-palette-edit__menu-button { |
| 1245 | width: 100%; |
| 1246 | } |
| 1247 | |
| 1248 | .component-color-indicator { |
| 1249 | width: 20px; |
| 1250 | height: 20px; |
| 1251 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); |
| 1252 | border-radius: 50%; |
| 1253 | display: inline-block; |
| 1254 | padding: 0; |
| 1255 | background: #fff linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%); |
| 1256 | } |
| 1257 | |
| 1258 | .components-combobox-control { |
| 1259 | width: 100%; |
| 1260 | } |
| 1261 | |
| 1262 | input.components-combobox-control__input[type=text] { |
| 1263 | width: 100%; |
| 1264 | border: none; |
| 1265 | box-shadow: none; |
| 1266 | font-family: inherit; |
| 1267 | font-size: 16px; |
| 1268 | padding: 2px; |
| 1269 | margin: 0; |
| 1270 | line-height: inherit; |
| 1271 | min-height: auto; |
| 1272 | background: var(--wp-components-color-background, #fff); |
| 1273 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 1274 | } |
| 1275 | @media (min-width: 600px) { |
| 1276 | input.components-combobox-control__input[type=text] { |
| 1277 | font-size: 13px; |
| 1278 | } |
| 1279 | } |
| 1280 | input.components-combobox-control__input[type=text]:focus { |
| 1281 | outline: none; |
| 1282 | box-shadow: none; |
| 1283 | } |
| 1284 | |
| 1285 | .components-combobox-control__suggestions-container { |
| 1286 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1287 | padding: 6px 8px; |
| 1288 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 1289 | font-size: 16px; |
| 1290 | /* Override core line-height. To be reviewed. */ |
| 1291 | line-height: normal; |
| 1292 | box-shadow: 0 0 0 transparent; |
| 1293 | border-radius: 2px; |
| 1294 | border: 1px solid #949494; |
| 1295 | } |
| 1296 | @media not (prefers-reduced-motion) { |
| 1297 | .components-combobox-control__suggestions-container { |
| 1298 | transition: box-shadow 0.1s linear; |
| 1299 | } |
| 1300 | } |
| 1301 | @media (min-width: 600px) { |
| 1302 | .components-combobox-control__suggestions-container { |
| 1303 | font-size: 13px; |
| 1304 | /* Override core line-height. To be reviewed. */ |
| 1305 | line-height: normal; |
| 1306 | } |
| 1307 | } |
| 1308 | .components-combobox-control__suggestions-container:focus { |
| 1309 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1310 | box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1311 | outline: 2px solid transparent; |
| 1312 | } |
| 1313 | .components-combobox-control__suggestions-container::placeholder { |
| 1314 | color: rgba(30, 30, 30, 0.62); |
| 1315 | } |
| 1316 | .components-combobox-control__suggestions-container { |
| 1317 | display: flex; |
| 1318 | flex-wrap: wrap; |
| 1319 | align-items: flex-start; |
| 1320 | width: 100%; |
| 1321 | padding: 0; |
| 1322 | } |
| 1323 | .components-combobox-control__suggestions-container:focus-within { |
| 1324 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1325 | box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1326 | outline: 2px solid transparent; |
| 1327 | } |
| 1328 | .components-combobox-control__suggestions-container .components-spinner { |
| 1329 | margin: 0; |
| 1330 | } |
| 1331 | |
| 1332 | .components-color-palette__custom-color-wrapper { |
| 1333 | position: relative; |
| 1334 | z-index: 0; |
| 1335 | } |
| 1336 | |
| 1337 | .components-color-palette__custom-color-button { |
| 1338 | position: relative; |
| 1339 | border: none; |
| 1340 | background: none; |
| 1341 | height: 64px; |
| 1342 | width: 100%; |
| 1343 | box-sizing: border-box; |
| 1344 | cursor: var(--wpds-cursor-control, pointer); |
| 1345 | outline: 1px solid transparent; |
| 1346 | border-radius: 4px 4px 0 0; |
| 1347 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); |
| 1348 | } |
| 1349 | .components-color-palette__custom-color-button:focus { |
| 1350 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1351 | outline-width: 2px; |
| 1352 | } |
| 1353 | .components-color-palette__custom-color-button::after { |
| 1354 | content: ""; |
| 1355 | position: absolute; |
| 1356 | inset: 1px; |
| 1357 | z-index: -1; |
| 1358 | border-radius: 3px 3px 0 0; |
| 1359 | /*rtl:begin:ignore*/ |
| 1360 | background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0); |
| 1361 | background-position: 0 0, 24px 24px; |
| 1362 | /*rtl:end:ignore*/ |
| 1363 | background-size: 48px 48px; |
| 1364 | } |
| 1365 | |
| 1366 | .components-color-palette__custom-color-text-wrapper { |
| 1367 | padding: 12px 16px; |
| 1368 | border-radius: 0 0 4px 4px; |
| 1369 | position: relative; |
| 1370 | font-size: 13px; |
| 1371 | box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.2), inset 1px 0 0 0 rgba(0, 0, 0, 0.2), inset -1px 0 0 0 rgba(0, 0, 0, 0.2); |
| 1372 | } |
| 1373 | |
| 1374 | .components-color-palette__custom-color-name { |
| 1375 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 1376 | margin: 0 1px; |
| 1377 | } |
| 1378 | |
| 1379 | .components-color-palette__custom-color-value { |
| 1380 | color: #757575; |
| 1381 | } |
| 1382 | .components-color-palette__custom-color-value--is-hex { |
| 1383 | text-transform: uppercase; |
| 1384 | } |
| 1385 | .components-color-palette__custom-color-value:empty::after { |
| 1386 | content: "​"; |
| 1387 | visibility: hidden; |
| 1388 | } |
| 1389 | |
| 1390 | .components-custom-gradient-picker__gradient-bar { |
| 1391 | border-radius: 2px; |
| 1392 | width: 100%; |
| 1393 | height: 48px; |
| 1394 | position: relative; |
| 1395 | z-index: 1; |
| 1396 | } |
| 1397 | .components-custom-gradient-picker__gradient-bar.has-gradient { |
| 1398 | /*rtl:begin:ignore*/ |
| 1399 | background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0); |
| 1400 | background-position: 0 0, 12px 12px; |
| 1401 | /*rtl:end:ignore*/ |
| 1402 | background-size: 24px 24px; |
| 1403 | } |
| 1404 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background { |
| 1405 | position: absolute; |
| 1406 | inset: 0; |
| 1407 | } |
| 1408 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { |
| 1409 | position: relative; |
| 1410 | width: calc(100% - 48px); |
| 1411 | margin-left: auto; |
| 1412 | margin-right: auto; |
| 1413 | } |
| 1414 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown { |
| 1415 | position: absolute; |
| 1416 | height: 16px; |
| 1417 | width: 16px; |
| 1418 | top: 16px; |
| 1419 | display: flex; |
| 1420 | } |
| 1421 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown { |
| 1422 | position: relative; |
| 1423 | height: inherit; |
| 1424 | width: inherit; |
| 1425 | min-width: 16px !important; |
| 1426 | border-radius: 50%; |
| 1427 | background: #fff; |
| 1428 | padding: 2px; |
| 1429 | color: #1e1e1e; |
| 1430 | } |
| 1431 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg { |
| 1432 | height: 100%; |
| 1433 | width: 100%; |
| 1434 | } |
| 1435 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button { |
| 1436 | height: inherit; |
| 1437 | width: inherit; |
| 1438 | border-radius: 50%; |
| 1439 | padding: 0; |
| 1440 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25); |
| 1441 | outline: 2px solid transparent; |
| 1442 | } |
| 1443 | .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus, .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { |
| 1444 | box-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus) * 2) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25); |
| 1445 | outline: 1.5px solid transparent; |
| 1446 | } |
| 1447 | |
| 1448 | .components-custom-gradient-picker__remove-control-point-wrapper { |
| 1449 | padding-bottom: 8px; |
| 1450 | } |
| 1451 | |
| 1452 | .components-custom-gradient-picker__inserter { |
| 1453 | /*rtl:ignore*/ |
| 1454 | direction: ltr; |
| 1455 | } |
| 1456 | |
| 1457 | .components-custom-gradient-picker__liner-gradient-indicator { |
| 1458 | display: inline-block; |
| 1459 | flex: 0 auto; |
| 1460 | width: 20px; |
| 1461 | height: 20px; |
| 1462 | } |
| 1463 | |
| 1464 | .components-custom-gradient-picker__ui-line { |
| 1465 | position: relative; |
| 1466 | z-index: 0; |
| 1467 | } |
| 1468 | |
| 1469 | body.is-dragging-components-draggable { |
| 1470 | cursor: move; /* Fallback for IE/Edge < 14 */ |
| 1471 | cursor: grabbing !important; |
| 1472 | } |
| 1473 | |
| 1474 | .components-draggable__invisible-drag-image { |
| 1475 | position: fixed; |
| 1476 | left: -1000px; |
| 1477 | height: 50px; |
| 1478 | width: 50px; |
| 1479 | } |
| 1480 | |
| 1481 | .components-draggable__clone { |
| 1482 | position: fixed; |
| 1483 | padding: 0; |
| 1484 | background: transparent; |
| 1485 | pointer-events: none; |
| 1486 | z-index: 1000000000; |
| 1487 | } |
| 1488 | |
| 1489 | .components-drop-zone { |
| 1490 | position: absolute; |
| 1491 | top: 0; |
| 1492 | right: 0; |
| 1493 | bottom: 0; |
| 1494 | left: 0; |
| 1495 | z-index: 40; |
| 1496 | visibility: hidden; |
| 1497 | opacity: 0; |
| 1498 | border-radius: 2px; |
| 1499 | } |
| 1500 | .components-drop-zone.is-active { |
| 1501 | opacity: 1; |
| 1502 | visibility: visible; |
| 1503 | } |
| 1504 | .components-drop-zone .components-drop-zone__content { |
| 1505 | position: absolute; |
| 1506 | top: 0; |
| 1507 | bottom: 0; |
| 1508 | left: 0; |
| 1509 | right: 0; |
| 1510 | height: 100%; |
| 1511 | width: 100%; |
| 1512 | display: flex; |
| 1513 | background-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1514 | align-items: center; |
| 1515 | justify-content: center; |
| 1516 | z-index: 50; |
| 1517 | text-align: center; |
| 1518 | color: #fff; |
| 1519 | opacity: 0; |
| 1520 | pointer-events: none; |
| 1521 | } |
| 1522 | .components-drop-zone .components-drop-zone__content-inner { |
| 1523 | opacity: 0; |
| 1524 | transform: scale(0.9); |
| 1525 | } |
| 1526 | .components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content { |
| 1527 | opacity: 1; |
| 1528 | } |
| 1529 | @media not (prefers-reduced-motion) { |
| 1530 | .components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content { |
| 1531 | transition: opacity 0.2s ease-in-out; |
| 1532 | } |
| 1533 | } |
| 1534 | .components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner { |
| 1535 | opacity: 1; |
| 1536 | transform: scale(1); |
| 1537 | } |
| 1538 | @media not (prefers-reduced-motion) { |
| 1539 | .components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner { |
| 1540 | transition: opacity 0.1s ease-in-out 0.1s, transform 0.1s ease-in-out 0.1s; |
| 1541 | } |
| 1542 | } |
| 1543 | |
| 1544 | .components-drop-zone__content-icon, |
| 1545 | .components-drop-zone__content-text { |
| 1546 | display: block; |
| 1547 | } |
| 1548 | |
| 1549 | .components-drop-zone__content-icon { |
| 1550 | margin: 0 auto 8px; |
| 1551 | line-height: 0; |
| 1552 | fill: currentColor; |
| 1553 | pointer-events: none; |
| 1554 | } |
| 1555 | |
| 1556 | .components-drop-zone__content-text { |
| 1557 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1558 | font-size: 13px; |
| 1559 | } |
| 1560 | |
| 1561 | .components-dropdown { |
| 1562 | display: inline-block; |
| 1563 | } |
| 1564 | |
| 1565 | .components-dropdown__content .components-popover__content { |
| 1566 | padding: 8px; |
| 1567 | } |
| 1568 | .components-dropdown__content .components-popover__content:has(.components-menu-group) { |
| 1569 | padding: 0; |
| 1570 | } |
| 1571 | .components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu > .components-menu-item__button, |
| 1572 | .components-dropdown__content .components-popover__content:has(.components-menu-group) > .components-menu-item__button { |
| 1573 | margin: 8px; |
| 1574 | width: auto; |
| 1575 | } |
| 1576 | .components-dropdown__content [role=menuitem] { |
| 1577 | white-space: nowrap; |
| 1578 | } |
| 1579 | .components-dropdown__content .components-menu-group { |
| 1580 | padding: 8px; |
| 1581 | } |
| 1582 | .components-dropdown__content .components-menu-group + .components-menu-group { |
| 1583 | border-top: 1px solid #ccc; |
| 1584 | padding: 8px; |
| 1585 | } |
| 1586 | .components-dropdown__content.is-alternate .components-menu-group + .components-menu-group { |
| 1587 | border-color: #1e1e1e; |
| 1588 | } |
| 1589 | |
| 1590 | .components-dropdown-menu__toggle { |
| 1591 | vertical-align: top; |
| 1592 | } |
| 1593 | |
| 1594 | .components-dropdown-menu__menu { |
| 1595 | width: 100%; |
| 1596 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1597 | font-size: 13px; |
| 1598 | line-height: 1.4; |
| 1599 | } |
| 1600 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item, |
| 1601 | .components-dropdown-menu__menu .components-menu-item { |
| 1602 | width: 100%; |
| 1603 | padding: 6px; |
| 1604 | outline: none; |
| 1605 | cursor: var(--wpds-cursor-control, pointer); |
| 1606 | white-space: nowrap; |
| 1607 | font-weight: 400; |
| 1608 | } |
| 1609 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator, |
| 1610 | .components-dropdown-menu__menu .components-menu-item.has-separator { |
| 1611 | margin-top: 6px; |
| 1612 | position: relative; |
| 1613 | overflow: visible; |
| 1614 | } |
| 1615 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before, |
| 1616 | .components-dropdown-menu__menu .components-menu-item.has-separator::before { |
| 1617 | display: block; |
| 1618 | content: ""; |
| 1619 | box-sizing: content-box; |
| 1620 | background-color: #ddd; |
| 1621 | position: absolute; |
| 1622 | top: -3px; |
| 1623 | left: 0; |
| 1624 | right: 0; |
| 1625 | height: 1px; |
| 1626 | } |
| 1627 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg, |
| 1628 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon, |
| 1629 | .components-dropdown-menu__menu .components-menu-item.is-active svg, |
| 1630 | .components-dropdown-menu__menu .components-menu-item.is-active .dashicon { |
| 1631 | color: #fff; |
| 1632 | background: #1e1e1e; |
| 1633 | box-shadow: 0 0 0 1px #1e1e1e; |
| 1634 | border-radius: 1px; |
| 1635 | } |
| 1636 | .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only, |
| 1637 | .components-dropdown-menu__menu .components-menu-item.is-icon-only { |
| 1638 | width: auto; |
| 1639 | } |
| 1640 | .components-dropdown-menu__menu .components-menu-item__button, |
| 1641 | .components-dropdown-menu__menu .components-menu-item__button.components-button { |
| 1642 | min-height: 32px; |
| 1643 | height: auto; |
| 1644 | text-align: left; |
| 1645 | padding-left: 8px; |
| 1646 | padding-right: 8px; |
| 1647 | } |
| 1648 | |
| 1649 | .components-duotone-picker__color-indicator::before { |
| 1650 | background: transparent; |
| 1651 | } |
| 1652 | |
| 1653 | .components-duotone-picker__color-indicator > .components-button { |
| 1654 | background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%); |
| 1655 | color: transparent; |
| 1656 | } |
| 1657 | .components-duotone-picker__color-indicator > .components-button.is-pressed:hover:not(:disabled) { |
| 1658 | background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%); |
| 1659 | color: transparent; |
| 1660 | } |
| 1661 | .components-duotone-picker__color-indicator > .components-button:hover:not(:disabled):not([aria-disabled=true]) { |
| 1662 | color: transparent; |
| 1663 | } |
| 1664 | .components-duotone-picker__color-indicator > .components-button:not([aria-disabled=true]):active { |
| 1665 | color: transparent; |
| 1666 | } |
| 1667 | |
| 1668 | .components-color-list-picker, |
| 1669 | .components-color-list-picker__swatch-button { |
| 1670 | width: 100%; |
| 1671 | } |
| 1672 | |
| 1673 | .components-color-list-picker__color-picker { |
| 1674 | margin: 8px 0; |
| 1675 | } |
| 1676 | |
| 1677 | .components-color-list-picker__swatch-color { |
| 1678 | margin: 2px; |
| 1679 | } |
| 1680 | |
| 1681 | .components-external-link { |
| 1682 | color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1683 | text-decoration: none; |
| 1684 | } |
| 1685 | @media not (prefers-reduced-motion) { |
| 1686 | .components-external-link { |
| 1687 | transition: outline 0.1s ease-out; |
| 1688 | } |
| 1689 | } |
| 1690 | .components-external-link { |
| 1691 | outline: 0 solid transparent; |
| 1692 | outline-offset: 1px; |
| 1693 | } |
| 1694 | .components-external-link:visited { |
| 1695 | color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1696 | } |
| 1697 | .components-external-link:hover, .components-external-link:active { |
| 1698 | color: var(--wpds-color-fg-interactive-brand-active, var(--wp-admin-theme-color, #3858e9)); |
| 1699 | } |
| 1700 | .components-external-link:focus { |
| 1701 | outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1702 | box-shadow: none; |
| 1703 | border-radius: 0; |
| 1704 | } |
| 1705 | |
| 1706 | .components-external-link__contents { |
| 1707 | text-decoration: underline; |
| 1708 | text-underline-offset: 0.2em; |
| 1709 | text-decoration-thickness: from-font; |
| 1710 | } |
| 1711 | |
| 1712 | .components-external-link__icon { |
| 1713 | line-height: 1; |
| 1714 | display: inline-block; |
| 1715 | margin-inline-start: var(--wpds-dimension-padding-xs, 4px); |
| 1716 | font-weight: var(--wpds-typography-font-weight-regular, 400); |
| 1717 | } |
| 1718 | |
| 1719 | .components-form-toggle { |
| 1720 | position: relative; |
| 1721 | isolation: isolate; |
| 1722 | display: inline-block; |
| 1723 | height: 16px; |
| 1724 | } |
| 1725 | .components-form-toggle .components-form-toggle__track { |
| 1726 | position: relative; |
| 1727 | content: ""; |
| 1728 | display: inline-block; |
| 1729 | box-sizing: border-box; |
| 1730 | vertical-align: top; |
| 1731 | background-color: #fff; |
| 1732 | border: 1px solid #949494; |
| 1733 | width: 32px; |
| 1734 | height: 16px; |
| 1735 | border-radius: 8px; |
| 1736 | } |
| 1737 | @media not (prefers-reduced-motion) { |
| 1738 | .components-form-toggle .components-form-toggle__track { |
| 1739 | transition: 0.2s background-color ease, 0.2s border-color ease; |
| 1740 | } |
| 1741 | } |
| 1742 | .components-form-toggle .components-form-toggle__track { |
| 1743 | overflow: hidden; |
| 1744 | } |
| 1745 | .components-form-toggle .components-form-toggle__track::after { |
| 1746 | content: ""; |
| 1747 | position: absolute; |
| 1748 | inset: 0; |
| 1749 | box-sizing: border-box; |
| 1750 | border-top: 16px solid transparent; |
| 1751 | } |
| 1752 | @media not (prefers-reduced-motion) { |
| 1753 | .components-form-toggle .components-form-toggle__track::after { |
| 1754 | transition: 0.2s opacity ease; |
| 1755 | } |
| 1756 | } |
| 1757 | .components-form-toggle .components-form-toggle__track::after { |
| 1758 | opacity: 0; |
| 1759 | } |
| 1760 | .components-form-toggle .components-form-toggle__thumb { |
| 1761 | display: block; |
| 1762 | position: absolute; |
| 1763 | box-sizing: border-box; |
| 1764 | top: 2px; |
| 1765 | left: 2px; |
| 1766 | width: 12px; |
| 1767 | height: 12px; |
| 1768 | border-radius: 50%; |
| 1769 | } |
| 1770 | @media not (prefers-reduced-motion) { |
| 1771 | .components-form-toggle .components-form-toggle__thumb { |
| 1772 | transition: 0.2s transform ease, 0.2s background-color ease-out; |
| 1773 | } |
| 1774 | } |
| 1775 | .components-form-toggle .components-form-toggle__thumb { |
| 1776 | background-color: #1e1e1e; |
| 1777 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01); |
| 1778 | border: 6px solid transparent; |
| 1779 | } |
| 1780 | .components-form-toggle.is-checked .components-form-toggle__track { |
| 1781 | background-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1782 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1783 | } |
| 1784 | .components-form-toggle.is-checked .components-form-toggle__track::after { |
| 1785 | opacity: 1; |
| 1786 | } |
| 1787 | .components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track { |
| 1788 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1789 | outline: 2px solid transparent; |
| 1790 | outline-offset: 2px; |
| 1791 | } |
| 1792 | .components-form-toggle.is-checked .components-form-toggle__thumb { |
| 1793 | background-color: #fff; |
| 1794 | border-width: 0; |
| 1795 | transform: translateX(16px); |
| 1796 | } |
| 1797 | .components-form-toggle.is-disabled .components-form-toggle__track, .components-disabled .components-form-toggle .components-form-toggle__track { |
| 1798 | background-color: var(--wp-components-color-gray-100, #f0f0f0); |
| 1799 | border-color: var(--wp-components-color-gray-300, #ddd); |
| 1800 | } |
| 1801 | @media (forced-colors: active) { |
| 1802 | .components-form-toggle.is-disabled .components-form-toggle__track, .components-disabled .components-form-toggle .components-form-toggle__track { |
| 1803 | border-color: GrayText; |
| 1804 | } |
| 1805 | } |
| 1806 | .components-form-toggle.is-disabled .components-form-toggle__thumb, .components-disabled .components-form-toggle .components-form-toggle__thumb { |
| 1807 | background-color: var(--wp-components-color-gray-400, #ccc); |
| 1808 | box-shadow: none; |
| 1809 | } |
| 1810 | @media (forced-colors: active) { |
| 1811 | .components-form-toggle.is-disabled .components-form-toggle__thumb, .components-disabled .components-form-toggle .components-form-toggle__thumb { |
| 1812 | border-color: GrayText; |
| 1813 | } |
| 1814 | } |
| 1815 | .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track { |
| 1816 | background-color: var(--wp-components-color-gray-400, #ccc); |
| 1817 | border-color: var(--wp-components-color-gray-400, #ccc); |
| 1818 | } |
| 1819 | @media (forced-colors: active) { |
| 1820 | .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track { |
| 1821 | border-color: GrayText; |
| 1822 | } |
| 1823 | .components-form-toggle.is-disabled.is-checked .components-form-toggle__track::after, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track::after { |
| 1824 | border-top-color: GrayText; |
| 1825 | } |
| 1826 | } |
| 1827 | .components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb, .components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb { |
| 1828 | background-color: #fff; |
| 1829 | } |
| 1830 | |
| 1831 | .components-form-toggle input.components-form-toggle__input[type=checkbox] { |
| 1832 | position: absolute; |
| 1833 | top: 0; |
| 1834 | left: 0; |
| 1835 | width: 100%; |
| 1836 | height: 100%; |
| 1837 | opacity: 0; |
| 1838 | margin: 0; |
| 1839 | padding: 0; |
| 1840 | z-index: 1; |
| 1841 | border: none; |
| 1842 | } |
| 1843 | .components-form-toggle input.components-form-toggle__input[type=checkbox]:checked { |
| 1844 | background: none; |
| 1845 | } |
| 1846 | .components-form-toggle input.components-form-toggle__input[type=checkbox]::before { |
| 1847 | content: ""; |
| 1848 | } |
| 1849 | .components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled, [aria-disabled=true]) { |
| 1850 | cursor: var(--wpds-cursor-control, pointer); |
| 1851 | } |
| 1852 | |
| 1853 | .components-form-token-field__input-container { |
| 1854 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 1855 | padding: 6px 8px; |
| 1856 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 1857 | font-size: 16px; |
| 1858 | /* Override core line-height. To be reviewed. */ |
| 1859 | line-height: normal; |
| 1860 | box-shadow: 0 0 0 transparent; |
| 1861 | border-radius: 2px; |
| 1862 | border: 1px solid #949494; |
| 1863 | } |
| 1864 | @media not (prefers-reduced-motion) { |
| 1865 | .components-form-token-field__input-container { |
| 1866 | transition: box-shadow 0.1s linear; |
| 1867 | } |
| 1868 | } |
| 1869 | @media (min-width: 600px) { |
| 1870 | .components-form-token-field__input-container { |
| 1871 | font-size: 13px; |
| 1872 | /* Override core line-height. To be reviewed. */ |
| 1873 | line-height: normal; |
| 1874 | } |
| 1875 | } |
| 1876 | .components-form-token-field__input-container:focus { |
| 1877 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1878 | box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1879 | outline: 2px solid transparent; |
| 1880 | } |
| 1881 | .components-form-token-field__input-container::placeholder { |
| 1882 | color: rgba(30, 30, 30, 0.62); |
| 1883 | } |
| 1884 | .components-form-token-field__input-container { |
| 1885 | width: 100%; |
| 1886 | padding: 0; |
| 1887 | cursor: text; |
| 1888 | } |
| 1889 | .components-form-token-field__input-container.is-disabled { |
| 1890 | background: var(--wp-components-color-gray-100, #f0f0f0); |
| 1891 | border-color: var(--wp-components-color-gray-400, #ccc); |
| 1892 | cursor: default; |
| 1893 | } |
| 1894 | .components-form-token-field__input-container.is-active { |
| 1895 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1896 | box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1897 | outline: 2px solid transparent; |
| 1898 | } |
| 1899 | .components-form-token-field__input-container input[type=text].components-form-token-field__input { |
| 1900 | display: inline-block; |
| 1901 | flex: 1; |
| 1902 | font-family: inherit; |
| 1903 | font-size: 16px; |
| 1904 | line-height: 1; |
| 1905 | width: 100%; |
| 1906 | max-width: 100%; |
| 1907 | margin-left: 4px; |
| 1908 | padding: 0; |
| 1909 | min-height: 24px; |
| 1910 | min-width: 50px; |
| 1911 | background: inherit; |
| 1912 | border: 0; |
| 1913 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 1914 | box-shadow: none; |
| 1915 | } |
| 1916 | @media (min-width: 600px) { |
| 1917 | .components-form-token-field__input-container input[type=text].components-form-token-field__input { |
| 1918 | font-size: 13px; |
| 1919 | } |
| 1920 | } |
| 1921 | .components-form-token-field__input-container input[type=text].components-form-token-field__input:focus, .components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input { |
| 1922 | outline: none; |
| 1923 | box-shadow: none; |
| 1924 | } |
| 1925 | .components-form-token-field__input-container .components-form-token-field__token + input[type=text].components-form-token-field__input { |
| 1926 | width: auto; |
| 1927 | } |
| 1928 | |
| 1929 | .components-form-token-field__token { |
| 1930 | font-size: 13px; |
| 1931 | display: flex; |
| 1932 | color: #1e1e1e; |
| 1933 | max-width: 100%; |
| 1934 | } |
| 1935 | .components-form-token-field__token.is-success .components-form-token-field__token-text, |
| 1936 | .components-form-token-field__token.is-success .components-form-token-field__remove-token { |
| 1937 | background: #4ab866; |
| 1938 | } |
| 1939 | .components-form-token-field__token.is-error .components-form-token-field__token-text, |
| 1940 | .components-form-token-field__token.is-error .components-form-token-field__remove-token { |
| 1941 | background: #cc1818; |
| 1942 | } |
| 1943 | .components-form-token-field__token.is-validating .components-form-token-field__token-text, |
| 1944 | .components-form-token-field__token.is-validating .components-form-token-field__remove-token { |
| 1945 | color: #757575; |
| 1946 | } |
| 1947 | .components-form-token-field__token.is-disabled .components-form-token-field__token-text, |
| 1948 | .components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button { |
| 1949 | background: var(--wp-components-color-gray-100, #f0f0f0); |
| 1950 | color: var(--wp-components-color-gray-600, #949494); |
| 1951 | } |
| 1952 | .components-form-token-field__token.is-borderless { |
| 1953 | position: relative; |
| 1954 | padding: 0 24px 0 0; |
| 1955 | } |
| 1956 | .components-form-token-field__token.is-borderless .components-form-token-field__token-text { |
| 1957 | background: transparent; |
| 1958 | } |
| 1959 | .components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text { |
| 1960 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 1961 | } |
| 1962 | .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { |
| 1963 | background: transparent; |
| 1964 | color: #757575; |
| 1965 | position: absolute; |
| 1966 | top: 1px; |
| 1967 | right: 0; |
| 1968 | } |
| 1969 | .components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text { |
| 1970 | color: #4ab866; |
| 1971 | } |
| 1972 | .components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text { |
| 1973 | color: #cc1818; |
| 1974 | padding: 0 4px 0 6px; |
| 1975 | } |
| 1976 | .components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text { |
| 1977 | color: #1e1e1e; |
| 1978 | } |
| 1979 | |
| 1980 | .components-form-token-field__token-text, |
| 1981 | .components-form-token-field__remove-token.components-button { |
| 1982 | display: inline-block; |
| 1983 | height: auto; |
| 1984 | background: #ddd; |
| 1985 | min-width: unset; |
| 1986 | } |
| 1987 | @media not (prefers-reduced-motion) { |
| 1988 | .components-form-token-field__token-text, |
| 1989 | .components-form-token-field__remove-token.components-button { |
| 1990 | transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1); |
| 1991 | } |
| 1992 | } |
| 1993 | |
| 1994 | .components-form-token-field__token-text { |
| 1995 | border-radius: 1px 0 0 1px; |
| 1996 | padding: 0 0 0 8px; |
| 1997 | line-height: 24px; |
| 1998 | white-space: nowrap; |
| 1999 | overflow: hidden; |
| 2000 | text-overflow: ellipsis; |
| 2001 | } |
| 2002 | |
| 2003 | .components-form-token-field__remove-token.components-button { |
| 2004 | border-radius: 0 1px 1px 0; |
| 2005 | color: #1e1e1e; |
| 2006 | line-height: 10px; |
| 2007 | overflow: initial; |
| 2008 | } |
| 2009 | .components-form-token-field__remove-token.components-button:hover:not(:disabled) { |
| 2010 | color: #1e1e1e; |
| 2011 | } |
| 2012 | |
| 2013 | .components-form-token-field__suggestions-list { |
| 2014 | flex: 1 0 100%; |
| 2015 | min-width: 100%; |
| 2016 | max-height: 128px; |
| 2017 | overflow-y: auto; |
| 2018 | } |
| 2019 | @media not (prefers-reduced-motion) { |
| 2020 | .components-form-token-field__suggestions-list { |
| 2021 | transition: all 0.15s ease-in-out; |
| 2022 | } |
| 2023 | } |
| 2024 | .components-form-token-field__suggestions-list { |
| 2025 | list-style: none; |
| 2026 | box-shadow: inset 0 1px 0 0 #949494; |
| 2027 | margin: 0; |
| 2028 | padding: 0; |
| 2029 | } |
| 2030 | |
| 2031 | .components-form-token-field__suggestion { |
| 2032 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 2033 | display: block; |
| 2034 | font-size: 13px; |
| 2035 | padding: 8px 12px; |
| 2036 | min-height: 32px; |
| 2037 | margin: 0; |
| 2038 | box-sizing: border-box; |
| 2039 | } |
| 2040 | .components-form-token-field__suggestion.is-selected { |
| 2041 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 2042 | color: var(--wp-components-color-foreground-inverted, #fff); |
| 2043 | } |
| 2044 | .components-form-token-field__suggestion[aria-disabled=true] { |
| 2045 | pointer-events: none; |
| 2046 | color: #949494; |
| 2047 | } |
| 2048 | .components-form-token-field__suggestion[aria-disabled=true].is-selected { |
| 2049 | background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent); |
| 2050 | } |
| 2051 | .components-form-token-field__suggestion:not(.is-empty) { |
| 2052 | cursor: var(--wpds-cursor-control, pointer); |
| 2053 | } |
| 2054 | |
| 2055 | @media (min-width: 600px) { |
| 2056 | .components-guide { |
| 2057 | width: 600px; |
| 2058 | } |
| 2059 | } |
| 2060 | .components-guide .components-modal__content { |
| 2061 | padding: 0; |
| 2062 | margin-top: 0; |
| 2063 | } |
| 2064 | .components-guide .components-modal__content::before { |
| 2065 | content: none; |
| 2066 | } |
| 2067 | .components-guide .components-modal__header { |
| 2068 | border-bottom: none; |
| 2069 | padding: 0; |
| 2070 | position: sticky; |
| 2071 | height: 64px; |
| 2072 | } |
| 2073 | .components-guide .components-modal__header .components-button { |
| 2074 | align-self: flex-start; |
| 2075 | margin: 8px 8px 0 0; |
| 2076 | position: static; |
| 2077 | } |
| 2078 | .components-guide .components-guide__container { |
| 2079 | display: flex; |
| 2080 | flex-direction: column; |
| 2081 | justify-content: space-between; |
| 2082 | margin-top: -64px; |
| 2083 | min-height: 100%; |
| 2084 | } |
| 2085 | .components-guide .components-guide__page { |
| 2086 | display: flex; |
| 2087 | flex-direction: column; |
| 2088 | justify-content: center; |
| 2089 | position: relative; |
| 2090 | } |
| 2091 | @media (min-width: 600px) { |
| 2092 | .components-guide .components-guide__page { |
| 2093 | min-height: 300px; |
| 2094 | } |
| 2095 | } |
| 2096 | .components-guide .components-guide__footer { |
| 2097 | align-content: center; |
| 2098 | display: flex; |
| 2099 | height: 36px; |
| 2100 | justify-content: center; |
| 2101 | margin: 0 0 24px 0; |
| 2102 | padding: 0 24px; |
| 2103 | position: relative; |
| 2104 | width: 100%; |
| 2105 | } |
| 2106 | .components-guide .components-guide__page-control { |
| 2107 | margin: 0; |
| 2108 | text-align: center; |
| 2109 | } |
| 2110 | .components-guide .components-guide__page-control li { |
| 2111 | display: inline-block; |
| 2112 | margin: 0; |
| 2113 | } |
| 2114 | .components-guide .components-guide__page-control .components-button { |
| 2115 | margin: -6px 0; |
| 2116 | color: #e0e0e0; |
| 2117 | } |
| 2118 | .components-guide .components-guide__page-control li[aria-current=step] .components-button { |
| 2119 | color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 2120 | } |
| 2121 | |
| 2122 | .components-modal__frame.components-guide { |
| 2123 | border: none; |
| 2124 | min-width: 312px; |
| 2125 | max-height: 575px; |
| 2126 | } |
| 2127 | @media (max-width: 600px) { |
| 2128 | .components-modal__frame.components-guide { |
| 2129 | margin: auto; |
| 2130 | max-width: calc(100vw - 16px * 2); |
| 2131 | } |
| 2132 | } |
| 2133 | |
| 2134 | .components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { |
| 2135 | position: absolute; |
| 2136 | } |
| 2137 | .components-button.components-guide__back-button { |
| 2138 | left: 24px; |
| 2139 | } |
| 2140 | .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { |
| 2141 | right: 24px; |
| 2142 | } |
| 2143 | |
| 2144 | [role=region] { |
| 2145 | position: relative; |
| 2146 | } |
| 2147 | [role=region].interface-interface-skeleton__content:focus-visible::after { |
| 2148 | content: ""; |
| 2149 | position: absolute; |
| 2150 | pointer-events: none; |
| 2151 | top: 0; |
| 2152 | right: 0; |
| 2153 | bottom: 0; |
| 2154 | left: 0; |
| 2155 | outline-color: var(--wp-admin-theme-color); |
| 2156 | outline-style: solid; |
| 2157 | outline-width: calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2158 | outline-offset: calc(2 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2159 | box-shadow: inset 0 0 0 calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); |
| 2160 | z-index: 1000000; |
| 2161 | } |
| 2162 | |
| 2163 | .is-focusing-regions [role=region]:focus::after { |
| 2164 | content: ""; |
| 2165 | position: absolute; |
| 2166 | pointer-events: none; |
| 2167 | top: 0; |
| 2168 | right: 0; |
| 2169 | bottom: 0; |
| 2170 | left: 0; |
| 2171 | outline-color: var(--wp-admin-theme-color); |
| 2172 | outline-style: solid; |
| 2173 | outline-width: calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2174 | outline-offset: calc(2 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2175 | box-shadow: inset 0 0 0 calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); |
| 2176 | z-index: 1000000; |
| 2177 | } |
| 2178 | .is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header, |
| 2179 | .is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel, |
| 2180 | .is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel, |
| 2181 | .is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel, |
| 2182 | .is-focusing-regions .editor-post-publish-panel { |
| 2183 | outline-color: var(--wp-admin-theme-color); |
| 2184 | outline-style: solid; |
| 2185 | outline-width: calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2186 | outline-offset: calc(2 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 2187 | box-shadow: inset 0 0 0 calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); |
| 2188 | } |
| 2189 | |
| 2190 | .components-menu-group + .components-menu-group { |
| 2191 | padding-top: 8px; |
| 2192 | border-top: 1px solid #1e1e1e; |
| 2193 | } |
| 2194 | .components-menu-group + .components-menu-group.has-hidden-separator { |
| 2195 | border-top: none; |
| 2196 | margin-top: 0; |
| 2197 | padding-top: 0; |
| 2198 | } |
| 2199 | |
| 2200 | .components-menu-group:has(> div:empty) { |
| 2201 | display: none; |
| 2202 | } |
| 2203 | |
| 2204 | .components-menu-group__label { |
| 2205 | padding: 0 8px; |
| 2206 | margin-top: 4px; |
| 2207 | margin-bottom: 12px; |
| 2208 | color: #757575; |
| 2209 | text-transform: uppercase; |
| 2210 | font-size: 11px; |
| 2211 | font-weight: 499; |
| 2212 | white-space: nowrap; |
| 2213 | } |
| 2214 | |
| 2215 | .components-menu-item__button, |
| 2216 | .components-menu-item__button.components-button { |
| 2217 | width: 100%; |
| 2218 | font-weight: 400; |
| 2219 | } |
| 2220 | .components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child, .components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child, |
| 2221 | .components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child, |
| 2222 | .components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child { |
| 2223 | padding-right: 48px; |
| 2224 | box-sizing: initial; |
| 2225 | } |
| 2226 | .components-menu-item__button .components-menu-items__item-icon, |
| 2227 | .components-menu-item__button.components-button .components-menu-items__item-icon { |
| 2228 | display: inline-block; |
| 2229 | flex: 0 0 auto; |
| 2230 | } |
| 2231 | .components-menu-item__button .components-menu-items__item-icon.has-icon-right, |
| 2232 | .components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right { |
| 2233 | margin-right: -2px; |
| 2234 | margin-left: 24px; |
| 2235 | } |
| 2236 | .components-menu-item__button .components-menu-item__shortcut + .components-menu-items__item-icon.has-icon-right, |
| 2237 | .components-menu-item__button.components-button .components-menu-item__shortcut + .components-menu-items__item-icon.has-icon-right { |
| 2238 | margin-left: 8px; |
| 2239 | } |
| 2240 | .components-menu-item__button .block-editor-block-icon, |
| 2241 | .components-menu-item__button.components-button .block-editor-block-icon { |
| 2242 | margin-left: -2px; |
| 2243 | margin-right: 8px; |
| 2244 | } |
| 2245 | .components-menu-item__button.is-primary, |
| 2246 | .components-menu-item__button.components-button.is-primary { |
| 2247 | justify-content: center; |
| 2248 | } |
| 2249 | .components-menu-item__button.is-primary .components-menu-item__item, |
| 2250 | .components-menu-item__button.components-button.is-primary .components-menu-item__item { |
| 2251 | margin-right: 0; |
| 2252 | } |
| 2253 | .components-menu-item__button:disabled.is-tertiary, .components-menu-item__button[aria-disabled=true].is-tertiary, |
| 2254 | .components-menu-item__button.components-button:disabled.is-tertiary, |
| 2255 | .components-menu-item__button.components-button[aria-disabled=true].is-tertiary { |
| 2256 | background: none; |
| 2257 | color: var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6)); |
| 2258 | opacity: 0.3; |
| 2259 | } |
| 2260 | |
| 2261 | .components-menu-item__info-wrapper { |
| 2262 | display: flex; |
| 2263 | flex-direction: column; |
| 2264 | margin-right: auto; |
| 2265 | } |
| 2266 | |
| 2267 | .components-menu-item__info { |
| 2268 | margin-top: 4px; |
| 2269 | font-size: 12px; |
| 2270 | color: #757575; |
| 2271 | white-space: normal; |
| 2272 | } |
| 2273 | |
| 2274 | .components-menu-item__item { |
| 2275 | white-space: nowrap; |
| 2276 | min-width: 160px; |
| 2277 | margin-right: auto; |
| 2278 | display: inline-flex; |
| 2279 | align-items: center; |
| 2280 | } |
| 2281 | |
| 2282 | .components-menu-item__shortcut { |
| 2283 | align-self: center; |
| 2284 | margin-right: 0; |
| 2285 | margin-left: auto; |
| 2286 | padding-left: 24px; |
| 2287 | color: currentColor; |
| 2288 | display: none; |
| 2289 | } |
| 2290 | @media (min-width: 480px) { |
| 2291 | .components-menu-item__shortcut { |
| 2292 | display: inline; |
| 2293 | } |
| 2294 | } |
| 2295 | |
| 2296 | .components-menu-items-choice, |
| 2297 | .components-menu-items-choice.components-button { |
| 2298 | min-height: 40px; |
| 2299 | height: auto; |
| 2300 | } |
| 2301 | .components-menu-items-choice svg, |
| 2302 | .components-menu-items-choice.components-button svg { |
| 2303 | margin-right: 12px; |
| 2304 | } |
| 2305 | .components-menu-items-choice.has-icon, |
| 2306 | .components-menu-items-choice.components-button.has-icon { |
| 2307 | padding-left: 12px; |
| 2308 | } |
| 2309 | |
| 2310 | .components-modal__screen-overlay { |
| 2311 | position: fixed; |
| 2312 | top: 0; |
| 2313 | right: 0; |
| 2314 | bottom: 0; |
| 2315 | left: 0; |
| 2316 | background-color: rgba(0, 0, 0, 0.35); |
| 2317 | z-index: 100000; |
| 2318 | display: flex; |
| 2319 | } |
| 2320 | @keyframes __wp-base-styles-fade-in { |
| 2321 | from { |
| 2322 | opacity: 0; |
| 2323 | } |
| 2324 | to { |
| 2325 | opacity: 1; |
| 2326 | } |
| 2327 | } |
| 2328 | @media not (prefers-reduced-motion) { |
| 2329 | .components-modal__screen-overlay { |
| 2330 | animation: __wp-base-styles-fade-in var(--wpds-motion-duration-sm, 100ms) var(--wpds-motion-easing-subtle, cubic-bezier(0.15, 0, 0.15, 1)) 0s; |
| 2331 | animation-fill-mode: forwards; |
| 2332 | } |
| 2333 | } |
| 2334 | @keyframes __wp-base-styles-fade-out { |
| 2335 | from { |
| 2336 | opacity: 1; |
| 2337 | } |
| 2338 | to { |
| 2339 | opacity: 0; |
| 2340 | } |
| 2341 | } |
| 2342 | @media not (prefers-reduced-motion) { |
| 2343 | .components-modal__screen-overlay.is-animating-out { |
| 2344 | animation: __wp-base-styles-fade-out var(--wpds-motion-duration-sm, 100ms) var(--wpds-motion-easing-subtle, cubic-bezier(0.15, 0, 0.15, 1)) var(--wpds-motion-duration-xs, 50ms); |
| 2345 | animation-fill-mode: forwards; |
| 2346 | } |
| 2347 | } |
| 2348 | |
| 2349 | .components-modal__frame { |
| 2350 | box-sizing: border-box; |
| 2351 | } |
| 2352 | .components-modal__frame *, |
| 2353 | .components-modal__frame *::before, |
| 2354 | .components-modal__frame *::after { |
| 2355 | box-sizing: inherit; |
| 2356 | } |
| 2357 | .components-modal__frame { |
| 2358 | align-self: flex-end; |
| 2359 | margin: 0; |
| 2360 | width: 100%; |
| 2361 | max-height: calc(100% - 40px); |
| 2362 | background: #fff; |
| 2363 | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02); |
| 2364 | border-radius: 8px 8px 0 0; |
| 2365 | overflow: hidden; |
| 2366 | display: flex; |
| 2367 | color: #1e1e1e; |
| 2368 | animation-name: components-modal__appear-animation; |
| 2369 | animation-fill-mode: forwards; |
| 2370 | animation-timing-function: var(--wpds-motion-easing-expressive, cubic-bezier(0.25, 0, 0, 1)); |
| 2371 | } |
| 2372 | .components-modal__frame h1, |
| 2373 | .components-modal__frame h2, |
| 2374 | .components-modal__frame h3 { |
| 2375 | color: #1e1e1e; |
| 2376 | } |
| 2377 | @media not (prefers-reduced-motion) { |
| 2378 | .components-modal__frame { |
| 2379 | animation-duration: var(--wpds-motion-duration-md, 200ms); |
| 2380 | } |
| 2381 | } |
| 2382 | .components-modal__screen-overlay.is-animating-out .components-modal__frame { |
| 2383 | animation-name: components-modal__disappear-animation; |
| 2384 | animation-timing-function: var(--wpds-motion-easing-expressive, cubic-bezier(0.25, 0, 0, 1)); |
| 2385 | } |
| 2386 | @media (min-width: 600px) { |
| 2387 | .components-modal__frame { |
| 2388 | align-self: auto; |
| 2389 | border-radius: 8px; |
| 2390 | margin: auto; |
| 2391 | width: auto; |
| 2392 | min-width: var(--wpds-dimension-surface-width-sm, 320px); |
| 2393 | max-width: calc(100% - 32px); |
| 2394 | max-height: calc(100% - 128px); |
| 2395 | } |
| 2396 | .components-modal__frame.has-size-small, .components-modal__frame.has-size-medium, .components-modal__frame.has-size-large { |
| 2397 | width: 100%; |
| 2398 | } |
| 2399 | .components-modal__frame.has-size-small { |
| 2400 | max-width: var(--wpds-dimension-surface-width-md, 400px); |
| 2401 | } |
| 2402 | .components-modal__frame.has-size-medium { |
| 2403 | max-width: var(--wpds-dimension-surface-width-lg, 560px); |
| 2404 | } |
| 2405 | .components-modal__frame.has-size-large { |
| 2406 | max-width: var(--wpds-dimension-surface-width-2xl, 960px); |
| 2407 | } |
| 2408 | } |
| 2409 | @media (min-width: 960px) { |
| 2410 | .components-modal__frame { |
| 2411 | max-height: 70%; |
| 2412 | } |
| 2413 | } |
| 2414 | .components-modal__frame.is-full-screen { |
| 2415 | margin: 0; |
| 2416 | width: 100%; |
| 2417 | height: 100%; |
| 2418 | max-height: none; |
| 2419 | border-radius: 0; |
| 2420 | } |
| 2421 | .components-modal__frame.is-full-screen :where(.components-modal__content) { |
| 2422 | display: flex; |
| 2423 | margin-bottom: 24px; |
| 2424 | padding-bottom: 0; |
| 2425 | } |
| 2426 | .components-modal__frame.is-full-screen :where(.components-modal__content) > :last-child { |
| 2427 | flex: 1; |
| 2428 | } |
| 2429 | @media (min-width: 600px) { |
| 2430 | .components-modal__frame.is-full-screen { |
| 2431 | margin: auto; |
| 2432 | border-radius: 8px; |
| 2433 | width: calc(100% - 32px); |
| 2434 | height: calc(100% - 32px); |
| 2435 | } |
| 2436 | } |
| 2437 | @media (min-width: 782px) { |
| 2438 | .components-modal__frame.is-full-screen { |
| 2439 | width: calc(100% - 80px); |
| 2440 | height: calc(100% - 80px); |
| 2441 | max-width: none; |
| 2442 | } |
| 2443 | } |
| 2444 | |
| 2445 | @keyframes components-modal__appear-animation { |
| 2446 | from { |
| 2447 | opacity: 0; |
| 2448 | transform: translateY(100%); |
| 2449 | } |
| 2450 | to { |
| 2451 | opacity: 1; |
| 2452 | transform: translateY(0); |
| 2453 | } |
| 2454 | } |
| 2455 | @keyframes components-modal__disappear-animation { |
| 2456 | from { |
| 2457 | opacity: 1; |
| 2458 | transform: translateY(0); |
| 2459 | } |
| 2460 | to { |
| 2461 | opacity: 0; |
| 2462 | transform: translateY(100%); |
| 2463 | } |
| 2464 | } |
| 2465 | @media (min-width: 600px) { |
| 2466 | @keyframes components-modal__appear-animation { |
| 2467 | from { |
| 2468 | opacity: 0; |
| 2469 | transform: scale(0.9); |
| 2470 | } |
| 2471 | to { |
| 2472 | opacity: 1; |
| 2473 | transform: scale(1); |
| 2474 | } |
| 2475 | } |
| 2476 | @keyframes components-modal__disappear-animation { |
| 2477 | from { |
| 2478 | opacity: 1; |
| 2479 | transform: scale(1); |
| 2480 | } |
| 2481 | to { |
| 2482 | opacity: 0; |
| 2483 | transform: scale(0.9); |
| 2484 | } |
| 2485 | } |
| 2486 | } |
| 2487 | .components-modal__header { |
| 2488 | box-sizing: border-box; |
| 2489 | border-bottom: 1px solid transparent; |
| 2490 | padding: 24px; |
| 2491 | display: flex; |
| 2492 | flex-direction: row; |
| 2493 | justify-content: space-between; |
| 2494 | align-items: center; |
| 2495 | height: 72px; |
| 2496 | width: 100%; |
| 2497 | z-index: 10; |
| 2498 | position: absolute; |
| 2499 | top: 0; |
| 2500 | left: 0; |
| 2501 | } |
| 2502 | .components-modal__header .components-modal__header-heading { |
| 2503 | font-size: 20px; |
| 2504 | font-weight: 600; |
| 2505 | } |
| 2506 | .components-modal__header h1 { |
| 2507 | line-height: 1; |
| 2508 | margin: 0; |
| 2509 | } |
| 2510 | .components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header { |
| 2511 | border-bottom-color: #ddd; |
| 2512 | } |
| 2513 | .components-modal__header + p { |
| 2514 | margin-top: 0; |
| 2515 | } |
| 2516 | |
| 2517 | .components-modal__header-heading-container { |
| 2518 | align-items: center; |
| 2519 | flex-grow: 1; |
| 2520 | display: flex; |
| 2521 | flex-direction: row; |
| 2522 | justify-content: flex-start; |
| 2523 | } |
| 2524 | |
| 2525 | .components-modal__header-icon-container { |
| 2526 | display: inline-block; |
| 2527 | } |
| 2528 | .components-modal__header-icon-container svg { |
| 2529 | max-width: 36px; |
| 2530 | max-height: 36px; |
| 2531 | padding: 8px; |
| 2532 | } |
| 2533 | |
| 2534 | .components-modal__content { |
| 2535 | flex: 1; |
| 2536 | margin-top: 72px; |
| 2537 | padding: 4px 24px 24px; |
| 2538 | overflow: auto; |
| 2539 | } |
| 2540 | .components-modal__content.hide-header { |
| 2541 | margin-top: 0; |
| 2542 | padding-top: 24px; |
| 2543 | } |
| 2544 | .components-modal__content.is-scrollable:focus-visible { |
| 2545 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 2546 | outline: 2px solid transparent; |
| 2547 | outline-offset: -2px; |
| 2548 | } |
| 2549 | |
| 2550 | .components-notice { |
| 2551 | display: flex; |
| 2552 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 2553 | font-size: 13px; |
| 2554 | background-color: #fff; |
| 2555 | border-left: 4px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 2556 | padding: 8px 12px; |
| 2557 | align-items: center; |
| 2558 | color: #1e1e1e; |
| 2559 | } |
| 2560 | .components-notice.is-dismissible { |
| 2561 | position: relative; |
| 2562 | } |
| 2563 | .components-notice.is-dismissible .components-notice__content { |
| 2564 | margin-right: 25px; |
| 2565 | } |
| 2566 | .components-notice.is-success { |
| 2567 | border-left-color: #4ab866; |
| 2568 | background-color: rgb(238.8392857143, 248.6607142857, 241.3392857143); |
| 2569 | } |
| 2570 | .components-notice.is-warning { |
| 2571 | border-left-color: #f0b849; |
| 2572 | background-color: rgb(253.5913705584, 248.3324873096, 237.9086294416); |
| 2573 | } |
| 2574 | .components-notice.is-error { |
| 2575 | border-left-color: #cc1818; |
| 2576 | background-color: rgb(244.1052631579, 162.3947368421, 162.3947368421); |
| 2577 | } |
| 2578 | |
| 2579 | .components-notice__content { |
| 2580 | flex-grow: 1; |
| 2581 | margin-top: 4px; |
| 2582 | margin-bottom: 4px; |
| 2583 | } |
| 2584 | |
| 2585 | .components-notice__actions { |
| 2586 | display: flex; |
| 2587 | flex-wrap: wrap; |
| 2588 | align-items: center; |
| 2589 | gap: 12px; |
| 2590 | margin-top: 12px; |
| 2591 | } |
| 2592 | |
| 2593 | .components-notice__dismiss { |
| 2594 | color: #757575; |
| 2595 | align-self: flex-start; |
| 2596 | flex-shrink: 0; |
| 2597 | } |
| 2598 | .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active, .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus { |
| 2599 | color: #1e1e1e; |
| 2600 | background-color: transparent; |
| 2601 | } |
| 2602 | .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover { |
| 2603 | box-shadow: none; |
| 2604 | } |
| 2605 | |
| 2606 | .components-notice-list { |
| 2607 | max-width: 100vw; |
| 2608 | box-sizing: border-box; |
| 2609 | } |
| 2610 | .components-notice-list .components-notice__content { |
| 2611 | margin-top: 12px; |
| 2612 | margin-bottom: 12px; |
| 2613 | line-height: 2; |
| 2614 | } |
| 2615 | |
| 2616 | .components-panel { |
| 2617 | background: #fff; |
| 2618 | border: 1px solid #e0e0e0; |
| 2619 | } |
| 2620 | .components-panel > .components-panel__header:first-child, |
| 2621 | .components-panel > .components-panel__body:first-child { |
| 2622 | margin-top: -1px; |
| 2623 | } |
| 2624 | .components-panel > .components-panel__header:last-child, |
| 2625 | .components-panel > .components-panel__body:last-child { |
| 2626 | border-bottom-width: 0; |
| 2627 | } |
| 2628 | |
| 2629 | .components-panel + .components-panel { |
| 2630 | margin-top: -1px; |
| 2631 | } |
| 2632 | |
| 2633 | .components-panel__body { |
| 2634 | border-top: 1px solid #e0e0e0; |
| 2635 | border-bottom: 1px solid #e0e0e0; |
| 2636 | } |
| 2637 | .components-panel__body h3 { |
| 2638 | margin: 0 0 0.5em; |
| 2639 | } |
| 2640 | .components-panel__body.is-opened { |
| 2641 | padding: 16px; |
| 2642 | } |
| 2643 | |
| 2644 | .components-panel__header { |
| 2645 | display: flex; |
| 2646 | flex-shrink: 0; |
| 2647 | justify-content: space-between; |
| 2648 | align-items: center; |
| 2649 | padding: 0 16px; |
| 2650 | border-bottom: 1px solid #ddd; |
| 2651 | box-sizing: content-box; |
| 2652 | height: 47px; |
| 2653 | } |
| 2654 | .components-panel__header h2 { |
| 2655 | margin: 0; |
| 2656 | font-size: inherit; |
| 2657 | color: inherit; |
| 2658 | } |
| 2659 | |
| 2660 | .components-panel__body + .components-panel__body, |
| 2661 | .components-panel__body + .components-panel__header, |
| 2662 | .components-panel__header + .components-panel__body, |
| 2663 | .components-panel__header + .components-panel__header { |
| 2664 | margin-top: -1px; |
| 2665 | } |
| 2666 | |
| 2667 | .components-panel__body > .components-panel__body-title { |
| 2668 | display: block; |
| 2669 | padding: 0; |
| 2670 | font-size: inherit; |
| 2671 | margin-top: 0; |
| 2672 | margin-bottom: 0; |
| 2673 | } |
| 2674 | @media not (prefers-reduced-motion) { |
| 2675 | .components-panel__body > .components-panel__body-title { |
| 2676 | transition: 0.1s background ease-in-out; |
| 2677 | } |
| 2678 | } |
| 2679 | |
| 2680 | .components-panel__body.is-opened > .components-panel__body-title { |
| 2681 | margin: -16px; |
| 2682 | margin-bottom: 5px; |
| 2683 | } |
| 2684 | |
| 2685 | .components-panel__body > .components-panel__body-title:hover { |
| 2686 | background: #f0f0f0; |
| 2687 | border: none; |
| 2688 | } |
| 2689 | |
| 2690 | .components-panel__body-toggle.components-button { |
| 2691 | position: relative; |
| 2692 | padding: 16px 48px 16px 16px; |
| 2693 | outline: none; |
| 2694 | width: 100%; |
| 2695 | font-weight: 499; |
| 2696 | text-align: left; |
| 2697 | color: #1e1e1e; |
| 2698 | border: none; |
| 2699 | box-shadow: none; |
| 2700 | } |
| 2701 | @media not (prefers-reduced-motion) { |
| 2702 | .components-panel__body-toggle.components-button { |
| 2703 | transition: 0.1s background ease-in-out; |
| 2704 | } |
| 2705 | } |
| 2706 | .components-panel__body-toggle.components-button { |
| 2707 | height: auto; |
| 2708 | } |
| 2709 | .components-panel__body-toggle.components-button:focus { |
| 2710 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 2711 | border-radius: 0; |
| 2712 | } |
| 2713 | .components-panel__body-toggle.components-button .components-panel__arrow { |
| 2714 | position: absolute; |
| 2715 | right: 16px; |
| 2716 | top: 50%; |
| 2717 | transform: translateY(-50%); |
| 2718 | color: #1e1e1e; |
| 2719 | fill: currentColor; |
| 2720 | } |
| 2721 | @media not (prefers-reduced-motion) { |
| 2722 | .components-panel__body-toggle.components-button .components-panel__arrow { |
| 2723 | transition: 0.1s color ease-in-out; |
| 2724 | } |
| 2725 | } |
| 2726 | .components-panel__body-toggle.components-button { |
| 2727 | /* rtl:begin:ignore */ |
| 2728 | } |
| 2729 | body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right { |
| 2730 | transform: scaleX(-1); |
| 2731 | margin-top: -10px; |
| 2732 | } |
| 2733 | .components-panel__body-toggle.components-button { |
| 2734 | /* rtl:end:ignore */ |
| 2735 | } |
| 2736 | |
| 2737 | .components-panel__icon { |
| 2738 | color: #757575; |
| 2739 | margin: -2px 0 -2px 6px; |
| 2740 | } |
| 2741 | |
| 2742 | .components-panel__body-toggle-icon { |
| 2743 | margin-right: -5px; |
| 2744 | } |
| 2745 | |
| 2746 | .components-panel__color-title { |
| 2747 | float: left; |
| 2748 | height: 19px; |
| 2749 | } |
| 2750 | |
| 2751 | .components-panel__row { |
| 2752 | display: flex; |
| 2753 | justify-content: space-between; |
| 2754 | align-items: center; |
| 2755 | margin-top: 8px; |
| 2756 | min-height: 36px; |
| 2757 | } |
| 2758 | .components-panel__row select { |
| 2759 | min-width: 0; |
| 2760 | } |
| 2761 | .components-panel__row label { |
| 2762 | margin-right: 12px; |
| 2763 | flex-shrink: 0; |
| 2764 | max-width: 75%; |
| 2765 | } |
| 2766 | .components-panel__row:empty, .components-panel__row:first-of-type { |
| 2767 | margin-top: 0; |
| 2768 | } |
| 2769 | |
| 2770 | .components-panel .circle-picker { |
| 2771 | padding-bottom: 20px; |
| 2772 | } |
| 2773 | |
| 2774 | .components-placeholder.components-placeholder { |
| 2775 | font-size: 13px; |
| 2776 | box-sizing: border-box; |
| 2777 | position: relative; |
| 2778 | padding: 24px; |
| 2779 | width: 100%; |
| 2780 | text-align: left; |
| 2781 | margin: 0; |
| 2782 | color: #1e1e1e; |
| 2783 | display: flex; |
| 2784 | flex-direction: column; |
| 2785 | align-items: flex-start; |
| 2786 | gap: 16px; |
| 2787 | -webkit-font-smoothing: subpixel-antialiased; |
| 2788 | border-radius: 2px; |
| 2789 | background-color: #fff; |
| 2790 | box-shadow: inset 0 0 0 1px #1e1e1e; |
| 2791 | outline: 1px solid transparent; |
| 2792 | } |
| 2793 | |
| 2794 | .components-placeholder__error, |
| 2795 | .components-placeholder__instructions, |
| 2796 | .components-placeholder__label, |
| 2797 | .components-placeholder__fieldset { |
| 2798 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 2799 | font-size: 13px; |
| 2800 | letter-spacing: initial; |
| 2801 | line-height: initial; |
| 2802 | text-transform: none; |
| 2803 | font-weight: normal; |
| 2804 | } |
| 2805 | |
| 2806 | .components-placeholder__label { |
| 2807 | font-weight: 600; |
| 2808 | align-items: center; |
| 2809 | display: flex; |
| 2810 | } |
| 2811 | .components-placeholder__label > svg, |
| 2812 | .components-placeholder__label .dashicon, |
| 2813 | .components-placeholder__label .block-editor-block-icon { |
| 2814 | margin-right: 4px; |
| 2815 | fill: currentColor; |
| 2816 | } |
| 2817 | @media (forced-colors: active) { |
| 2818 | .components-placeholder__label > svg, |
| 2819 | .components-placeholder__label .dashicon, |
| 2820 | .components-placeholder__label .block-editor-block-icon { |
| 2821 | fill: CanvasText; |
| 2822 | } |
| 2823 | } |
| 2824 | .components-placeholder__label:empty { |
| 2825 | display: none; |
| 2826 | } |
| 2827 | |
| 2828 | .components-placeholder__fieldset, |
| 2829 | .components-placeholder__fieldset form { |
| 2830 | display: flex; |
| 2831 | flex-direction: row; |
| 2832 | width: 100%; |
| 2833 | flex-wrap: wrap; |
| 2834 | gap: 16px; |
| 2835 | justify-content: flex-start; |
| 2836 | } |
| 2837 | .components-placeholder__fieldset p, |
| 2838 | .components-placeholder__fieldset form p { |
| 2839 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 2840 | font-size: 13px; |
| 2841 | } |
| 2842 | |
| 2843 | .components-placeholder__fieldset.is-column-layout, |
| 2844 | .components-placeholder__fieldset.is-column-layout form { |
| 2845 | flex-direction: column; |
| 2846 | } |
| 2847 | |
| 2848 | .components-placeholder__input[type=url] { |
| 2849 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 2850 | padding: 6px 8px; |
| 2851 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 2852 | font-size: 16px; |
| 2853 | /* Override core line-height. To be reviewed. */ |
| 2854 | line-height: normal; |
| 2855 | box-shadow: 0 0 0 transparent; |
| 2856 | border-radius: 2px; |
| 2857 | border: 1px solid #949494; |
| 2858 | } |
| 2859 | @media not (prefers-reduced-motion) { |
| 2860 | .components-placeholder__input[type=url] { |
| 2861 | transition: box-shadow 0.1s linear; |
| 2862 | } |
| 2863 | } |
| 2864 | @media (min-width: 600px) { |
| 2865 | .components-placeholder__input[type=url] { |
| 2866 | font-size: 13px; |
| 2867 | /* Override core line-height. To be reviewed. */ |
| 2868 | line-height: normal; |
| 2869 | } |
| 2870 | } |
| 2871 | .components-placeholder__input[type=url]:focus { |
| 2872 | border-color: var(--wp-admin-theme-color); |
| 2873 | box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); |
| 2874 | outline: 2px solid transparent; |
| 2875 | } |
| 2876 | .components-placeholder__input[type=url]::placeholder { |
| 2877 | color: rgba(30, 30, 30, 0.62); |
| 2878 | } |
| 2879 | .components-placeholder__input[type=url] { |
| 2880 | flex: 1 1 auto; |
| 2881 | } |
| 2882 | |
| 2883 | .components-placeholder__error { |
| 2884 | width: 100%; |
| 2885 | gap: 8px; |
| 2886 | } |
| 2887 | |
| 2888 | .components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link { |
| 2889 | margin-left: 10px; |
| 2890 | margin-right: 10px; |
| 2891 | } |
| 2892 | .components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link:last-child { |
| 2893 | margin-right: 0; |
| 2894 | } |
| 2895 | |
| 2896 | .components-placeholder.is-medium .components-placeholder__instructions, .components-placeholder.is-small .components-placeholder__instructions { |
| 2897 | display: none; |
| 2898 | } |
| 2899 | .components-placeholder.is-medium .components-placeholder__fieldset, |
| 2900 | .components-placeholder.is-medium .components-placeholder__fieldset form, .components-placeholder.is-small .components-placeholder__fieldset, |
| 2901 | .components-placeholder.is-small .components-placeholder__fieldset form { |
| 2902 | flex-direction: column; |
| 2903 | } |
| 2904 | .components-placeholder.is-medium .components-placeholder__fieldset > *, |
| 2905 | .components-placeholder.is-medium .components-button, .components-placeholder.is-small .components-placeholder__fieldset > *, |
| 2906 | .components-placeholder.is-small .components-button { |
| 2907 | width: 100%; |
| 2908 | justify-content: center; |
| 2909 | } |
| 2910 | .components-placeholder.is-small { |
| 2911 | padding: 16px; |
| 2912 | } |
| 2913 | |
| 2914 | /** |
| 2915 | * Dashed style placeholders |
| 2916 | */ |
| 2917 | .components-placeholder.has-illustration { |
| 2918 | color: inherit; |
| 2919 | display: flex; |
| 2920 | box-shadow: none; |
| 2921 | border-radius: 0; |
| 2922 | backdrop-filter: blur(100px); |
| 2923 | background-color: transparent; |
| 2924 | backface-visibility: hidden; |
| 2925 | } |
| 2926 | .is-dark-theme .components-placeholder.has-illustration { |
| 2927 | background-color: rgba(0, 0, 0, 0.1); |
| 2928 | } |
| 2929 | .components-placeholder.has-illustration .components-placeholder__fieldset { |
| 2930 | margin-left: 0; |
| 2931 | margin-right: 0; |
| 2932 | } |
| 2933 | .components-placeholder.has-illustration .components-placeholder__label, |
| 2934 | .components-placeholder.has-illustration .components-placeholder__instructions, |
| 2935 | .components-placeholder.has-illustration .components-button { |
| 2936 | opacity: 0; |
| 2937 | pointer-events: none; |
| 2938 | } |
| 2939 | @media not (prefers-reduced-motion) { |
| 2940 | .components-placeholder.has-illustration .components-placeholder__label, |
| 2941 | .components-placeholder.has-illustration .components-placeholder__instructions, |
| 2942 | .components-placeholder.has-illustration .components-button { |
| 2943 | transition: opacity 0.1s linear; |
| 2944 | } |
| 2945 | } |
| 2946 | .is-selected > .components-placeholder.has-illustration .components-placeholder__label, |
| 2947 | .is-selected > .components-placeholder.has-illustration .components-placeholder__instructions, |
| 2948 | .is-selected > .components-placeholder.has-illustration .components-button { |
| 2949 | opacity: 1; |
| 2950 | pointer-events: auto; |
| 2951 | } |
| 2952 | .components-placeholder.has-illustration::before { |
| 2953 | content: ""; |
| 2954 | position: absolute; |
| 2955 | top: 0; |
| 2956 | right: 0; |
| 2957 | bottom: 0; |
| 2958 | left: 0; |
| 2959 | pointer-events: none; |
| 2960 | background: currentColor; |
| 2961 | opacity: 0.1; |
| 2962 | } |
| 2963 | .components-placeholder.has-illustration { |
| 2964 | overflow: hidden; |
| 2965 | } |
| 2966 | .is-selected .components-placeholder.has-illustration { |
| 2967 | overflow: auto; |
| 2968 | } |
| 2969 | |
| 2970 | .components-placeholder__preview { |
| 2971 | display: flex; |
| 2972 | justify-content: center; |
| 2973 | } |
| 2974 | |
| 2975 | .components-placeholder__illustration { |
| 2976 | box-sizing: content-box; |
| 2977 | position: absolute; |
| 2978 | top: 50%; |
| 2979 | left: 50%; |
| 2980 | transform: translate(-50%, -50%); |
| 2981 | width: 100%; |
| 2982 | height: 100%; |
| 2983 | stroke: currentColor; |
| 2984 | opacity: 0.25; |
| 2985 | } |
| 2986 | |
| 2987 | .components-popover { |
| 2988 | box-sizing: border-box; |
| 2989 | } |
| 2990 | .components-popover *, |
| 2991 | .components-popover *::before, |
| 2992 | .components-popover *::after { |
| 2993 | box-sizing: inherit; |
| 2994 | } |
| 2995 | .components-popover { |
| 2996 | z-index: 1000000; |
| 2997 | will-change: transform; |
| 2998 | } |
| 2999 | .components-popover.is-expanded { |
| 3000 | position: fixed; |
| 3001 | top: 0; |
| 3002 | left: 0; |
| 3003 | right: 0; |
| 3004 | bottom: 0; |
| 3005 | z-index: 1000000 !important; |
| 3006 | } |
| 3007 | |
| 3008 | .components-popover__content { |
| 3009 | background: #fff; |
| 3010 | box-shadow: 0 0 0 1px #ccc, 0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02); |
| 3011 | border-radius: 4px; |
| 3012 | box-sizing: border-box; |
| 3013 | width: min-content; |
| 3014 | } |
| 3015 | .is-alternate .components-popover__content { |
| 3016 | box-shadow: 0 0 0 1px #1e1e1e; |
| 3017 | border-radius: 2px; |
| 3018 | } |
| 3019 | .is-unstyled .components-popover__content { |
| 3020 | background: none; |
| 3021 | border-radius: 0; |
| 3022 | box-shadow: none; |
| 3023 | } |
| 3024 | .components-popover.is-expanded .components-popover__content { |
| 3025 | position: static; |
| 3026 | height: calc(100% - 48px); |
| 3027 | overflow-y: visible; |
| 3028 | width: auto; |
| 3029 | box-shadow: 0 -1px 0 0 #ccc; |
| 3030 | } |
| 3031 | .components-popover.is-expanded.is-alternate .components-popover__content { |
| 3032 | box-shadow: 0 -1px 0 #1e1e1e; |
| 3033 | } |
| 3034 | |
| 3035 | .components-popover__header { |
| 3036 | align-items: center; |
| 3037 | background: #fff; |
| 3038 | display: flex; |
| 3039 | height: 48px; |
| 3040 | justify-content: space-between; |
| 3041 | padding: 0 8px 0 16px; |
| 3042 | } |
| 3043 | |
| 3044 | .components-popover__header-title { |
| 3045 | overflow: hidden; |
| 3046 | text-overflow: ellipsis; |
| 3047 | white-space: nowrap; |
| 3048 | width: 100%; |
| 3049 | } |
| 3050 | |
| 3051 | .components-popover__arrow { |
| 3052 | position: absolute; |
| 3053 | width: 14px; |
| 3054 | height: 14px; |
| 3055 | pointer-events: none; |
| 3056 | display: flex; |
| 3057 | } |
| 3058 | .components-popover__arrow::before { |
| 3059 | content: ""; |
| 3060 | position: absolute; |
| 3061 | top: -1px; |
| 3062 | left: 1px; |
| 3063 | height: 2px; |
| 3064 | right: 1px; |
| 3065 | background-color: #fff; |
| 3066 | } |
| 3067 | .components-popover__arrow.is-top { |
| 3068 | bottom: -14px !important; |
| 3069 | transform: rotate(0); |
| 3070 | } |
| 3071 | .components-popover__arrow.is-right { |
| 3072 | /*rtl:begin:ignore*/ |
| 3073 | left: -14px !important; |
| 3074 | transform: rotate(90deg); |
| 3075 | } |
| 3076 | .components-popover__arrow.is-bottom { |
| 3077 | top: -14px !important; |
| 3078 | transform: rotate(180deg); |
| 3079 | } |
| 3080 | .components-popover__arrow.is-left { |
| 3081 | /*rtl:begin:ignore*/ |
| 3082 | right: -14px !important; |
| 3083 | transform: rotate(-90deg); |
| 3084 | /*rtl:end:ignore*/ |
| 3085 | } |
| 3086 | |
| 3087 | .components-popover__triangle { |
| 3088 | display: block; |
| 3089 | flex: 1; |
| 3090 | } |
| 3091 | |
| 3092 | .components-popover__triangle-bg { |
| 3093 | fill: #fff; |
| 3094 | } |
| 3095 | |
| 3096 | .components-popover__triangle-border { |
| 3097 | fill: transparent; |
| 3098 | stroke-width: 1px; |
| 3099 | stroke: #ccc; |
| 3100 | } |
| 3101 | .is-alternate .components-popover__triangle-border { |
| 3102 | stroke: #1e1e1e; |
| 3103 | } |
| 3104 | |
| 3105 | .components-radio-control { |
| 3106 | border: 0; |
| 3107 | margin: 0; |
| 3108 | padding: 0; |
| 3109 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 3110 | font-size: 13px; |
| 3111 | } |
| 3112 | |
| 3113 | .components-radio-control__group-wrapper.has-help { |
| 3114 | margin-block-end: 12px; |
| 3115 | } |
| 3116 | |
| 3117 | .components-radio-control__option { |
| 3118 | display: grid; |
| 3119 | grid-template-columns: auto 1fr; |
| 3120 | grid-template-rows: auto minmax(0, max-content); |
| 3121 | column-gap: 8px; |
| 3122 | align-items: center; |
| 3123 | } |
| 3124 | |
| 3125 | .components-radio-control__input[type=radio] { |
| 3126 | grid-column: 1; |
| 3127 | grid-row: 1; |
| 3128 | border: 1px solid #1e1e1e; |
| 3129 | margin-right: 12px; |
| 3130 | transition: none; |
| 3131 | border-radius: 50%; |
| 3132 | width: 24px; |
| 3133 | height: 24px; |
| 3134 | min-width: 24px; |
| 3135 | max-width: 24px; |
| 3136 | position: relative; |
| 3137 | } |
| 3138 | @media not (prefers-reduced-motion) { |
| 3139 | .components-radio-control__input[type=radio] { |
| 3140 | transition: box-shadow 0.1s linear; |
| 3141 | } |
| 3142 | } |
| 3143 | @media (min-width: 600px) { |
| 3144 | .components-radio-control__input[type=radio] { |
| 3145 | height: 16px; |
| 3146 | width: 16px; |
| 3147 | min-width: 16px; |
| 3148 | max-width: 16px; |
| 3149 | } |
| 3150 | } |
| 3151 | .components-radio-control__input[type=radio]:checked::before { |
| 3152 | box-sizing: inherit; |
| 3153 | width: 12px; |
| 3154 | height: 12px; |
| 3155 | position: absolute; |
| 3156 | top: 50%; |
| 3157 | left: 50%; |
| 3158 | transform: translate(-50%, -50%); |
| 3159 | margin: 0; |
| 3160 | background-color: #fff; |
| 3161 | border: 4px solid #fff; |
| 3162 | } |
| 3163 | @media (min-width: 600px) { |
| 3164 | .components-radio-control__input[type=radio]:checked::before { |
| 3165 | width: 8px; |
| 3166 | height: 8px; |
| 3167 | } |
| 3168 | } |
| 3169 | .components-radio-control__input[type=radio]:focus { |
| 3170 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 3171 | outline: 2px solid transparent; |
| 3172 | } |
| 3173 | .components-radio-control__input[type=radio]:checked { |
| 3174 | background: var(--wp-admin-theme-color); |
| 3175 | border: none; |
| 3176 | } |
| 3177 | .components-radio-control__input[type=radio] { |
| 3178 | display: inline-flex; |
| 3179 | margin: 0; |
| 3180 | padding: 0; |
| 3181 | appearance: none; |
| 3182 | } |
| 3183 | .components-radio-control__input[type=radio]:not(:disabled) { |
| 3184 | cursor: var(--wpds-cursor-control, pointer); |
| 3185 | } |
| 3186 | .components-radio-control__input[type=radio]:focus { |
| 3187 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color); |
| 3188 | outline: 2px solid transparent; |
| 3189 | outline-offset: 2px; |
| 3190 | } |
| 3191 | .components-radio-control__input[type=radio]:checked { |
| 3192 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3193 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3194 | } |
| 3195 | .components-radio-control__input[type=radio]:checked::before { |
| 3196 | content: ""; |
| 3197 | border-radius: 50%; |
| 3198 | } |
| 3199 | .components-radio-control__input[type=radio]:disabled { |
| 3200 | background: var(--wp-components-color-gray-100, #f0f0f0); |
| 3201 | border: 1px solid var(--wp-components-color-gray-300, #ddd); |
| 3202 | opacity: 1; |
| 3203 | } |
| 3204 | .components-radio-control__input[type=radio]:disabled:checked::before { |
| 3205 | border-color: var(--wp-components-color-gray-400, #ccc); |
| 3206 | opacity: 1; |
| 3207 | } |
| 3208 | |
| 3209 | .components-radio-control__label { |
| 3210 | grid-column: 2; |
| 3211 | grid-row: 1; |
| 3212 | } |
| 3213 | .components-radio-control:not(:disabled) .components-radio-control__label { |
| 3214 | cursor: var(--wpds-cursor-control, pointer); |
| 3215 | } |
| 3216 | .components-radio-control__label { |
| 3217 | line-height: 24px; |
| 3218 | } |
| 3219 | @media (min-width: 600px) { |
| 3220 | .components-radio-control__label { |
| 3221 | line-height: 16px; |
| 3222 | } |
| 3223 | } |
| 3224 | |
| 3225 | .components-radio-control__option-description { |
| 3226 | grid-column: 2; |
| 3227 | grid-row: 2; |
| 3228 | padding-block-start: 4px; |
| 3229 | } |
| 3230 | .components-radio-control__option-description.components-radio-control__option-description { |
| 3231 | margin-top: 0; |
| 3232 | } |
| 3233 | |
| 3234 | .components-resizable-box__handle { |
| 3235 | display: none; |
| 3236 | width: 23px; |
| 3237 | height: 23px; |
| 3238 | z-index: 2; |
| 3239 | } |
| 3240 | .components-resizable-box__container.has-show-handle .components-resizable-box__handle { |
| 3241 | display: block; |
| 3242 | } |
| 3243 | .components-resizable-box__handle > div { |
| 3244 | position: relative; |
| 3245 | width: 100%; |
| 3246 | height: 100%; |
| 3247 | z-index: 2; |
| 3248 | outline: none; |
| 3249 | } |
| 3250 | |
| 3251 | .components-resizable-box__container > img { |
| 3252 | width: inherit; |
| 3253 | } |
| 3254 | |
| 3255 | .components-resizable-box__handle::after { |
| 3256 | display: block; |
| 3257 | content: ""; |
| 3258 | width: 15px; |
| 3259 | height: 15px; |
| 3260 | border-radius: 50%; |
| 3261 | background: #fff; |
| 3262 | cursor: inherit; |
| 3263 | position: absolute; |
| 3264 | top: calc(50% - 8px); |
| 3265 | right: calc(50% - 8px); |
| 3266 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)), 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01); |
| 3267 | outline: 2px solid transparent; |
| 3268 | } |
| 3269 | |
| 3270 | .components-resizable-box__side-handle::before { |
| 3271 | display: block; |
| 3272 | border-radius: 9999px; |
| 3273 | content: ""; |
| 3274 | width: 3px; |
| 3275 | height: 3px; |
| 3276 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3277 | cursor: inherit; |
| 3278 | position: absolute; |
| 3279 | top: calc(50% - 1px); |
| 3280 | right: calc(50% - 1px); |
| 3281 | } |
| 3282 | @media not (prefers-reduced-motion) { |
| 3283 | .components-resizable-box__side-handle::before { |
| 3284 | transition: transform 0.1s ease-in; |
| 3285 | will-change: transform; |
| 3286 | } |
| 3287 | } |
| 3288 | .components-resizable-box__side-handle::before { |
| 3289 | opacity: 0; |
| 3290 | } |
| 3291 | |
| 3292 | .components-resizable-box__side-handle { |
| 3293 | z-index: 2; |
| 3294 | } |
| 3295 | |
| 3296 | .components-resizable-box__corner-handle { |
| 3297 | z-index: 2; |
| 3298 | } |
| 3299 | |
| 3300 | .components-resizable-box__side-handle.components-resizable-box__handle-top, |
| 3301 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom, |
| 3302 | .components-resizable-box__side-handle.components-resizable-box__handle-top::before, |
| 3303 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom::before { |
| 3304 | width: 100%; |
| 3305 | left: 0; |
| 3306 | border-left: 0; |
| 3307 | border-right: 0; |
| 3308 | } |
| 3309 | |
| 3310 | .components-resizable-box__side-handle.components-resizable-box__handle-left, |
| 3311 | .components-resizable-box__side-handle.components-resizable-box__handle-right, |
| 3312 | .components-resizable-box__side-handle.components-resizable-box__handle-left::before, |
| 3313 | .components-resizable-box__side-handle.components-resizable-box__handle-right::before { |
| 3314 | height: 100%; |
| 3315 | top: 0; |
| 3316 | border-top: 0; |
| 3317 | border-bottom: 0; |
| 3318 | } |
| 3319 | |
| 3320 | @media not (prefers-reduced-motion) { |
| 3321 | .components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, |
| 3322 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, |
| 3323 | .components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, |
| 3324 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { |
| 3325 | animation: components-resizable-box__top-bottom-animation 0.1s ease-out 0s; |
| 3326 | animation-fill-mode: forwards; |
| 3327 | } |
| 3328 | } |
| 3329 | |
| 3330 | @media not (prefers-reduced-motion) { |
| 3331 | .components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, |
| 3332 | .components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, |
| 3333 | .components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, |
| 3334 | .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { |
| 3335 | animation: components-resizable-box__left-right-animation 0.1s ease-out 0s; |
| 3336 | animation-fill-mode: forwards; |
| 3337 | } |
| 3338 | } |
| 3339 | |
| 3340 | /* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy. |
| 3341 | See https://bugs.webkit.org/show_bug.cgi?id=187903. */ |
| 3342 | @media not all and (min-resolution: 0.001dpcm) { |
| 3343 | @supports (-webkit-appearance: none) { |
| 3344 | .components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, |
| 3345 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, |
| 3346 | .components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, |
| 3347 | .components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { |
| 3348 | animation: none; |
| 3349 | } |
| 3350 | .components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, |
| 3351 | .components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, |
| 3352 | .components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, |
| 3353 | .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { |
| 3354 | animation: none; |
| 3355 | } |
| 3356 | } |
| 3357 | } |
| 3358 | @keyframes components-resizable-box__top-bottom-animation { |
| 3359 | from { |
| 3360 | transform: scaleX(0); |
| 3361 | opacity: 0; |
| 3362 | } |
| 3363 | to { |
| 3364 | transform: scaleX(1); |
| 3365 | opacity: 1; |
| 3366 | } |
| 3367 | } |
| 3368 | @keyframes components-resizable-box__left-right-animation { |
| 3369 | from { |
| 3370 | transform: scaleY(0); |
| 3371 | opacity: 0; |
| 3372 | } |
| 3373 | to { |
| 3374 | transform: scaleY(1); |
| 3375 | opacity: 1; |
| 3376 | } |
| 3377 | } |
| 3378 | /*!rtl:begin:ignore*/ |
| 3379 | .components-resizable-box__handle-right { |
| 3380 | right: calc(11.5px * -1); |
| 3381 | } |
| 3382 | |
| 3383 | .components-resizable-box__handle-left { |
| 3384 | left: calc(11.5px * -1); |
| 3385 | } |
| 3386 | |
| 3387 | .components-resizable-box__handle-top { |
| 3388 | top: calc(11.5px * -1); |
| 3389 | } |
| 3390 | |
| 3391 | .components-resizable-box__handle-bottom { |
| 3392 | bottom: calc(11.5px * -1); |
| 3393 | } |
| 3394 | |
| 3395 | /*!rtl:end:ignore*/ |
| 3396 | .components-responsive-wrapper { |
| 3397 | position: relative; |
| 3398 | max-width: 100%; |
| 3399 | display: flex; |
| 3400 | align-items: center; |
| 3401 | justify-content: center; |
| 3402 | } |
| 3403 | |
| 3404 | .components-responsive-wrapper__content { |
| 3405 | display: block; |
| 3406 | max-width: 100%; |
| 3407 | width: 100%; |
| 3408 | } |
| 3409 | |
| 3410 | .components-sandbox { |
| 3411 | overflow: hidden; |
| 3412 | } |
| 3413 | |
| 3414 | iframe.components-sandbox { |
| 3415 | width: 100%; |
| 3416 | } |
| 3417 | |
| 3418 | html.lockscroll, |
| 3419 | body.lockscroll { |
| 3420 | overflow: hidden; |
| 3421 | } |
| 3422 | |
| 3423 | .components-select-control__input { |
| 3424 | outline: 0; |
| 3425 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; |
| 3426 | } |
| 3427 | |
| 3428 | .components-snackbar { |
| 3429 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 3430 | font-size: 13px; |
| 3431 | background: rgba(0, 0, 0, 0.85); |
| 3432 | backdrop-filter: blur(16px) saturate(180%); |
| 3433 | border-radius: 4px; |
| 3434 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02); |
| 3435 | color: #fff; |
| 3436 | padding: 12px 20px; |
| 3437 | width: 100%; |
| 3438 | max-width: var(--wpds-dimension-surface-width-lg, 560px); |
| 3439 | box-sizing: border-box; |
| 3440 | cursor: var(--wpds-cursor-control, pointer); |
| 3441 | pointer-events: auto; |
| 3442 | } |
| 3443 | @media (min-width: 600px) { |
| 3444 | .components-snackbar { |
| 3445 | width: fit-content; |
| 3446 | } |
| 3447 | } |
| 3448 | .components-snackbar:focus { |
| 3449 | box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3450 | } |
| 3451 | .components-snackbar.components-snackbar-explicit-dismiss { |
| 3452 | cursor: default; |
| 3453 | } |
| 3454 | .components-snackbar .components-snackbar__content-with-icon { |
| 3455 | position: relative; |
| 3456 | padding-left: 24px; |
| 3457 | } |
| 3458 | .components-snackbar .components-snackbar__icon { |
| 3459 | position: absolute; |
| 3460 | left: -8px; |
| 3461 | top: calc((5.8px) / -2); |
| 3462 | } |
| 3463 | .components-snackbar .components-snackbar__dismiss-button { |
| 3464 | margin-left: 24px; |
| 3465 | cursor: var(--wpds-cursor-control, pointer); |
| 3466 | } |
| 3467 | |
| 3468 | .components-snackbar__action.components-button, |
| 3469 | .components-snackbar__action.components-external-link { |
| 3470 | margin-left: 32px; |
| 3471 | color: #fff; |
| 3472 | flex-shrink: 0; |
| 3473 | } |
| 3474 | .components-snackbar__action.components-button:focus, |
| 3475 | .components-snackbar__action.components-external-link:focus { |
| 3476 | box-shadow: none; |
| 3477 | outline: 1px dotted #fff; |
| 3478 | } |
| 3479 | .components-snackbar__action.components-button:hover, |
| 3480 | .components-snackbar__action.components-external-link:hover { |
| 3481 | text-decoration: none; |
| 3482 | color: currentColor; |
| 3483 | } |
| 3484 | |
| 3485 | .components-snackbar__content { |
| 3486 | display: flex; |
| 3487 | align-items: baseline; |
| 3488 | justify-content: space-between; |
| 3489 | line-height: 1.4; |
| 3490 | } |
| 3491 | |
| 3492 | .components-snackbar-list { |
| 3493 | position: absolute; |
| 3494 | z-index: 100000; |
| 3495 | width: 100%; |
| 3496 | box-sizing: border-box; |
| 3497 | pointer-events: none; |
| 3498 | } |
| 3499 | |
| 3500 | .components-snackbar-list__notice-container { |
| 3501 | position: relative; |
| 3502 | padding-top: 8px; |
| 3503 | } |
| 3504 | |
| 3505 | .components-tab-panel__tabs { |
| 3506 | display: flex; |
| 3507 | align-items: stretch; |
| 3508 | flex-direction: row; |
| 3509 | } |
| 3510 | .components-tab-panel__tabs[aria-orientation=vertical] { |
| 3511 | flex-direction: column; |
| 3512 | } |
| 3513 | |
| 3514 | .components-tab-panel__tabs-item { |
| 3515 | position: relative; |
| 3516 | border-radius: 0; |
| 3517 | height: 48px !important; |
| 3518 | background: transparent; |
| 3519 | border: none; |
| 3520 | box-shadow: none; |
| 3521 | cursor: var(--wpds-cursor-control, pointer); |
| 3522 | padding: 3px 16px; |
| 3523 | margin-left: 0; |
| 3524 | font-weight: 400; |
| 3525 | } |
| 3526 | .components-tab-panel__tabs-item:focus:not(:disabled) { |
| 3527 | position: relative; |
| 3528 | box-shadow: none; |
| 3529 | outline: none; |
| 3530 | } |
| 3531 | .components-tab-panel__tabs-item::after { |
| 3532 | content: ""; |
| 3533 | position: absolute; |
| 3534 | right: 0; |
| 3535 | bottom: 0; |
| 3536 | left: 0; |
| 3537 | pointer-events: none; |
| 3538 | background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3539 | height: calc(0 * var(--wp-admin-border-width-focus)); |
| 3540 | border-radius: 0; |
| 3541 | } |
| 3542 | @media not (prefers-reduced-motion) { |
| 3543 | .components-tab-panel__tabs-item::after { |
| 3544 | transition: height 0.1s linear; |
| 3545 | } |
| 3546 | } |
| 3547 | .components-tab-panel__tabs-item.is-active::after { |
| 3548 | height: calc(1 * var(--wp-admin-border-width-focus)); |
| 3549 | outline: 2px solid transparent; |
| 3550 | outline-offset: -1px; |
| 3551 | } |
| 3552 | .components-tab-panel__tabs-item::before { |
| 3553 | content: ""; |
| 3554 | position: absolute; |
| 3555 | top: 12px; |
| 3556 | right: 12px; |
| 3557 | bottom: 12px; |
| 3558 | left: 12px; |
| 3559 | pointer-events: none; |
| 3560 | box-shadow: 0 0 0 0 transparent; |
| 3561 | border-radius: 2px; |
| 3562 | } |
| 3563 | @media not (prefers-reduced-motion) { |
| 3564 | .components-tab-panel__tabs-item::before { |
| 3565 | transition: box-shadow 0.1s linear; |
| 3566 | } |
| 3567 | } |
| 3568 | .components-tab-panel__tabs-item:focus-visible::before { |
| 3569 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3570 | outline: 2px solid transparent; |
| 3571 | } |
| 3572 | |
| 3573 | .components-tab-panel__tab-content:focus { |
| 3574 | box-shadow: none; |
| 3575 | outline: none; |
| 3576 | } |
| 3577 | .components-tab-panel__tab-content:focus-visible { |
| 3578 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3579 | outline: 2px solid transparent; |
| 3580 | outline-offset: 0; |
| 3581 | } |
| 3582 | |
| 3583 | .components-text-control__input, |
| 3584 | .components-text-control__input[type=text], |
| 3585 | .components-text-control__input[type=tel], |
| 3586 | .components-text-control__input[type=time], |
| 3587 | .components-text-control__input[type=url], |
| 3588 | .components-text-control__input[type=week], |
| 3589 | .components-text-control__input[type=password], |
| 3590 | .components-text-control__input[type=color], |
| 3591 | .components-text-control__input[type=date], |
| 3592 | .components-text-control__input[type=datetime], |
| 3593 | .components-text-control__input[type=datetime-local], |
| 3594 | .components-text-control__input[type=email], |
| 3595 | .components-text-control__input[type=month], |
| 3596 | .components-text-control__input[type=number] { |
| 3597 | width: 100%; |
| 3598 | height: 32px; |
| 3599 | margin: 0; |
| 3600 | background: var(--wp-components-color-background, #fff); |
| 3601 | color: var(--wp-components-color-foreground, #1e1e1e); |
| 3602 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 3603 | padding: 6px 8px; |
| 3604 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 3605 | font-size: 16px; |
| 3606 | /* Override core line-height. To be reviewed. */ |
| 3607 | line-height: normal; |
| 3608 | box-shadow: 0 0 0 transparent; |
| 3609 | border-radius: 2px; |
| 3610 | border: 1px solid #949494; |
| 3611 | } |
| 3612 | @media not (prefers-reduced-motion) { |
| 3613 | .components-text-control__input, |
| 3614 | .components-text-control__input[type=text], |
| 3615 | .components-text-control__input[type=tel], |
| 3616 | .components-text-control__input[type=time], |
| 3617 | .components-text-control__input[type=url], |
| 3618 | .components-text-control__input[type=week], |
| 3619 | .components-text-control__input[type=password], |
| 3620 | .components-text-control__input[type=color], |
| 3621 | .components-text-control__input[type=date], |
| 3622 | .components-text-control__input[type=datetime], |
| 3623 | .components-text-control__input[type=datetime-local], |
| 3624 | .components-text-control__input[type=email], |
| 3625 | .components-text-control__input[type=month], |
| 3626 | .components-text-control__input[type=number] { |
| 3627 | transition: box-shadow 0.1s linear; |
| 3628 | } |
| 3629 | } |
| 3630 | @media (min-width: 600px) { |
| 3631 | .components-text-control__input, |
| 3632 | .components-text-control__input[type=text], |
| 3633 | .components-text-control__input[type=tel], |
| 3634 | .components-text-control__input[type=time], |
| 3635 | .components-text-control__input[type=url], |
| 3636 | .components-text-control__input[type=week], |
| 3637 | .components-text-control__input[type=password], |
| 3638 | .components-text-control__input[type=color], |
| 3639 | .components-text-control__input[type=date], |
| 3640 | .components-text-control__input[type=datetime], |
| 3641 | .components-text-control__input[type=datetime-local], |
| 3642 | .components-text-control__input[type=email], |
| 3643 | .components-text-control__input[type=month], |
| 3644 | .components-text-control__input[type=number] { |
| 3645 | font-size: 13px; |
| 3646 | /* Override core line-height. To be reviewed. */ |
| 3647 | line-height: normal; |
| 3648 | } |
| 3649 | } |
| 3650 | .components-text-control__input:focus, |
| 3651 | .components-text-control__input[type=text]:focus, |
| 3652 | .components-text-control__input[type=tel]:focus, |
| 3653 | .components-text-control__input[type=time]:focus, |
| 3654 | .components-text-control__input[type=url]:focus, |
| 3655 | .components-text-control__input[type=week]:focus, |
| 3656 | .components-text-control__input[type=password]:focus, |
| 3657 | .components-text-control__input[type=color]:focus, |
| 3658 | .components-text-control__input[type=date]:focus, |
| 3659 | .components-text-control__input[type=datetime]:focus, |
| 3660 | .components-text-control__input[type=datetime-local]:focus, |
| 3661 | .components-text-control__input[type=email]:focus, |
| 3662 | .components-text-control__input[type=month]:focus, |
| 3663 | .components-text-control__input[type=number]:focus { |
| 3664 | border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3665 | box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
| 3666 | outline: 2px solid transparent; |
| 3667 | } |
| 3668 | .components-text-control__input::placeholder, |
| 3669 | .components-text-control__input[type=text]::placeholder, |
| 3670 | .components-text-control__input[type=tel]::placeholder, |
| 3671 | .components-text-control__input[type=time]::placeholder, |
| 3672 | .components-text-control__input[type=url]::placeholder, |
| 3673 | .components-text-control__input[type=week]::placeholder, |
| 3674 | .components-text-control__input[type=password]::placeholder, |
| 3675 | .components-text-control__input[type=color]::placeholder, |
| 3676 | .components-text-control__input[type=date]::placeholder, |
| 3677 | .components-text-control__input[type=datetime]::placeholder, |
| 3678 | .components-text-control__input[type=datetime-local]::placeholder, |
| 3679 | .components-text-control__input[type=email]::placeholder, |
| 3680 | .components-text-control__input[type=month]::placeholder, |
| 3681 | .components-text-control__input[type=number]::placeholder { |
| 3682 | color: rgba(30, 30, 30, 0.62); |
| 3683 | } |
| 3684 | .components-text-control__input, |
| 3685 | .components-text-control__input[type=text], |
| 3686 | .components-text-control__input[type=tel], |
| 3687 | .components-text-control__input[type=time], |
| 3688 | .components-text-control__input[type=url], |
| 3689 | .components-text-control__input[type=week], |
| 3690 | .components-text-control__input[type=password], |
| 3691 | .components-text-control__input[type=color], |
| 3692 | .components-text-control__input[type=date], |
| 3693 | .components-text-control__input[type=datetime], |
| 3694 | .components-text-control__input[type=datetime-local], |
| 3695 | .components-text-control__input[type=email], |
| 3696 | .components-text-control__input[type=month], |
| 3697 | .components-text-control__input[type=number] { |
| 3698 | border-color: var(--wp-components-color-gray-600, #949494); |
| 3699 | } |
| 3700 | .components-text-control__input::placeholder, |
| 3701 | .components-text-control__input[type=text]::placeholder, |
| 3702 | .components-text-control__input[type=tel]::placeholder, |
| 3703 | .components-text-control__input[type=time]::placeholder, |
| 3704 | .components-text-control__input[type=url]::placeholder, |
| 3705 | .components-text-control__input[type=week]::placeholder, |
| 3706 | .components-text-control__input[type=password]::placeholder, |
| 3707 | .components-text-control__input[type=color]::placeholder, |
| 3708 | .components-text-control__input[type=date]::placeholder, |
| 3709 | .components-text-control__input[type=datetime]::placeholder, |
| 3710 | .components-text-control__input[type=datetime-local]::placeholder, |
| 3711 | .components-text-control__input[type=email]::placeholder, |
| 3712 | .components-text-control__input[type=month]::placeholder, |
| 3713 | .components-text-control__input[type=number]::placeholder { |
| 3714 | color: color-mix(in srgb, var(--wp-components-color-foreground, #1e1e1e), transparent 38%); |
| 3715 | } |
| 3716 | .components-text-control__input.is-next-40px-default-size, |
| 3717 | .components-text-control__input[type=text].is-next-40px-default-size, |
| 3718 | .components-text-control__input[type=tel].is-next-40px-default-size, |
| 3719 | .components-text-control__input[type=time].is-next-40px-default-size, |
| 3720 | .components-text-control__input[type=url].is-next-40px-default-size, |
| 3721 | .components-text-control__input[type=week].is-next-40px-default-size, |
| 3722 | .components-text-control__input[type=password].is-next-40px-default-size, |
| 3723 | .components-text-control__input[type=color].is-next-40px-default-size, |
| 3724 | .components-text-control__input[type=date].is-next-40px-default-size, |
| 3725 | .components-text-control__input[type=datetime].is-next-40px-default-size, |
| 3726 | .components-text-control__input[type=datetime-local].is-next-40px-default-size, |
| 3727 | .components-text-control__input[type=email].is-next-40px-default-size, |
| 3728 | .components-text-control__input[type=month].is-next-40px-default-size, |
| 3729 | .components-text-control__input[type=number].is-next-40px-default-size { |
| 3730 | height: 40px; |
| 3731 | padding-left: 12px; |
| 3732 | padding-right: 12px; |
| 3733 | } |
| 3734 | |
| 3735 | .components-text-control__input[type=email], |
| 3736 | .components-text-control__input[type=url] { |
| 3737 | /* rtl:ignore */ |
| 3738 | direction: ltr; |
| 3739 | } |
| 3740 | |
| 3741 | .components-tip { |
| 3742 | display: flex; |
| 3743 | color: #757575; |
| 3744 | } |
| 3745 | .components-tip svg { |
| 3746 | align-self: center; |
| 3747 | fill: #f0b849; |
| 3748 | flex-shrink: 0; |
| 3749 | margin-right: 16px; |
| 3750 | } |
| 3751 | .components-tip p { |
| 3752 | margin: 0; |
| 3753 | } |
| 3754 | |
| 3755 | .components-toggle-control__label { |
| 3756 | line-height: 16px; |
| 3757 | } |
| 3758 | .components-toggle-control__label:not(.is-disabled) { |
| 3759 | cursor: var(--wpds-cursor-control, pointer); |
| 3760 | } |
| 3761 | |
| 3762 | .components-toggle-control__help { |
| 3763 | display: inline-block; |
| 3764 | margin-inline-start: 40px; |
| 3765 | } |
| 3766 | |
| 3767 | .components-accessible-toolbar { |
| 3768 | display: inline-flex; |
| 3769 | border: 1px solid var(--wp-components-color-foreground, #1e1e1e); |
| 3770 | border-radius: 2px; |
| 3771 | flex-shrink: 0; |
| 3772 | } |
| 3773 | .components-accessible-toolbar > .components-toolbar-group:last-child { |
| 3774 | border-right: none; |
| 3775 | } |
| 3776 | .components-accessible-toolbar.is-unstyled { |
| 3777 | border: none; |
| 3778 | } |
| 3779 | .components-accessible-toolbar.is-unstyled > .components-toolbar-group { |
| 3780 | border-right: none; |
| 3781 | } |
| 3782 | |
| 3783 | .components-accessible-toolbar[aria-orientation=vertical], |
| 3784 | .components-toolbar[aria-orientation=vertical] { |
| 3785 | display: flex; |
| 3786 | flex-direction: column; |
| 3787 | align-items: center; |
| 3788 | } |
| 3789 | .components-accessible-toolbar .components-button, |
| 3790 | .components-toolbar .components-button { |
| 3791 | position: relative; |
| 3792 | height: 48px; |
| 3793 | z-index: 1; |
| 3794 | padding-left: 16px; |
| 3795 | padding-right: 16px; |
| 3796 | } |
| 3797 | .components-accessible-toolbar .components-button:focus:not(:disabled), |
| 3798 | .components-toolbar .components-button:focus:not(:disabled) { |
| 3799 | box-shadow: none; |
| 3800 | outline: none; |
| 3801 | } |
| 3802 | .components-accessible-toolbar .components-button::before, |
| 3803 | .components-toolbar .components-button::before { |
| 3804 | content: ""; |
| 3805 | position: absolute; |
| 3806 | display: block; |
| 3807 | border-radius: 2px; |
| 3808 | height: 32px; |
| 3809 | left: 8px; |
| 3810 | right: 8px; |
| 3811 | z-index: -1; |
| 3812 | } |
| 3813 | @media not (prefers-reduced-motion) { |
| 3814 | .components-accessible-toolbar .components-button::before, |
| 3815 | .components-toolbar .components-button::before { |
| 3816 | animation: components-button__appear-animation 0.1s ease; |
| 3817 | animation-fill-mode: forwards; |
| 3818 | } |
| 3819 | } |
| 3820 | .components-accessible-toolbar .components-button svg, |
| 3821 | .components-toolbar .components-button svg { |
| 3822 | position: relative; |
| 3823 | margin-left: auto; |
| 3824 | margin-right: auto; |
| 3825 | } |
| 3826 | .components-accessible-toolbar .components-button.is-pressed, |
| 3827 | .components-toolbar .components-button.is-pressed { |
| 3828 | background: transparent; |
| 3829 | } |
| 3830 | .components-accessible-toolbar .components-button.is-pressed:hover, |
| 3831 | .components-toolbar .components-button.is-pressed:hover { |
| 3832 | background: transparent; |
| 3833 | } |
| 3834 | .components-accessible-toolbar .components-button.is-pressed::before, |
| 3835 | .components-toolbar .components-button.is-pressed::before { |
| 3836 | background: var(--wp-components-color-foreground, #1e1e1e); |
| 3837 | } |
| 3838 | .components-accessible-toolbar .components-button:focus::before, |
| 3839 | .components-toolbar .components-button:focus::before { |
| 3840 | box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 3841 | outline: 2px solid transparent; |
| 3842 | } |
| 3843 | .components-accessible-toolbar .components-button.has-icon.has-icon, |
| 3844 | .components-toolbar .components-button.has-icon.has-icon { |
| 3845 | padding-left: 8px; |
| 3846 | padding-right: 8px; |
| 3847 | min-width: 48px; |
| 3848 | } |
| 3849 | |
| 3850 | @keyframes components-button__appear-animation { |
| 3851 | from { |
| 3852 | transform: scaleY(0); |
| 3853 | } |
| 3854 | to { |
| 3855 | transform: scaleY(1); |
| 3856 | } |
| 3857 | } |
| 3858 | .components-toolbar__control.components-button { |
| 3859 | position: relative; |
| 3860 | } |
| 3861 | .components-toolbar__control.components-button[data-subscript] svg { |
| 3862 | padding: 5px 10px 5px 0; |
| 3863 | } |
| 3864 | .components-toolbar__control.components-button[data-subscript]::after { |
| 3865 | content: attr(data-subscript); |
| 3866 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 3867 | font-size: 13px; |
| 3868 | font-weight: 600; |
| 3869 | line-height: 12px; |
| 3870 | position: absolute; |
| 3871 | right: 8px; |
| 3872 | bottom: 10px; |
| 3873 | } |
| 3874 | .components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]::after { |
| 3875 | color: #fff; |
| 3876 | } |
| 3877 | |
| 3878 | .components-toolbar-group { |
| 3879 | min-height: 48px; |
| 3880 | border-right: 1px solid var(--wp-components-color-foreground, #1e1e1e); |
| 3881 | background-color: var(--wp-components-color-background, #fff); |
| 3882 | display: inline-flex; |
| 3883 | flex-shrink: 0; |
| 3884 | flex-wrap: wrap; |
| 3885 | padding-left: 6px; |
| 3886 | padding-right: 6px; |
| 3887 | } |
| 3888 | .components-toolbar-group .components-toolbar-group.components-toolbar-group { |
| 3889 | border-width: 0; |
| 3890 | margin: 0; |
| 3891 | } |
| 3892 | .components-toolbar-group { |
| 3893 | line-height: 0; |
| 3894 | } |
| 3895 | .components-toolbar-group .components-button.components-button, |
| 3896 | .components-toolbar-group .components-button.has-icon.has-icon { |
| 3897 | justify-content: center; |
| 3898 | min-width: 36px; |
| 3899 | padding-left: 6px; |
| 3900 | padding-right: 6px; |
| 3901 | } |
| 3902 | .components-toolbar-group .components-button.components-button svg, |
| 3903 | .components-toolbar-group .components-button.has-icon.has-icon svg { |
| 3904 | min-width: 24px; |
| 3905 | } |
| 3906 | .components-toolbar-group .components-button.components-button::before, |
| 3907 | .components-toolbar-group .components-button.has-icon.has-icon::before { |
| 3908 | left: 2px; |
| 3909 | right: 2px; |
| 3910 | } |
| 3911 | |
| 3912 | .components-toolbar { |
| 3913 | min-height: 48px; |
| 3914 | margin: 0; |
| 3915 | border: 1px solid var(--wp-components-color-foreground, #1e1e1e); |
| 3916 | background-color: var(--wp-components-color-background, #fff); |
| 3917 | display: inline-flex; |
| 3918 | flex-shrink: 0; |
| 3919 | flex-wrap: wrap; |
| 3920 | } |
| 3921 | .components-toolbar .components-toolbar.components-toolbar { |
| 3922 | border-width: 0; |
| 3923 | margin: 0; |
| 3924 | } |
| 3925 | |
| 3926 | div.components-toolbar > div { |
| 3927 | display: flex; |
| 3928 | margin: 0; |
| 3929 | } |
| 3930 | div.components-toolbar > div + div.has-left-divider { |
| 3931 | margin-left: 6px; |
| 3932 | position: relative; |
| 3933 | overflow: visible; |
| 3934 | } |
| 3935 | div.components-toolbar > div + div.has-left-divider::before { |
| 3936 | display: inline-block; |
| 3937 | content: ""; |
| 3938 | box-sizing: content-box; |
| 3939 | background-color: #ddd; |
| 3940 | position: absolute; |
| 3941 | top: 8px; |
| 3942 | left: -3px; |
| 3943 | width: 1px; |
| 3944 | height: 20px; |
| 3945 | } |
| 3946 | |
| 3947 | .components-tooltip { |
| 3948 | background: #000; |
| 3949 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 3950 | border-radius: 2px; |
| 3951 | color: #f0f0f0; |
| 3952 | text-align: center; |
| 3953 | line-height: 1.4; |
| 3954 | font-size: 12px; |
| 3955 | padding: 4px 8px; |
| 3956 | z-index: 1000002; |
| 3957 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02); |
| 3958 | } |
| 3959 | |
| 3960 | .components-tooltip__shortcut { |
| 3961 | margin-left: 8px; |
| 3962 | } |
| 3963 | |
| 3964 | .components-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { |
| 3965 | --wp-components-color-accent: #cc1818; |
| 3966 | border-color: #cc1818; |
| 3967 | } |
| 3968 | .components-validated-control :is(textarea, input[type=text]):invalid[data-validity-visible] { |
| 3969 | --wp-admin-theme-color: #cc1818; |
| 3970 | --wp-components-color-accent: #cc1818; |
| 3971 | border-color: #cc1818; |
| 3972 | } |
| 3973 | .components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])) { |
| 3974 | --wp-components-color-accent: #cc1818; |
| 3975 | } |
| 3976 | |
| 3977 | .components-validated-control__wrapper-with-error-delegate { |
| 3978 | position: relative; |
| 3979 | } |
| 3980 | .components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop { |
| 3981 | --wp-components-color-accent: #cc1818; |
| 3982 | border-color: #cc1818; |
| 3983 | } |
| 3984 | .components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]) { |
| 3985 | --wp-components-color-accent: #cc1818; |
| 3986 | } |
| 3987 | .components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])) { |
| 3988 | --wp-components-color-accent: #cc1818; |
| 3989 | border-color: #cc1818; |
| 3990 | } |
| 3991 | |
| 3992 | .components-validated-control__error-delegate { |
| 3993 | position: absolute; |
| 3994 | top: 0; |
| 3995 | height: 100%; |
| 3996 | width: 100%; |
| 3997 | opacity: 0; |
| 3998 | pointer-events: none; |
| 3999 | } |
| 4000 | |
| 4001 | .components-validated-control__indicator { |
| 4002 | display: flex; |
| 4003 | align-items: flex-start; |
| 4004 | gap: 4px; |
| 4005 | margin: 8px 0 0; |
| 4006 | font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 4007 | font-size: 12px; |
| 4008 | line-height: 16px; |
| 4009 | color: var(--wp-components-color-gray-700, #757575); |
| 4010 | animation: components-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); |
| 4011 | } |
| 4012 | .components-validated-control__indicator.is-invalid { |
| 4013 | color: #cc1818; |
| 4014 | } |
| 4015 | .components-validated-control__indicator.is-valid { |
| 4016 | color: color-mix(in srgb, #000 30%, #4ab866); |
| 4017 | } |
| 4018 | |
| 4019 | .components-validated-control__indicator-icon { |
| 4020 | flex-shrink: 0; |
| 4021 | } |
| 4022 | |
| 4023 | .components-validated-control__indicator-spinner { |
| 4024 | margin: 2px; |
| 4025 | width: 12px; |
| 4026 | height: 12px; |
| 4027 | } |
| 4028 | |
| 4029 | @keyframes components-validated-control__indicator-jump { |
| 4030 | 0% { |
| 4031 | transform: translateY(-4px); |
| 4032 | opacity: 0; |
| 4033 | } |
| 4034 | 100% { |
| 4035 | transform: translateY(0); |
| 4036 | opacity: 1; |
| 4037 | } |
| 4038 | } |
| 4039 | :root { |
| 4040 | --wp-admin-theme-color: #3858e9; |
| 4041 | --wp-admin-theme-color--rgb: 56, 88, 233; |
| 4042 | --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615); |
| 4043 | --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615; |
| 4044 | --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077); |
| 4045 | --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077; |
| 4046 | --wp-admin-border-width-focus: 2px; |
| 4047 | } |
| 4048 | @media (min-resolution: 192dpi) { |
| 4049 | :root { |
| 4050 | --wp-admin-border-width-focus: 1.5px; |
| 4051 | } |
| 4052 | } |