2018-12-17 22:17:48 -05:00
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Breakpoints & Media Queries
|
|
|
|
*/
|
2021-01-27 21:04:13 -05:00
|
|
|
/**
|
|
|
|
* SCSS Variables.
|
|
|
|
*
|
|
|
|
* Please use variables from this sheet to ensure consistency across the UI.
|
|
|
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
2021-02-07 22:37:09 -05:00
|
|
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
2021-01-27 21:04:13 -05:00
|
|
|
*/
|
2020-01-22 17:06:21 -05:00
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
2018-12-17 22:17:48 -05:00
|
|
|
/**
|
2020-06-26 09:33:47 -04:00
|
|
|
* Fonts & basic variables.
|
2018-12-17 22:17:48 -05:00
|
|
|
*/
|
2020-05-05 19:56:33 -04:00
|
|
|
/**
|
|
|
|
* Grid System.
|
|
|
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
|
|
*/
|
2020-06-26 09:33:47 -04:00
|
|
|
/**
|
|
|
|
* Dimensions.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Shadows.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Editor widths.
|
|
|
|
*/
|
|
|
|
/**
|
2021-01-27 21:04:13 -05:00
|
|
|
* Block & Editor UI.
|
2020-06-26 09:33:47 -04:00
|
|
|
*/
|
|
|
|
/**
|
2021-01-27 21:04:13 -05:00
|
|
|
* Block paddings.
|
2020-06-26 09:33:47 -04:00
|
|
|
*/
|
2020-10-13 09:10:30 -04:00
|
|
|
/**
|
2021-01-27 21:04:13 -05:00
|
|
|
* React Native specific.
|
|
|
|
* These variables do not appear to be used anywhere else.
|
2020-10-13 09:10:30 -04:00
|
|
|
*/
|
2018-12-17 22:17:48 -05:00
|
|
|
/**
|
|
|
|
* Breakpoint mixins
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Long content fade mixin
|
|
|
|
*
|
|
|
|
* Creates a fading overlay to signify that the content is longer
|
|
|
|
* than the space allows.
|
|
|
|
*/
|
|
|
|
/**
|
2020-06-26 09:33:47 -04:00
|
|
|
* Focus styles.
|
2018-12-17 22:17:48 -05:00
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Applies editor left position to the selector passed as argument
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Styles that are reused verbatim in a few places
|
|
|
|
*/
|
2019-03-21 08:48:00 -04:00
|
|
|
/**
|
|
|
|
* Allows users to opt-out of animations via OS-level preferences.
|
|
|
|
*/
|
2019-09-19 11:19:18 -04:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2021-01-27 21:04:13 -05:00
|
|
|
/**
|
|
|
|
* These are default block editor widths in case the theme doesn't provide them.
|
|
|
|
*/
|
2020-06-26 09:33:47 -04:00
|
|
|
:root {
|
|
|
|
--wp-admin-theme-color: #007cba;
|
|
|
|
--wp-admin-theme-color-darker-10: #006ba1;
|
2021-01-27 21:04:13 -05:00
|
|
|
--wp-admin-theme-color-darker-20: #005a87;
|
|
|
|
--wp-admin-border-width-focus: 2px;
|
|
|
|
}
|
|
|
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
|
|
:root {
|
|
|
|
--wp-admin-border-width-focus: 1.5px;
|
|
|
|
}
|
|
|
|
}
|
2020-06-26 09:33:47 -04:00
|
|
|
|
2021-02-02 00:17:13 -05:00
|
|
|
.block-editor-format-toolbar__image-popover {
|
|
|
|
z-index: 159990;
|
|
|
|
}
|
|
|
|
|
2019-03-21 08:48:00 -04:00
|
|
|
.block-editor-format-toolbar__image-container-content {
|
2021-01-27 21:04:13 -05:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.block-editor-format-toolbar__image-container-content .components-button {
|
|
|
|
align-self: flex-end;
|
|
|
|
height: 30px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
padding: 0 6px;
|
|
|
|
}
|
2019-03-07 04:09:59 -05:00
|
|
|
|
2019-03-21 08:48:00 -04:00
|
|
|
.block-editor-format-toolbar__image-container-value {
|
2019-03-07 04:09:59 -05:00
|
|
|
margin: 7px;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
white-space: nowrap;
|
|
|
|
min-width: 150px;
|
2021-01-27 21:04:13 -05:00
|
|
|
max-width: 500px;
|
|
|
|
}
|
|
|
|
.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__label {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-03-07 04:09:59 -05:00
|
|
|
|
2019-03-21 08:48:00 -04:00
|
|
|
.block-editor-format-toolbar__link-container-content {
|
2021-01-27 21:04:13 -05:00
|
|
|
display: flex;
|
|
|
|
}
|
2018-12-17 22:17:48 -05:00
|
|
|
|
2019-03-21 08:48:00 -04:00
|
|
|
.block-editor-format-toolbar__link-container-value {
|
2018-12-17 22:17:48 -05:00
|
|
|
margin: 7px;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
min-width: 150px;
|
2021-01-27 21:04:13 -05:00
|
|
|
max-width: 500px;
|
|
|
|
}
|
|
|
|
.block-editor-format-toolbar__link-container-value.has-invalid-link {
|
|
|
|
color: #cc1818;
|
|
|
|
}
|
2020-02-10 17:33:27 -05:00
|
|
|
|
|
|
|
.components-inline-color__indicator {
|
|
|
|
position: absolute;
|
|
|
|
background: #000;
|
|
|
|
height: 3px;
|
|
|
|
width: 20px;
|
|
|
|
bottom: 6px;
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
2021-01-27 21:04:13 -05:00
|
|
|
margin: 0 5px;
|
|
|
|
}
|
2020-02-10 17:33:27 -05:00
|
|
|
|
2020-06-26 09:33:47 -04:00
|
|
|
.components-inline-color-popover .components-popover__content > div {
|
2021-01-27 21:04:13 -05:00
|
|
|
padding: 20px 18px;
|
|
|
|
}
|
2020-06-26 09:33:47 -04:00
|
|
|
.components-inline-color-popover .components-popover__content .components-color-palette {
|
2021-01-27 21:04:13 -05:00
|
|
|
margin-top: 0.6rem;
|
|
|
|
}
|
2020-06-26 09:33:47 -04:00
|
|
|
.components-inline-color-popover .components-popover__content .components-base-control__title {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
font-weight: 600;
|
2021-01-27 21:04:13 -05:00
|
|
|
color: #191e23;
|
|
|
|
}
|
2020-06-26 09:33:47 -04:00
|
|
|
.components-inline-color-popover .components-popover__content .component-color-indicator {
|
2021-01-27 21:04:13 -05:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
2020-02-10 17:33:27 -05:00
|
|
|
|
|
|
|
.format-library-text-color-button {
|
2021-01-27 21:04:13 -05:00
|
|
|
position: relative;
|
|
|
|
}
|
2020-02-10 17:33:27 -05:00
|
|
|
|
|
|
|
.format-library-text-color-button__indicator {
|
|
|
|
height: 4px;
|
|
|
|
width: 20px;
|
|
|
|
position: absolute;
|
2020-06-26 09:33:47 -04:00
|
|
|
bottom: 10px;
|
2021-01-27 21:04:13 -05:00
|
|
|
left: 8px;
|
|
|
|
}
|