From: Robert Kaiser Date: Tue, 14 Mar 2017 15:10:21 +0000 (+0100) Subject: looks like all scrollbars are clickthrough-always so this fails. do the override... X-Git-Tag: LCARStrek-2.49 X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=commitdiff_plain;h=refs%2Ftags%2FLCARStrek-2.49;hp=82765a36c6f8b1790d1a41b42c7776c299e48ea5 looks like all scrollbars are clickthrough-always so this fails. do the override more targeted to not need \!important so we achieve the right effect, but we leave the thumb for now --- diff --git a/LCARStrek/global/scrollbars.css b/LCARStrek/global/scrollbars.css index 1d3504bd..1dd1f581 100644 --- a/LCARStrek/global/scrollbars.css +++ b/LCARStrek/global/scrollbars.css @@ -91,11 +91,6 @@ thumb[orient="horizontal"][disabled="true"] { background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif"); } -/* keep clickthrough scrollbars in e.g. devtoools with a simpler thumb */ -scrollbar[clickthrough="always"] > slider > thumb { - background-image: none; -} - /* ::::: scrollbar button ::::: */ scrollbarbutton { @@ -119,14 +114,17 @@ scrollbarbutton[disabled="true"] { background-color: #402858 !important; } -/* XXX - scrollbar.xml always grabs the OS settings and we don't want that (but keep clickthrough scrollbars in e.g. devtoools working) */ +/* XXX - override minimal-xul.css/scrollbar.xml which always grabs the OS settings and we don't want that */ scrollbarbutton[sbattr="scrollbar-up-bottom"], scrollbarbutton[sbattr="scrollbar-down-top"] { display: none; } -scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-up-top"], -scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-down-bottom"] { - display: -moz-box !important; +/* override minimal-xul.css */ +scrollbarbutton[sbattr="scrollbar-up-top"], +scrollbarbutton[sbattr="scrollbar-down-bottom"], +scrollbarbutton[sbattr="scrollbar-up-top"]:not(:-moz-system-metric(scrollbar-start-backward)), +scrollbarbutton[sbattr="scrollbar-down-bottom"]:not(:-moz-system-metric(scrollbar-end-forward)) { + display: -moz-box; } /* ::::: square at the corner of two scrollbars ::::: */