From e8a08dc5e8144a9b241ef84510de1e34f6301331 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Tue, 4 Jul 2006 19:01:19 +0000 Subject: [PATCH] Pinstripe changes for bug 342841 (Scrolling arrow should look disabled when you can't scroll in its direction). r=mconnor. --- toolkit/themes/pinstripe/global/scrollbox.css | 56 ++++++++++++++----- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/toolkit/themes/pinstripe/global/scrollbox.css b/toolkit/themes/pinstripe/global/scrollbox.css index 4b23b66c592e..e6d436e2f38e 100644 --- a/toolkit/themes/pinstripe/global/scrollbox.css +++ b/toolkit/themes/pinstripe/global/scrollbox.css @@ -3,30 +3,60 @@ /* * Scroll arrows */ + +/* Horizontal enabled */ +.autorepeatbutton-up[orient="horizontal"], +.scrollbutton-up[orient="horizontal"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-lft-sharp.gif"); + } + +.autorepeatbutton-down[orient="horizontal"], +.scrollbutton-down[orient="horizontal"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-rit-sharp.gif"); + } + +/* Horizontal disabled */ +.autorepeatbutton-up[orient="horizontal"][disabled="true"], +.scrollbutton-up[orient="horizontal"][disabled="true"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-lft-dis.gif"); + } + +.autorepeatbutton-down[orient="horizontal"][disabled="true"], +.scrollbutton-down[orient="horizontal"][disabled="true"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-rit-dis.gif"); + } + +/* Vertical enabled */ .autorepeatbutton-up, .scrollbutton-up { - list-style-image : url("chrome://global/skin/arrow/arrow-lft-sharp.gif"); + list-style-image : url("chrome://global/skin/arrow/arrow-up-sharp.gif"); } .autorepeatbutton-down, .scrollbutton-down - { - list-style-image : url("chrome://global/skin/arrow/arrow-rit-sharp.gif"); - } - -.autorepeatbutton-up[orient="vertical"], -.scrollbutton-up[orient="vertical"] - { - list-style-image : url("chrome://global/skin/arrow/arrow-up-sharp.gif"); - } - -.autorepeatbutton-down[orient="vertical"], -.scrollbutton-down[orient="vertical"] { list-style-image : url("chrome://global/skin/arrow/arrow-dn-sharp.gif"); } +/* Vertical disabled */ +.autorepeatbutton-up[disabled="true"], +.scrollbutton-up[disabled="true"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-up-dis.gif"); + } + +.autorepeatbutton-down[disabled="true"], +.scrollbutton-down[disabled="true"] + { + list-style-image : url("chrome://global/skin/arrow/arrow-dn-dis.gif"); + } + + autorepeatbutton { -moz-box-align : center;