wp/wp-includes/blocks/site-logo/editor-rtl.css
changeset 18 be944660c56a
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
       
     1 /**
       
     2  * Colors
       
     3  */
       
     4 /**
       
     5  * Breakpoints & Media Queries
       
     6  */
       
     7 /**
       
     8  * SCSS Variables.
       
     9  *
       
    10  * Please use variables from this sheet to ensure consistency across the UI.
       
    11  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
       
    12  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
       
    13  */
       
    14 /**
       
    15  * Colors
       
    16  */
       
    17 /**
       
    18  * Fonts & basic variables.
       
    19  */
       
    20 /**
       
    21  * Grid System.
       
    22  * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
       
    23  */
       
    24 /**
       
    25  * Dimensions.
       
    26  */
       
    27 /**
       
    28  * Shadows.
       
    29  */
       
    30 /**
       
    31  * Editor widths.
       
    32  */
       
    33 /**
       
    34  * Block & Editor UI.
       
    35  */
       
    36 /**
       
    37  * Block paddings.
       
    38  */
       
    39 /**
       
    40  * React Native specific.
       
    41  * These variables do not appear to be used anywhere else.
       
    42  */
       
    43 /**
       
    44  * Breakpoint mixins
       
    45  */
       
    46 /**
       
    47  * Long content fade mixin
       
    48  *
       
    49  * Creates a fading overlay to signify that the content is longer
       
    50  * than the space allows.
       
    51  */
       
    52 /**
       
    53  * Focus styles.
       
    54  */
       
    55 /**
       
    56  * Applies editor left position to the selector passed as argument
       
    57  */
       
    58 /**
       
    59  * Styles that are reused verbatim in a few places
       
    60  */
       
    61 /**
       
    62  * Allows users to opt-out of animations via OS-level preferences.
       
    63  */
       
    64 /**
       
    65  * Reset default styles for JavaScript UI based pages.
       
    66  * This is a WP-admin agnostic reset
       
    67  */
       
    68 /**
       
    69  * Reset the WP Admin page styles for Gutenberg-like pages.
       
    70  */
       
    71 .wp-block[data-align=center] > .wp-block-site-logo {
       
    72   margin-right: auto;
       
    73   margin-left: auto;
       
    74   text-align: center;
       
    75 }
       
    76 
       
    77 .wp-block-site-logo a {
       
    78   pointer-events: none;
       
    79 }
       
    80 .wp-block-site-logo:not(.is-default-size) {
       
    81   display: table;
       
    82 }
       
    83 .wp-block-site-logo.is-default-size {
       
    84   width: 120px;
       
    85 }
       
    86 .wp-block-site-logo.is-default-size img {
       
    87   width: 100%;
       
    88 }
       
    89 .wp-block-site-logo .custom-logo-link {
       
    90   cursor: inherit;
       
    91 }
       
    92 .wp-block-site-logo .custom-logo-link:focus {
       
    93   box-shadow: none;
       
    94 }
       
    95 .wp-block-site-logo .custom-logo-link.is-transient img {
       
    96   opacity: 0.3;
       
    97 }
       
    98 .wp-block-site-logo img {
       
    99   display: block;
       
   100   max-width: 100%;
       
   101 }
       
   102 .wp-block-site-logo .components-placeholder {
       
   103   justify-content: flex-start;
       
   104   min-height: auto;
       
   105   height: 120px;
       
   106   padding: 12px;
       
   107 }
       
   108 .wp-block-site-logo .components-placeholder .components-placeholder__label {
       
   109   margin-top: 12px;
       
   110   white-space: nowrap;
       
   111 }
       
   112 .wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon,
       
   113 .wp-block-site-logo .components-placeholder .components-placeholder__label > svg {
       
   114   margin-left: 4px;
       
   115 }
       
   116 .wp-block-site-logo .components-placeholder .components-form-file-upload {
       
   117   display: none;
       
   118 }
       
   119 .wp-block-site-logo .components-placeholder .components-placeholder__preview {
       
   120   position: absolute;
       
   121   top: 4px;
       
   122   left: 4px;
       
   123   bottom: 4px;
       
   124   right: 4px;
       
   125   background: rgba(255, 255, 255, 0.8);
       
   126   display: flex;
       
   127   align-items: center;
       
   128   justify-content: center;
       
   129 }
       
   130 .wp-block-site-logo .components-placeholder .components-drop-zone__content-text {
       
   131   display: none;
       
   132 }