[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/css/ -> wp-tooltip-rtl.css (source)

   1  /*! This file is auto-generated */
   2  /* Accessible tooltip component. Markup from wp_get_tooltip(). */
   3  
   4  .wp-tooltip {
   5      display: inline-flex;
   6      align-items: center;
   7  }
   8  
   9  /* Toggle and close buttons. */
  10  .wp-tooltip .wp-tooltip__toggle,
  11  .wp-tooltip .wp-tooltip__close {
  12      display: inline-flex;
  13      align-items: center;
  14      justify-content: center;
  15      width: 24px;
  16      height: 24px;
  17      padding: 0;
  18      border: 0;
  19      border-radius: 2px;
  20      background: none;
  21      color: #50575e;
  22      cursor: pointer;
  23  }
  24  
  25  .wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled])) .wp-tooltip__toggle:hover,
  26  .wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled])) .wp-tooltip__toggle:focus,
  27  .wp-tooltip .wp-tooltip__close:hover,
  28  .wp-tooltip .wp-tooltip__close:focus {
  29      color: var(--wp-admin-theme-color, #3858e9);
  30  }
  31  
  32  /*
  33   * `:where()` keeps the wrapper out of the specificity total, so buttons
  34   * passed into a tooltip keep control of their own focus ring.
  35   */
  36  :where(.wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled]))) .wp-tooltip__toggle:focus,
  37  .wp-tooltip .wp-tooltip__close:focus {
  38      outline: 2px solid transparent;
  39      box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
  40  }
  41  
  42  .wp-tooltip .wp-tooltip__toggle .dashicons {
  43      width: 20px;
  44      height: 20px;
  45      font-size: 20px;
  46  }
  47  
  48  .wp-tooltip .wp-tooltip__close .dashicons {
  49      width: 18px;
  50      height: 18px;
  51      font-size: 18px;
  52  }
  53  
  54  /* Bubble. No position here, so it falls back to the UA's centered popover without anchoring. */
  55  .wp-tooltip .wp-tooltip__bubble {
  56      max-width: min(280px, calc(100vw - 32px));
  57      margin: auto;
  58      padding: 12px 16px;
  59      overflow: visible;
  60      border: 1px solid #c3c4c7;
  61      border-radius: 4px;
  62      background: #fff;
  63      color: #1d2327;
  64      font-size: 13px;
  65      font-weight: 400;
  66      line-height: 1.5;
  67      text-align: right;
  68      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  69  }
  70  
  71  .wp-tooltip.wp-is-tooltip .wp-tooltip__bubble {
  72      background: #000;
  73      color: #f0f0f0;
  74      text-align: center;
  75      padding: 4px 8px;
  76      line-height: 1.4;
  77  }
  78  
  79  .wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__text {
  80      display: block;
  81      padding-inline-end: 24px;
  82  }
  83  
  84  .wp-tooltip .wp-tooltip__close {
  85      position: absolute;
  86      top: 6px;
  87      inset-inline-end: 6px;
  88  }
  89  
  90  /* Anchor the bubble above its toggle, with a downward arrow. */
  91  @supports (anchor-name: --a) {
  92      .wp-tooltip .wp-tooltip__bubble {
  93          position-area: top;
  94          margin: 0 0 8px;
  95          position-try-fallbacks: flip-block, flip-inline;
  96      }
  97  
  98      .wp-tooltip.wp-is-tooltip .wp-tooltip__bubble {
  99          margin: 0;
 100      }
 101  
 102      /* Arrow: gray border (::before) under a white fill (::after). */
 103      .wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::before,
 104      .wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::after {
 105          content: "";
 106          position: absolute;
 107          top: 100%;
 108          right: 50%;
 109          width: 0;
 110          height: 0;
 111          border: 8px solid transparent;
 112          border-bottom: 0;
 113      }
 114  
 115      .wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::before {
 116          margin-right: -8px;
 117          border-top-color: #c3c4c7;
 118      }
 119  
 120      .wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::after {
 121          margin-right: -7px;
 122          border-width: 7px;
 123          border-bottom: 0;
 124          border-top-color: #fff;
 125      }
 126  }


Generated : Fri Aug 7 08:20:20 2026 Cross-referenced by PHPXref