[ 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   * 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]::-moz-placeholder {
 168    color: #757575;
 169  }
 170  .commands-command-menu__container [cmdk-input]::placeholder {
 171    color: #757575;
 172  }
 173  .commands-command-menu__container [cmdk-input]:focus {
 174    box-shadow: none;
 175    outline: none;
 176  }
 177  .commands-command-menu__container [cmdk-item] {
 178    cursor: var(--wpds-cursor-control, pointer);
 179    display: flex;
 180    align-items: center;
 181    padding: 4px 0;
 182    color: #1e1e1e;
 183    font-size: 13px;
 184  }
 185  .commands-command-menu__container [cmdk-item][aria-disabled=true] {
 186    color: #949494;
 187    cursor: not-allowed;
 188  }
 189  .commands-command-menu__container [cmdk-item] svg {
 190    fill: #1e1e1e;
 191  }
 192  .commands-command-menu__container [cmdk-item] > div {
 193    border-radius: 2px;
 194    min-height: 32px;
 195    padding: 4px;
 196    padding-left: 40px;
 197    padding-right: 16px;
 198  }
 199  .commands-command-menu__container [cmdk-item][aria-selected=true] > div, .commands-command-menu__container [cmdk-item]:active > div {
 200    background: var(--wp-admin-theme-color);
 201    color: #fff;
 202  }
 203  .commands-command-menu__container [cmdk-item][aria-selected=true] > div svg, .commands-command-menu__container [cmdk-item]:active > div svg {
 204    fill: #fff;
 205  }
 206  .commands-command-menu__container [cmdk-item] > .has-icon {
 207    padding-left: 8px;
 208  }
 209  .commands-command-menu__container [cmdk-group]:has([cmdk-group-items]:empty) {
 210    display: none;
 211  }
 212  .commands-command-menu__container [cmdk-root] > [cmdk-list] {
 213    max-height: min(328px, 70vh - 48px);
 214    overflow: auto;
 215    scroll-padding-top: 8px;
 216    scroll-padding-bottom: 8px;
 217  }
 218  .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]) {
 219    border-top: 1px solid #ddd;
 220  }
 221  .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-list-sizer] > [cmdk-group] > [cmdk-group-items]:not(:empty) {
 222    padding: 0 8px 4px;
 223  }
 224  .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-group-heading] {
 225    margin-top: 8px;
 226    padding: 8px 16px;
 227    line-height: 16px;
 228    font-size: 11px;
 229    font-weight: 499;
 230    text-transform: uppercase;
 231    color: #1e1e1e;
 232  }
 233  .commands-command-menu__container [cmdk-empty] {
 234    display: flex;
 235    align-items: center;
 236    justify-content: center;
 237    white-space: pre-wrap;
 238    color: #1e1e1e;
 239    padding: 8px 0 32px;
 240  }
 241  .commands-command-menu__container [cmdk-loading] {
 242    padding: 16px;
 243  }
 244  .commands-command-menu__container [cmdk-list-sizer] {
 245    position: relative;
 246  }
 247  
 248  .commands-command-menu__item-label {
 249    display: inline-block;
 250    overflow: hidden;
 251    text-overflow: ellipsis;
 252    white-space: nowrap;
 253    flex: 1;
 254    min-width: 0;
 255  }
 256  
 257  .commands-command-menu__item-category {
 258    flex: 0 0 auto;
 259    margin-left: auto;
 260    padding-left: 24px;
 261    color: #757575;
 262    font-size: 13px;
 263    line-height: 1.4;
 264    text-align: right;
 265  }
 266  [aria-selected=true] .commands-command-menu__item-category, [cmdk-item]:active .commands-command-menu__item-category {
 267    color: rgba(255, 255, 255, 0.8);
 268  }
 269  
 270  .commands-command-menu__item mark {
 271    color: inherit;
 272    background: unset;
 273    font-weight: 600;
 274  }


Generated : Sun Jul 5 08:20:13 2026 Cross-referenced by PHPXref