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/?a=commitdiff_plain;h=0f38727ea5da795b9f5ea931dc0d1ee52787501e;p=themes.git 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 ::::: */