@wordpress/block-library
Version:
Block library for the WordPress editor.
150 lines (144 loc) • 2.75 kB
CSS
/**
* Typography
*/
/**
* 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.
*/
/**
* Typography
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Radius scale.
*/
/**
* Elevation scale.
*/
/**
* Dimensions.
*/
/**
* Mobile specific styles
*/
/**
* Editor styles.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoints & Media Queries
*/
/**
* Converts a hex value into the rgb equivalent.
*
* @param {string} hex - the hexadecimal value to convert
* @return {string} comma separated rgb values
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Breakpoint mixins
*/
/**
* 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.
*/
.block-library-html__edit .block-library-html__preview-overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
right: 0;
}
.block-library-html__modal {
height: 100%;
}
.block-library-html__modal .components-modal__children-container {
height: 100%;
}
.block-library-html__modal-tabs {
overflow-y: auto;
}
.block-library-html__modal-content {
flex: 1;
min-height: 0;
}
.block-library-html__modal-tab {
height: 100%;
display: flex;
flex-direction: column;
margin: 0;
box-sizing: border-box;
border: 1px solid #e0e0e0;
border-radius: 2px;
padding: 16px;
font-family: Menlo, Consolas, monaco, monospace;
}
.block-library-html__modal-editor {
width: 100%;
height: 100%;
flex: 1;
border: none;
background: transparent;
padding: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: inherit;
resize: none;
direction: ltr;
overflow-x: auto;
box-sizing: border-box;
}
.block-library-html__modal-editor:focus {
outline: none;
box-shadow: none;
}
.block-library-html__preview {
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
flex: 1;
min-height: 0;
}