From 64960b56683c0846f4eb0117fa3dfa531ace0929 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 14 Mar 2017 16:10:21 +0100 Subject: [PATCH] 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 --- LCARStrek/global/scrollbars.css | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 ::::: */ -- 2.43.0