| [ 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 * Standard focus rings for the WordPress Design System. 72 * 73 * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, 74 * e.g. `&:focus { @include outset-ring__focus(); }`. 75 */ 76 /** 77 * Applies editor left position to the selector passed as argument 78 */ 79 /** 80 * Styles that are reused verbatim in a few places 81 */ 82 /** 83 * Allows users to opt-out of animations via OS-level preferences. 84 */ 85 /** 86 * Reset default styles for JavaScript UI based pages. 87 * This is a WP-admin agnostic reset 88 */ 89 /** 90 * Reset the WP Admin page styles for Gutenberg-like pages. 91 */ 92 /** 93 * Creates a checkerboard pattern background to indicate transparency. 94 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. 95 */ 96 :root { 97 --wp-block-synced-color: #7a00df; 98 --wp-block-synced-color--rgb: 122, 0, 223; 99 --wp-bound-block-color: var(--wp-block-synced-color); 100 --wp-editor-canvas-background: #ddd; 101 --wp-admin-theme-color: #007cba; 102 --wp-admin-theme-color--rgb: 0, 124, 186; 103 --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5); 104 --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5; 105 --wp-admin-theme-color-darker-20: #005a87; 106 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135; 107 --wp-admin-border-width-focus: 2px; 108 } 109 @media (min-resolution: 192dpi) { 110 :root { 111 --wp-admin-border-width-focus: 1.5px; 112 } 113 } 114 115 .edit-post-meta-boxes-main { 116 filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133)); 117 outline: 1px solid transparent; 118 background-color: #fff; 119 display: flex; 120 flex-direction: column; 121 overflow: hidden; 122 } 123 124 .edit-post-meta-boxes-main__presenter { 125 flex-shrink: 0; 126 display: flex; 127 justify-content: center; 128 box-shadow: 0 1px #ddd; 129 outline: 1px solid transparent; 130 position: relative; 131 z-index: 1; 132 height: 32px; 133 } 134 @media (pointer: coarse) { 135 .edit-post-meta-boxes-main__presenter { 136 height: 36px; 137 } 138 } 139 .edit-post-meta-boxes-main__presenter > button { 140 appearance: none; 141 padding: 0; 142 border: none; 143 outline: none; 144 background-color: transparent; 145 touch-action: none; 146 } 147 .edit-post-meta-boxes-main__presenter > button[aria-expanded] { 148 cursor: var(--wpds-cursor-control, pointer); 149 width: 100%; 150 display: flex; 151 justify-content: space-between; 152 align-items: center; 153 padding-inline: 24px 12px; 154 } 155 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) { 156 color: var(--wp-admin-theme-color); 157 } 158 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after { 159 content: ""; 160 position: absolute; 161 inset: var(--wp-admin-border-width-focus); 162 box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); 163 outline: 2px solid transparent; 164 } 165 .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg { 166 fill: currentColor; 167 } 168 .edit-post-meta-boxes-main__presenter > button[role=separator] { 169 cursor: row-resize; 170 position: absolute; 171 width: 64px; 172 height: inherit; 173 } 174 .edit-post-meta-boxes-main__presenter > button[role=separator]::before { 175 content: ""; 176 background-color: #ddd; 177 outline: 2px solid transparent; 178 outline-offset: -2px; 179 position: absolute; 180 inset-block: calc(50% - 4px / 2) auto; 181 transform: translateX(-50%); 182 width: inherit; 183 height: 4px; 184 border-radius: 2px; 185 } 186 @media not (prefers-reduced-motion) { 187 .edit-post-meta-boxes-main__presenter > button[role=separator]::before { 188 transition: width 0.3s ease-out; 189 } 190 } 191 .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before { 192 background-color: var(--wp-admin-theme-color); 193 width: 80px; 194 } 195 196 .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner { 197 overflow: auto; 198 } 199 .edit-post-meta-boxes-main__liner { 200 isolation: isolate; 201 } 202 .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner { 203 display: unset; 204 } 205 206 .edit-post-layout__metaboxes { 207 clear: both; 208 } 209 210 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor { 211 flex-shrink: 1; 212 flex-basis: 0%; 213 overflow: hidden; 214 isolation: isolate; 215 } 216 217 .edit-post-layout__snackbar { 218 position: fixed; 219 bottom: var(--wpds-dimension-size-md, 32px); 220 left: 0; 221 right: 0; 222 padding-inline: 16px; 223 box-sizing: border-box; 224 display: flex; 225 flex-direction: column; 226 pointer-events: none; 227 } 228 .edit-post-layout__snackbar .components-snackbar { 229 margin-inline: auto; 230 } 231 232 .edit-post-meta-boxes-area { 233 position: relative; 234 /** 235 * The wordpress default for most meta-box elements is content-box. Some 236 * elements such as textarea and input are set to border-box in forms.css. 237 * These elements therefore specifically set back to border-box here, while 238 * other elements (such as .button) are unaffected by Gutenberg's style 239 * because of their higher specificity. 240 */ 241 } 242 .edit-post-meta-boxes-area__container, 243 .edit-post-meta-boxes-area .inside { 244 box-sizing: content-box; 245 } 246 .edit-post-meta-boxes-area textarea, 247 .edit-post-meta-boxes-area input { 248 box-sizing: border-box; 249 } 250 .edit-post-meta-boxes-area .postbox-header { 251 border-top: 1px solid #e0e0e0; 252 border-bottom: 0; 253 } 254 .edit-post-meta-boxes-area { 255 /* Match width and positioning of the meta boxes. Override default styles. */ 256 } 257 .edit-post-meta-boxes-area #poststuff { 258 margin: 0 auto; 259 padding-top: 0; 260 min-width: auto; 261 } 262 .edit-post-meta-boxes-area { 263 /* Override Default meta box stylings */ 264 } 265 .edit-post-meta-boxes-area #poststuff h3.hndle, 266 .edit-post-meta-boxes-area #poststuff .stuffbox > h3, 267 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */ 268 box-sizing: border-box; 269 color: #1e1e1e; 270 font-size: 13px; 271 font-weight: var(--wpds-typography-font-weight-emphasis, 600); 272 outline: none; 273 padding: 0 24px; 274 position: relative; 275 width: 100%; 276 } 277 .edit-post-meta-boxes-area .postbox { 278 border: 0; 279 color: inherit; 280 margin-bottom: 0; 281 } 282 .edit-post-meta-boxes-area .postbox > .inside { 283 color: inherit; 284 padding: 0 24px 24px; 285 margin: 0; 286 } 287 .edit-post-meta-boxes-area .postbox .handlediv { 288 height: 44px; 289 width: 44px; 290 } 291 .edit-post-meta-boxes-area.is-loading::before { 292 position: absolute; 293 top: 0; 294 left: 0; 295 right: 0; 296 bottom: 0; 297 content: ""; 298 background: transparent; 299 z-index: 1; 300 } 301 .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner { 302 position: absolute; 303 top: 10px; 304 right: 20px; 305 z-index: 2; 306 } 307 .edit-post-meta-boxes-area .is-hidden { 308 display: none; 309 } 310 311 .edit-post-meta-boxes-area__clear { 312 clear: both; 313 } 314 315 .edit-post-welcome-guide, 316 .edit-template-welcome-guide { 317 width: 312px; 318 } 319 .edit-post-welcome-guide__image, 320 .edit-template-welcome-guide__image { 321 background: #00a0d2; 322 margin: 0 0 16px; 323 } 324 .edit-post-welcome-guide__image > img, 325 .edit-template-welcome-guide__image > img { 326 display: block; 327 max-width: 100%; 328 object-fit: cover; 329 } 330 .edit-post-welcome-guide__heading, 331 .edit-template-welcome-guide__heading { 332 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 333 font-size: 24px; 334 line-height: 1.4; 335 margin: 16px 0 16px 0; 336 padding: 0 24px; 337 } 338 .edit-post-welcome-guide__text, 339 .edit-template-welcome-guide__text { 340 font-size: 13px; 341 line-height: 1.4; 342 margin: 0 0 24px 0; 343 padding: 0 24px; 344 } 345 .edit-post-welcome-guide__inserter-icon, 346 .edit-template-welcome-guide__inserter-icon { 347 margin: 0 4px; 348 vertical-align: text-top; 349 } 350 .edit-post-welcome-guide .components-button:hover svg, 351 .edit-template-welcome-guide .components-button:hover svg { 352 color: #fff; 353 } 354 355 .edit-template-welcome-guide .components-button svg { 356 color: #fff; 357 } 358 359 body.js.block-editor-page { 360 background: #fff; 361 } 362 body.js.block-editor-page #wpcontent { 363 padding-left: 0; 364 } 365 body.js.block-editor-page #wpbody-content { 366 padding-bottom: 0; 367 } 368 body.js.block-editor-page { 369 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well. 370 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */ 371 } 372 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) { 373 display: none; 374 } 375 body.js.block-editor-page #wpfooter { 376 display: none; 377 } 378 body.js.block-editor-page .a11y-speak-region { 379 left: -1px; 380 top: -1px; 381 } 382 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after, 383 body.js.block-editor-page ul#adminmenu > li.current > a.current::after { 384 border-right-color: #fff; 385 } 386 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type { 387 width: auto; 388 max-width: 100%; 389 } 390 @media (min-width: 782px) { 391 body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) { 392 --wp-admin--admin-bar--height: 0px; 393 --wp-editor-admin-bar-display: none; 394 } 395 body.js.block-editor-page.is-fullscreen-mode #wpadminbar { 396 display: var(--wp-editor-admin-bar-display, block); 397 } 398 } 399 400 .block-editor-page #wpwrap { 401 overflow-y: auto; 402 } 403 @media (min-width: 782px) { 404 .block-editor-page #wpwrap { 405 overflow-y: initial; 406 } 407 } 408 409 .edit-post-visual-editor { 410 box-sizing: border-box; 411 } 412 .edit-post-visual-editor *, 413 .edit-post-visual-editor *::before, 414 .edit-post-visual-editor *::after { 415 box-sizing: inherit; 416 } 417 418 @media (min-width: 600px) { 419 .block-editor__container { 420 position: absolute; 421 top: 0; 422 right: 0; 423 bottom: 0; 424 left: 0; 425 min-height: calc(100vh - 46px); 426 } 427 } 428 @media (min-width: 782px) { 429 .block-editor__container { 430 min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); 431 } 432 } 433 .block-editor__container img { 434 max-width: 100%; 435 height: auto; 436 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Fri Sep 25 08:20:31 2026 | Cross-referenced by PHPXref |