mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
* Fixed: Subscribe and Follow buttons not using the theme accent color. (Twitch replaced the class name `.tw-accent-region` with the procedural name `.gocjHQ`) * Fixed: Add `Search` to the list of known pages for Profile rules. * Fixed: The FFZ Control Center not maximizing correctly on Team and Deck add-on pages. * Fixed: Tool-tips becoming impossible to dismiss after updating their contents. * API Added: `data-tooltip-type="markdown"` for `ffz-tooltip` elements. * API Added: `ffz-tooltip` elements can now specify `data-tooltip-side` and `data-tooltip-align` attributes for guiding the position of tooltips.
228 lines
No EOL
3.2 KiB
SCSS
228 lines
No EOL
3.2 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;
|
|
}
|
|
|
|
.ffz-tooltip--markdown {
|
|
white-space: normal;
|
|
|
|
p {
|
|
font-size: unset;
|
|
line-height: unset;
|
|
}
|
|
|
|
p + p {
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
|
|
|
|
.ffz-balloon {
|
|
&[x-placement^="bottom"] > .ffz-balloon__tail {
|
|
bottom: 100%;
|
|
|
|
.ffz-balloon__tail-symbol {
|
|
top: auto;
|
|
bottom: -8px;
|
|
left: 8px;
|
|
}
|
|
}
|
|
|
|
&[x-placement^="top"] > .ffz-balloon__tail {
|
|
top: 100%;
|
|
|
|
.ffz-balloon__tail-symbol {
|
|
top: auto;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
}
|
|
}
|
|
|
|
&[x-placement^="right"] > .ffz-balloon__tail {
|
|
right: 100%;
|
|
|
|
.ffz-balloon__tail-symbol {
|
|
left: auto;
|
|
right: -8px;
|
|
top: 8px;
|
|
}
|
|
}
|
|
|
|
&[x-placement^="left"] > .ffz-balloon__tail {
|
|
left: 100%;
|
|
|
|
.ffz-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;
|
|
|
|
&--align-left {
|
|
text-align: left;
|
|
}
|
|
|
|
&--align-justify {
|
|
text-align: justify;
|
|
}
|
|
|
|
&--align-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
} |