1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 15:08:31 +00:00
FrankerFaceZ/styles/tooltips.scss
SirStendec 6310a2ed49 4.20.22
This release implements a massive change to how link tool-tips and embeds work. They might act up a bit while we get the new back-end installed and tweaked.

* Added: Options to use custom formats for dates and times, under `Appearance > Localization`.
* Added: Options to change the colors of tool-tips.
* Changed: Completely rewrite how link information is formatted together with a complete rewrite of the link information service.
* Changed: The FFZ Control Center now remembers you previously open settings if you reload the page.
* Fixed: Update chat lines when i18n data loads.
* Fixed: i18n not correctly formatting certain numbers.
* Fixed: Theater mode automatically enabling on user home pages. (Closes #866)
* Fixed: Theater metadata overlapping chat with Swap Sidebars enabled. (Closes #835)
* API Added: New icons: `location`, `link`, and `volume-off`
* API Fixed: `createElement` not properly handling `<video>` related attributes.
2020-08-04 18:26:11 -04:00

204 lines
No EOL
2.9 KiB
SCSS

body {
overflow-x: hidden
}
.ffz-metadata-balloon {
z-index: 999999999 !important;
margin: 6px;
}
.ffz-tooltip.ffz-tooltip--no-mouse {
> * {
pointer-events: none;
}
}
.ffz-tooltip-child {
display: none !important;
}
.tw-balloon {
&[x-placement^="bottom"] > .tw-balloon__tail {
bottom: 100%;
.tw-balloon__tail-symbol {
top: auto;
bottom: -8px;
left: 8px;
}
}
&[x-placement^="top"] > .tw-balloon__tail {
top: 100%;
.tw-balloon__tail-symbol {
top: auto;
bottom: 8px;
left: 8px;
}
}
&[x-placement^="right"] > .tw-balloon__tail {
right: 100%;
.tw-balloon__tail-symbol {
left: auto;
right: -8px;
top: 8px;
}
}
&[x-placement^="left"] > .tw-balloon__tail {
left: 100%;
.tw-balloon__tail-symbol {
left: auto;
right: 8px;
top: 8px;
}
}
}
.ffz-action-balloon,
.ffz-metadata-balloon,
.ffz__tooltip {
.loader {
text-align: center;
opacity: .5;
margin: 1rem;
font-size: 3rem;
animation: ffz-rotateplane 1.2s infinite linear;
}
}
.ffz--tooltip-explain {
width: 30rem;
font-weight: 100;
white-space: normal;
}
.ffz__tooltip {
z-index: 999999999;
margin: 6px;
border-radius: 2px;
background: var(--color-background-tooltip);
color: var(--color-text-tooltip);
font-size: 1.2rem;
line-height: 1;
text-align: left;
white-space: pre-wrap;
&.html { white-space: normal }
.ffz__tooltip--arrow {
position: absolute;
width: 6px; height: 6px;
transform: rotate(45deg);
z-index: -1;
background: var(--color-background-tooltip);
}
&[x-placement^="bottom"] {
.ffz__tooltip--arrow {
top: -3px;
border-radius: 2px 0 0;
}
}
&[x-placement^="top"] {
.ffz__tooltip--arrow {
bottom: -3px;
border-radius: 0 0 2px;
}
}
&[x-placement^="right"] {
.ffz__tooltip--arrow {
left: -3px;
border-radius: 0 2px 0 0;
}
}
&[x-placement^="left"] {
.ffz__tooltip--arrow {
right: -3px;
border-radius: 0 0 0 2px;
}
}
}
.ffz__tooltip--inner {
display: block;
max-width: 30rem;
padding: .3rem .6rem;
text-align: center;
.preview-image {
&.ffz-badge {
height: 7.2rem;
width: 7.2rem;
background-size: 7.2rem;
background-repeat: no-repeat;
}
display: block;
margin: 3px auto 6px;
}
br {
display: block;
}
.ffz-cheer {
margin: 5px;
}
}
.ffz__tooltip--badges {
display: flex;
flex-wrap: wrap;
max-width: 20rem;
padding: .1rem .2rem;
}
.ffz-badge-tip {
margin: .2rem .4rem;
}
.ffz-rich-tip {
max-width: 340px;
width: 340px;
text-align: left;
position: relative;
padding: 8px;
line-height: 1.2em;
}
.ffz__tooltip {
--color-border-base: var(--color-text-tooltip);
&:not([data-shift="true"]) .ffz--shift-show,
&[data-shift="true"] .ffz--shift-hide { display: none !important; }
.tw-c-text-base {
color: var(--color-text-tooltip) !important;
}
.tw-c-text-alt {
color: var(--color-text-tooltip-alt) !important;
}
.tw-c-text-alt-2 {
color: var(--color-text-tooltip-alt-2) !important;
}
}