| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
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 .wp-block-image > a, 87 .wp-block-image > figure > a { 88 display: inline-block; 89 } 90 .wp-block-image img { 91 height: auto; 92 max-width: 100%; 93 vertical-align: bottom; 94 box-sizing: border-box; 95 } 96 @media not (prefers-reduced-motion) { 97 .wp-block-image img.hide { 98 visibility: hidden; 99 } 100 .wp-block-image img.show { 101 animation: show-content-image 0.4s; 102 } 103 } 104 .wp-block-image[style*=border-radius] > a, 105 .wp-block-image[style*=border-radius] img { 106 border-radius: inherit; 107 } 108 .wp-block-image.has-custom-border img { 109 box-sizing: border-box; 110 } 111 .wp-block-image.aligncenter { 112 text-align: center; 113 } 114 .wp-block-image.alignfull > a, .wp-block-image.alignwide > a { 115 width: 100%; 116 } 117 .wp-block-image.alignfull img, .wp-block-image.alignwide img { 118 height: auto; 119 width: 100%; 120 } 121 .wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter, 122 .wp-block-image .alignleft, 123 .wp-block-image .alignright, 124 .wp-block-image .aligncenter { 125 display: table; 126 } 127 .wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption, 128 .wp-block-image .alignleft > figcaption, 129 .wp-block-image .alignright > figcaption, 130 .wp-block-image .aligncenter > figcaption { 131 display: table-caption; 132 caption-side: bottom; 133 } 134 .wp-block-image .alignleft { 135 /*rtl:ignore*/ 136 float: left; 137 /*rtl:ignore*/ 138 margin-left: 0; 139 /*rtl:ignore*/ 140 margin-right: 1em; 141 margin-top: 0.5em; 142 margin-bottom: 0.5em; 143 } 144 .wp-block-image .alignright { 145 /*rtl:ignore*/ 146 float: right; 147 /*rtl:ignore*/ 148 margin-right: 0; 149 /*rtl:ignore*/ 150 margin-left: 1em; 151 margin-top: 0.5em; 152 margin-bottom: 0.5em; 153 } 154 .wp-block-image .aligncenter { 155 margin-left: auto; 156 margin-right: auto; 157 } 158 .wp-block-image :where(figcaption) { 159 margin-top: 0.5em; 160 margin-bottom: 1em; 161 } 162 .wp-block-image.is-style-circle-mask img { 163 border-radius: 9999px; 164 } 165 @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) { 166 .wp-block-image.is-style-circle-mask img { 167 /* stylelint-disable-next-line function-url-quotes -- We need quotes for the data URL to use the SVG inline. */ 168 -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); 169 mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>'); 170 mask-mode: alpha; 171 -webkit-mask-repeat: no-repeat; 172 mask-repeat: no-repeat; 173 -webkit-mask-size: contain; 174 mask-size: contain; 175 -webkit-mask-position: center; 176 mask-position: center; 177 border-radius: 0; 178 } 179 } 180 181 :root :where(.wp-block-image.is-style-rounded img, .wp-block-image .is-style-rounded img) { 182 border-radius: 9999px; 183 } 184 185 .wp-block-image figure { 186 margin: 0; 187 } 188 189 .wp-lightbox-container { 190 position: relative; 191 display: flex; 192 flex-direction: column; 193 } 194 .wp-lightbox-container img { 195 cursor: zoom-in; 196 } 197 .wp-lightbox-container img:hover + button { 198 opacity: 1; 199 } 200 .wp-lightbox-container button { 201 opacity: 0; 202 border: none; 203 background-color: rgba(90, 90, 90, 0.25); 204 backdrop-filter: blur(16px) saturate(180%); 205 cursor: zoom-in; 206 display: flex; 207 justify-content: center; 208 align-items: center; 209 width: 20px; 210 height: 20px; 211 position: absolute; 212 z-index: 100; 213 top: 16px; 214 right: 16px; 215 text-align: center; 216 padding: 0; 217 border-radius: 4px; 218 } 219 @media not (prefers-reduced-motion) { 220 .wp-lightbox-container button { 221 transition: opacity 0.2s ease; 222 } 223 } 224 .wp-lightbox-container button:focus-visible { 225 outline: 3px auto rgba(90, 90, 90, 0.25); 226 outline: 3px auto -webkit-focus-ring-color; 227 outline-offset: 3px; 228 } 229 .wp-lightbox-container button:hover { 230 cursor: pointer; 231 opacity: 1; 232 } 233 .wp-lightbox-container button:focus { 234 opacity: 1; 235 } 236 .wp-lightbox-container button:hover, .wp-lightbox-container button:focus, .wp-lightbox-container button:not(:hover):not(:active):not(.has-background) { 237 background-color: rgba(90, 90, 90, 0.25); 238 border: none; 239 } 240 241 .wp-lightbox-overlay { 242 position: fixed; 243 top: 0; 244 left: 0; 245 z-index: 100000; 246 overflow: hidden; 247 width: 100%; 248 height: 100vh; 249 box-sizing: border-box; 250 visibility: hidden; 251 cursor: zoom-out; 252 } 253 .wp-lightbox-overlay .close-button { 254 position: absolute; 255 top: calc(env(safe-area-inset-top) + 16px); 256 right: calc(env(safe-area-inset-right) + 16px); 257 padding: 0; 258 cursor: pointer; 259 z-index: 5000000; 260 min-width: 40px; 261 min-height: 40px; 262 display: flex; 263 align-items: center; 264 justify-content: center; 265 } 266 .wp-lightbox-overlay .close-button:hover, .wp-lightbox-overlay .close-button:focus, .wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background) { 267 background: none; 268 border: none; 269 } 270 .wp-lightbox-overlay .lightbox-image-container { 271 position: absolute; 272 overflow: hidden; 273 top: 50%; 274 left: 50%; 275 transform-origin: top left; 276 transform: translate(-50%, -50%); 277 width: var(--wp--lightbox-container-width); 278 height: var(--wp--lightbox-container-height); 279 z-index: 9999999999; 280 } 281 .wp-lightbox-overlay .wp-block-image { 282 position: relative; 283 transform-origin: 0 0; 284 display: flex; 285 width: 100%; 286 height: 100%; 287 justify-content: center; 288 align-items: center; 289 box-sizing: border-box; 290 z-index: 3000000; 291 margin: 0; 292 } 293 .wp-lightbox-overlay .wp-block-image img { 294 min-width: var(--wp--lightbox-image-width); 295 min-height: var(--wp--lightbox-image-height); 296 width: var(--wp--lightbox-image-width); 297 height: var(--wp--lightbox-image-height); 298 } 299 .wp-lightbox-overlay .wp-block-image figcaption { 300 display: none; 301 } 302 .wp-lightbox-overlay button { 303 border: none; 304 background: none; 305 } 306 .wp-lightbox-overlay .scrim { 307 width: 100%; 308 height: 100%; 309 position: absolute; 310 z-index: 2000000; 311 background-color: rgb(255, 255, 255); 312 opacity: 0.9; 313 } 314 .wp-lightbox-overlay.active { 315 visibility: visible; 316 } 317 @media not (prefers-reduced-motion) { 318 .wp-lightbox-overlay.active { 319 animation: both turn-on-visibility 0.25s; 320 } 321 } 322 @media not (prefers-reduced-motion) { 323 .wp-lightbox-overlay.active img { 324 animation: both turn-on-visibility 0.35s; 325 } 326 } 327 @media not (prefers-reduced-motion) { 328 .wp-lightbox-overlay.show-closing-animation:not(.active) { 329 animation: both turn-off-visibility 0.35s; 330 } 331 } 332 @media not (prefers-reduced-motion) { 333 .wp-lightbox-overlay.show-closing-animation:not(.active) img { 334 animation: both turn-off-visibility 0.25s; 335 } 336 } 337 @media not (prefers-reduced-motion) { 338 .wp-lightbox-overlay.zoom.active { 339 opacity: 1; 340 visibility: visible; 341 animation: none; 342 } 343 .wp-lightbox-overlay.zoom.active .lightbox-image-container { 344 animation: lightbox-zoom-in 0.4s; 345 } 346 .wp-lightbox-overlay.zoom.active .lightbox-image-container img { 347 animation: none; 348 } 349 .wp-lightbox-overlay.zoom.active .scrim { 350 animation: turn-on-visibility 0.4s forwards; 351 } 352 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) { 353 animation: none; 354 } 355 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container { 356 animation: lightbox-zoom-out 0.4s; 357 } 358 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img { 359 animation: none; 360 } 361 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim { 362 animation: turn-off-visibility 0.4s forwards; 363 } 364 } 365 366 @keyframes show-content-image { 367 0% { 368 visibility: hidden; 369 } 370 99% { 371 visibility: hidden; 372 } 373 100% { 374 visibility: visible; 375 } 376 } 377 @keyframes turn-on-visibility { 378 0% { 379 opacity: 0; 380 } 381 100% { 382 opacity: 1; 383 } 384 } 385 @keyframes turn-off-visibility { 386 0% { 387 opacity: 1; 388 visibility: visible; 389 } 390 99% { 391 opacity: 0; 392 visibility: visible; 393 } 394 100% { 395 opacity: 0; 396 visibility: hidden; 397 } 398 } 399 @keyframes lightbox-zoom-in { 400 0% { 401 transform: translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale)); 402 } 403 100% { 404 transform: translate(-50%, -50%) scale(1, 1); 405 } 406 } 407 @keyframes lightbox-zoom-out { 408 0% { 409 visibility: visible; 410 transform: translate(-50%, -50%) scale(1, 1); 411 } 412 99% { 413 visibility: visible; 414 } 415 100% { 416 visibility: hidden; 417 transform: translate(calc((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position)), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale)); 418 } 419 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Apr 15 08:20:10 2026 | Cross-referenced by PHPXref |