WordPress/wp-includes/blocks/social-links/editor.css

185 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-left: 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-left: 0 !important;
margin-left: 0 !important;
padding-right: 0 !important;
margin-right: 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-left: calc((2/3) * 1em);
padding-right: 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;
}
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
margin-right: 8px;
padding: 0.25em;
}
.wp-block-social-links .block-list-appender {
margin: 4px auto 4px 0;
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;
}