mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
a225c5cdc6
This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
186 lines
4.3 KiB
CSS
186 lines
4.3 KiB
CSS
/**
|
|
* 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.
|
|
*/
|
|
/**
|
|
* 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-social-links div.block-editor-url-input {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.wp-social-link:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.editor-styles-wrapper .wp-block-social-links {
|
|
padding: 0;
|
|
}
|
|
|
|
.wp-block-social-links__social-placeholder {
|
|
display: flex;
|
|
opacity: 0.8;
|
|
list-style: none;
|
|
}
|
|
.wp-block-social-links__social-placeholder > .wp-social-link {
|
|
padding-right: 0 !important;
|
|
margin-right: 0 !important;
|
|
padding-left: 0 !important;
|
|
margin-left: 0 !important;
|
|
width: 0 !important;
|
|
visibility: hidden;
|
|
}
|
|
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
display: flex;
|
|
}
|
|
.wp-block-social-links__social-placeholder + .block-list-appender,
|
|
.wp-block-social-links__social-placeholder .wp-social-link {
|
|
padding: 0.25em;
|
|
}
|
|
.is-style-pill-shape .wp-block-social-links__social-placeholder + .block-list-appender,
|
|
.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
|
|
padding-right: calc((2/3) * 1em);
|
|
padding-left: calc((2/3) * 1em);
|
|
}
|
|
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
content: "";
|
|
display: block;
|
|
width: 1em;
|
|
height: 1em;
|
|
border-radius: 50%;
|
|
}
|
|
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
background: currentColor;
|
|
}
|
|
|
|
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
list-style: none;
|
|
order: 2;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
font-size: 13px;
|
|
line-height: 24px;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
cursor: default;
|
|
padding-left: 8px;
|
|
}
|
|
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
|
|
margin-left: 8px;
|
|
padding: 0.25em;
|
|
}
|
|
|
|
.wp-block-social-links .block-list-appender {
|
|
margin: 4px 0 4px auto;
|
|
border-radius: 9999px;
|
|
}
|
|
.wp-block-social-links .block-list-appender .block-editor-inserter {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: inherit;
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
.has-small-icon-size .wp-block-social-links .block-list-appender {
|
|
font-size: 16px;
|
|
}
|
|
.has-normal-icon-size .wp-block-social-links .block-list-appender {
|
|
font-size: 24px;
|
|
}
|
|
.has-large-icon-size .wp-block-social-links .block-list-appender {
|
|
font-size: 36px;
|
|
}
|
|
.has-huge-icon-size .wp-block-social-links .block-list-appender {
|
|
font-size: 48px;
|
|
}
|
|
.wp-block-social-links .block-list-appender::before {
|
|
content: none;
|
|
}
|
|
|
|
.wp-block[data-align=center] > .wp-block-social-links {
|
|
justify-content: center;
|
|
}
|
|
|
|
.block-editor-block-preview__content .components-button:disabled {
|
|
opacity: 1;
|
|
}
|
|
|
|
.wp-social-link.wp-social-link__is-incomplete {
|
|
opacity: 0.5;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.wp-social-link.wp-social-link__is-incomplete {
|
|
transition-duration: 0s;
|
|
transition-delay: 0s;
|
|
}
|
|
}
|
|
|
|
.wp-block-social-links .is-selected .wp-social-link__is-incomplete,
|
|
.wp-social-link.wp-social-link__is-incomplete:hover,
|
|
.wp-social-link.wp-social-link__is-incomplete:focus {
|
|
opacity: 1;
|
|
} |