build/styles/block-directory
style-rtl.css
6.1 KB
4 months ago
style-rtl.min.css
3.7 KB
4 months ago
style.css
6.1 KB
4 months ago
style.min.css
3.7 KB
4 months ago
style.css in Gutenberg 23.2.0, at build/styles/block-directory/style.css
| 1 | /** |
| 2 | * Typography |
| 3 | */ |
| 4 | /** |
| 5 | * SCSS Variables. |
| 6 | * |
| 7 | * Please use variables from this sheet to ensure consistency across the UI. |
| 8 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 9 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 10 | */ |
| 11 | /** |
| 12 | * Colors |
| 13 | */ |
| 14 | /** |
| 15 | * Fonts & basic variables. |
| 16 | */ |
| 17 | /** |
| 18 | * Typography |
| 19 | */ |
| 20 | /** |
| 21 | * Grid System. |
| 22 | * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 23 | */ |
| 24 | /** |
| 25 | * Radius scale. |
| 26 | */ |
| 27 | /** |
| 28 | * Elevation scale. |
| 29 | */ |
| 30 | /** |
| 31 | * Dimensions. |
| 32 | */ |
| 33 | /** |
| 34 | * Mobile specific styles |
| 35 | */ |
| 36 | /** |
| 37 | * Editor styles. |
| 38 | */ |
| 39 | /** |
| 40 | * Block & Editor UI. |
| 41 | */ |
| 42 | /** |
| 43 | * Block paddings. |
| 44 | */ |
| 45 | /** |
| 46 | * React Native specific. |
| 47 | * These variables do not appear to be used anywhere else. |
| 48 | */ |
| 49 | /** |
| 50 | * Breakpoints & Media Queries |
| 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 { |
| 91 | --wp-block-synced-color: #7a00df; |
| 92 | --wp-block-synced-color--rgb: 122, 0, 223; |
| 93 | --wp-bound-block-color: var(--wp-block-synced-color); |
| 94 | --wp-editor-canvas-background: #ddd; |
| 95 | --wp-admin-theme-color: #007cba; |
| 96 | --wp-admin-theme-color--rgb: 0, 124, 186; |
| 97 | --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5); |
| 98 | --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5; |
| 99 | --wp-admin-theme-color-darker-20: #005a87; |
| 100 | --wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
| 101 | --wp-admin-border-width-focus: 2px; |
| 102 | } |
| 103 | @media (min-resolution: 192dpi) { |
| 104 | :root { |
| 105 | --wp-admin-border-width-focus: 1.5px; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | .block-directory-block-ratings > span { |
| 110 | display: flex; |
| 111 | } |
| 112 | .block-directory-block-ratings svg { |
| 113 | fill: #1e1e1e; |
| 114 | margin-left: -4px; |
| 115 | } |
| 116 | .block-directory-block-ratings .block-directory-block-ratings__star-empty { |
| 117 | fill: #ccc; |
| 118 | } |
| 119 | |
| 120 | .block-directory-compact-list { |
| 121 | margin: 0; |
| 122 | list-style: none; |
| 123 | } |
| 124 | |
| 125 | .block-directory-compact-list__item { |
| 126 | display: flex; |
| 127 | flex-direction: row; |
| 128 | align-items: center; |
| 129 | margin-bottom: 16px; |
| 130 | } |
| 131 | .block-directory-compact-list__item:last-child { |
| 132 | margin-bottom: 0; |
| 133 | } |
| 134 | |
| 135 | .block-directory-compact-list__item-details { |
| 136 | margin-left: 8px; |
| 137 | } |
| 138 | |
| 139 | .block-directory-compact-list__item-title { |
| 140 | font-weight: 499; |
| 141 | } |
| 142 | |
| 143 | .block-directory-compact-list__item-author { |
| 144 | color: #757575; |
| 145 | font-size: 11px; |
| 146 | } |
| 147 | |
| 148 | .block-directory-downloadable-block-icon { |
| 149 | min-width: 54px; |
| 150 | width: 54px; |
| 151 | height: 54px; |
| 152 | vertical-align: middle; |
| 153 | border: 1px solid #ddd; |
| 154 | } |
| 155 | |
| 156 | .block-directory-downloadable-block-list-item + .block-directory-downloadable-block-list-item { |
| 157 | margin-top: 4px; |
| 158 | } |
| 159 | .block-directory-downloadable-block-list-item { |
| 160 | display: grid; |
| 161 | grid-template-columns: auto 1fr; |
| 162 | width: 100%; |
| 163 | height: auto; |
| 164 | padding: 12px; |
| 165 | margin: 0; |
| 166 | appearance: none; |
| 167 | background: none; |
| 168 | border: 0; |
| 169 | text-align: left; |
| 170 | } |
| 171 | @media not (prefers-reduced-motion) { |
| 172 | .block-directory-downloadable-block-list-item { |
| 173 | transition: box-shadow 0.1s linear; |
| 174 | } |
| 175 | } |
| 176 | .block-directory-downloadable-block-list-item { |
| 177 | position: relative; |
| 178 | } |
| 179 | .block-directory-downloadable-block-list-item:not([aria-disabled=true]) { |
| 180 | cursor: var(--wpds-cursor-control, pointer); |
| 181 | } |
| 182 | .block-directory-downloadable-block-list-item:hover { |
| 183 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 184 | outline: 2px solid transparent; |
| 185 | } |
| 186 | .block-directory-downloadable-block-list-item[data-focus-visible] { |
| 187 | box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
| 188 | outline: 2px solid transparent; |
| 189 | } |
| 190 | .block-directory-downloadable-block-list-item.is-installing .block-directory-downloadable-block-list-item__author { |
| 191 | display: none; |
| 192 | } |
| 193 | |
| 194 | .block-directory-downloadable-block-list-item__icon { |
| 195 | position: relative; |
| 196 | margin-right: 16px; |
| 197 | align-self: flex-start; |
| 198 | } |
| 199 | .block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner { |
| 200 | position: absolute; |
| 201 | top: 0; |
| 202 | right: 0; |
| 203 | bottom: 0; |
| 204 | left: 0; |
| 205 | background: rgba(255, 255, 255, 0.75); |
| 206 | display: flex; |
| 207 | align-items: center; |
| 208 | justify-content: center; |
| 209 | } |
| 210 | .is-installing .block-directory-downloadable-block-list-item__icon { |
| 211 | margin-right: 22px; |
| 212 | } |
| 213 | |
| 214 | .block-directory-block-ratings { |
| 215 | display: block; |
| 216 | margin-top: 4px; |
| 217 | } |
| 218 | |
| 219 | .block-directory-downloadable-block-list-item__details { |
| 220 | color: #1e1e1e; |
| 221 | } |
| 222 | |
| 223 | .block-directory-downloadable-block-list-item__title { |
| 224 | display: block; |
| 225 | font-weight: 600; |
| 226 | } |
| 227 | |
| 228 | .block-directory-downloadable-block-list-item__author { |
| 229 | display: block; |
| 230 | margin-top: 4px; |
| 231 | font-weight: normal; |
| 232 | } |
| 233 | |
| 234 | .block-directory-downloadable-block-list-item__desc { |
| 235 | display: block; |
| 236 | margin-top: 8px; |
| 237 | } |
| 238 | |
| 239 | .block-directory-downloadable-block-notice { |
| 240 | margin: 8px 0 0; |
| 241 | color: #cc1818; |
| 242 | } |
| 243 | |
| 244 | .block-directory-downloadable-block-notice__content { |
| 245 | padding-right: 12px; |
| 246 | margin-bottom: 8px; |
| 247 | } |
| 248 | |
| 249 | .block-directory-downloadable-blocks-panel { |
| 250 | padding: 16px; |
| 251 | } |
| 252 | .block-directory-downloadable-blocks-panel.has-blocks-loading { |
| 253 | font-style: normal; |
| 254 | padding: 0; |
| 255 | margin: 112px 0; |
| 256 | text-align: center; |
| 257 | color: #757575; |
| 258 | } |
| 259 | .block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner { |
| 260 | float: inherit; |
| 261 | } |
| 262 | |
| 263 | .block-directory-downloadable-blocks-panel__no-local { |
| 264 | margin: 48px 0; |
| 265 | padding: 0 64px; |
| 266 | color: #757575; |
| 267 | text-align: center; |
| 268 | } |
| 269 | |
| 270 | .block-directory-downloadable-blocks-panel__title { |
| 271 | margin: 0 0 4px; |
| 272 | font-size: 14px; |
| 273 | } |
| 274 | |
| 275 | .block-directory-downloadable-blocks-panel__description { |
| 276 | margin-top: 0; |
| 277 | } |
| 278 | |
| 279 | .installed-blocks-pre-publish-panel__copy { |
| 280 | margin-top: 0; |
| 281 | } |