build/styles/block-library/gallery
editor-rtl.css
4.1 KB
7 months ago
editor-rtl.min.css
2.0 KB
7 months ago
editor.css
4.1 KB
7 months ago
editor.min.css
2.0 KB
7 months ago
style-rtl.css
19.0 KB
7 months ago
style-rtl.min.css
15.7 KB
7 months ago
style.css
19.0 KB
7 months ago
style.min.css
15.7 KB
7 months ago
theme-rtl.css
1.9 KB
7 months ago
theme-rtl.min.css
123 B
7 months ago
theme.css
1.9 KB
7 months ago
theme.min.css
123 B
7 months ago
editor.css in Gutenberg 23.2.0, at build/styles/block-library/gallery/editor.css
| 1 | /** |
| 2 | * Breakpoints & Media Queries |
| 3 | */ |
| 4 | /** |
| 5 | * Colors |
| 6 | */ |
| 7 | /** |
| 8 | * Typography |
| 9 | */ |
| 10 | /** |
| 11 | * SCSS Variables. |
| 12 | * |
| 13 | * Please use variables from this sheet to ensure consistency across the UI. |
| 14 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 15 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 16 | */ |
| 17 | /** |
| 18 | * Fonts & basic variables. |
| 19 | */ |
| 20 | /** |
| 21 | * Typography |
| 22 | */ |
| 23 | /** |
| 24 | * Grid System. |
| 25 | * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 26 | */ |
| 27 | /** |
| 28 | * Radius scale. |
| 29 | */ |
| 30 | /** |
| 31 | * Elevation scale. |
| 32 | */ |
| 33 | /** |
| 34 | * Dimensions. |
| 35 | */ |
| 36 | /** |
| 37 | * Mobile specific styles |
| 38 | */ |
| 39 | /** |
| 40 | * Editor styles. |
| 41 | */ |
| 42 | /** |
| 43 | * Block & Editor UI. |
| 44 | */ |
| 45 | /** |
| 46 | * Block paddings. |
| 47 | */ |
| 48 | /** |
| 49 | * React Native specific. |
| 50 | * These variables do not appear to be used anywhere else. |
| 51 | */ |
| 52 | /** |
| 53 | * Converts a hex value into the rgb equivalent. |
| 54 | * |
| 55 | * @param {string} hex - the hexadecimal value to convert |
| 56 | * @return {string} comma separated rgb values |
| 57 | */ |
| 58 | /** |
| 59 | * Long content fade mixin |
| 60 | * |
| 61 | * Creates a fading overlay to signify that the content is longer |
| 62 | * than the space allows. |
| 63 | */ |
| 64 | /** |
| 65 | * Breakpoint mixins |
| 66 | */ |
| 67 | /** |
| 68 | * Focus styles. |
| 69 | */ |
| 70 | /** |
| 71 | * Applies editor left position to the selector passed as argument |
| 72 | */ |
| 73 | /** |
| 74 | * Styles that are reused verbatim in a few places |
| 75 | */ |
| 76 | /** |
| 77 | * Allows users to opt-out of animations via OS-level preferences. |
| 78 | */ |
| 79 | /** |
| 80 | * Reset default styles for JavaScript UI based pages. |
| 81 | * This is a WP-admin agnostic reset |
| 82 | */ |
| 83 | /** |
| 84 | * Reset the WP Admin page styles for Gutenberg-like pages. |
| 85 | */ |
| 86 | /** |
| 87 | * Creates a checkerboard pattern background to indicate transparency. |
| 88 | * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 89 | */ |
| 90 | :root :where(figure.wp-block-gallery) { |
| 91 | display: block; |
| 92 | } |
| 93 | :root :where(figure.wp-block-gallery) > .blocks-gallery-caption { |
| 94 | flex: 0 0 100%; |
| 95 | } |
| 96 | :root :where(figure.wp-block-gallery) > .blocks-gallery-media-placeholder-wrapper { |
| 97 | flex-basis: 100%; |
| 98 | } |
| 99 | :root :where(figure.wp-block-gallery) .wp-block-image .components-notice.is-error { |
| 100 | display: block; |
| 101 | } |
| 102 | :root :where(figure.wp-block-gallery) .wp-block-image .components-notice__content { |
| 103 | margin: 4px 0; |
| 104 | } |
| 105 | :root :where(figure.wp-block-gallery) .wp-block-image .components-notice__dismiss { |
| 106 | position: absolute; |
| 107 | top: 0; |
| 108 | right: 5px; |
| 109 | } |
| 110 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label { |
| 111 | display: none; |
| 112 | } |
| 113 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button { |
| 114 | margin-bottom: 0; |
| 115 | } |
| 116 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder { |
| 117 | margin: 0; |
| 118 | } |
| 119 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label { |
| 120 | display: flex; |
| 121 | } |
| 122 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption { |
| 123 | z-index: 2; |
| 124 | } |
| 125 | :root :where(figure.wp-block-gallery) .components-spinner { |
| 126 | position: absolute; |
| 127 | top: 50%; |
| 128 | left: 50%; |
| 129 | margin-top: -9px; |
| 130 | margin-left: -9px; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Gallery inspector controls settings. |
| 135 | */ |
| 136 | .gallery-settings-buttons .components-button:first-child { |
| 137 | margin-right: 8px; |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Deprecated css past this point. This can be removed once all galleries are migrated |
| 142 | * to V2. |
| 143 | */ |
| 144 | .blocks-gallery-item figure:not(.is-selected):focus, |
| 145 | .blocks-gallery-item img:focus { |
| 146 | outline: none; |
| 147 | } |
| 148 | .blocks-gallery-item figure.is-selected::before { |
| 149 | box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset; |
| 150 | content: ""; |
| 151 | outline: 2px solid transparent; |
| 152 | position: absolute; |
| 153 | top: 0; |
| 154 | right: 0; |
| 155 | bottom: 0; |
| 156 | left: 0; |
| 157 | z-index: 1; |
| 158 | pointer-events: none; |
| 159 | } |
| 160 | .blocks-gallery-item figure.is-transient img { |
| 161 | opacity: 0.3; |
| 162 | } |
| 163 | .blocks-gallery-item .block-editor-media-placeholder { |
| 164 | margin: 0; |
| 165 | height: 100%; |
| 166 | } |
| 167 | .blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label { |
| 168 | display: flex; |
| 169 | } |
| 170 | |
| 171 | .wp-block-gallery ul.blocks-gallery-grid { |
| 172 | padding: 0; |
| 173 | margin: 0; |
| 174 | } |
| 175 | |
| 176 | @media (min-width: 600px) { |
| 177 | .wp-block-update-gallery-modal { |
| 178 | max-width: 480px; |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | .wp-block-update-gallery-modal-buttons { |
| 183 | display: flex; |
| 184 | justify-content: flex-end; |
| 185 | gap: 12px; |
| 186 | } |