2022-07-18 18:33:34 -04:00
|
|
|
/* styles are based on node_modules/tippy.js/dist/tippy.css */
|
|
|
|
|
2023-03-14 22:20:19 -04:00
|
|
|
/* class to hide tippy target elements on page load */
|
2022-08-10 10:47:28 -04:00
|
|
|
.tippy-target {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2024-03-14 22:05:31 -04:00
|
|
|
/* show target element once it's been moved by tippy.js */
|
|
|
|
.tippy-content .tippy-target {
|
|
|
|
display: unset !important;
|
|
|
|
}
|
|
|
|
|
2022-07-18 18:33:34 -04:00
|
|
|
[data-tippy-root] {
|
2023-11-02 10:49:02 -04:00
|
|
|
max-width: calc(100vw - 32px);
|
2022-07-18 18:33:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box {
|
|
|
|
position: relative;
|
2024-04-30 10:52:46 -04:00
|
|
|
background-color: var(--color-menu);
|
|
|
|
color: var(--color-text);
|
2022-07-18 18:33:34 -04:00
|
|
|
border: 1px solid var(--color-secondary);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
font-size: 1rem;
|
2022-08-09 08:37:34 -04:00
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-content {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2024-04-03 05:15:06 -04:00
|
|
|
/* bare theme, no styling at all, except box-shadow */
|
|
|
|
.tippy-box[data-theme="bare"] {
|
|
|
|
border: none;
|
|
|
|
box-shadow: 0 6px 18px var(--color-shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-theme="bare"] .tippy-content {
|
|
|
|
padding: 0;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
/* tooltip theme for text tooltips */
|
|
|
|
|
2022-08-09 08:37:34 -04:00
|
|
|
.tippy-box[data-theme="tooltip"] {
|
|
|
|
background-color: var(--color-tooltip-bg);
|
|
|
|
color: var(--color-tooltip-text);
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-box[data-theme="tooltip"] .tippy-content {
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner,
|
|
|
|
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer {
|
|
|
|
fill: var(--color-tooltip-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* menu theme for .ui.menu */
|
|
|
|
|
2022-08-09 08:37:34 -04:00
|
|
|
.tippy-box[data-theme="menu"] {
|
2023-06-09 05:10:51 -04:00
|
|
|
background-color: var(--color-menu);
|
|
|
|
color: var(--color-text);
|
2024-03-14 22:05:31 -04:00
|
|
|
box-shadow: 0 6px 18px var(--color-shadow);
|
2022-08-09 08:37:34 -04:00
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-box[data-theme="menu"] .tippy-content {
|
2024-03-14 22:05:31 -04:00
|
|
|
padding: 4px 0;
|
2023-06-14 04:01:37 -04:00
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner {
|
|
|
|
fill: var(--color-menu);
|
2022-07-18 18:33:34 -04:00
|
|
|
}
|
|
|
|
|
2024-03-14 22:05:31 -04:00
|
|
|
.tippy-box[data-theme="menu"] .item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 9px 18px;
|
|
|
|
color: inherit;
|
2024-11-25 20:24:56 -05:00
|
|
|
background: inherit;
|
2024-03-14 22:05:31 -04:00
|
|
|
text-decoration: none;
|
|
|
|
gap: 10px;
|
2024-11-25 20:24:56 -05:00
|
|
|
width: 100%;
|
2024-03-14 22:05:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-theme="menu"] .item:hover {
|
|
|
|
background: var(--color-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-theme="menu"] .item:focus {
|
|
|
|
background: var(--color-active);
|
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
/* box-with-header theme to look like .ui.attached.segment. can contain .ui.attached.header */
|
2022-08-09 08:37:34 -04:00
|
|
|
|
2024-03-14 22:05:31 -04:00
|
|
|
.tippy-box[data-theme="box-with-header"] {
|
|
|
|
box-shadow: 0 6px 18px var(--color-shadow);
|
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-box[data-theme="box-with-header"] .tippy-content {
|
|
|
|
background: var(--color-box-body);
|
2023-11-07 13:53:35 -05:00
|
|
|
border-radius: var(--border-radius);
|
2022-08-09 08:37:34 -04:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2023-11-02 10:49:02 -04:00
|
|
|
.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner {
|
|
|
|
fill: var(--color-box-body);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner {
|
|
|
|
fill: var(--color-box-header);
|
|
|
|
}
|
|
|
|
|
2022-07-18 18:33:34 -04:00
|
|
|
.tippy-box[data-placement^="top"] > .tippy-svg-arrow {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="top"] > .tippy-svg-arrow::after,
|
|
|
|
.tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg {
|
|
|
|
top: 16px;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="bottom"] > .tippy-svg-arrow {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg {
|
|
|
|
bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="left"] > .tippy-svg-arrow {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="left"] > .tippy-svg-arrow::after,
|
|
|
|
.tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
top: calc(50% - 3px);
|
|
|
|
left: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="right"] > .tippy-svg-arrow {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^="right"] > .tippy-svg-arrow::after,
|
|
|
|
.tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
top: calc(50% - 3px);
|
|
|
|
right: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-svg-arrow {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
text-align: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-svg-arrow,
|
|
|
|
.tippy-svg-arrow > svg {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-svg-arrow-outer {
|
|
|
|
fill: var(--color-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-svg-arrow-inner {
|
2024-04-30 10:52:46 -04:00
|
|
|
fill: var(--color-menu);
|
2022-07-18 18:33:34 -04:00
|
|
|
}
|