| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 /** 2 * Colors 3 */ 4 /** 5 * Typography 6 */ 7 /** 8 * SCSS Variables. 9 * 10 * Please use variables from this sheet to ensure consistency across the UI. 11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. 12 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. 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 /** 131 * Element styles. 132 */ 133 .wp-element-button { 134 cursor: pointer; 135 } 136 137 :root .has-very-light-gray-background-color { 138 background-color: #eee; 139 } 140 :root .has-very-dark-gray-background-color { 141 background-color: #313131; 142 } 143 :root .has-very-light-gray-color { 144 color: #eee; 145 } 146 :root .has-very-dark-gray-color { 147 color: #313131; 148 } 149 :root { 150 /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */ 151 } 152 :root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { 153 background: linear-gradient(135deg, rgb(0, 208, 132) 0%, rgb(6, 147, 227) 100%); 154 } 155 :root .has-purple-crush-gradient-background { 156 background: linear-gradient(135deg, rgb(52, 226, 228) 0%, rgb(71, 33, 251) 50%, rgb(171, 29, 254) 100%); 157 } 158 :root .has-hazy-dawn-gradient-background { 159 background: linear-gradient(135deg, rgb(250, 172, 168) 0%, rgb(218, 208, 236) 100%); 160 } 161 :root .has-subdued-olive-gradient-background { 162 background: linear-gradient(135deg, rgb(250, 250, 225) 0%, rgb(103, 166, 113) 100%); 163 } 164 :root .has-atomic-cream-gradient-background { 165 background: linear-gradient(135deg, rgb(253, 215, 154) 0%, rgb(0, 74, 89) 100%); 166 } 167 :root .has-nightshade-gradient-background { 168 background: linear-gradient(135deg, rgb(51, 9, 104) 0%, rgb(49, 205, 207) 100%); 169 } 170 :root .has-midnight-gradient-background { 171 background: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%); 172 } 173 :root { 174 /* stylelint-enable @stylistic/function-comma-space-after */ 175 --wp--preset--font-size--normal: 16px; 176 --wp--preset--font-size--huge: 42px; 177 } 178 179 .has-regular-font-size { 180 font-size: 1em; 181 } 182 183 .has-larger-font-size { 184 font-size: 2.625em; 185 } 186 187 .has-normal-font-size { 188 font-size: var(--wp--preset--font-size--normal); 189 } 190 191 .has-huge-font-size { 192 font-size: var(--wp--preset--font-size--huge); 193 } 194 195 :root .has-text-align-center { 196 text-align: center; 197 } 198 199 :root .has-text-align-left { 200 /*rtl:ignore*/ 201 text-align: left; 202 } 203 204 :root .has-text-align-right { 205 /*rtl:ignore*/ 206 text-align: right; 207 } 208 209 :root .has-text-color, 210 :root .has-inline-color, 211 :root .has-link-color a { 212 -webkit-text-fill-color: currentColor; 213 } 214 215 .has-fit-text { 216 white-space: nowrap !important; 217 } 218 219 #end-resizable-editor-section { 220 display: none; 221 } 222 223 .aligncenter { 224 clear: both; 225 } 226 227 .items-justified-left { 228 justify-content: flex-start; 229 } 230 231 .items-justified-center { 232 justify-content: center; 233 } 234 235 .items-justified-right { 236 justify-content: flex-end; 237 } 238 239 .items-justified-space-between { 240 justify-content: space-between; 241 } 242 243 .screen-reader-text { 244 border: 0; 245 clip-path: inset(50%); 246 height: 1px; 247 margin: -1px; 248 overflow: hidden; 249 padding: 0; 250 position: absolute; 251 width: 1px; 252 overflow-wrap: normal !important; 253 word-break: normal !important; 254 } 255 256 .screen-reader-text:focus { 257 background-color: #ddd; 258 clip-path: none; 259 color: #444; 260 display: block; 261 font-size: 1em; 262 height: auto; 263 left: 5px; 264 line-height: normal; 265 padding: 15px 23px 14px; 266 text-decoration: none; 267 top: 5px; 268 width: auto; 269 z-index: 100000; 270 } 271 272 /** 273 * The following provide a simple means of applying a default border style when 274 * a user first makes a selection in the border block support panel. 275 * This prevents issues such as where the user could set a border width 276 * and see no border due there being no border style set. 277 * 278 * This is intended to be removed once intelligent defaults can be set while 279 * making border selections via the block support. 280 * 281 * See: https://github.com/WordPress/gutenberg/pull/33743 282 */ 283 html :where(.has-border-color) { 284 border-style: solid; 285 } 286 287 html :where([style^=border-color], 288 [style*=";border-color"], 289 [style*="; border-color"]) { 290 border-style: solid; 291 } 292 293 html :where([style^=border-top-color], 294 [style*=";border-top-color"], 295 [style*="; border-top-color"]) { 296 border-top-style: solid; 297 } 298 299 html :where([style^=border-right-color], 300 [style*=";border-right-color"], 301 [style*="; border-right-color"]) { 302 /*rtl:ignore*/ 303 border-right-style: solid; 304 } 305 306 html :where([style^=border-bottom-color], 307 [style*=";border-bottom-color"], 308 [style*="; border-bottom-color"]) { 309 border-bottom-style: solid; 310 } 311 312 html :where([style^=border-left-color], 313 [style*=";border-left-color"], 314 [style*="; border-left-color"]) { 315 /*rtl:ignore*/ 316 border-left-style: solid; 317 } 318 319 html :where([style^=border-width], 320 [style*=";border-width"], 321 [style*="; border-width"]) { 322 border-style: solid; 323 } 324 325 html :where([style^=border-top-width], 326 [style*=";border-top-width"], 327 [style*="; border-top-width"]) { 328 border-top-style: solid; 329 } 330 331 html :where([style^=border-right-width], 332 [style*=";border-right-width"], 333 [style*="; border-right-width"]) { 334 /*rtl:ignore*/ 335 border-right-style: solid; 336 } 337 338 html :where([style^=border-bottom-width], 339 [style*=";border-bottom-width"], 340 [style*="; border-bottom-width"]) { 341 border-bottom-style: solid; 342 } 343 344 html :where([style^=border-left-width], 345 [style*=";border-left-width"], 346 [style*="; border-left-width"]) { 347 /*rtl:ignore*/ 348 border-left-style: solid; 349 } 350 351 /** 352 * Provide baseline responsiveness for images. 353 */ 354 html :where(img[class*=wp-image-]) { 355 height: auto; 356 max-width: 100%; 357 } 358 359 /** 360 * Reset user agent styles for figure element margins. 361 */ 362 :where(figure) { 363 margin: 0 0 1em 0; 364 } 365 366 html :where(.is-position-sticky) { 367 --wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px); 368 } 369 370 @media screen and (max-width: 600px) { 371 html :where(.is-position-sticky) { 372 --wp-admin--admin-bar--position-offset: 0px; 373 } 374 } 375 /*!rtl:begin:ignore*/ 376 @supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) { 377 mtd[columnalign=right] { 378 text-align: -webkit-right; 379 } 380 mtd[columnalign=left] { 381 text-align: -webkit-left; 382 } 383 menclose[notation~=top] { 384 padding-top: 0.1em; 385 border-top: 0.065em solid; 386 } 387 menclose[notation~=bottom] { 388 padding-bottom: 0.1em; 389 border-bottom: 0.065em solid; 390 } 391 } 392 /*!rtl:end:ignore*/
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Nov 4 08:20:38 2026 | Cross-referenced by PHPXref |