2022-08-01 19:35:41 +02:00
|
|
|
[data-tippy-root] {
|
|
|
|
/* Since tooltip elements are sometimes inside elements
|
|
|
|
* which have different font-family, we force font-family
|
|
|
|
* for tooltips here.
|
|
|
|
*/
|
2023-03-27 12:47:59 +02:00
|
|
|
font-family: "Source Sans 3 VF", sans-serif !important;
|
2023-04-13 17:21:38 +02:00
|
|
|
overflow-wrap: anywhere;
|
2022-09-14 22:49:44 +02:00
|
|
|
/* Contains stylistic variant of upper-case character "I" in Source Sans 3 */
|
|
|
|
font-feature-settings: "ss01" on;
|
2022-08-01 19:35:41 +02:00
|
|
|
|
|
|
|
/* Affects all tippy tooltips not using any theme. */
|
|
|
|
.tippy-box:not([data-theme]) {
|
2023-03-20 22:08:47 +01:00
|
|
|
background: hsl(0deg 0% 20%);
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
border-radius: 5px;
|
2024-07-03 17:42:29 +02:00
|
|
|
/* 14px at 14px/1em */
|
2024-07-13 12:57:25 +02:00
|
|
|
font-size: var(--base-font-size-px);
|
2024-07-03 17:42:29 +02:00
|
|
|
/* 25px at 14px/1em */
|
|
|
|
min-height: 1.7857em;
|
2022-08-01 20:58:23 +02:00
|
|
|
box-sizing: border-box;
|
2022-08-01 19:35:41 +02:00
|
|
|
|
2022-08-01 20:58:23 +02:00
|
|
|
.tippy-content {
|
|
|
|
box-sizing: inherit;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
padding: 5px 10px;
|
2024-07-03 17:42:29 +02:00
|
|
|
/* 14px at 14px/1em */
|
2024-07-13 12:57:25 +02:00
|
|
|
font-size: var(--base-font-size-px);
|
2024-07-03 17:42:29 +02:00
|
|
|
/* 20px at 14px/1em */
|
|
|
|
line-height: 1.4286em;
|
2024-07-03 18:44:01 +02:00
|
|
|
/* Don't inherit font-weight when
|
|
|
|
a Tippy attaches to a parent */
|
|
|
|
font-weight: normal;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 100%);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
2023-03-23 08:46:41 +01:00
|
|
|
.tippy-arrow::before {
|
|
|
|
/* This affects the arrow for tooltips and doesn't have any impact on arrows for popovers.
|
|
|
|
* The transform property scales down the size of the arrow, giving it a thinner appearance.
|
|
|
|
* https://atomiks.github.io/tippyjs/v6/themes/#changing-the-arrow-size
|
|
|
|
*/
|
|
|
|
transform: scale(0.75);
|
|
|
|
}
|
|
|
|
|
2022-10-05 17:34:50 +02:00
|
|
|
.tooltip-inner-content {
|
2024-07-03 17:42:29 +02:00
|
|
|
/* 17px at 14px/1em */
|
|
|
|
line-height: 1.2143em;
|
2022-10-05 17:34:50 +02:00
|
|
|
}
|
|
|
|
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
&[data-placement^="top"] > .tippy-arrow::before {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-top-color: hsl(0deg 0% 20%);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
&[data-placement^="bottom"] > .tippy-arrow::before {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-bottom-color: hsl(0deg 0% 20%);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
&[data-placement^="left"] > .tippy-arrow::before {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-left-color: hsl(0deg 0% 20%);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
&[data-placement^="right"] > .tippy-arrow::before {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-right-color: hsl(0deg 0% 20%);
|
tooltips: Change tooltips styling to incorporate the redesign.
We use hsla(0, 0%, 20%, 1) for the light theme background color and
hsla(0, 0%, 0%, 1) for the dark theme. The text inside the tooltips
should be white in color, 14px in size and have a line height of 15px.
With one line of text, we want the height of the tooltips to be 25px,
i.e, line height (15px) + padding (5px + 5px = 10px).
Part of #21753
2022-08-01 20:26:04 +02:00
|
|
|
}
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-arrow::before {
|
|
|
|
/* `.tippy-arrow:before` element sometimes
|
|
|
|
* inherits the height of the parent, we
|
|
|
|
* don't want any height here since we
|
|
|
|
* want it to remain an triangle.
|
|
|
|
* The bug was only found in Firefox.
|
|
|
|
*/
|
|
|
|
height: 0 !important;
|
|
|
|
}
|
|
|
|
/* If the text in the tooltips stretches to multiple lines,
|
|
|
|
* we want the lines to be left-indented and not right-indented
|
|
|
|
* by default.
|
|
|
|
*/
|
|
|
|
text-align: left;
|
2022-08-01 20:58:23 +02:00
|
|
|
|
2023-02-08 21:40:48 +01:00
|
|
|
.tooltip-hotkey-hints {
|
2022-08-01 20:58:23 +02:00
|
|
|
box-sizing: inherit;
|
|
|
|
display: flex;
|
|
|
|
align-self: flex-start;
|
2022-10-13 10:27:03 +02:00
|
|
|
margin: 0 -5px 0 10px;
|
2022-08-01 20:58:23 +02:00
|
|
|
gap: 4px;
|
|
|
|
}
|
|
|
|
|
2023-05-31 08:13:33 +02:00
|
|
|
& span.tooltip-hotkey-hint {
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(225deg 100% 84%);
|
2022-08-01 20:58:23 +02:00
|
|
|
border-radius: 3px;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(225deg 100% 84%);
|
2023-05-31 08:13:33 +02:00
|
|
|
padding: 0 5px;
|
2022-08-01 20:58:23 +02:00
|
|
|
text-align: center;
|
2024-09-19 19:23:43 +02:00
|
|
|
white-space: nowrap;
|
2022-08-01 20:58:23 +02:00
|
|
|
}
|
2023-05-23 18:09:42 +02:00
|
|
|
|
2023-05-13 15:54:58 +02:00
|
|
|
.stream-privacy-type-icon {
|
|
|
|
width: 9px;
|
|
|
|
padding-left: 2px;
|
|
|
|
top: 0.5px;
|
|
|
|
}
|
|
|
|
|
2023-05-23 18:09:42 +02:00
|
|
|
/* If the reference of the tooltip is went offscreen while scrolling,
|
|
|
|
the tooltip will be visible until the scrolling stops. Popper adds
|
|
|
|
`data-reference-hidden` attribute to those tooltips whole reference is
|
|
|
|
hidden. Since tooltips have `absolute` position, they can occupy scroll
|
|
|
|
space offscreen and cause document to have the wrong scroll height.
|
|
|
|
Setting `display: none` makes sure it doesn't occupy any offscreen space.
|
|
|
|
|
2023-10-09 20:41:12 +02:00
|
|
|
NOTE: This data attribute has changed each time in the past 3 releases and
|
2023-05-23 18:09:42 +02:00
|
|
|
if we upgrade tippy from v6, we should check if this attribute is still valid.
|
|
|
|
|
|
|
|
See https://github.com/atomiks/tippyjs/issues/555 for some discussion on this.
|
|
|
|
*/
|
2023-09-01 12:34:43 +02:00
|
|
|
[data-reference-hidden]:not(.show-when-reference-hidden) {
|
2023-05-23 18:09:42 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|