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