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.
|
|
|
|
*/
|
|
|
|
font-family: "Source Sans 3", sans-serif !important;
|
|
|
|
word-wrap: break-word;
|
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;
|
2022-08-01 20:58:23 +02:00
|
|
|
min-height: 25px;
|
|
|
|
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;
|
|
|
|
font-size: 14px;
|
2022-10-13 10:27:03 +02:00
|
|
|
line-height: 20px;
|
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 {
|
|
|
|
line-height: 17px;
|
|
|
|
}
|
|
|
|
|
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-02-08 21:40:48 +01:00
|
|
|
.tooltip-hotkey-hint {
|
2022-08-01 20:58:23 +02:00
|
|
|
box-sizing: inherit;
|
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%);
|
2022-08-01 20:58:23 +02:00
|
|
|
padding: 2px 5px;
|
|
|
|
min-width: 20px;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 14px;
|
|
|
|
}
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|