diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/css/dist/components/style.css --- a/wp/wp-includes/css/dist/components/style.css Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/css/dist/components/style.css Tue Dec 15 13:49:49 2020 +0100 @@ -2,10 +2,40 @@ * Colors */ /** + * Deprecated colors. + * Please avoid using these. + */ +/** * Breakpoints & Media Queries */ /** - * Often re-used variables + * Colors + */ +/** + * Deprecated colors. + * Please avoid using these. + */ +/** + * Fonts & basic variables. + */ +/** + * Grid System. + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ + */ +/** + * Dimensions. + */ +/** + * Shadows. + */ +/** + * Editor widths. + */ +/** + * Block UI. + */ +/** + * Border radii. */ /** * Breakpoint mixins @@ -17,26 +47,35 @@ * than the space allows. */ /** - * Button states and focus styles + * Focus styles. */ /** * Applies editor left position to the selector passed as argument */ /** - * Applies editor right position to the selector passed as argument - */ -/** * Styles that are reused verbatim in a few places */ /** * Allows users to opt-out of animations via OS-level preferences. */ +/** + * Reset default styles for JavaScript UI based pages. + * This is a WP-admin agnostic reset + */ +/** + * Reset the WP Admin page styles for Gutenberg-like pages. + */ +:root { + --wp-admin-theme-color: #007cba; + --wp-admin-theme-color-darker-10: #006ba1; + --wp-admin-theme-color-darker-20: #005a87; } + .components-animate__appear { animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; animation-fill-mode: forwards; } @media (prefers-reduced-motion: reduce) { .components-animate__appear { - animation-duration: 1ms !important; } } + animation-duration: 1ms; } } .components-animate__appear.is-from-top, .components-animate__appear.is-from-top.is-from-left { transform-origin: top left; } .components-animate__appear.is-from-top.is-from-right { @@ -57,50 +96,114 @@ animation-fill-mode: forwards; } @media (prefers-reduced-motion: reduce) { .components-animate__slide-in { - animation-duration: 1ms !important; } } + animation-duration: 1ms; } } .components-animate__slide-in.is-from-left { transform: translateX(100%); } + .components-animate__slide-in.is-from-right { + transform: translateX(-100%); } @keyframes components-animate__slide-in-animation { 100% { transform: translateX(0%); } } -.components-autocomplete__popover .components-popover__content { - min-width: 200px; } - -.components-autocomplete__popover .components-autocomplete__results { - padding: 3px; - display: flex; - flex-direction: column; - align-items: stretch; } - .components-autocomplete__popover .components-autocomplete__results:empty { - display: none; } +.components-animate__loading { + animation: components-animate__loading 1.6s ease-in-out infinite; } + +@keyframes components-animate__loading { + 0% { + opacity: 0.5; } + 50% { + opacity: 1; } + 100% { + opacity: 0.5; } } + +.components-angle-picker-control { + width: 50%; } + .components-angle-picker-control.components-base-control .components-base-control__label { + display: block; } + +.components-angle-picker-control__input-field[type="number"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + width: calc(100% - 36px); + max-width: 100px; } + @media (prefers-reduced-motion: reduce) { + .components-angle-picker-control__input-field[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-angle-picker-control__input-field[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-angle-picker-control__input-field[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-angle-picker-control__input-field[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.components-angle-picker-control__angle-circle { + width: 28px; + height: 28px; + border: 2px solid #555d66; + border-radius: 50%; + float: left; + margin-right: 4px; + cursor: grab; } + +.components-angle-picker-control__angle-circle-indicator-wrapper { + position: relative; + width: 100%; + height: 100%; } + +.components-angle-picker-control__angle-circle-indicator { + width: 1px; + height: 1px; + border-radius: 50%; + border: 3px solid #555d66; + display: block; + position: absolute; + top: -14px; + bottom: 0; + left: 0; + right: 0; + margin: auto; + background: #555d66; } + +.components-autocomplete__popover .components-popover__content > div { + padding: 16px; } .components-autocomplete__result.components-button { - margin-bottom: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - color: #555d66; display: flex; - flex-direction: row; - flex-grow: 1; - flex-shrink: 0; - align-items: center; - padding: 6px 8px; - margin-left: -3px; - margin-right: -3px; - text-align: left; } + height: auto; + min-height: 36px; + text-align: left; + width: 100%; } .components-autocomplete__result.components-button.is-selected { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-autocomplete__result.components-button:hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } + box-shadow: 0 0 0 2px #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color); } .components-base-control { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; @@ -110,30 +213,30 @@ .components-panel__row .components-base-control .components-base-control__field { margin-bottom: inherit; } .components-base-control .components-base-control__label { - display: block; - margin-bottom: 4px; } + display: inline-block; + margin-bottom: 8px; } .components-base-control .components-base-control__help { margin-top: -8px; font-style: italic; } -.components-base-control + .components-base-control { - margin-bottom: 16px; } - .components-button-group { display: inline-block; } - .components-button-group .components-button.is-button { - border-radius: 0; } - .components-button-group .components-button.is-button + .components-button.is-button { + .components-button-group .components-button { + border-radius: 0; + display: inline-flex; + color: #1e1e1e; + box-shadow: inset 0 0 0 1px #1e1e1e; } + .components-button-group .components-button + .components-button { margin-left: -1px; } - .components-button-group .components-button.is-button:first-child { - border-radius: 3px 0 0 3px; } - .components-button-group .components-button.is-button:last-child { - border-radius: 0 3px 3px 0; } - .components-button-group .components-button.is-button:focus, .components-button-group .components-button.is-button.is-primary { + .components-button-group .components-button:first-child { + border-radius: 2px 0 0 2px; } + .components-button-group .components-button:last-child { + border-radius: 0 2px 2px 0; } + .components-button-group .components-button:focus, .components-button-group .components-button.is-primary { position: relative; z-index: 1; } - .components-button-group .components-button.is-button.is-primary { - box-shadow: none; } + .components-button-group .components-button.is-primary { + box-shadow: inset 0 0 0 1px #1e1e1e; } .components-button { display: inline-flex; @@ -144,239 +247,117 @@ cursor: pointer; -webkit-appearance: none; background: none; - /* Buttons that look like links, for a cross of good semantics with the visual */ - /* Link buttons that are red to indicate destructive behavior. */ } - .components-button.is-button { - padding: 0 10px 1px; - line-height: 26px; - height: 28px; - border-radius: 3px; + transition: box-shadow 0.1s linear; + height: 36px; + align-items: center; + box-sizing: border-box; + padding: 6px 12px; + border-radius: 2px; + color: #1e1e1e; + /** + * Primary button style. + */ + /** + * Secondary and tertiary buttons. + */ + /** + * Secondary button style. + */ + /** + * Tertiary buttons. + */ + /** + * Link buttons. + */ + /** + * Buttons that indicate destructive actions. + */ } + @media (prefers-reduced-motion: reduce) { + .components-button { + transition-duration: 0s; } } + .components-button[aria-expanded="true"], .components-button:hover { + color: #007cba; + color: var(--wp-admin-theme-color); } + .components-button[aria-disabled="true"]:hover { + color: initial; } + .components-button:focus:not(:disabled) { + box-shadow: 0 0 0 1.5px #007cba; + box-shadow: 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } + .components-button.is-primary { white-space: nowrap; - border-width: 1px; - border-style: solid; } - .components-button.is-default { - color: #555; - border-color: #ccc; - background: #f7f7f7; - box-shadow: inset 0 -1px 0 #ccc; - vertical-align: top; } - .components-button.is-default:hover { - background: #fafafa; - border-color: #999; - box-shadow: inset 0 -1px 0 #999; - color: #23282d; - text-decoration: none; } - .components-button.is-default:focus:enabled { - background: #fafafa; - color: #23282d; - border-color: #999; - box-shadow: inset 0 -1px 0 #999, 0 0 0 2px #bfe7f3; - text-decoration: none; } - .components-button.is-default:active:enabled { - background: #eee; - border-color: #999; - box-shadow: inset 0 1px 0 #999; } - .components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] { - color: #a0a5aa; - border-color: #ddd; - background: #f7f7f7; - box-shadow: none; - text-shadow: 0 1px 0 #fff; - transform: none; } - .components-button.is-primary { - background: rgb(0, 133, 186); - border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); - box-shadow: inset 0 -1px 0 rgb(0, 100, 140); + background: #007cba; + background: var(--wp-admin-theme-color); color: #fff; text-decoration: none; - text-shadow: 0 -1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130); } - body.admin-color-sunrise .components-button.is-primary { - background: rgb(209, 134, 74); - border-color: rgb(167, 107, 59) rgb(157, 101, 56) rgb(157, 101, 56); - box-shadow: inset 0 -1px 0 rgb(157, 101, 56); - text-shadow: 0 -1px 1px rgb(146, 94, 52), 1px 0 1px rgb(146, 94, 52), 0 1px 1px rgb(146, 94, 52), -1px 0 1px rgb(146, 94, 52); } - body.admin-color-ocean .components-button.is-primary { - background: rgb(163, 185, 162); - border-color: rgb(130, 148, 130) rgb(122, 139, 122) rgb(122, 139, 122); - box-shadow: inset 0 -1px 0 rgb(122, 139, 122); - text-shadow: 0 -1px 1px rgb(114, 130, 113), 1px 0 1px rgb(114, 130, 113), 0 1px 1px rgb(114, 130, 113), -1px 0 1px rgb(114, 130, 113); } - body.admin-color-midnight .components-button.is-primary { - background: rgb(225, 77, 67); - border-color: rgb(180, 62, 54) rgb(169, 58, 50) rgb(169, 58, 50); - box-shadow: inset 0 -1px 0 rgb(169, 58, 50); - text-shadow: 0 -1px 1px rgb(158, 54, 47), 1px 0 1px rgb(158, 54, 47), 0 1px 1px rgb(158, 54, 47), -1px 0 1px rgb(158, 54, 47); } - body.admin-color-ectoplasm .components-button.is-primary { - background: rgb(167, 182, 86); - border-color: rgb(134, 146, 69) rgb(125, 137, 65) rgb(125, 137, 65); - box-shadow: inset 0 -1px 0 rgb(125, 137, 65); - text-shadow: 0 -1px 1px rgb(117, 127, 60), 1px 0 1px rgb(117, 127, 60), 0 1px 1px rgb(117, 127, 60), -1px 0 1px rgb(117, 127, 60); } - body.admin-color-coffee .components-button.is-primary { - background: rgb(194, 166, 140); - border-color: rgb(155, 133, 112) rgb(146, 125, 105) rgb(146, 125, 105); - box-shadow: inset 0 -1px 0 rgb(146, 125, 105); - text-shadow: 0 -1px 1px rgb(136, 116, 98), 1px 0 1px rgb(136, 116, 98), 0 1px 1px rgb(136, 116, 98), -1px 0 1px rgb(136, 116, 98); } - body.admin-color-blue .components-button.is-primary { - background: rgb(217, 171, 89); - border-color: rgb(174, 137, 71) rgb(163, 128, 67) rgb(163, 128, 67); - box-shadow: inset 0 -1px 0 rgb(163, 128, 67); - text-shadow: 0 -1px 1px rgb(152, 120, 62), 1px 0 1px rgb(152, 120, 62), 0 1px 1px rgb(152, 120, 62), -1px 0 1px rgb(152, 120, 62); } - body.admin-color-light .components-button.is-primary { - background: rgb(0, 133, 186); - border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); - box-shadow: inset 0 -1px 0 rgb(0, 100, 140); - text-shadow: 0 -1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130); } - .components-button.is-primary:hover, .components-button.is-primary:focus:enabled { - background: rgb(0, 126, 177); - border-color: rgb(0, 67, 93); + text-shadow: none; } + .components-button.is-primary:hover:not(:disabled) { + background: #006ba1; + background: var(--wp-admin-theme-color-darker-10); + color: #fff; } + .components-button.is-primary:active:not(:disabled) { + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); + border-color: #005a87; + border-color: var(--wp-admin-theme-color-darker-20); color: #fff; } - body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { - background: rgb(199, 127, 70); - border-color: rgb(105, 67, 37); } - body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { - background: rgb(155, 176, 154); - border-color: rgb(82, 93, 81); } - body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { - background: rgb(214, 73, 64); - border-color: rgb(113, 39, 34); } - body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - background: rgb(159, 173, 82); - border-color: rgb(84, 91, 43); } - body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { - background: rgb(184, 158, 133); - border-color: rgb(97, 83, 70); } - body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled { - background: rgb(206, 162, 85); - border-color: rgb(109, 86, 45); } - body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled { - background: rgb(0, 126, 177); - border-color: rgb(0, 67, 93); } - .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(0, 67, 93); } - body.admin-color-sunrise .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(105, 67, 37); } - body.admin-color-ocean .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(82, 93, 81); } - body.admin-color-midnight .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(113, 39, 34); } - body.admin-color-ectoplasm .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(84, 91, 43); } - body.admin-color-coffee .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(97, 83, 70); } - body.admin-color-blue .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(109, 86, 45); } - body.admin-color-light .components-button.is-primary:hover { - box-shadow: inset 0 -1px 0 rgb(0, 67, 93); } - .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 2px #bfe7f3; } - body.admin-color-sunrise .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(105, 67, 37), 0 0 0 2px #bfe7f3; } - body.admin-color-ocean .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(82, 93, 81), 0 0 0 2px #bfe7f3; } - body.admin-color-midnight .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(113, 39, 34), 0 0 0 2px #bfe7f3; } - body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(84, 91, 43), 0 0 0 2px #bfe7f3; } - body.admin-color-coffee .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(97, 83, 70), 0 0 0 2px #bfe7f3; } - body.admin-color-blue .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(109, 86, 45), 0 0 0 2px #bfe7f3; } - body.admin-color-light .components-button.is-primary:focus:enabled { - box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 2px #bfe7f3; } - .components-button.is-primary:active:enabled { - background: rgb(0, 106, 149); - border-color: rgb(0, 67, 93); - box-shadow: inset 0 1px 0 rgb(0, 67, 93); - vertical-align: top; } - body.admin-color-sunrise .components-button.is-primary:active:enabled { - background: rgb(167, 107, 59); - border-color: rgb(105, 67, 37); - box-shadow: inset 0 1px 0 rgb(105, 67, 37); } - body.admin-color-ocean .components-button.is-primary:active:enabled { - background: rgb(130, 148, 130); - border-color: rgb(82, 93, 81); - box-shadow: inset 0 1px 0 rgb(82, 93, 81); } - body.admin-color-midnight .components-button.is-primary:active:enabled { - background: rgb(180, 62, 54); - border-color: rgb(113, 39, 34); - box-shadow: inset 0 1px 0 rgb(113, 39, 34); } - body.admin-color-ectoplasm .components-button.is-primary:active:enabled { - background: rgb(134, 146, 69); - border-color: rgb(84, 91, 43); - box-shadow: inset 0 1px 0 rgb(84, 91, 43); } - body.admin-color-coffee .components-button.is-primary:active:enabled { - background: rgb(155, 133, 112); - border-color: rgb(97, 83, 70); - box-shadow: inset 0 1px 0 rgb(97, 83, 70); } - body.admin-color-blue .components-button.is-primary:active:enabled { - background: rgb(174, 137, 71); - border-color: rgb(109, 86, 45); - box-shadow: inset 0 1px 0 rgb(109, 86, 45); } - body.admin-color-light .components-button.is-primary:active:enabled { - background: rgb(0, 106, 149); - border-color: rgb(0, 67, 93); - box-shadow: inset 0 1px 0 rgb(0, 67, 93); } - .components-button.is-primary:disabled, .components-button.is-primary[aria-disabled="true"] { - color: rgb(77, 170, 207); - background: rgb(0, 93, 130); - border-color: rgb(0, 106, 149); - box-shadow: none; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); } - body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"] { - color: rgb(223, 170, 128); - background: rgb(146, 94, 52); - border-color: rgb(167, 107, 59); } - body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"] { - color: rgb(191, 206, 190); - background: rgb(114, 130, 113); - border-color: rgb(130, 148, 130); } - body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"] { - color: rgb(234, 130, 123); - background: rgb(158, 54, 47); - border-color: rgb(180, 62, 54); } - body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"] { - color: rgb(193, 204, 137); - background: rgb(117, 127, 60); - border-color: rgb(134, 146, 69); } - body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"] { - color: rgb(212, 193, 175); - background: rgb(136, 116, 98); - border-color: rgb(155, 133, 112); } - body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"] { - color: rgb(228, 196, 139); - background: rgb(152, 120, 62); - border-color: rgb(174, 137, 71); } - body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"] { - color: rgb(77, 170, 207); - background: rgb(0, 93, 130); - border-color: rgb(0, 106, 149); } + .components-button.is-primary:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 1px solid transparent; } + .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 { + color: rgba(255, 255, 255, 0.4); + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + opacity: 1; } + .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 { + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] { color: #fff; background-size: 100px 100%; /* stylelint-disable */ - background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); + background-image: linear-gradient(-45deg, #007cba 28%, #005a87 28%, #005a87 72%, #007cba 72%); + background-image: linear-gradient(-45deg, var(--wp-admin-theme-color) 28%, var(--wp-admin-theme-color-darker-20) 28%, var(--wp-admin-theme-color-darker-20) 72%, var(--wp-admin-theme-color) 72%); /* stylelint-enable */ - border-color: rgb(0, 67, 93); } - body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #d1864a 28%, rgb(146, 94, 52) 28%, rgb(146, 94, 52) 72%, #d1864a 72%); - border-color: rgb(105, 67, 37); } - body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #a3b9a2 28%, rgb(114, 130, 113) 28%, rgb(114, 130, 113) 72%, #a3b9a2 72%); - border-color: rgb(82, 93, 81); } - body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #e14d43 28%, rgb(158, 54, 47) 28%, rgb(158, 54, 47) 72%, #e14d43 72%); - border-color: rgb(113, 39, 34); } - body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #a7b656 28%, rgb(117, 127, 60) 28%, rgb(117, 127, 60) 72%, #a7b656 72%); - border-color: rgb(84, 91, 43); } - body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #c2a68c 28%, rgb(136, 116, 98) 28%, rgb(136, 116, 98) 72%, #c2a68c 72%); - border-color: rgb(97, 83, 70); } - body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #82b4cb 28%, rgb(91, 126, 142) 28%, rgb(91, 126, 142) 72%, #82b4cb 72%); - border-color: rgb(65, 90, 102); } - body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { - background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); - border-color: rgb(0, 67, 93); } + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-button.is-secondary:active:not(:disabled), .components-button.is-tertiary:active:not(:disabled) { + background: #ddd; + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: none; } + .components-button.is-secondary:hover:not(:disabled), .components-button.is-tertiary:hover:not(:disabled) { + color: #006ba1; + color: var(--wp-admin-theme-color-darker-10); + box-shadow: inset 0 0 0 1px #006ba1; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color-darker-10); } + .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 { + color: #828282; + background: #eaeaea; + transform: none; + opacity: 1; + box-shadow: none; } + .components-button.is-secondary { + box-shadow: inset 0 0 0 1px #007cba; + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); + outline: 1px solid transparent; + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; } + .components-button.is-tertiary { + white-space: nowrap; + color: #007cba; + color: var(--wp-admin-theme-color); + background: transparent; + padding: 6px; + outline: 1px dotted transparent; } + .components-button.is-tertiary .dashicon { + display: inline-block; + flex: 0 0 auto; } .components-button.is-link { margin: 0; padding: 0; @@ -391,83 +372,69 @@ text-decoration: underline; transition-property: border, background, color; transition-duration: 0.05s; - transition-timing-function: ease-in-out; } - .components-button.is-link:hover, .components-button.is-link:active { + transition-timing-function: ease-in-out; + height: auto; } + @media (prefers-reduced-motion: reduce) { + .components-button.is-link { + transition-duration: 0s; } } + .components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) { color: #00a0d2; } .components-button.is-link:focus { color: #124964; - box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); } - .components-button.is-link.is-destructive { - color: #d94f4f; } - .components-button:active { - color: currentColor; } + box-shadow: 0 0 0 1px #5b9dd9, 0 0 1.5px 1px rgba(30, 140, 190, 0.8); } + .components-button.is-destructive { + color: #b52727; } + .components-button.is-destructive.is-secondary { + box-shadow: inset 0 0 0 1px #b52727; } + .components-button.is-destructive:hover:not(:disabled), .components-button.is-destructive:active:not(:disabled) { + color: #a02222; + box-shadow: inset 0 0 0 1px #a02222; } + .components-button.is-destructive:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #a02222; } + .components-button:not([aria-disabled="true"]):active { + color: inherit; } .components-button:disabled, .components-button[aria-disabled="true"] { cursor: default; opacity: 0.3; } - .components-button:focus:enabled { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - .components-button.is-busy, .components-button.is-default.is-busy, .components-button.is-default.is-busy:disabled, .components-button.is-default.is-busy[aria-disabled="true"] { + .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"] { animation: components-button__busy-animation 2500ms infinite linear; + opacity: 1; background-size: 100px 100%; - background-image: repeating-linear-gradient(-45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px); - opacity: 1; } - .components-button.is-large { - height: 30px; - line-height: 28px; - padding: 0 12px 2px; } + /* stylelint-disable */ + background-image: linear-gradient(-45deg, #fafafa 28%, #e0e0e0 28%, #e0e0e0 72%, #fafafa 72%); + /* stylelint-enable */ } .components-button.is-small { height: 24px; line-height: 22px; - padding: 0 8px 1px; + padding: 0 8px; font-size: 11px; } - .components-button.is-tertiary { - color: #007cba; - padding: 0 10px; - line-height: 26px; - height: 28px; } - body.admin-color-sunrise .components-button.is-tertiary { - color: #837425; } - body.admin-color-ocean .components-button.is-tertiary { - color: #5e7d5e; } - body.admin-color-midnight .components-button.is-tertiary { - color: #497b8d; } - body.admin-color-ectoplasm .components-button.is-tertiary { - color: #523f6d; } - body.admin-color-coffee .components-button.is-tertiary { - color: #59524c; } - body.admin-color-blue .components-button.is-tertiary { - color: #417e9B; } - body.admin-color-light .components-button.is-tertiary { - color: #007cba; } - .components-button.is-tertiary .dashicon { + .components-button.is-small.has-icon:not(.has-text) { + padding: 0 8px; + width: 24px; } + .components-button.has-icon { + padding: 6px; + min-width: 36px; + justify-content: center; } + .components-button.has-icon .dashicon { display: inline-block; flex: 0 0 auto; } - .components-button.is-tertiary svg { - fill: currentColor; - outline: none; } - .components-button.is-tertiary:active:focus:enabled { - box-shadow: none; } - .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(0, 93, 140); } - body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(98, 87, 28); } - body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(71, 94, 71); } - body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(55, 92, 106); } - body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(62, 47, 82); } - body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(67, 62, 57); } - body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(49, 95, 116); } - body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: rgb(0, 93, 140); } - .components-button .screen-reader-text { + .components-button.has-icon.has-text { + justify-content: left; } + .components-button.has-icon.has-text svg { + margin-right: 8px; } + .components-button.is-pressed { + color: #fff; + background: #1e1e1e; } + .components-button.is-pressed:focus:not(:disabled) { + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-button.is-pressed:hover:not(:disabled) { + background: #1e1e1e; } + .components-button svg { + fill: currentColor; + outline: none; } + .components-button .components-visually-hidden { height: auto; } @keyframes components-button__busy-animation { @@ -475,41 +442,191 @@ background-position: 200px 0; } } .components-checkbox-control__input[type="checkbox"] { - margin-top: 0; } - -.component-color-indicator { - width: 25px; - height: 16px; - margin-left: 0.8rem; - border: 1px solid #dadada; - display: inline-block; } - .component-color-indicator + .component-color-indicator { - margin-left: 0.5rem; } - -.components-color-palette { - margin-right: -14px; - width: calc(100% + 14px); } - .components-color-palette .components-color-palette__custom-clear-wrapper { - width: calc(100% - 14px); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 1px solid #1e1e1e; + margin-right: 12px; + transition: none; + border-radius: 2px; + background: #fff; + color: #1e1e1e; + clear: none; + cursor: pointer; + display: inline-block; + line-height: 0; + margin: 0 4px 0 0; + outline: 0; + padding: 0 !important; + text-align: center; + vertical-align: top; + width: 24px; + height: 24px; + -webkit-appearance: none; + appearance: none; + transition: 0.1s border-color ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-checkbox-control__input[type="checkbox"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-checkbox-control__input[type="checkbox"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-checkbox-control__input[type="checkbox"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-checkbox-control__input[type="checkbox"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-checkbox-control__input[type="checkbox"]:focus { + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-checkbox-control__input[type="checkbox"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"]:checked::-ms-check { + opacity: 0; } + .components-checkbox-control__input[type="checkbox"]:checked::before, .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + margin: -3px -5px; + color: #fff; } + @media (min-width: 782px) { + .components-checkbox-control__input[type="checkbox"]:checked::before, .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + margin: -4px 0 0 -5px; } } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"] { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + content: "\f460"; + float: left; + display: inline-block; + vertical-align: middle; + width: 16px; + /* stylelint-disable */ + font: normal 30px/1 dashicons; + /* stylelint-enable */ + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + @media (min-width: 782px) { + .components-checkbox-control__input[type="checkbox"][aria-checked="mixed"]::before { + float: none; + font-size: 21px; } } + @media (min-width: 600px) { + .components-checkbox-control__input[type="checkbox"] { + height: 20px; + width: 20px; } } + @media (prefers-reduced-motion: reduce) { + .components-checkbox-control__input[type="checkbox"] { + transition-duration: 0s; } } + .components-checkbox-control__input[type="checkbox"]:focus { + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-checkbox-control__input[type="checkbox"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-checkbox-control__input[type="checkbox"]:checked::-ms-check { + opacity: 0; } + .components-checkbox-control__input[type="checkbox"]:checked::before { + content: none; } + +.components-checkbox-control__input-container { + position: relative; + display: inline-block; + margin-right: 12px; + vertical-align: middle; + width: 24px; + height: 24px; } + @media (min-width: 600px) { + .components-checkbox-control__input-container { + width: 20px; + height: 20px; } } + +svg.components-checkbox-control__checked { + fill: #fff; + cursor: pointer; + position: absolute; + left: 0; + top: 0; + width: 24px; + height: 24px; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + pointer-events: none; } + @media (min-width: 600px) { + svg.components-checkbox-control__checked { + left: -2px; + top: -2px; } } + +.components-circular-option-picker { + display: inline-block; + margin-top: 0.6rem; + width: 100%; } + .components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper { display: flex; justify-content: flex-end; } -.components-color-palette__item-wrapper { +.components-circular-option-picker__option-wrapper { display: inline-block; height: 28px; width: 28px; - margin-right: 14px; - margin-bottom: 14px; + margin-right: 12px; + margin-bottom: 12px; vertical-align: top; transform: scale(1); transition: 100ms transform ease; } - .components-color-palette__item-wrapper:hover { + @media (prefers-reduced-motion: reduce) { + .components-circular-option-picker__option-wrapper { + transition-duration: 0s; } } + .components-circular-option-picker__option-wrapper:hover { transform: scale(1.2); } - .components-color-palette__item-wrapper > div { + .components-circular-option-picker__option-wrapper > div { height: 100%; width: 100%; } -.components-color-palette__item { +.components-circular-option-picker__option-wrapper::before { + content: ""; + position: absolute; + top: 1px; + left: 1px; + bottom: 1px; + right: 1px; + border-radius: 50%; + z-index: -1; + /* stylelint-disable-next-line function-url-quotes */ + 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'); } + +.components-circular-option-picker__option { display: inline-block; vertical-align: top; height: 100%; @@ -520,67 +637,65 @@ box-shadow: inset 0 0 0 14px; transition: 100ms box-shadow ease; cursor: pointer; } - .components-color-palette__item.is-active { + @media (prefers-reduced-motion: reduce) { + .components-circular-option-picker__option { + transition-duration: 0s; } } + .components-circular-option-picker__option:hover { + box-shadow: inset 0 0 0 14px !important; } + .components-circular-option-picker__option.is-pressed { box-shadow: inset 0 0 0 4px; position: relative; - z-index: 1; } - .components-color-palette__item.is-active + .dashicons-saved { + z-index: 1; + overflow: visible; } + .components-circular-option-picker__option.is-pressed + svg { position: absolute; - left: 4px; - top: 4px; } - .components-color-palette__item::after { + left: 2px; + top: 2px; + border-radius: 50%; + z-index: 2; + pointer-events: none; } + .components-circular-option-picker__option::after { content: ""; position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; + top: -1px; + left: -1px; + bottom: -1px; + right: -1px; border-radius: 50%; - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); } - .components-color-palette__item:focus { + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); + border: 1px solid transparent; } + .components-circular-option-picker__option:focus::after { + content: ""; + border: 2px solid #606a73; + width: 32px; + height: 32px; + position: absolute; + top: -2px; + left: -2px; + border-radius: 50%; + box-shadow: inset 0 0 0 2px #fff; } + .components-circular-option-picker__option.components-button:focus { + background-color: transparent; + box-shadow: inset 0 0 0 14px; outline: none; } - .components-color-palette__item:focus::after { - content: ""; - position: absolute; - border: 2px solid #606a73; - width: 32px; - height: 32px; - position: absolute; - top: -2px; - left: -2px; - border-radius: 50%; - box-shadow: inset 0 0 0 2px #fff; } - -.components-color-palette__clear-color .components-color-palette__item { + +.components-circular-option-picker__button-action .components-circular-option-picker__option { color: #fff; background: #fff; } -.components-color-palette__clear-color-line { - display: block; - position: absolute; - border: 2px solid #d94f4f; - border-radius: 50%; - top: 0; - left: 0; - bottom: 0; - right: 0; } - .components-color-palette__clear-color-line::before { - position: absolute; - top: 0; - left: 0; - content: ""; - width: 100%; - height: 100%; - border-bottom: 2px solid #d94f4f; - transform: rotate(45deg) translateY(-13px) translateX(-1px); } - -.components-color-palette__custom-color { +.components-circular-option-picker__dropdown-link-action { margin-right: 16px; } - .components-color-palette__custom-color .components-button { + .components-circular-option-picker__dropdown-link-action .components-button { line-height: 22px; } -.block-editor__container .components-popover.components-color-palette__picker.is-bottom { - z-index: 100001; } +.component-color-indicator { + width: 25px; + height: 16px; + margin-left: 0.8rem; + border: 1px solid #dadada; + display: inline-block; } + .component-color-indicator + .component-color-indicator { + margin-left: 0.5rem; } /** * Parts of this source were derived and modified from react-color, @@ -609,8 +724,9 @@ * THE SOFTWARE. */ .components-color-picker { - width: 100%; - overflow: hidden; } + width: 100%; } + .components-color-picker * { + box-sizing: border-box; } .components-color-picker__saturation { width: 100%; @@ -669,21 +785,25 @@ bottom: 0; } .components-color-picker__saturation-color { - overflow: hidden; } + overflow: visible; } .components-color-picker__saturation-white { + /*rtl:ignore*/ background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); } .components-color-picker__saturation-black { background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); } -.components-color-picker__saturation-pointer { - width: 8px; - height: 8px; - box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); +.components-button.components-color-picker__saturation-pointer { + width: 14px; + height: 14px; + padding: 0; border-radius: 50%; background-color: transparent; - transform: translate(-4px, -4px); } + transform: translate(-50%, -50%); + box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #000, 0 0 0 2px #000; } + .components-button.components-color-picker__saturation-pointer:focus:not(:disabled) { + box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px #000, 0 0 0 3px #000; } /* HUE & ALPHA BARS */ .components-color-picker__toggles { @@ -718,10 +838,12 @@ padding: 0 2px; } .components-color-picker__hue-gradient { + /*rtl:ignore*/ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); } .components-color-picker__hue-pointer, .components-color-picker__alpha-pointer { + /*rtl:ignore*/ left: 0; width: 14px; height: 14px; @@ -733,14 +855,21 @@ .components-color-picker__hue-pointer, .components-color-picker__saturation-pointer { transition: box-shadow 0.1s linear; } + @media (prefers-reduced-motion: reduce) { + .components-color-picker__hue-pointer, + .components-color-picker__saturation-pointer { + transition-duration: 0s; } } .components-color-picker__saturation-pointer:focus { - box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00a0d2, 0 0 5px 0 #00a0d2, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); } + box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007cba, 0 0 5px 0 #007cba, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); + box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color), 0 0 5px 0 var(--wp-admin-theme-color), inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4); } .components-color-picker__hue-pointer:focus, .components-color-picker__alpha-pointer:focus { - border-color: #00a0d2; - box-shadow: 0 0 0 2px #00a0d2, 0 0 3px 0 #00a0d2; + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 2px #007cba, 0 0 3px 0 #007cba; + box-shadow: 0 0 0 2px var(--wp-admin-theme-color), 0 0 3px 0 var(--wp-admin-theme-color); outline: 2px solid transparent; outline-offset: -2px; } @@ -749,16 +878,216 @@ margin: 0 -4px; padding-top: 16px; display: flex; - align-items: flex-end; } + align-items: flex-end; + min-width: 255px; } .components-color-picker__inputs-wrapper fieldset { - flex: 1; } + flex: 1; + border: none; + margin: 0; + padding: 0; } .components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type="number"] { - padding: 2px; } + padding: 6px 3px; + margin: 0; } + +.components-color-picker__inputs-field { + width: 100%; } .components-color-picker__inputs-fields { - display: flex; } + display: flex; + /*rtl:ignore*/ + direction: ltr; + flex-grow: 1; + margin-right: 4px; } + .components-color-picker__inputs-fields .components-base-control + .components-base-control { + margin-top: 0; } .components-color-picker__inputs-fields .components-base-control__field { - margin: 0 4px; } + margin: 0 2px; } + +.components-color-picker__inputs-toggle { + height: 30px; + padding: 0 5px; } + +.components-combobox-control { + color: #555d66; + position: relative; } + +.components-combobox-control__label { + display: block; + margin-bottom: 5px; } + +.components-combobox-control__button { + border: 1px solid #7e8993; + border-radius: 4px; + color: #555d66; + display: inline-block; + min-height: 30px; + min-width: 130px; + position: relative; + text-align: left; } + .components-combobox-control__button:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } + .components-combobox-control__button-input { + border: none; + height: calc(100% - 2px); + left: 1px; + padding: 0 4px; + position: absolute; + top: 1px; + width: calc(100% - 2px); } + .components-combobox-control__button-button:hover { + box-shadow: none !important; } + .components-combobox-control__button-icon { + height: 100%; + padding: 0 4px; + position: absolute; + right: 0; + top: 0; } + +.components-combobox-control__menu { + background: #fff; + min-width: 100%; + padding: 0; + position: absolute; + z-index: 1000000; } + +.components-combobox-control__item { + align-items: center; + display: flex; + list-style-type: none; + padding: 10px 5px 10px 25px; } + .components-combobox-control__item.is-highlighted { + background: #ddd; } + .components-combobox-control__item-icon { + margin-left: -20px; + margin-right: 0; } + +.components-custom-gradient-picker { + margin-top: 8px; } + +.components-custom-gradient-picker__gradient-bar:not(.has-gradient) { + opacity: 0.4; } + +.components-custom-gradient-picker__gradient-bar { + width: 100%; + height: 24px; + border-radius: 24px; + margin-bottom: 8px; + padding-left: 3px; + padding-right: 21px; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container { + position: relative; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point { + border-radius: 50%; + background: #fff; + padding: 2px; + min-width: 24px; + width: 24px; + height: 24px; + position: relative; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg { + height: 100%; + width: 100%; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button { + border: 2px solid #fff; + border-radius: 50%; + height: 18px; + padding: 0; + position: absolute; + width: 18px; + top: 3px; } + .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { + background: #fafafa; + color: #23282d; + border-color: #999; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } + +.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point { + margin-left: auto; + margin-right: auto; + display: block; + margin-bottom: 8px; } + +.components-custom-gradient-picker__inserter { + width: 100%; } + +.components-custom-gradient-picker__liner-gradient-indicator { + display: inline-block; + flex: 0 auto; + width: 20px; + height: 20px; } + +.components-custom-gradient-picker__ui-line { + display: flex; + justify-content: space-between; } + +.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker, +.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker { + margin-bottom: 0; } + +.components-custom-gradient-picker .components-custom-gradient-picker__toolbar { + border: none; } + .components-custom-gradient-picker .components-custom-gradient-picker__toolbar > div + div { + margin-left: 1px; } + .components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed > svg { + background: #fff; + border: 1px solid #7e8993; + border-radius: 2px; } + +.components-custom-select-control { + position: relative; } + +.components-custom-select-control__label { + display: block; + margin-bottom: 8px; } + +.components-custom-select-control__button { + border: 1px solid #757575; + border-radius: 2px; + min-height: 30px; + min-width: 130px; + position: relative; + text-align: left; } + .components-custom-select-control__button.components-custom-select-control__button { + padding-right: 24px; } + .components-custom-select-control__button:focus:not(:disabled) { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); } + .components-custom-select-control__button .components-custom-select-control__button-icon { + height: 100%; + padding: 0; + position: absolute; + right: 0; + top: 0; } + +.components-custom-select-control__menu { + background-color: #fff; + max-height: 400px; + min-width: 100%; + overflow: auto; + padding: 0; + position: absolute; + z-index: 1000000; } + .components-custom-select-control__menu:focus { + border: 1px solid #1e1e1e; + border-radius: 2px; + outline: none; + transition: none; } + +.components-custom-select-control__item { + align-items: center; + display: flex; + list-style-type: none; + padding: 10px 5px 10px 25px; + cursor: default; } + .components-custom-select-control__item.is-highlighted { + background: #ddd; } + .components-custom-select-control__item-icon { + margin-left: -20px; + margin-right: 0; } svg.dashicon { fill: currentColor; @@ -1131,7 +1460,6 @@ text-align: center; vertical-align: top; -webkit-user-select: none; - -moz-user-select: none; -ms-user-select: none; user-select: none; } @@ -1207,7 +1535,6 @@ .DayPickerNavigation_button { cursor: pointer; -webkit-user-select: none; - -moz-user-select: none; -ms-user-select: none; user-select: none; border: 0; @@ -1404,7 +1731,6 @@ .DateInput_input__readOnly { -webkit-user-select: none; - -moz-user-select: none; -ms-user-select: none; user-select: none; } @@ -1587,75 +1913,92 @@ fill: #cacccd; } /*rtl:end:ignore*/ -.components-datetime .components-datetime__calendar-help { - padding: 8px; } - .components-datetime .components-datetime__calendar-help h4 { +.components-datetime { + padding: 0; } + .components-datetime .components-datetime__calendar-help { + padding: 16px; } + .components-datetime .components-datetime__calendar-help h4 { + margin: 0; } + .components-datetime .components-datetime__buttons { + display: flex; + justify-content: space-between; } + .components-datetime .components-datetime__date-help-toggle { + display: block; + margin-left: auto; } + .components-datetime fieldset { + border: 0; + padding: 0; margin: 0; } - -.components-datetime .components-datetime__date-help-button { - display: block; - margin-left: auto; - margin-right: 8px; - margin-top: 0.5em; } + .components-datetime select, + .components-datetime input { + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; } + @media (prefers-reduced-motion: reduce) { + .components-datetime select, + .components-datetime input { + transition-duration: 0s; } } + .components-datetime select, + .components-datetime input[type="number"], + .components-datetime .components-button { + height: 30px; + margin-top: 0; + margin-bottom: 0; } .components-datetime__date { min-height: 236px; - border-top: 1px solid #e2e4e7; - margin-left: -8px; - margin-right: -8px; } + border-top: 1px solid #ddd; } + .components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault { + left: 0; } .components-datetime__date .CalendarMonth_caption { font-size: 13px; } + .components-datetime__date .CalendarMonth_table { + border-collapse: separate; + border-spacing: 2px; } .components-datetime__date .CalendarDay { font-size: 13px; - border: 1px solid transparent; + border: none; border-radius: 50%; text-align: center; } + .components-datetime__date .CalendarDay:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 2.5px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 2.5px #fff; + outline: 2px solid transparent; } .components-datetime__date .CalendarDay__selected { - background: #0085ba; } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected { - background: #d1864a; } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected { - background: #a3b9a2; } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected { - background: #e14d43; } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected { - background: #a7b656; } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected { - background: #c2a68c; } - body.admin-color-blue .components-datetime__date .CalendarDay__selected { - background: #82b4cb; } - body.admin-color-light .components-datetime__date .CalendarDay__selected { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); + border: 2px solid transparent; } .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } - body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover { - background: rgb(178, 114, 63); } - body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover { - background: rgb(139, 157, 138); } - body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover { - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover { - background: rgb(142, 155, 73); } - body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover { - background: rgb(165, 141, 119); } - body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover { - background: rgb(111, 153, 173); } - body.admin-color-light .components-datetime__date .CalendarDay__selected:hover { - background: rgb(0, 113, 158); } + background: #005a87; + background: var(--wp-admin-theme-color-darker-20); } + .components-datetime__date .CalendarDay__selected:focus { + box-shadow: inset 0 0 0 1px #fff; } .components-datetime__date .DayPickerNavigation_button__horizontalDefault { padding: 2px 8px; top: 20px; } + .components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } .components-datetime__date .DayPicker_weekHeader { top: 50px; } - .components-datetime__date.is-description-visible .DayPicker, - .components-datetime__date.is-description-visible .components-datetime__date-help-button { + .components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul { + margin: 1px 0; + padding-left: 0; + padding-right: 0; } + .components-datetime__date.is-description-visible .DayPicker { visibility: hidden; } .components-datetime__time { - margin-bottom: 1em; } + padding-bottom: 16px; } .components-datetime__time fieldset { - margin-top: 0.5em; - position: relative; } + position: relative; + margin-bottom: 0.5em; } + .components-datetime__time fieldset + fieldset { + margin-bottom: 0; } .components-datetime__time .components-datetime__time-field-am-pm fieldset { margin-top: 0; } .components-datetime__time .components-datetime__time-wrapper { @@ -1664,48 +2007,30 @@ display: inline-block; padding: 0 3px 0 0; color: #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button { - margin-left: 8px; - margin-right: -1px; - border-radius: 3px 0 0 3px; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button { - margin-left: -1px; - border-radius: 0 3px 3px 0; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled, - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled { - background: #edeff0; - border-color: #8f98a1; - box-shadow: inset 0 2px 5px -3px #555d66; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field { - align-self: center; - flex: 0 1 auto; - order: 1; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button { - font-size: 11px; - font-weight: 600; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { - padding: 2px; - margin-right: 4px; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { - position: relative; - z-index: 1; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] { - padding: 2px; - margin-right: 4px; - width: 40px; - text-align: center; - -moz-appearance: textfield; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus { - position: relative; - z-index: 1; } - .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time { + /*rtl:ignore*/ + direction: ltr; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { + margin-right: 4px; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { + position: relative; + z-index: 1; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] { + padding: 2px; + margin-right: 4px; + text-align: center; + -moz-appearance: textfield; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus { + position: relative; + z-index: 1; } + .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; } .components-datetime__time.is-12-hour .components-datetime__time-field-day input { - margin: 0 -4px 0 0 !important; - border-radius: 4px 0 0 4px !important; } + margin: -4px 0 0 !important; + border-radius: 2px 0 0 2px !important; } .components-datetime__time.is-12-hour .components-datetime__time-field-year input { - border-radius: 0 4px 4px 0 !important; } + border-radius: 0 2px 2px 0 !important; } .components-datetime__time-legend { font-weight: 600; @@ -1724,13 +2049,25 @@ width: 55px; } .components-datetime__time-field-month-select { - width: 90px; } + max-width: 145px; } .components-popover .components-datetime__date { - padding-left: 6px; } - -.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left { - z-index: 100000; } + padding-left: 4px; } + +.block-editor-dimension-control .components-base-control__field { + display: flex; + align-items: center; } + +.block-editor-dimension-control .components-base-control__label { + display: flex; + align-items: center; + margin-right: 1em; + margin-bottom: 0; } + .block-editor-dimension-control .components-base-control__label .dashicon { + margin-right: 0.5em; } + +.block-editor-dimension-control.is-manual .components-base-control__label { + width: 10em; } .components-disabled { position: relative; @@ -1748,7 +2085,6 @@ body.is-dragging-components-draggable { cursor: move; /* Fallback for IE/Edge < 14 */ - cursor: -webkit-grabbing !important; cursor: grabbing !important; } .components-draggable__invisible-drag-image { @@ -1759,11 +2095,10 @@ .components-draggable__clone { position: fixed; - padding: 20px; + padding: 0; background: transparent; pointer-events: none; - z-index: 1000000000; - opacity: 0.8; } + z-index: 1000000000; } .components-drop-zone { position: absolute; @@ -1771,30 +2106,41 @@ right: 0; bottom: 0; left: 0; - z-index: 100; + z-index: 40; visibility: hidden; opacity: 0; transition: 0.3s opacity, 0.3s background-color, 0s visibility 0.3s; - border: 2px solid #0071a1; + border: 2px solid #007cba; + border: 2px solid var(--wp-admin-theme-color); border-radius: 2px; } + @media (prefers-reduced-motion: reduce) { + .components-drop-zone { + transition-duration: 0s; } } .components-drop-zone.is-active { opacity: 1; visibility: visible; transition: 0.3s opacity, 0.3s background-color; } + @media (prefers-reduced-motion: reduce) { + .components-drop-zone.is-active { + transition-duration: 0s; } } .components-drop-zone.is-dragging-over-element { - background-color: rgba(0, 113, 161, 0.8); } + background-color: #007cba; + background-color: var(--wp-admin-theme-color); } .components-drop-zone__content { position: absolute; top: 50%; left: 0; right: 0; - z-index: 110; + z-index: 50; transform: translateY(-50%); width: 100%; text-align: center; color: #fff; transition: transform 0.2s ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-drop-zone__content { + transition-duration: 0s; } } .components-drop-zone.is-dragging-over-element .components-drop-zone__content { transform: translateY(-50%) scale(1.05); } @@ -1805,7 +2151,8 @@ .components-drop-zone__content-icon { margin: 0 auto; - line-height: 0; } + line-height: 0; + fill: currentColor; } .components-drop-zone__content-text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } @@ -1813,96 +2160,93 @@ .components-drop-zone__provider { height: 100%; } -.components-dropdown-menu { - padding: 3px; - display: flex; } - .components-dropdown-menu .components-dropdown-menu__toggle { - width: auto; - margin: 0; - padding: 4px; - border: 1px solid transparent; - display: flex; - flex-direction: row; } - .components-dropdown-menu .components-dropdown-menu__toggle.is-active, .components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover { - box-shadow: none; - background-color: #555d66; - color: #fff; } - .components-dropdown-menu .components-dropdown-menu__toggle:focus::before { - top: -3px; - right: -3px; - bottom: -3px; - left: -3px; } - .components-dropdown-menu .components-dropdown-menu__toggle:hover, .components-dropdown-menu .components-dropdown-menu__toggle:focus, .components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid currentColor; - margin-left: 4px; - margin-right: 2px; } +.components-dropdown { + display: inline-block; } + +.components-dropdown__content .components-popover__content > div { + padding: 12px; } .components-dropdown-menu__popover .components-popover__content { width: 200px; } .components-dropdown-menu__menu { width: 100%; - padding: 9px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item { + .components-dropdown-menu__menu .components-dropdown-menu__menu-item, + .components-dropdown-menu__menu .components-menu-item { width: 100%; padding: 6px; outline: none; cursor: pointer; margin-bottom: 4px; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator { + .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator, + .components-dropdown-menu__menu .components-menu-item.has-separator { margin-top: 6px; position: relative; overflow: visible; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before { + .components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator::before, + .components-dropdown-menu__menu .components-menu-item.has-separator::before { display: block; content: ""; box-sizing: content-box; - background-color: #e2e4e7; + background-color: #ddd; position: absolute; top: -3px; left: 0; right: 0; height: 1px; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled="true"]):not(.is-default) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg { - border-radius: 4px; - padding: 2px; + .components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg, + .components-dropdown-menu__menu .components-menu-item.is-active svg { + color: #fff; + background: #1e1e1e; + box-shadow: 0 0 0 1px #1e1e1e; + border-radius: 1px; } + .components-dropdown-menu__menu .components-dropdown-menu__menu-item > svg, + .components-dropdown-menu__menu .components-menu-item > svg { + border-radius: 2px; width: 24px; - height: 24px; - margin: -1px 8px -1px 0; } - .components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled="true"]):not(.is-default).is-active > svg { - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } + height: 24px; } + .components-dropdown-menu__menu .components-menu-item__button, + .components-dropdown-menu__menu .components-menu-item__button.components-button { + min-height: 36px; + height: auto; + padding-left: 40px; + text-align: left; } + .components-dropdown-menu__menu .components-menu-item__button.has-icon, + .components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon { + padding-left: 8px; } + .components-dropdown-menu__menu .components-menu-group { + padding: 12px; + margin-top: 0; + margin-bottom: 0; + margin-left: -12px; + margin-right: -12px; } + .components-dropdown-menu__menu .components-menu-group:first-child { + margin-top: -12px; } + .components-dropdown-menu__menu .components-menu-group:last-child { + margin-bottom: -12px; } + .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + margin-top: 0; + border-top: 1px solid #ccc; + padding: 12px; } + .is-alternate .components-dropdown-menu__menu .components-menu-group + .components-menu-group { + border-color: #1e1e1e; } + +.components-dropdown-menu__menu.no-icons .components-menu-item__button.components-button { + padding: 0 12px; } .components-external-link__icon { width: 1.4em; height: 1.4em; margin: -0.2em 0.1em 0; - vertical-align: middle; } + vertical-align: middle; + fill: currentColor; } .components-focal-point-picker-wrapper { background-color: transparent; - border: 1px solid #e2e4e7; + border: 1px solid #ddd; height: 200px; width: 100%; padding: 14px; } @@ -1921,13 +2265,11 @@ max-width: 100%; width: auto; -webkit-user-select: none; - -moz-user-select: none; -ms-user-select: none; user-select: none; } .components-focal-point-picker__icon_container { background-color: transparent; - cursor: -webkit-grab; cursor: grab; height: 30px; opacity: 0.8; @@ -1936,7 +2278,6 @@ width: 30px; z-index: 10000; } .components-focal-point-picker__icon_container.is-dragging { - cursor: -webkit-grabbing; cursor: grabbing; } .components-focal-point-picker__icon { @@ -1949,21 +2290,8 @@ .components-focal-point-picker__icon .components-focal-point-picker__icon-outline { fill: #fff; } .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } - body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #d1864a; } - body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a3b9a2; } - body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #e14d43; } - body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #a7b656; } - body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #c2a68c; } - body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #82b4cb; } - body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill { - fill: #0085ba; } + fill: #007cba; + fill: var(--wp-admin-theme-color); } .components-focal-point-picker_position-display-container { margin: 1em 0; @@ -1976,179 +2304,128 @@ .components-focal-point-picker_position-display-container span { margin: 0 0 0 0.2em; } -.components-font-size-picker__buttons { +.components-font-size-picker__controls { max-width: 248px; display: flex; - justify-content: space-between; - align-items: center; } - .components-font-size-picker__buttons .components-range-control__number { + flex-wrap: wrap; + align-items: center; + margin-bottom: 24px; } + .components-font-size-picker__controls .components-font-size-picker__number { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + display: inline-block; + font-weight: 500; height: 30px; - margin-left: 0; } - .components-font-size-picker__buttons .components-range-control__number[value=""] + .components-button { + margin-bottom: 0; + margin-left: 0; + margin-right: 8px; + margin-top: 8px; + width: 54px; } + @media (prefers-reduced-motion: reduce) { + .components-font-size-picker__controls .components-font-size-picker__number { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-font-size-picker__controls .components-font-size-picker__number { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-font-size-picker__controls .components-font-size-picker__number:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-font-size-picker__controls .components-font-size-picker__number[value=""] + .components-button { cursor: default; opacity: 0.3; pointer-events: none; } + .components-font-size-picker__controls .components-font-size-picker__number-container { + display: flex; + flex-direction: column; } + .components-font-size-picker__controls .components-font-size-picker__select { + margin-right: 8px; } + .components-font-size-picker__controls .components-color-palette__clear { + height: 30px; + margin-top: 26px; } .components-font-size-picker__custom-input .components-range-control__slider + .dashicon { width: 30px; height: 30px; } -.components-font-size-picker__dropdown-content .components-button { - display: block; - position: relative; - padding: 10px 20px 10px 40px; - width: 100%; - text-align: left; } - .components-font-size-picker__dropdown-content .components-button .dashicon { - position: absolute; - top: calc(50% - 10px); - left: 10px; } - .components-font-size-picker__dropdown-content .components-button:hover { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .components-font-size-picker__dropdown-content .components-button:focus { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - -.components-font-size-picker__buttons .components-font-size-picker__selector { - border: 1px solid; - background: none; - position: relative; - width: 110px; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #8d96a0; } - .components-font-size-picker__buttons .components-font-size-picker__selector:focus { - color: #191e23; - border-color: #00a0d2; - box-shadow: 0 0 0 1px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - .components-font-size-picker__buttons .components-font-size-picker__selector::after { - content: ""; - pointer-events: none; - display: block; - width: 0; - height: 0; - border-left: 3px solid transparent; - border-right: 3px solid transparent; - border-top: 5px solid currentColor; - margin-left: 4px; - margin-right: 2px; - right: 8px; - top: 12px; - position: absolute; } - -.components-form-file-upload .components-button.is-large { - padding-left: 6px; } +.components-font-size-picker { + border: 0; + padding: 0; + margin: 0; } .components-form-toggle { position: relative; display: inline-block; } - .components-form-toggle .components-form-toggle__on, - .components-form-toggle .components-form-toggle__off { - position: absolute; - top: 6px; - box-sizing: border-box; } - .components-form-toggle .components-form-toggle__off { - color: #6c7781; - fill: currentColor; - right: 6px; } - .components-form-toggle .components-form-toggle__on { - left: 8px; } .components-form-toggle .components-form-toggle__track { content: ""; display: inline-block; box-sizing: border-box; vertical-align: top; background-color: #fff; - border: 2px solid #6c7781; + border: 1px solid #1e1e1e; width: 36px; height: 18px; border-radius: 9px; transition: 0.2s background ease; } + @media (prefers-reduced-motion: reduce) { + .components-form-toggle .components-form-toggle__track { + transition-duration: 0s; } } .components-form-toggle .components-form-toggle__thumb { display: block; position: absolute; box-sizing: border-box; - top: 4px; - left: 4px; - width: 10px; - height: 10px; + top: 3px; + left: 3px; + width: 12px; + height: 12px; border-radius: 50%; transition: 0.1s transform ease; - background-color: #6c7781; - border: 5px solid #6c7781; } - .components-form-toggle:hover .components-form-toggle__track { - border: 2px solid #555d66; } - .components-form-toggle:hover .components-form-toggle__thumb { - background-color: #555d66; - border: 5px solid #6c7781; } - .components-form-toggle:hover .components-form-toggle__off { - color: #555d66; } + background-color: #1e1e1e; + border: 5px solid #1e1e1e; } + @media (prefers-reduced-motion: reduce) { + .components-form-toggle .components-form-toggle__thumb { + transition-duration: 0s; } } .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; + background-color: #007cba; + background-color: var(--wp-admin-theme-color); + border: 1px solid #007cba; + border: 1px solid var(--wp-admin-theme-color); border: 9px solid transparent; } - body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track { - background-color: #11a0d2; - border: 2px solid #11a0d2; } - .components-form-toggle__input:focus + .components-form-toggle__track { - box-shadow: 0 0 0 2px #fff, 0 0 0 3px #6c7781; + .components-form-toggle .components-form-toggle__input:focus + .components-form-toggle__track { + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); outline: 2px solid transparent; outline-offset: 2px; } .components-form-toggle.is-checked .components-form-toggle__thumb { background-color: #fff; border-width: 0; transform: translateX(18px); } - .components-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } - body.admin-color-sunrise .components-form-toggle.is-checked::before { - background-color: #c8b03c; - border: 2px solid #c8b03c; } - body.admin-color-ocean .components-form-toggle.is-checked::before { - background-color: #a3b9a2; - border: 2px solid #a3b9a2; } - body.admin-color-midnight .components-form-toggle.is-checked::before { - background-color: #77a6b9; - border: 2px solid #77a6b9; } - body.admin-color-ectoplasm .components-form-toggle.is-checked::before { - background-color: #a7b656; - border: 2px solid #a7b656; } - body.admin-color-coffee .components-form-toggle.is-checked::before { - background-color: #c2a68c; - border: 2px solid #c2a68c; } - body.admin-color-blue .components-form-toggle.is-checked::before { - background-color: #82b4cb; - border: 2px solid #82b4cb; } - body.admin-color-light .components-form-toggle.is-checked::before { - background-color: #11a0d2; - border: 2px solid #11a0d2; } .components-disabled .components-form-toggle { opacity: 0.3; } @@ -2168,51 +2445,65 @@ .components-form-toggle input.components-form-toggle__input[type="checkbox"]::before { content: ""; } -.components-form-toggle .components-form-toggle__on { - outline: 1px solid transparent; - outline-offset: -1px; - border: 1px solid #000; - filter: invert(100%) contrast(500%); } - -@supports (-ms-high-contrast-adjust: auto) { - .components-form-toggle .components-form-toggle__on { - filter: none; - border: 1px solid #fff; } } - .components-form-token-field__input-container { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; - margin: 0; + margin: 0 0 8px 0; padding: 4px; - background-color: #fff; - border: 1px solid #ccd0d4; - color: #32373c; - cursor: text; - box-shadow: 0 0 0 transparent; - transition: box-shadow 0.1s linear; - border-radius: 4px; - border: 1px solid #8d96a0; } + cursor: text; } + @media (prefers-reduced-motion: reduce) { + .components-form-token-field__input-container { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-form-token-field__input-container { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-form-token-field__input-container:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-form-token-field__input-container::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-form-token-field__input-container:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-form-token-field__input-container.is-disabled { - background: #e2e4e7; + background: #ddd; border-color: #ccd0d4; } - .components-form-token-field__input-container.is-active { - color: #191e23; - border-color: #00a0d2; - box-shadow: 0 0 0 1px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } .components-form-token-field__input-container input[type="text"].components-form-token-field__input { display: inline-block; width: 100%; max-width: 100%; - margin: 2px 0 2px 8px; + margin-left: 4px; padding: 0; min-height: 24px; background: inherit; border: 0; - color: #23282d; + color: #1e1e1e; box-shadow: none; } .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 { @@ -2225,6 +2516,9 @@ display: inline-block; margin-bottom: 4px; } +.components-form-token-field__help { + font-style: italic; } + .components-form-token-field__token { font-size: 13px; display: flex; @@ -2245,21 +2539,8 @@ padding: 0 16px 0 0; } .components-form-token-field__token.is-borderless .components-form-token-field__token-text { background: transparent; - color: #11a0d2; } - body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c8b03c; } - body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #a89d8a; } - body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #77a6b9; } - body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c77430; } - body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #9fa47b; } - body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #d9ab59; } - body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text { - color: #c75726; } + color: #007cba; + color: var(--wp-admin-theme-color); } .components-form-token-field__token.is-borderless .components-form-token-field__remove-token { background: transparent; color: #555d66; @@ -2273,16 +2554,22 @@ border-radius: 4px 0 0 4px; padding: 0 4px 0 6px; } .components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text { - color: #23282d; } + color: #1e1e1e; } .components-form-token-field__token.is-disabled .components-form-token-field__remove-token { cursor: default; } .components-form-token-field__token-text, -.components-form-token-field__remove-token.components-icon-button { +.components-form-token-field__remove-token.components-button { display: inline-block; line-height: 24px; - background: #e2e4e7; + height: auto; + background: #ddd; transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1); } + @media (prefers-reduced-motion: reduce) { + .components-form-token-field__token-text, + .components-form-token-field__remove-token.components-button { + transition-duration: 0s; + animation-duration: 1ms; } } .components-form-token-field__token-text { border-radius: 12px 0 0 12px; @@ -2291,14 +2578,14 @@ overflow: hidden; text-overflow: ellipsis; } -.components-form-token-field__remove-token.components-icon-button { +.components-form-token-field__remove-token.components-button { cursor: pointer; border-radius: 0 12px 12px 0; padding: 0 2px; color: #555d66; line-height: 10px; overflow: initial; } - .components-form-token-field__remove-token.components-icon-button:hover { + .components-form-token-field__remove-token.components-button:hover { color: #32373c; } .components-form-token-field__suggestions-list { @@ -2311,6 +2598,9 @@ border-top: 1px solid #6c7781; margin: 4px -4px -4px; padding-top: 3px; } + @media (prefers-reduced-motion: reduce) { + .components-form-token-field__suggestions-list { + transition-duration: 0s; } } .components-form-token-field__suggestion { color: #555d66; @@ -2319,109 +2609,163 @@ padding: 4px 8px; cursor: pointer; } .components-form-token-field__suggestion.is-selected { - background: #0071a1; + background: #007cba; + background: var(--wp-admin-theme-color); color: #fff; } .components-form-token-field__suggestion-match { text-decoration: underline; } -.components-navigate-regions.is-focusing-regions [role="region"]:focus::after { - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - pointer-events: none; - outline: 4px solid transparent; - box-shadow: inset 0 0 0 4px #33b3db; } - -@supports (outline-offset: 1px) { +@media (min-width: 600px) { + .components-guide { + width: 600px; } } + +.components-guide .components-modal__header { + background: none; + border-bottom: none; + width: 100%; + padding: 0; + margin: 0; } + .components-guide .components-modal__header .components-button { + align-self: flex-start; + margin: 8px 8px 0 0; + position: static; } + .components-guide .components-modal__header .components-button:hover svg { + fill: #fff; } + +.components-guide__container { + display: flex; + flex-direction: column; + justify-content: space-between; + margin-top: -60px; + min-height: 100%; } + +.components-guide__page { + display: flex; + flex-direction: column; + justify-content: center; + position: relative; } + @media (min-width: 600px) { + .components-guide__page { + min-height: 300px; } } + +.components-guide__footer { + align-content: center; + display: flex; + height: 30px; + justify-content: center; + margin: 0 0 24px 0; + padding: 0 32px; + position: relative; + width: 100%; } + @media (max-width: 600px) { + .components-guide__footer { + position: absolute; + bottom: 0; } } + +.components-guide__page-control { + margin: 8px 0 8px 0; + text-align: center; } + .components-guide__page-control li { + display: inline-block; } + .components-guide__page-control .components-button { + height: 30px; + min-width: 20px; } + +.components-guide .components-modal__content { + padding: 0; } + +.components-modal__frame.components-guide { + border: none; + min-width: 312px; + height: 80vh; + max-height: 575px; } + @media (max-width: 600px) { + .components-modal__frame.components-guide { + bottom: 5%; + left: 16px; + right: 16px; + top: 5%; + margin: 0 auto; } } + +.components-button.components-guide__back-button, .components-button.components-guide__forward-button, .components-button.components-guide__finish-button { + height: 30px; + position: absolute; } + +.components-button.components-guide__back-button, .components-button.components-guide__forward-button { + font-size: 13px; + padding: 4px 2px; } + .components-button.components-guide__back-button.has-text svg, .components-button.components-guide__forward-button.has-text svg { + margin: 0; } + .components-button.components-guide__back-button:hover, .components-button.components-guide__forward-button:hover { + text-decoration: underline; } + +.components-button.components-guide__back-button { + left: 32px; } + +.components-button.components-guide__forward-button { + right: 32px; + color: #1386bf; + font-weight: bold; } + +.components-button.components-guide__finish-button { + right: 32px; } + +.components-button.components-guide__inline-finish-button { + display: none; } + +.components-navigate-regions.is-focusing-regions [role="region"] { + position: relative; } .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { - content: none; } - .components-navigate-regions.is-focusing-regions [role="region"]:focus { - outline-style: solid; - outline-color: #33b3db; - outline-width: 4px; - outline-offset: -4px; } } - -.components-icon-button { - display: flex; - align-items: center; - padding: 8px; - margin: 0; - border: none; - background: none; - color: #555d66; - position: relative; - overflow: hidden; - border-radius: 4px; } - .components-icon-button .dashicon { + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + pointer-events: none; + outline: 4px solid transparent; + box-shadow: inset 0 0 0 4px #007cba; + box-shadow: inset 0 0 0 4px var(--wp-admin-theme-color); } + @supports (outline-offset: 1px) { + .components-navigate-regions.is-focusing-regions [role="region"]:focus::after { + content: none; } + .components-navigate-regions.is-focusing-regions [role="region"]:focus { + outline-style: solid; + outline-color: #007cba; + outline-color: var(--wp-admin-theme-color); + outline-width: 4px; + outline-offset: -4px; } } + +.components-menu-group + .components-menu-group { + margin-top: 8px; + padding-top: 8px; + border-top: 1px solid #1e1e1e; } + +.components-menu-group__label { + padding: 0; + margin-bottom: 12px; + color: #757575; + text-transform: uppercase; + font-size: 11px; + font-weight: 500; } + +.components-menu-item__button, +.components-menu-item__button.components-button { + width: 100%; } + .components-menu-item__button .dashicon, + .components-menu-item__button .components-menu-items__item-icon, + .components-menu-item__button svg.components-menu-items__item-icon, + .components-menu-item__button > span > svg, + .components-menu-item__button.components-button .dashicon, + .components-menu-item__button.components-button .components-menu-items__item-icon, + .components-menu-item__button.components-button svg.components-menu-items__item-icon, + .components-menu-item__button.components-button > span > svg { + margin-right: 8px; } + .components-menu-item__button .components-menu-items__item-icon, + .components-menu-item__button.components-button .components-menu-items__item-icon { display: inline-block; flex: 0 0 auto; } - .components-icon-button svg { - fill: currentColor; - outline: none; } - .components-icon-button.has-text svg { - margin-right: 4px; } - .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #e2e4e7, inset 0 0 0 2px #fff, 0 1px 1px rgba(25, 30, 35, 0.2); } - .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { - outline: none; - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff; } - .components-icon-button[aria-disabled="true"]:focus, .components-icon-button:disabled:focus { - box-shadow: none; } - -.components-menu-group { - width: 100%; - padding: 7px 0; } - -.components-menu-group__label { - margin-bottom: 8px; - color: #6c7781; - padding: 0 7px; } - -.components-menu-item__button, -.components-menu-item__button.components-icon-button { - width: 100%; - padding: 8px 15px; - text-align: left; - color: #40464d; } - .components-menu-item__button .dashicon, - .components-menu-item__button .components-menu-items__item-icon, - .components-menu-item__button > span > svg, - .components-menu-item__button.components-icon-button .dashicon, - .components-menu-item__button.components-icon-button .components-menu-items__item-icon, - .components-menu-item__button.components-icon-button > span > svg { - margin-right: 4px; } - .components-menu-item__button .components-menu-items__item-icon, - .components-menu-item__button.components-icon-button .components-menu-items__item-icon { - display: inline-block; - flex: 0 0 auto; } - .components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]), - .components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #555d66; } - @media (min-width: 782px) { - .components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]), - .components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } } - .components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]) .components-menu-item__shortcut, - .components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) .components-menu-item__shortcut { - opacity: 1; } - .components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]), - .components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } .components-menu-item__info-wrapper { display: flex; @@ -2430,32 +2774,43 @@ .components-menu-item__info { margin-top: 4px; font-size: 12px; - opacity: 0.84; } + color: #757575; } .components-menu-item__shortcut { - align-self: center; - opacity: 0.84; + -ms-grid-row-align: center; + align-self: center; margin-right: 0; margin-left: auto; - padding-left: 8px; + padding-left: 12px; + color: currentColor; display: none; } @media (min-width: 480px) { .components-menu-item__shortcut { display: inline; } } +.components-menu-items-choice, +.components-menu-items-choice.components-button { + padding-left: 40px; } + .components-menu-items-choice svg, + .components-menu-items-choice.components-button svg { + margin-right: 8px; } + .components-menu-items-choice.has-icon, + .components-menu-items-choice.components-button.has-icon { + padding-left: 8px; } + .components-modal__screen-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; - background-color: rgba(255, 255, 255, 0.4); + background-color: rgba(0, 0, 0, 0.7); z-index: 100000; animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation-fill-mode: forwards; } @media (prefers-reduced-motion: reduce) { .components-modal__screen-overlay { - animation-duration: 1ms !important; } } + animation-duration: 1ms; } } .components-modal__frame { position: absolute; @@ -2465,9 +2820,9 @@ left: 0; box-sizing: border-box; margin: 0; - border: 1px solid #e2e4e7; + border: 1px solid #ddd; background: #fff; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2); + box-shadow: 0 3px 30px rgba(0, 0, 0, 0.2); overflow: auto; } @media (min-width: 600px) { .components-modal__frame { @@ -2477,13 +2832,13 @@ left: 50%; min-width: 360px; max-width: calc(100% - 16px - 16px); - max-height: calc(100% - 56px - 56px); + max-height: calc(100% - 60px - 60px); transform: translate(-50%, -50%); animation: components-modal__appear-animation 0.1s ease-out; animation-fill-mode: forwards; } } @media (min-width: 600px) and (prefers-reduced-motion: reduce) { .components-modal__frame { - animation-duration: 1ms !important; } } + animation-duration: 1ms; } } @keyframes components-modal__appear-animation { from { @@ -2493,19 +2848,20 @@ .components-modal__header { box-sizing: border-box; - border-bottom: 1px solid #e2e4e7; - padding: 0 16px; + border-bottom: 1px solid #ddd; + padding: 0 24px; display: flex; flex-direction: row; justify-content: space-between; background: #fff; align-items: center; - height: 56px; + height: 60px; + z-index: 10; + position: relative; position: -webkit-sticky; position: sticky; top: 0; - z-index: 10; - margin: 0 -16px 16px; } + margin: 0 -24px 24px; } @supports (-ms-ime-align: auto) { .components-modal__header { position: fixed; @@ -2516,6 +2872,9 @@ .components-modal__header h1 { line-height: 1; margin: 0; } + .components-modal__header .components-button { + position: relative; + left: 8px; } .components-modal__header-heading-container { align-items: center; @@ -2534,18 +2893,21 @@ .components-modal__content { box-sizing: border-box; height: 100%; - padding: 0 16px 16px; } + padding: 0 24px 24px; } @supports (-ms-ime-align: auto) { .components-modal__content { - padding-top: 56px; } } + padding-top: 60px; } } .components-notice { + display: flex; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; - background-color: #e5f5fa; - border-left: 4px solid #00a0d2; + background-color: #fff; + border-left: 4px solid #007cba; + border-left: 4px solid var(--wp-admin-theme-color); margin: 5px 15px 2px; - padding: 8px 12px; } + padding: 8px 12px; + align-items: center; } .components-notice.is-dismissible { padding-right: 36px; position: relative; } @@ -2560,32 +2922,41 @@ background-color: #f9e2e2; } .components-notice__content { - margin: 1em 25px 1em 0; } + flex-grow: 1; + margin: 4px 25px 4px 0; } .components-notice__action.components-button, .components-notice__action.components-button.is-link { - margin-left: 4px; } - -.components-notice__action.components-button.is-default { + margin-left: 12px; } + +.components-notice__action.components-button.is-secondary { vertical-align: initial; } .components-notice__dismiss { - position: absolute; - top: 0; - right: 0; - color: #6c7781; } - .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):focus { - color: #d94f4f; + color: #6c7781; + align-self: flex-start; + flex-shrink: 0; } + .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 { + color: #1e1e1e; background-color: transparent; } - .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { + .components-notice__dismiss:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { box-shadow: none; } .components-notice-list { - min-width: 300px; + max-width: 100vw; + box-sizing: border-box; z-index: 29; } + .components-notice-list .components-notice__content { + margin-top: 12px; + margin-bottom: 12px; + line-height: 2; } + .components-notice-list .components-notice__action.components-button { + display: block; + margin-left: 0; + margin-top: 8px; } .components-panel { background: #fff; - border: 1px solid #e2e4e7; } + border: 1px solid #f0f0f0; } .components-panel > .components-panel__header:first-child, .components-panel > .components-panel__body:first-child { margin-top: -1px; } @@ -2597,23 +2968,21 @@ margin-top: -1px; } .components-panel__body { - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; } + border-top: 1px solid #f0f0f0; + border-bottom: 1px solid #f0f0f0; } .components-panel__body h3 { margin: 0 0 0.5em; } .components-panel__body.is-opened { padding: 16px; } - .components-panel__body > .components-icon-button { - color: #191e23; } .components-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; - height: 50px; - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; } + height: 48px; + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; } .components-panel__header h2 { margin: 0; font-size: inherit; @@ -2632,42 +3001,50 @@ margin-top: 0; margin-bottom: 0; transition: 0.1s background ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-panel__body > .components-panel__body-title { + transition-duration: 0s; } } .components-panel__body.is-opened > .components-panel__body-title { margin: -16px; margin-bottom: 5px; } -.components-panel__body > .components-panel__body-title:hover, -.edit-post-last-revision__panel > .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - background: #f3f4f5; } +.components-panel__body > .components-panel__body-title:hover { + background: #f0f0f0; + border: none; } .components-panel__body-toggle.components-button { position: relative; - padding: 15px; + padding: 16px; outline: none; width: 100%; - font-weight: 600; + font-weight: 500; text-align: left; - color: #191e23; + color: #1e1e1e; border: none; box-shadow: none; transition: 0.1s background ease-in-out; + height: auto; /* rtl:begin:ignore */ /* rtl:end:ignore */ } - .components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } + @media (prefers-reduced-motion: reduce) { + .components-panel__body-toggle.components-button { + transition-duration: 0s; } } + .components-panel__body-toggle.components-button:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); + border-radius: 0; } .components-panel__body-toggle.components-button .components-panel__arrow { position: absolute; - right: 10px; + right: 16px; top: 50%; transform: translateY(-50%); - color: #191e23; + color: #1e1e1e; fill: currentColor; transition: 0.1s color ease-in-out; } + @media (prefers-reduced-motion: reduce) { + .components-panel__body-toggle.components-button .components-panel__arrow { + transition-duration: 0s; } } body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right { transform: scaleX(-1); -ms-filter: fliph; @@ -2689,11 +3066,12 @@ display: flex; justify-content: space-between; align-items: center; - margin-top: 20px; } + margin-top: 8px; + min-height: 36px; } .components-panel__row select { min-width: 0; } .components-panel__row label { - margin-right: 10px; + margin-right: 12px; flex-shrink: 0; max-width: 75%; } .components-panel__row:empty, .components-panel__row:first-of-type { @@ -2702,28 +3080,42 @@ .components-panel .circle-picker { padding-bottom: 20px; } -.components-placeholder { - margin: 0; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; +.components-placeholder.components-placeholder { + position: relative; padding: 1em; min-height: 200px; width: 100%; - text-align: center; + text-align: left; + margin: 0; + color: #1e1e1e; + -moz-font-smoothing: subpixel-antialiased; + -webkit-font-smoothing: subpixel-antialiased; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + outline: 1px solid transparent; } + @supports ((position: -webkit-sticky) or (position: sticky)) { + .components-placeholder.components-placeholder { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; } } + .components-placeholder.components-placeholder .components-base-control__label { + font-size: 13px; } + +.components-placeholder__error, +.components-placeholder__instructions, +.components-placeholder__label, +.components-placeholder__fieldset { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - background: rgba(139, 139, 150, 0.1); } - .is-dark-theme .components-placeholder { - background: rgba(255, 255, 255, 0.15); } + font-size: 13px; } .components-placeholder__label { display: flex; - align-items: center; - justify-content: center; font-weight: 600; - margin-bottom: 1em; } + margin-bottom: 16px; + align-items: center; } + .components-placeholder__label > svg, .components-placeholder__label .dashicon, .components-placeholder__label .block-editor-block-icon { fill: currentColor; @@ -2733,138 +3125,234 @@ .components-placeholder__fieldset form { display: flex; flex-direction: row; - justify-content: center; width: 100%; - max-width: 400px; - flex-wrap: wrap; - z-index: 1; } + flex-wrap: wrap; } .components-placeholder__fieldset p, .components-placeholder__fieldset form p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; } -.components-placeholder__input { - margin-right: 8px; +.components-placeholder__fieldset.is-column-layout, +.components-placeholder__fieldset.is-column-layout form { + flex-direction: column; } + +.components-placeholder__input[type="url"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + margin: 0 8px 0 0; flex: 1 1 auto; } + @media (prefers-reduced-motion: reduce) { + .components-placeholder__input[type="url"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-placeholder__input[type="url"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-placeholder__input[type="url"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-placeholder__input[type="url"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-placeholder__input[type="url"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-placeholder__instructions { margin-bottom: 1em; } +.components-placeholder__error { + margin-top: 1em; + width: 100%; } + +.components-placeholder__preview img { + margin: 3%; + width: 50%; } + +.components-placeholder__fieldset .components-button { + margin-right: 12px; + margin-bottom: 12px; } + .components-placeholder__fieldset .components-button:last-child { + margin-bottom: 0; + margin-right: 0; } + +.components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link { + margin-left: 10px; + margin-right: 10px; } + .components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link:last-child { + margin-right: 0; } + +.components-placeholder.is-large .components-placeholder__label { + font-size: 18pt; + font-weight: normal; } + +.components-placeholder.is-medium .components-placeholder__instructions, .components-placeholder.is-small .components-placeholder__instructions { + display: none; } + +.components-placeholder.is-medium .components-placeholder__fieldset, +.components-placeholder.is-medium .components-placeholder__fieldset form, .components-placeholder.is-small .components-placeholder__fieldset, +.components-placeholder.is-small .components-placeholder__fieldset form { + flex-direction: column; } + +.components-placeholder.is-medium .components-placeholder__fieldset .components-button, .components-placeholder.is-small .components-placeholder__fieldset .components-button { + margin-right: auto; } + +.components-placeholder.is-small .components-button { + padding: 0 8px 2px; } + /*!rtl:begin:ignore*/ .components-popover { position: fixed; z-index: 1000000; - left: 50%; } - .components-popover.is-mobile { + top: 0; + left: 0; + opacity: 0; } + .components-popover.is-expanded, .components-popover[data-x-axis][data-y-axis] { + opacity: 1; } + .components-popover.is-expanded { top: 0; left: 0; right: 0; - bottom: 0; } - .components-popover:not(.is-without-arrow):not(.is-mobile) { + bottom: 0; + z-index: 1000000 !important; } + .components-popover:not(.is-without-arrow) { margin-left: 2px; } - .components-popover:not(.is-without-arrow):not(.is-mobile)::before { - border: 8px solid #e2e4e7; } - .components-popover:not(.is-without-arrow):not(.is-mobile)::after { + .components-popover:not(.is-without-arrow)::before { + border: 8px solid #ccc; } + .components-popover:not(.is-without-arrow).is-alternate::before { + border-color: #1e1e1e; } + .components-popover:not(.is-without-arrow)::after { border: 8px solid #fff; } - .components-popover:not(.is-without-arrow):not(.is-mobile)::before, .components-popover:not(.is-without-arrow):not(.is-mobile)::after { + .components-popover:not(.is-without-arrow)::before, .components-popover:not(.is-without-arrow)::after { content: ""; position: absolute; height: 0; width: 0; line-height: 0; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-top { + .components-popover:not(.is-without-arrow)[data-y-axis="top"] { margin-top: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before { + .components-popover:not(.is-without-arrow)[data-y-axis="top"]::before { bottom: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after { + .components-popover:not(.is-without-arrow)[data-y-axis="top"]::after { bottom: -6px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after { + .components-popover:not(.is-without-arrow)[data-y-axis="top"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="top"]::after { border-bottom: none; border-left-color: transparent; border-right-color: transparent; border-top-style: solid; margin-left: -10px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom { + .components-popover:not(.is-without-arrow)[data-y-axis="bottom"] { margin-top: 8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before { + .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::before { top: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after { + .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::after { top: -6px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after { + .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="bottom"]::after { border-bottom-style: solid; border-left-color: transparent; border-right-color: transparent; border-top: none; margin-left: -10px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"] { margin-left: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::before { right: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::after { right: -6px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="left"]::after { border-bottom-color: transparent; border-left-style: solid; border-right: none; border-top-color: transparent; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"] { margin-left: 8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::before { left: -8px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::after { left: -6px; } - .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after { + .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::before, .components-popover:not(.is-without-arrow)[data-y-axis="middle"][data-x-axis="right"]::after { border-bottom-color: transparent; border-left: none; border-right-style: solid; border-top-color: transparent; } - .components-popover:not(.is-mobile).is-top { + .components-popover[data-y-axis="top"] { bottom: 100%; } - .components-popover:not(.is-mobile).is-bottom { - top: 100%; - z-index: 99990; } - .components-popover:not(.is-mobile).is-middle { + .components-popover[data-y-axis="bottom"] { + top: 100%; } + .components-popover[data-y-axis="middle"] { align-items: center; display: flex; } + .components-popover.is-from-top { + margin-top: 12px; } + .components-popover.is-from-bottom { + margin-top: -12px; } + .components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom) { + margin-left: 12px; } + .components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom) { + margin-right: 12px; } .components-popover__content { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - border: 1px solid #e2e4e7; + height: 100%; background: #fff; - height: 100%; } - .components-popover.is-mobile .components-popover__content { - height: calc(100% - 50px); - border-top: 0; } - .components-popover:not(.is-mobile) .components-popover__content { + border: 1px solid #ccc; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); + border-radius: 2px; } + .is-alternate .components-popover__content { + border: 1px solid #1e1e1e; + box-shadow: none; } + .components-popover .components-popover__content { position: absolute; height: auto; overflow-y: auto; min-width: 260px; } - .components-popover:not(.is-mobile).is-top .components-popover__content { + .components-popover.is-expanded .components-popover__content { + position: static; + height: calc(100% - 48px); + overflow-y: visible; + min-width: auto; + border: none; + border-top: 1px solid #1e1e1e; } + .components-popover[data-y-axis="top"] .components-popover__content { bottom: 100%; } - .components-popover:not(.is-mobile).is-center .components-popover__content { + .components-popover[data-x-axis="center"] .components-popover__content { left: 50%; transform: translateX(-50%); } - .components-popover:not(.is-mobile).is-right .components-popover__content { + .components-popover[data-x-axis="right"] .components-popover__content { position: absolute; left: 100%; } - .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content { - margin-left: -24px; } - .components-popover:not(.is-mobile).is-left .components-popover__content { + .components-popover:not([data-y-axis="middle"])[data-x-axis="right"] .components-popover__content { + margin-left: -25px; } + .components-popover[data-x-axis="left"] .components-popover__content { position: absolute; right: 100%; } - .components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content { - margin-right: -24px; } - -.components-popover__content > div { - height: 100%; } + .components-popover:not([data-y-axis="middle"])[data-x-axis="left"] .components-popover__content { + margin-right: -25px; } .components-popover__header { align-items: center; background: #fff; - border: 1px solid #e2e4e7; display: flex; - height: 50px; + height: 48px; justify-content: space-between; padding: 0 8px 0 16px; } @@ -2874,186 +3362,219 @@ white-space: nowrap; width: 100%; } -.components-popover__close.components-icon-button { +.components-popover__close.components-button { z-index: 5; } /*!rtl:end:ignore*/ .components-radio-control { display: flex; flex-direction: column; } + .components-radio-control .components-base-control__help { + margin-top: 0; } + .components-radio-control .components-base-control__field { + margin-bottom: 0; } .components-radio-control__option:not(:last-child) { margin-bottom: 4px; } .components-radio-control__input[type="radio"] { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; + border: 1px solid #1e1e1e; + margin-right: 12px; + transition: none; + border-radius: 50%; margin-top: 0; margin-right: 6px; } - -.components-range-control .components-base-control__field { - display: flex; - justify-content: center; - flex-wrap: wrap; - align-items: center; } - -.components-range-control .dashicon { - flex-shrink: 0; - margin-right: 10px; } - -.components-range-control .components-base-control__label { - width: 100%; } - -.components-range-control .components-range-control__slider { - margin-left: 0; - flex: 1; } - -.components-range-control__slider { - width: 100%; - margin-left: 8px; - padding: 0; - -webkit-appearance: none; - background: transparent; - /** - * Thumb - */ - /** - * Track - */ } - .components-range-control__slider::-webkit-slider-thumb { - -webkit-appearance: none; - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: -7px; } - .components-range-control__slider::-moz-range-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; } - .components-range-control__slider::-ms-thumb { - height: 18px; - width: 18px; - border-radius: 50%; - cursor: pointer; - background: #555d66; - border: 4px solid transparent; - background-clip: padding-box; - box-sizing: border-box; - margin-top: 0; - height: 14px; - width: 14px; - border: 2px solid transparent; } - .components-range-control__slider:focus { - outline: none; } - .components-range-control__slider:focus::-webkit-slider-thumb { + @media (prefers-reduced-motion: reduce) { + .components-radio-control__input[type="radio"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-radio-control__input[type="radio"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-radio-control__input[type="radio"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-radio-control__input[type="radio"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-radio-control__input[type="radio"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .components-radio-control__input[type="radio"]:checked::before { + width: 7px; + height: 7px; + margin: 8px 0 0 8px; background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - .components-range-control__slider:focus::-moz-range-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - .components-range-control__slider:focus::-ms-thumb { - background-color: #fff; - color: #191e23; - box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - .components-range-control__slider::-webkit-slider-runnable-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; - margin-top: -4px; } - .components-range-control__slider::-moz-range-track { - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - .components-range-control__slider::-ms-track { - margin-top: -4px; - background: transparent; - border-color: transparent; - color: transparent; - height: 3px; - cursor: pointer; - background: #e2e4e7; - border-radius: 1.5px; } - -.components-range-control__number { - display: inline-block; - margin-left: 8px; - font-weight: 500; - width: 54px; } + border: 3px solid #fff; } + @media (min-width: 782px) { + .components-radio-control__input[type="radio"]:checked::before { + width: 6px; + height: 6px; + margin: 4px 0 0 4px; } } + .components-radio-control__input[type="radio"]:focus { + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #007cba; + box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-radio-control__input[type="radio"]:checked { + background: #007cba; + background: var(--wp-admin-theme-color); + border-color: #007cba; + border-color: var(--wp-admin-theme-color); } .components-resizable-box__handle { display: none; - width: 24px; - height: 24px; - padding: 4px; } - .components-resizable-box__container.is-selected .components-resizable-box__handle { + width: 23px; + height: 23px; } + .components-resizable-box__container.has-show-handle .components-resizable-box__handle { display: block; } -.components-resizable-box__handle::before { +.components-resizable-box__handle::after { display: block; content: ""; - width: 16px; - height: 16px; + width: 15px; + height: 15px; border: 2px solid #fff; border-radius: 50%; - background: #0085ba; - cursor: inherit; } - -body.admin-color-sunrise .components-resizable-box__handle::before { - background: #d1864a; } - -body.admin-color-ocean .components-resizable-box__handle::before { - background: #a3b9a2; } - -body.admin-color-midnight .components-resizable-box__handle::before { - background: #e14d43; } - -body.admin-color-ectoplasm .components-resizable-box__handle::before { - background: #a7b656; } - -body.admin-color-coffee .components-resizable-box__handle::before { - background: #c2a68c; } - -body.admin-color-blue .components-resizable-box__handle::before { - background: #82b4cb; } - -body.admin-color-light .components-resizable-box__handle::before { - background: #0085ba; } + background: #007cba; + background: var(--wp-admin-theme-color); + cursor: inherit; + position: absolute; + top: calc(50% - 8px); + right: calc(50% - 8px); } + +.components-resizable-box__side-handle::before { + display: block; + content: ""; + width: 7px; + height: 7px; + border: 2px solid #fff; + background: #007cba; + background: var(--wp-admin-theme-color); + cursor: inherit; + position: absolute; + top: calc(50% - 4px); + right: calc(50% - 4px); + transition: transform 0.1s ease-in; + opacity: 0; } + @media (prefers-reduced-motion: reduce) { + .components-resizable-box__side-handle::before { + transition-duration: 0s; } } + +.is-dark-theme .components-resizable-box__side-handle::before, +.is-dark-theme .components-resizable-box__handle::after { + border-color: #d7dade; } + +.components-resizable-box__handle { + z-index: 2; } + +.components-resizable-box__side-handle { + z-index: 2; } + +.components-resizable-box__corner-handle { + z-index: 2; } + +.components-resizable-box__side-handle.components-resizable-box__handle-top, +.components-resizable-box__side-handle.components-resizable-box__handle-bottom, +.components-resizable-box__side-handle.components-resizable-box__handle-top::before, +.components-resizable-box__side-handle.components-resizable-box__handle-bottom::before { + width: 100%; + left: 0; + border-left: 0; + border-right: 0; } + +.components-resizable-box__side-handle.components-resizable-box__handle-left, +.components-resizable-box__side-handle.components-resizable-box__handle-right, +.components-resizable-box__side-handle.components-resizable-box__handle-left::before, +.components-resizable-box__side-handle.components-resizable-box__handle-right::before { + height: 100%; + top: 0; + border-top: 0; + border-bottom: 0; } + +.components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, +.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, +.components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, +.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { + animation: components-resizable-box__top-bottom-animation 0.1s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-top:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-bottom:active::before { + animation-duration: 1ms; } } + +.components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, +.components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, +.components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, +.components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { + animation: components-resizable-box__left-right-animation 0.1s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-resizable-box__side-handle.components-resizable-box__handle-left:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:hover::before, + .components-resizable-box__side-handle.components-resizable-box__handle-left:active::before, + .components-resizable-box__side-handle.components-resizable-box__handle-right:active::before { + animation-duration: 1ms; } } + +@keyframes components-resizable-box__top-bottom-animation { + from { + transform: scaleX(0); + opacity: 0; } + to { + transform: scaleX(1); + opacity: 1; } } + +@keyframes components-resizable-box__left-right-animation { + from { + transform: scaleY(0); + opacity: 0; } + to { + transform: scaleY(1); + opacity: 1; } } /*!rtl:begin:ignore*/ .components-resizable-box__handle-right { - top: calc(50% - 12px); - right: calc(12px * -1); } + right: calc(11.5px * -1); } + +.components-resizable-box__handle-left { + left: calc(11.5px * -1); } + +.components-resizable-box__handle-top { + top: calc(11.5px * -1); } .components-resizable-box__handle-bottom { - bottom: calc(12px * -1); - left: calc(50% - 12px); } - -.components-resizable-box__handle-left { - top: calc(50% - 12px); - left: calc(12px * -1); } + bottom: calc(11.5px * -1); } /*!rtl:end:ignore*/ .components-responsive-wrapper { position: relative; max-width: 100%; } + .components-responsive-wrapper, + .components-responsive-wrapper > span { + display: block; } .components-responsive-wrapper__content { position: absolute; @@ -3062,11 +3583,15 @@ bottom: 0; left: 0; width: 100%; - height: 100%; } + height: 100%; + margin: auto; } .components-sandbox { overflow: hidden; } +iframe.components-sandbox { + width: 100%; } + html.lockscroll, body.lockscroll { overflow: hidden; } @@ -3088,13 +3613,65 @@ .components-base-control .components-base-control__field .components-select-control__input { font-size: 16px; } } +.components-snackbar { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + background-color: #1e1e1e; + border-radius: 2px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); + color: #fff; + padding: 16px 24px; + width: 100%; + max-width: 600px; + box-sizing: border-box; + cursor: pointer; } + @media (min-width: 600px) { + .components-snackbar { + width: fit-content; } } + .components-snackbar:focus { + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); } + +.components-snackbar__action.components-button { + margin-left: 32px; + color: #fff; + height: auto; + flex-shrink: 0; + line-height: 1.4; + padding: 0; } + .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary) { + text-decoration: underline; + background-color: transparent; } + .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):focus { + color: #fff; + box-shadow: none; + outline: 1px dotted #fff; } + .components-snackbar__action.components-button:not(:disabled):not([aria-disabled="true"]):not(.is-secondary):hover { + color: #007cba; + color: var(--wp-admin-theme-color); } + +.components-snackbar__content { + display: flex; + align-items: baseline; + justify-content: space-between; + line-height: 1.4; } + +.components-snackbar-list { + position: absolute; + z-index: 100000; + width: 100%; + box-sizing: border-box; } + +.components-snackbar-list__notice-container { + position: relative; + padding-top: 8px; } + .components-spinner { display: inline-block; background-color: #7e8993; width: 18px; height: 18px; opacity: 0.7; - float: right; margin: 5px 11px 0; border-radius: 100%; position: relative; } @@ -3118,76 +3695,363 @@ to { transform: rotate(360deg); } } -.components-text-control__input { +.components-tab-panel__tabs { + display: flex; + align-items: stretch; } + +.components-tab-panel__tabs-item { + background: transparent; + border: none; + box-shadow: none; + border-radius: 0; + cursor: pointer; + height: 48px; + padding: 3px 16px; + margin-left: 0; + font-weight: 500; + transition: box-shadow 0.1s linear; + box-sizing: border-box; } + .components-tab-panel__tabs-item::after { + content: attr(data-label); + display: block; + height: 0; + overflow: hidden; + speak: none; + visibility: hidden; } + .components-tab-panel__tabs-item:focus:not(:disabled) { + box-shadow: inset 0 1.5px #007cba; + box-shadow: inset 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active { + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color); + position: relative; } + .components-tab-panel__tabs-item.is-active::before { + content: ""; + position: absolute; + top: 0; + bottom: 1px; + right: 0; + left: 0; + border-bottom: 4px solid transparent; } + .components-tab-panel__tabs-item:focus { + box-shadow: inset 0 0 0 1.5px #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color); } + .components-tab-panel__tabs-item.is-active:focus { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color); } + +.components-text-control__input, +.components-text-control__input[type="text"], +.components-text-control__input[type="tel"], +.components-text-control__input[type="time"], +.components-text-control__input[type="url"], +.components-text-control__input[type="week"], +.components-text-control__input[type="password"], +.components-text-control__input[type="color"], +.components-text-control__input[type="date"], +.components-text-control__input[type="datetime"], +.components-text-control__input[type="datetime-local"], +.components-text-control__input[type="email"], +.components-text-control__input[type="month"], +.components-text-control__input[type="number"] { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-text-control__input, + .components-text-control__input[type="text"], + .components-text-control__input[type="tel"], + .components-text-control__input[type="time"], + .components-text-control__input[type="url"], + .components-text-control__input[type="week"], + .components-text-control__input[type="password"], + .components-text-control__input[type="color"], + .components-text-control__input[type="date"], + .components-text-control__input[type="datetime"], + .components-text-control__input[type="datetime-local"], + .components-text-control__input[type="email"], + .components-text-control__input[type="month"], + .components-text-control__input[type="number"] { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-text-control__input:focus, + .components-text-control__input[type="text"]:focus, + .components-text-control__input[type="tel"]:focus, + .components-text-control__input[type="time"]:focus, + .components-text-control__input[type="url"]:focus, + .components-text-control__input[type="week"]:focus, + .components-text-control__input[type="password"]:focus, + .components-text-control__input[type="color"]:focus, + .components-text-control__input[type="date"]:focus, + .components-text-control__input[type="datetime"]:focus, + .components-text-control__input[type="datetime-local"]:focus, + .components-text-control__input[type="email"]:focus, + .components-text-control__input[type="month"]:focus, + .components-text-control__input[type="number"]:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-text-control__input::-webkit-input-placeholder, + .components-text-control__input[type="text"]::-webkit-input-placeholder, + .components-text-control__input[type="tel"]::-webkit-input-placeholder, + .components-text-control__input[type="time"]::-webkit-input-placeholder, + .components-text-control__input[type="url"]::-webkit-input-placeholder, + .components-text-control__input[type="week"]::-webkit-input-placeholder, + .components-text-control__input[type="password"]::-webkit-input-placeholder, + .components-text-control__input[type="color"]::-webkit-input-placeholder, + .components-text-control__input[type="date"]::-webkit-input-placeholder, + .components-text-control__input[type="datetime"]::-webkit-input-placeholder, + .components-text-control__input[type="datetime-local"]::-webkit-input-placeholder, + .components-text-control__input[type="email"]::-webkit-input-placeholder, + .components-text-control__input[type="month"]::-webkit-input-placeholder, + .components-text-control__input[type="number"]::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-text-control__input::-moz-placeholder, + .components-text-control__input[type="text"]::-moz-placeholder, + .components-text-control__input[type="tel"]::-moz-placeholder, + .components-text-control__input[type="time"]::-moz-placeholder, + .components-text-control__input[type="url"]::-moz-placeholder, + .components-text-control__input[type="week"]::-moz-placeholder, + .components-text-control__input[type="password"]::-moz-placeholder, + .components-text-control__input[type="color"]::-moz-placeholder, + .components-text-control__input[type="date"]::-moz-placeholder, + .components-text-control__input[type="datetime"]::-moz-placeholder, + .components-text-control__input[type="datetime-local"]::-moz-placeholder, + .components-text-control__input[type="email"]::-moz-placeholder, + .components-text-control__input[type="month"]::-moz-placeholder, + .components-text-control__input[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-text-control__input:-ms-input-placeholder, + .components-text-control__input[type="text"]:-ms-input-placeholder, + .components-text-control__input[type="tel"]:-ms-input-placeholder, + .components-text-control__input[type="time"]:-ms-input-placeholder, + .components-text-control__input[type="url"]:-ms-input-placeholder, + .components-text-control__input[type="week"]:-ms-input-placeholder, + .components-text-control__input[type="password"]:-ms-input-placeholder, + .components-text-control__input[type="color"]:-ms-input-placeholder, + .components-text-control__input[type="date"]:-ms-input-placeholder, + .components-text-control__input[type="datetime"]:-ms-input-placeholder, + .components-text-control__input[type="datetime-local"]:-ms-input-placeholder, + .components-text-control__input[type="email"]:-ms-input-placeholder, + .components-text-control__input[type="month"]:-ms-input-placeholder, + .components-text-control__input[type="number"]:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-text-control__input::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-webkit-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="text"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="time"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="url"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="week"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="password"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="color"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="date"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="email"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="month"]::-moz-placeholder, .is-dark-theme + .components-text-control__input[type="number"]::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-text-control__input:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="text"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="tel"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="time"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="url"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="week"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="password"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="color"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="date"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="datetime-local"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="email"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="month"]:-ms-input-placeholder, .is-dark-theme + .components-text-control__input[type="number"]:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } .components-textarea-control__input { width: 100%; - padding: 6px 8px; } + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 2px; + border: 1px solid #757575; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } + @media (prefers-reduced-motion: reduce) { + .components-textarea-control__input { + transition-duration: 0s; } } + @media (min-width: 600px) { + .components-textarea-control__input { + font-size: 13px; + /* Override core line-height. To be reviewed. */ + line-height: normal; } } + .components-textarea-control__input:focus { + border-color: #007cba; + border-color: var(--wp-admin-theme-color); + box-shadow: 0 0 0 0.5px #007cba; + box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); + outline: 2px solid transparent; } + .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(30, 30, 30, 0.62); } + .components-textarea-control__input:-ms-input-placeholder { + color: rgba(30, 30, 30, 0.62); } + .is-dark-theme .components-textarea-control__input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input::-moz-placeholder { + opacity: 1; + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .components-textarea-control__input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.65); } + +.components-tip { + display: flex; + color: #555d66; } + .components-tip svg { + -ms-grid-row-align: center; + align-self: center; + fill: #f0b849; + flex-shrink: 0; + margin-right: 16px; } + .components-tip p { + margin: 0; } .components-toggle-control .components-base-control__field { display: flex; - margin-bottom: 12px; } + margin-bottom: 12px; + line-height: initial; + align-items: center; } .components-toggle-control .components-base-control__field .components-form-toggle { - margin-right: 16px; } + margin-right: 12px; } .components-toggle-control .components-base-control__field .components-toggle-control__label { - display: block; - margin-bottom: 4px; } - -.components-toolbar { - margin: 0; - border: 1px solid #e2e4e7; - background-color: #fff; - display: flex; + display: block; } + +.components-accessible-toolbar { + display: inline-flex; + border: 1px solid #1e1e1e; + border-radius: 2px; flex-shrink: 0; } - -div.components-toolbar > div { - display: block; - margin: 0; } - @supports ((position: -webkit-sticky) or (position: sticky)) { - div.components-toolbar > div { - display: flex; } } - -div.components-toolbar > div + div { - margin-left: -3px; } - div.components-toolbar > div + div.has-left-divider { - margin-left: 6px; + .components-accessible-toolbar > .components-toolbar-group:last-child { + border-right: none; } + +.components-accessible-toolbar .components-button, +.components-toolbar .components-button { + position: relative; + height: 48px; + z-index: 1; + padding-left: 16px; + padding-right: 16px; } + .components-accessible-toolbar .components-button:focus:enabled, + .components-toolbar .components-button:focus:enabled { + box-shadow: none; + outline: none; } + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + content: ""; + position: absolute; + display: block; + border-radius: 2px; + height: 32px; + left: 8px; + right: 8px; + z-index: -1; + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-accessible-toolbar .components-button::before, + .components-toolbar .components-button::before { + animation-duration: 1ms; } } + .components-accessible-toolbar .components-button svg, + .components-toolbar .components-button svg { position: relative; - overflow: visible; } - div.components-toolbar > div + div.has-left-divider::before { - display: inline-block; - content: ""; - box-sizing: content-box; - background-color: #e2e4e7; - position: absolute; - top: 8px; - left: -3px; - width: 1px; - height: 20px; } + margin-left: auto; + margin-right: auto; } + .components-accessible-toolbar .components-button.is-pressed, + .components-toolbar .components-button.is-pressed { + background: transparent; } + .components-accessible-toolbar .components-button.is-pressed:hover, + .components-toolbar .components-button.is-pressed:hover { + background: transparent; } + .components-accessible-toolbar .components-button.is-pressed::before, + .components-toolbar .components-button.is-pressed::before { + background: #1e1e1e; } + .components-accessible-toolbar .components-button:focus::before, + .components-toolbar .components-button:focus::before { + box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff; + box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff; + outline: 2px solid transparent; } + .components-accessible-toolbar .components-button.has-icon, + .components-toolbar .components-button.has-icon { + padding-left: 8px; + padding-right: 8px; + min-width: 48px; + justify-content: center; } + .components-accessible-toolbar .components-button.components-tab-button, + .components-toolbar .components-button.components-tab-button { + font-weight: 500; } + .components-accessible-toolbar .components-button.components-tab-button span, + .components-toolbar .components-button.components-tab-button span { + display: inline-block; + padding-left: 0; + padding-right: 0; + position: relative; } + +@keyframes components-button__appear-animation { + from { + transform: scaleY(0); } + to { + transform: scaleY(1); } } .components-toolbar__control.components-button { - display: inline-flex; - align-items: flex-end; - margin: 0; - padding: 3px; - outline: none; - cursor: pointer; - position: relative; - width: 36px; - height: 36px; } - .components-toolbar__control.components-button:active, .components-toolbar__control.components-button:not([aria-disabled="true"]):hover, .components-toolbar__control.components-button:not([aria-disabled="true"]):focus { - outline: none; - box-shadow: none; - background: none; - border: none; } - .components-toolbar__control.components-button:disabled { - cursor: default; } - .components-toolbar__control.components-button > svg { - padding: 5px; - border-radius: 4px; - height: 30px; - width: 30px; } + position: relative; } .components-toolbar__control.components-button[data-subscript] svg { padding: 5px 10px 5px 0; } .components-toolbar__control.components-button[data-subscript]::after { @@ -3199,47 +4063,153 @@ position: absolute; right: 8px; bottom: 10px; } - .components-toolbar__control.components-button:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; } - .components-toolbar__control.components-button:not(:disabled).is-active > svg, - .components-toolbar__control.components-button:not(:disabled):hover > svg { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .components-toolbar__control.components-button:not(:disabled).is-active > svg { - outline: none; - color: #fff; - box-shadow: none; - background: #555d66; } - .components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]::after { + .components-toolbar__control.components-button:active::before { + display: none; } + .components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]::after { color: #fff; } - .components-toolbar__control.components-button:not(:disabled):focus > svg { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - -.components-toolbar__control .dashicon { - display: block; } + +.components-toolbar-group { + min-height: 48px; + border-right: 1px solid #1e1e1e; + background-color: #fff; + display: inline-flex; + flex-shrink: 0; + flex-wrap: wrap; + line-height: 0; } + .components-toolbar-group .components-toolbar-group { + border-width: 0; + margin: 0; } + +.components-toolbar { + min-height: 48px; + margin: 0; + border: 1px solid #1e1e1e; + border-radius: 2px; + background-color: #fff; + display: inline-flex; + flex-shrink: 0; + flex-wrap: wrap; } + +div.components-toolbar > div { + display: block; + margin: 0; } + @supports ((position: -webkit-sticky) or (position: sticky)) { + div.components-toolbar > div { + display: flex; } } + +div.components-toolbar > div + div.has-left-divider { + margin-left: 6px; + position: relative; + overflow: visible; } + +div.components-toolbar > div + div.has-left-divider::before { + display: inline-block; + content: ""; + box-sizing: content-box; + background-color: #ddd; + position: absolute; + top: 8px; + left: -3px; + width: 1px; + height: 20px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon, +.components-toolbar div > .components-button.components-button.has-icon { + min-width: 36px; + padding-left: 6px; + padding-right: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon svg, + .components-toolbar div > .components-button.components-button.has-icon svg { + min-width: 24px; } + .components-accessible-toolbar .components-toolbar-group > .components-button.components-button.has-icon::before, + .components-toolbar div > .components-button.components-button.has-icon::before { + left: 2px; + right: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon, +.components-toolbar div:first-child .components-button.has-icon { + min-width: 42px; + padding-left: 11px; + padding-right: 6px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-child.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child > .components-button.has-icon::before, + .components-toolbar div:first-child .components-button.has-icon::before { + left: 8px; + right: 2px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon, +.components-toolbar div:last-child .components-button.has-icon { + min-width: 42px; + padding-left: 6px; + padding-right: 11px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon::before, + .components-toolbar div:last-child .components-button.has-icon::before { + left: 2px; + right: 8px; } + +.components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon, +.components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon, +.components-toolbar div:first-child:last-child > .components-button.has-icon { + min-width: 48px; + padding-left: 12px; + padding-right: 12px; } + .components-accessible-toolbar .components-toolbar-group > .components-button:first-of-type:last-of-type.has-icon::before, + .components-accessible-toolbar .components-toolbar-group > div:first-child:last-child > .components-button.has-icon::before, + .components-toolbar div:first-child:last-child > .components-button.has-icon::before { + left: 8px; + right: 8px; } .components-tooltip.components-popover { z-index: 1000002; } - .components-tooltip.components-popover::before { - border-color: transparent; } - .components-tooltip.components-popover.is-top::after { - border-top-color: #191e23; } - .components-tooltip.components-popover.is-bottom::after { - border-bottom-color: #191e23; } + .components-tooltip.components-popover .components-popover__content { + min-width: 0; } .components-tooltip .components-popover__content { - padding: 4px 12px; - background: #191e23; + background: #1e1e1e; + border-radius: 2px; border-width: 0; color: #fff; white-space: nowrap; - text-align: center; } - -.components-tooltip:not(.is-mobile) .components-popover__content { - min-width: 0; } + text-align: center; + line-height: 1.4; + font-size: 12px; + box-shadow: none; } + .components-tooltip .components-popover__content > div { + padding: 4px 8px; } .components-tooltip__shortcut { + display: inline-block; + margin-left: 8px; } + +.components-visually-hidden { + border: 0; + clip: rect(1px, 1px, 1px, 1px); + -webkit-clip-path: inset(50%); + clip-path: inset(50%); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + word-wrap: normal !important; } + +.components-visually-hidden:focus { + background-color: #ddd; + clip: auto !important; + -webkit-clip-path: none; + clip-path: none; + color: #444; display: block; - color: #7e8993; } + font-size: 1em; + height: auto; + left: 5px; + line-height: normal; + padding: 15px 23px 14px; + text-decoration: none; + top: 5px; + width: auto; + z-index: 100000; }