2021-05-11 05:43:08 -04:00
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Breakpoints & Media Queries
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* 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 & Editor UI.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Block paddings.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* React Native specific.
|
|
|
|
* These variables do not appear to be used anywhere else.
|
|
|
|
*/
|
2021-11-08 09:29:21 -05:00
|
|
|
/**
|
|
|
|
* Converts a hex value into the rgb equivalent.
|
|
|
|
*
|
|
|
|
* @param {string} hex - the hexadecimal value to convert
|
|
|
|
* @return {string} comma separated rgb values
|
|
|
|
*/
|
2021-05-11 05:43:08 -04:00
|
|
|
/**
|
|
|
|
* Breakpoint mixins
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Long content fade mixin
|
|
|
|
*
|
|
|
|
* Creates a fading overlay to signify that the content is longer
|
|
|
|
* than the space allows.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Focus styles.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Applies editor left 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.
|
|
|
|
*/
|
|
|
|
.wp-block-button__link {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
2021-11-08 09:29:21 -05:00
|
|
|
word-break: break-word;
|
2021-05-11 05:43:08 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.wp-block-button__link.aligncenter {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.wp-block-button__link.alignright {
|
|
|
|
/*rtl:ignore*/
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2022-09-20 11:43:29 -04:00
|
|
|
:where(.wp-block-button__link) {
|
|
|
|
box-shadow: none;
|
|
|
|
text-decoration: none;
|
|
|
|
border-radius: 9999px;
|
|
|
|
padding: calc(0.667em + 2px) calc(1.333em + 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-button[style*=text-decoration] .wp-block-button__link {
|
|
|
|
text-decoration: inherit;
|
|
|
|
}
|
|
|
|
|
2021-05-11 05:43:08 -04:00
|
|
|
.wp-block-buttons > .wp-block-button.has-custom-width {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.has-custom-font-size .wp-block-button__link {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
|
2021-11-08 09:29:21 -05:00
|
|
|
width: calc(25% - (var(--wp--style--block-gap, 0.5em) * 0.75));
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-50 {
|
2021-11-08 09:29:21 -05:00
|
|
|
width: calc(50% - (var(--wp--style--block-gap, 0.5em) * 0.5));
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-75 {
|
2021-11-08 09:29:21 -05:00
|
|
|
width: calc(75% - (var(--wp--style--block-gap, 0.5em) * 0.25));
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|
|
|
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-100 {
|
|
|
|
width: 100%;
|
2021-11-08 09:29:21 -05:00
|
|
|
flex-basis: 100%;
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|
|
|
|
|
2021-11-08 09:29:21 -05:00
|
|
|
.wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-25 {
|
|
|
|
width: 25%;
|
|
|
|
}
|
|
|
|
.wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-50 {
|
|
|
|
width: 50%;
|
2021-05-21 06:14:23 -04:00
|
|
|
}
|
2021-11-08 09:29:21 -05:00
|
|
|
.wp-block-buttons.is-vertical > .wp-block-button.wp-block-button__width-75 {
|
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
2021-05-11 05:43:08 -04:00
|
|
|
.wp-block-button.is-style-squared,
|
|
|
|
.wp-block-button__link.wp-block-button.is-style-squared {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-button.no-border-radius,
|
|
|
|
.wp-block-button__link.no-border-radius {
|
|
|
|
border-radius: 0 !important;
|
|
|
|
}
|
|
|
|
|
2022-09-20 11:43:29 -04:00
|
|
|
.wp-block-button.is-style-outline > .wp-block-button__link,
|
|
|
|
.wp-block-button .wp-block-button__link.is-style-outline {
|
2021-05-11 05:43:08 -04:00
|
|
|
border: 2px solid currentColor;
|
|
|
|
padding: 0.667em 1.333em;
|
|
|
|
}
|
|
|
|
|
2022-09-20 11:43:29 -04:00
|
|
|
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color),
|
|
|
|
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color) {
|
2021-05-11 05:43:08 -04:00
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
|
2022-09-20 11:43:29 -04:00
|
|
|
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background),
|
|
|
|
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background) {
|
2021-05-11 05:43:08 -04:00
|
|
|
background-color: transparent;
|
Editor: Update packages for 6.1 Release Candidate 3.
Package updates for bug and regression fixes:
- @wordpress/block-directory: 3.15.10
- @wordpress/block-editor: 10.0.9
- @wordpress/block-library: 7.14.10
- @wordpress/customize-widgets: 3.14.10
- @wordpress/edit-post: 6.14.10
- @wordpress/edit-site: 4.14.12
- @wordpress/edit-widgets: 4.14.10
- @wordpress/editor: 12.16.9
- @wordpress/format-library: 3.15.9
- @wordpress/reusable-blocks: 3.15.9
- @wordpress/widgets: 2.15.9
Original PRs from Gutenberg repository:
* [WordPress/gutenberg#45189 Gutenberg PR 45189] - Fix resizeable editor scrolling
* [WordPress/gutenberg#45234 Gutenberg PR 45234] - Reset background-image property for outline button style
* [WordPress/gutenberg#45161 Gutenberg PR 45161] - Table Block: Add a deprecation for the figcaption element class name
* [WordPress/gutenberg#45159 Gutenberg PR 45159] - File Block: Add a deprecation for the button element class name
* [WordPress/gutenberg#45169 Gutenberg PR 45169] - Video: Add a deprecation for the caption element
* [WordPress/gutenberg#45166 Gutenberg PR 45166] - Embed: Add deprecation for the caption element
* [WordPress/gutenberg#45173 Gutenberg PR 45173] - Gallery: Add a deprecation for captions in the gallery block
* [WordPress/gutenberg#44854 Gutenberg PR 44854] - Embed Block: Add support for Tumblr Dashboard URLs
* [WordPress/gutenberg#45074 Gutenberg PR 45074] - Post editor: Rename view to Preview
* [WordPress/gutenberg#45163 Gutenberg PR 45163] - Featured Image Block: Add missing output escaping
* [WordPress/gutenberg#45118 Gutenberg PR 45118] - [WP6.1] Site editor clips body background style
Follow-up to [54257], [54335], [54383], [54483], [54486], [54490], and [54632].
Props czapla, cbravobernal, ndiego, annezazu, davidbaumwald, desrosj, mikeschroder, hellofromtonya, ocean90.
See #56467.
Built from https://develop.svn.wordpress.org/trunk@54693
git-svn-id: http://core.svn.wordpress.org/trunk@54245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 15:08:45 -04:00
|
|
|
background-image: none;
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|