build/styles/commands
style-rtl.css
6.3 KB
4 months ago
style-rtl.min.css
3.9 KB
4 months ago
style.css
6.3 KB
4 months ago
style.min.css
3.9 KB
4 months ago
| 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 | /** |
| 87 | * Creates a checkerboard pattern background to indicate transparency. |
| 88 | * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 89 | */ |
| 90 | :root { |
| 91 | --wp-block-synced-color: #7a00df; |
| 92 | --wp-block-synced-color--rgb: 122, 0, 223; |
| 93 | --wp-bound-block-color: var(--wp-block-synced-color); |
| 94 | --wp-editor-canvas-background: #ddd; |
| 95 | --wp-admin-theme-color: #007cba; |
| 96 | --wp-admin-theme-color--rgb: 0, 124, 186; |
| 97 | --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5); |
| 98 | --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5; |
| 99 | --wp-admin-theme-color-darker-20: #005a87; |
| 100 | --wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
| 101 | --wp-admin-border-width-focus: 2px; |
| 102 | } |
| 103 | @media (min-resolution: 192dpi) { |
| 104 | :root { |
| 105 | --wp-admin-border-width-focus: 1.5px; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | .commands-command-menu { |
| 110 | margin: auto; |
| 111 | position: relative; |
| 112 | top: calc(5% + 64px); |
| 113 | } |
| 114 | @media (min-width: 600px) { |
| 115 | .commands-command-menu { |
| 116 | top: calc(10% + 64px); |
| 117 | } |
| 118 | } |
| 119 | .commands-command-menu .components-modal__content { |
| 120 | margin: 0; |
| 121 | padding: 0; |
| 122 | overflow: hidden; |
| 123 | } |
| 124 | |
| 125 | .commands-command-menu__overlay { |
| 126 | display: block; |
| 127 | align-items: start; |
| 128 | } |
| 129 | |
| 130 | .commands-command-menu__header { |
| 131 | display: flex; |
| 132 | align-items: center; |
| 133 | gap: 8px; |
| 134 | padding: 0 16px; |
| 135 | } |
| 136 | .commands-command-menu__header .components-button { |
| 137 | height: 56px; |
| 138 | width: 56px; |
| 139 | border: 1px solid #949494; |
| 140 | border-right: 0; |
| 141 | justify-content: center; |
| 142 | border-radius: 2px 0 0 2px; |
| 143 | } |
| 144 | .commands-command-menu__header .components-button + [cmdk-input] { |
| 145 | border-top-left-radius: 0; |
| 146 | border-bottom-left-radius: 0; |
| 147 | } |
| 148 | |
| 149 | .commands-command-menu__header-search-icon:dir(ltr) { |
| 150 | transform: scaleX(-1); |
| 151 | } |
| 152 | |
| 153 | .commands-command-menu__container { |
| 154 | will-change: transform; |
| 155 | } |
| 156 | .commands-command-menu__container [cmdk-input] { |
| 157 | border: none; |
| 158 | width: 100%; |
| 159 | padding: 12px 4px; |
| 160 | outline: none; |
| 161 | color: #1e1e1e; |
| 162 | margin: 0; |
| 163 | font-size: 15px; |
| 164 | line-height: 24px; |
| 165 | border-radius: 0; |
| 166 | } |
| 167 | .commands-command-menu__container [cmdk-input]::placeholder { |
| 168 | color: #757575; |
| 169 | } |
| 170 | .commands-command-menu__container [cmdk-input]:focus { |
| 171 | box-shadow: none; |
| 172 | outline: none; |
| 173 | } |
| 174 | .commands-command-menu__container [cmdk-item] { |
| 175 | cursor: var(--wpds-cursor-control, pointer); |
| 176 | display: flex; |
| 177 | align-items: center; |
| 178 | padding: 4px 0; |
| 179 | color: #1e1e1e; |
| 180 | font-size: 13px; |
| 181 | } |
| 182 | .commands-command-menu__container [cmdk-item][aria-disabled=true] { |
| 183 | color: #949494; |
| 184 | cursor: not-allowed; |
| 185 | } |
| 186 | .commands-command-menu__container [cmdk-item] svg { |
| 187 | fill: #1e1e1e; |
| 188 | } |
| 189 | .commands-command-menu__container [cmdk-item] > div { |
| 190 | border-radius: 2px; |
| 191 | min-height: 32px; |
| 192 | padding: 4px; |
| 193 | padding-left: 40px; |
| 194 | padding-right: 16px; |
| 195 | } |
| 196 | .commands-command-menu__container [cmdk-item][aria-selected=true] > div, .commands-command-menu__container [cmdk-item]:active > div { |
| 197 | background: var(--wp-admin-theme-color); |
| 198 | color: #fff; |
| 199 | } |
| 200 | .commands-command-menu__container [cmdk-item][aria-selected=true] > div svg, .commands-command-menu__container [cmdk-item]:active > div svg { |
| 201 | fill: #fff; |
| 202 | } |
| 203 | .commands-command-menu__container [cmdk-item] > .has-icon { |
| 204 | padding-left: 8px; |
| 205 | } |
| 206 | .commands-command-menu__container [cmdk-group]:has([cmdk-group-items]:empty) { |
| 207 | display: none; |
| 208 | } |
| 209 | .commands-command-menu__container [cmdk-root] > [cmdk-list] { |
| 210 | max-height: min(328px, 70vh - 48px); |
| 211 | overflow: auto; |
| 212 | scroll-padding-top: 8px; |
| 213 | scroll-padding-bottom: 8px; |
| 214 | } |
| 215 | .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]) { |
| 216 | border-top: 1px solid #ddd; |
| 217 | } |
| 218 | .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-list-sizer] > [cmdk-group] > [cmdk-group-items]:not(:empty) { |
| 219 | padding: 0 8px 4px; |
| 220 | } |
| 221 | .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-group-heading] { |
| 222 | margin-top: 8px; |
| 223 | padding: 8px 16px; |
| 224 | line-height: 16px; |
| 225 | font-size: 11px; |
| 226 | font-weight: 499; |
| 227 | text-transform: uppercase; |
| 228 | color: #1e1e1e; |
| 229 | } |
| 230 | .commands-command-menu__container [cmdk-empty] { |
| 231 | display: flex; |
| 232 | align-items: center; |
| 233 | justify-content: center; |
| 234 | white-space: pre-wrap; |
| 235 | color: #1e1e1e; |
| 236 | padding: 8px 0 32px; |
| 237 | } |
| 238 | .commands-command-menu__container [cmdk-loading] { |
| 239 | padding: 16px; |
| 240 | } |
| 241 | .commands-command-menu__container [cmdk-list-sizer] { |
| 242 | position: relative; |
| 243 | } |
| 244 | |
| 245 | .commands-command-menu__item-label { |
| 246 | display: inline-block; |
| 247 | overflow: hidden; |
| 248 | text-overflow: ellipsis; |
| 249 | white-space: nowrap; |
| 250 | flex: 1; |
| 251 | min-width: 0; |
| 252 | } |
| 253 | |
| 254 | .commands-command-menu__item-category { |
| 255 | flex: 0 0 auto; |
| 256 | margin-left: auto; |
| 257 | padding-left: 24px; |
| 258 | color: #757575; |
| 259 | font-size: 13px; |
| 260 | line-height: 1.4; |
| 261 | text-align: right; |
| 262 | } |
| 263 | [aria-selected=true] .commands-command-menu__item-category, [cmdk-item]:active .commands-command-menu__item-category { |
| 264 | color: rgba(255, 255, 255, 0.8); |
| 265 | } |
| 266 | |
| 267 | .commands-command-menu__item mark { |
| 268 | color: inherit; |
| 269 | background: unset; |
| 270 | font-weight: 600; |
| 271 | } |