wp/wp-includes/blocks/gallery/editor-rtl.css
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    39 /**
    39 /**
    40  * React Native specific.
    40  * React Native specific.
    41  * These variables do not appear to be used anywhere else.
    41  * These variables do not appear to be used anywhere else.
    42  */
    42  */
    43 /**
    43 /**
       
    44 *  Converts a hex value into the rgb equivalent.
       
    45 *
       
    46 * @param {string} hex - the hexadecimal value to convert
       
    47 * @return {string} comma separated rgb values
       
    48 */
       
    49 /**
    44  * Breakpoint mixins
    50  * Breakpoint mixins
    45  */
    51  */
    46 /**
    52 /**
    47  * Long content fade mixin
    53  * Long content fade mixin
    48  *
    54  *
    66  * This is a WP-admin agnostic reset
    72  * This is a WP-admin agnostic reset
    67  */
    73  */
    68 /**
    74 /**
    69  * Reset the WP Admin page styles for Gutenberg-like pages.
    75  * Reset the WP Admin page styles for Gutenberg-like pages.
    70  */
    76  */
    71 .wp-block-gallery li {
       
    72   list-style-type: none;
       
    73 }
       
    74 .wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
       
    75   display: none;
       
    76 }
       
    77 .wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
       
    78   margin-bottom: 0;
       
    79 }
       
    80 
       
    81 figure.wp-block-gallery {
    77 figure.wp-block-gallery {
    82   display: block;
    78   display: block;
       
    79 }
       
    80 figure.wp-block-gallery.has-nested-images .components-drop-zone {
       
    81   display: none;
       
    82   pointer-events: none;
       
    83 }
       
    84 figure.wp-block-gallery > .blocks-gallery-caption {
       
    85   flex: 0 0 100%;
       
    86 }
       
    87 figure.wp-block-gallery > .blocks-gallery-media-placeholder-wrapper {
       
    88   flex-basis: 100%;
       
    89 }
       
    90 figure.wp-block-gallery .wp-block-image .components-notice.is-error {
       
    91   display: block;
       
    92 }
       
    93 figure.wp-block-gallery .wp-block-image .components-notice__content {
       
    94   margin: 4px 0;
       
    95 }
       
    96 figure.wp-block-gallery .wp-block-image .components-notice__dismiss {
       
    97   position: absolute;
       
    98   top: 0;
       
    99   left: 5px;
       
   100 }
       
   101 figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label {
       
   102   display: none;
       
   103 }
       
   104 figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
       
   105   margin-bottom: 0;
       
   106 }
       
   107 figure.wp-block-gallery .block-editor-media-placeholder {
    83   margin: 0;
   108   margin: 0;
    84 }
   109 }
    85 
   110 figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label {
    86 .blocks-gallery-grid.blocks-gallery-grid {
   111   display: flex;
    87   padding-right: 0;
   112 }
    88   margin-right: 0;
   113 figure.wp-block-gallery .block-editor-media-placeholder figcaption {
    89   margin-bottom: 0;
   114   z-index: 2;
    90 }
   115 }
    91 
   116 figure.wp-block-gallery .components-spinner {
       
   117   position: absolute;
       
   118   top: 50%;
       
   119   right: 50%;
       
   120   margin-top: -9px;
       
   121   margin-right: -9px;
       
   122 }
       
   123 
       
   124 /**
       
   125  * Gallery inspector controls settings.
       
   126  */
       
   127 .gallery-settings-buttons .components-button:first-child {
       
   128   margin-left: 8px;
       
   129 }
       
   130 
       
   131 .gallery-image-sizes .components-base-control__label {
       
   132   display: block;
       
   133   margin-bottom: 4px;
       
   134 }
       
   135 .gallery-image-sizes .gallery-image-sizes__loading {
       
   136   display: flex;
       
   137   align-items: center;
       
   138   color: #757575;
       
   139   font-size: 12px;
       
   140 }
       
   141 .gallery-image-sizes .components-spinner {
       
   142   margin: 0 4px 0 8px;
       
   143 }
       
   144 
       
   145 /**
       
   146  * Deprecated css past this point. This can be removed once all galleries are migrated
       
   147  * to V2.
       
   148  */
    92 .blocks-gallery-item figure:not(.is-selected):focus,
   149 .blocks-gallery-item figure:not(.is-selected):focus,
    93 .blocks-gallery-item img:focus {
   150 .blocks-gallery-item img:focus {
    94   outline: none;
   151   outline: none;
    95 }
   152 }
    96 .blocks-gallery-item figure.is-selected::before {
   153 .blocks-gallery-item figure.is-selected::before {
   102   left: 0;
   159   left: 0;
   103   bottom: 0;
   160   bottom: 0;
   104   right: 0;
   161   right: 0;
   105   z-index: 1;
   162   z-index: 1;
   106   pointer-events: none;
   163   pointer-events: none;
   107 }
       
   108 .blocks-gallery-item figure.is-selected figcaption {
       
   109   z-index: 2;
       
   110 }
   164 }
   111 .blocks-gallery-item figure.is-transient img {
   165 .blocks-gallery-item figure.is-transient img {
   112   opacity: 0.3;
   166   opacity: 0.3;
   113 }
   167 }
   114 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
   168 .blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu {
   163 }
   217 }
   164 .block-library-gallery-item__inline-menu.is-right {
   218 .block-library-gallery-item__inline-menu.is-right {
   165   left: -2px;
   219   left: -2px;
   166 }
   220 }
   167 
   221 
   168 .blocks-gallery-item .components-spinner {
   222 .wp-block-gallery ul.blocks-gallery-grid {
   169   position: absolute;
   223   padding: 0;
   170   top: 50%;
   224   margin: 0;
   171   right: 50%;
   225 }
   172   margin-top: -9px;
   226 
   173   margin-right: -9px;
   227 @media (min-width: 600px) {
   174 }
   228   .wp-block-update-gallery-modal {
       
   229     max-width: 480px;
       
   230   }
       
   231 }
       
   232 
       
   233 .wp-block-update-gallery-modal-buttons {
       
   234   display: flex;
       
   235   justify-content: flex-end;
       
   236   gap: 12px;
       
   237 }