[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/css/dist/commands/ -> style.css (source)

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


Generated : Wed Nov 4 08:20:38 2026 Cross-referenced by PHPXref