| [ 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 .commands-command-menu { 116 margin: auto; 117 position: relative; 118 top: calc(5% + 64px); 119 } 120 @media (min-width: 600px) { 121 .commands-command-menu { 122 top: calc(10% + 64px); 123 } 124 } 125 .commands-command-menu .components-modal__content { 126 margin: 0; 127 padding: 0; 128 overflow: hidden; 129 } 130 131 .commands-command-menu__overlay { 132 display: block; 133 align-items: start; 134 } 135 136 .commands-command-menu__header { 137 display: flex; 138 align-items: center; 139 gap: 8px; 140 padding: 0 16px; 141 } 142 .commands-command-menu__header .components-button { 143 height: 56px; 144 width: 56px; 145 border: 1px solid #949494; 146 border-right: 0; 147 justify-content: center; 148 border-radius: 2px 0 0 2px; 149 } 150 .commands-command-menu__header .components-button + [cmdk-input] { 151 border-top-left-radius: 0; 152 border-bottom-left-radius: 0; 153 } 154 155 .commands-command-menu__header-search-icon:dir(ltr) { 156 transform: scaleX(-1); 157 } 158 159 .commands-command-menu__container { 160 will-change: transform; 161 } 162 .commands-command-menu__container [cmdk-input] { 163 border: none; 164 width: 100%; 165 padding: 12px 4px; 166 outline: none; 167 color: #1e1e1e; 168 margin: 0; 169 font-size: 15px; 170 line-height: 24px; 171 border-radius: 0; 172 } 173 .commands-command-menu__container [cmdk-input]::-moz-placeholder { 174 color: #757575; 175 } 176 .commands-command-menu__container [cmdk-input]::placeholder { 177 color: #757575; 178 } 179 .commands-command-menu__container [cmdk-input]:focus { 180 box-shadow: none; 181 outline: none; 182 } 183 .commands-command-menu__container [cmdk-item] { 184 cursor: var(--wpds-cursor-control, pointer); 185 display: flex; 186 align-items: center; 187 padding: 4px 0; 188 color: #1e1e1e; 189 font-size: 13px; 190 } 191 .commands-command-menu__container [cmdk-item][aria-disabled=true] { 192 color: #949494; 193 cursor: not-allowed; 194 } 195 .commands-command-menu__container [cmdk-item] svg { 196 fill: #1e1e1e; 197 } 198 .commands-command-menu__container [cmdk-item] > div { 199 border-radius: 2px; 200 min-height: 32px; 201 padding: 4px; 202 padding-left: 40px; 203 padding-right: 16px; 204 } 205 .commands-command-menu__container [cmdk-item][aria-selected=true] > div, .commands-command-menu__container [cmdk-item]:active > div { 206 background: var(--wp-admin-theme-color); 207 color: #fff; 208 } 209 .commands-command-menu__container [cmdk-item][aria-selected=true] > div svg, .commands-command-menu__container [cmdk-item]:active > div svg { 210 fill: #fff; 211 } 212 .commands-command-menu__container [cmdk-item] > .has-icon { 213 padding-left: 8px; 214 } 215 .commands-command-menu__container [cmdk-group]:has([cmdk-group-items]:empty) { 216 display: none; 217 } 218 .commands-command-menu__container [cmdk-root] > [cmdk-list] { 219 max-height: min(328px, 70vh - 48px); 220 overflow: auto; 221 scroll-padding-top: 8px; 222 scroll-padding-bottom: 8px; 223 } 224 .commands-command-menu__container [cmdk-root] > [cmdk-list]:has([cmdk-group-items]:not(:empty)), .commands-command-menu__container [cmdk-root] > [cmdk-list]:has([cmdk-empty]) { 225 border-top: 1px solid #ddd; 226 } 227 .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-list-sizer] > [cmdk-group] > [cmdk-group-items]:not(:empty) { 228 padding: 0 8px 4px; 229 } 230 .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-group-heading] { 231 margin-top: 8px; 232 padding: 8px 16px; 233 line-height: 16px; 234 font-size: 11px; 235 font-weight: var(--wpds-typography-font-weight-emphasis, 600); 236 text-transform: uppercase; 237 color: #1e1e1e; 238 } 239 .commands-command-menu__container [cmdk-empty] { 240 display: flex; 241 align-items: center; 242 justify-content: center; 243 white-space: pre-wrap; 244 color: #1e1e1e; 245 padding: 8px 0 32px; 246 } 247 .commands-command-menu__container [cmdk-loading] { 248 padding: 16px; 249 } 250 .commands-command-menu__container [cmdk-list-sizer] { 251 position: relative; 252 } 253 254 .commands-command-menu__item-label { 255 display: inline-block; 256 overflow: hidden; 257 text-overflow: ellipsis; 258 white-space: nowrap; 259 flex: 1; 260 min-width: 0; 261 } 262 263 .commands-command-menu__item-category { 264 flex: 0 0 auto; 265 margin-left: auto; 266 padding-left: 24px; 267 color: #757575; 268 font-size: 13px; 269 line-height: 1.4; 270 text-align: right; 271 } 272 [aria-selected=true] .commands-command-menu__item-category, [cmdk-item]:active .commands-command-menu__item-category { 273 color: rgba(255, 255, 255, 0.8); 274 } 275 276 .commands-command-menu__item mark { 277 color: inherit; 278 background: unset; 279 font-weight: var(--wpds-typography-font-weight-emphasis, 600); 280 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sun Jul 26 08:20:18 2026 | Cross-referenced by PHPXref |