- md5
- f01bc829670a0f249682ccc71a4cb5e4
- sha1
- adc0742a1a11609c585f7521b52964edb60e8bf2
- sha256
- 42300c8fae93e8fd6cc2c539d24c03e49bfc7219e915488a9b30dd121bd7d745
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
/*! This file is auto-generated */
/* Accessible tooltip component. Markup from wp_get_tooltip(). */
.wp-tooltip {
display: inline-flex;
align-items: center;
}
/* Toggle and close buttons. */
.wp-tooltip .wp-tooltip__toggle,
.wp-tooltip .wp-tooltip__close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
border-radius: 2px;
background: none;
color: #50575e;
cursor: pointer;
}
.wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled])) .wp-tooltip__toggle:hover,
.wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled])) .wp-tooltip__toggle:focus,
.wp-tooltip .wp-tooltip__close:hover,
.wp-tooltip .wp-tooltip__close:focus {
color: var(--wp-admin-theme-color, #3858e9);
}
/*
* `:where()` keeps the wrapper out of the specificity total, so buttons
* passed into a tooltip keep control of their own focus ring.
*/
:where(.wp-tooltip:not(:has(button[aria-disabled="true"],button[disabled]))) .wp-tooltip__toggle:focus,
.wp-tooltip .wp-tooltip__close:focus {
outline: 2px solid transparent;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
}
.wp-tooltip .wp-tooltip__toggle .dashicons {
width: 20px;
height: 20px;
font-size: 20px;
}
.wp-tooltip .wp-tooltip__close .dashicons {
width: 18px;
height: 18px;
font-size: 18px;
}
/* Bubble. No position here, so it falls back to the UA's centered popover without anchoring. */
.wp-tooltip .wp-tooltip__bubble {
max-width: min(280px, calc(100vw - 32px));
margin: auto;
padding: 12px 16px;
overflow: visible;
border: 1px solid #c3c4c7;
border-radius: 4px;
background: #fff;
color: #1d2327;
font-size: 13px;
font-weight: 400;
line-height: 1.5;
text-align: right;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.wp-tooltip.wp-is-tooltip .wp-tooltip__bubble {
background: #000;
color: #f0f0f0;
text-align: center;
padding: 4px 8px;
line-height: 1.4;
}
.wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__text {
display: block;
padding-inline-end: 24px;
}
.wp-tooltip .wp-tooltip__close {
position: absolute;
top: 6px;
inset-inline-end: 6px;
}
/* Anchor the bubble above its toggle, with a downward arrow. */
@supports (anchor-name: --a) {
.wp-tooltip .wp-tooltip__bubble {
position-area: top;
margin: 0 0 8px;
position-try-fallbacks: flip-block, flip-inline;
}
.wp-tooltip.wp-is-tooltip .wp-tooltip__bubble {
margin: 0;
}
/* Arrow: gray border (::before) under a white fill (::after). */
.wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::before,
.wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::after {
content: "";
position: absolute;
top: 100%;
right: 50%;
width: 0;
height: 0;
border: 8px solid transparent;
border-bottom: 0;
}
.wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::before {
margin-right: -8px;
border-top-color: #c3c4c7;
}
.wp-tooltip:not(.wp-is-tooltip) .wp-tooltip__bubble::after {
margin-right: -7px;
border-width: 7px;
border-bottom: 0;
border-top-color: #fff;
}
}
The same content is in 11 releases, WordPress 7.1-beta4 to 7.1.4. See them all, or every version of this file.