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]) {
|
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
|
|
|
background: hsla(0, 0%, 20%, 1);
|
|
|
|
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;
|
2022-08-01 20:58:23 +02:00
|
|
|
color: hsla(0, 0%, 100%, 1);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
border-top-color: hsla(0, 0%, 20%, 1);
|
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 {
|
|
|
|
border-bottom-color: hsla(0, 0%, 20%, 1);
|
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 {
|
|
|
|
border-left-color: hsla(0, 0%, 20%, 1);
|
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 {
|
|
|
|
border-right-color: hsla(0, 0%, 20%, 1);
|
|
|
|
}
|
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;
|
2022-09-11 21:30:26 +02:00
|
|
|
/* We use the same transform value used
|
|
|
|
* by tippyjs documentation for the small
|
|
|
|
* arrow size.
|
|
|
|
*/
|
|
|
|
transform: scale(0.75);
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|
|
|
|
/* 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;
|
|
|
|
border: 1px solid hsla(225, 100%, 84%, 1);
|
|
|
|
border-radius: 3px;
|
|
|
|
color: hsla(225, 100%, 84%, 1);
|
|
|
|
padding: 2px 5px;
|
|
|
|
min-width: 20px;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 14px;
|
|
|
|
}
|
2022-08-01 19:35:41 +02:00
|
|
|
}
|