mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
Fix iframe scrollbar
This commit is contained in:
@@ -66,22 +66,31 @@
|
|||||||
* Mac doesn't like this (especially in CodeMirror) so we only do it on non-macos platforms. On Mac,
|
* Mac doesn't like this (especially in CodeMirror) so we only do it on non-macos platforms. On Mac,
|
||||||
* styling the scrollbar seems to cause them to not show up at all most of the time
|
* styling the scrollbar seems to cause them to not show up at all most of the time
|
||||||
*/
|
*/
|
||||||
html:not([data-platform="macos"]) * {
|
html:not([data-platform="macos"]) {
|
||||||
::-webkit-scrollbar-corner,
|
* {
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar-corner,
|
||||||
@apply w-[10px] h-[10px];
|
::-webkit-scrollbar {
|
||||||
|
@apply w-[10px] h-[10px];
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollbar-track,
|
||||||
|
::-webkit-scrollbar-corner,
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
@apply bg-transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
&.scrollbar-thumb,
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
@apply bg-text-subtlest hover:bg-text-subtle rounded-[2px];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrollbar-track,
|
iframe {
|
||||||
::-webkit-scrollbar-corner,
|
&::-webkit-scrollbar-corner,
|
||||||
::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
@apply bg-transparent;
|
@apply bg-surface-highlight !important;
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
&.scrollbar-thumb,
|
|
||||||
&::-webkit-scrollbar-thumb {
|
|
||||||
@apply bg-text-subtlest hover:bg-text-subtle rounded-[2px];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,13 +99,6 @@
|
|||||||
direction: rtl;
|
direction: rtl;
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
|
||||||
&::-webkit-scrollbar-corner,
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
@apply bg-surface-highlight !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
--transition-duration: 100ms ease-in-out;
|
--transition-duration: 100ms ease-in-out;
|
||||||
|
|||||||
Reference in New Issue
Block a user