From 547fa9750353de1038d926bbd373dce19c17f42b Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Sat, 27 May 2000 03:39:50 +0000 Subject: [PATCH] Scrollbar skinnability work (remove essential behaviour from skin), convert lock button from titledbutton to statusbarpanel --- themes/modern/global/scrollbars.css | 45 ------------------- .../modern/navigator/NavSecurityOverlay.css | 23 ++++++---- 2 files changed, 14 insertions(+), 54 deletions(-) diff --git a/themes/modern/global/scrollbars.css b/themes/modern/global/scrollbars.css index 5fa9aaad73f8..240d0612d7da 100644 --- a/themes/modern/global/scrollbars.css +++ b/themes/modern/global/scrollbars.css @@ -6,37 +6,16 @@ scrollbar { behavior: url("resource:/chrome/xulBindings.xml#scrollbar"); } -slider { - user-focus: ignore; - user-select: none; -} - -scrollbarbutton { - display: inline; - user-focus: ignore; - user-select: none; -} - -scrollbar[value="hidden"] { - visibility: hidden; - user-focus: ignore; - user-select: none; -} - /********* XP Scrollbar *********/ thumb { behavior: url(resource:/chrome/xulBindings.xml#thumb); - user-focus: ignore; - user-select: none; background-color: #CCCCCC; border: 1px outset #CCCCCC; list-style-image: url("chrome://global/skin/scroll-thumb-horiz.gif") } thumb[disabled="true"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-thumb-horiz-disabled.gif"); } @@ -45,8 +24,6 @@ thumb[align="vertical"] { } scrollbarbutton { - user-focus: ignore; - user-select: none; vertical-align: bottom; cursor: default; @@ -58,8 +35,6 @@ scrollbarbutton { } scrollbarbutton:active { - user-focus: ignore; - user-select: none; border-style: inset; padding-left: 2px; @@ -69,63 +44,43 @@ scrollbarbutton:active { } scrollbarbutton[type="decrement"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-left.gif") } scrollbarbutton[type="decrement"][disabled="true"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-left-disabled.gif") } scrollbarbutton[type="increment"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-right.gif") } scrollbarbutton[type="increment"][disabled="true"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-right-disabled.gif") } scrollbar[align="vertical"] scrollbarbutton[type="decrement"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-up.gif") } scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-up-disabled.gif") } scrollbar[align="vertical"] scrollbarbutton[type="increment"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-down.gif") } scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"] { - user-focus: ignore; - user-select: none; list-style-image: url("chrome://global/skin/scroll-down-disabled.gif") } slider[align="vertical"] thumb:active { - user-focus: ignore; - user-select: none; background-color: #CCCCCC; } slider { - user-focus: ignore; - user-select: none; background-color: #999999; } diff --git a/themes/modern/navigator/NavSecurityOverlay.css b/themes/modern/navigator/NavSecurityOverlay.css index b6562774dfbe..3f2429d5e203 100644 --- a/themes/modern/navigator/NavSecurityOverlay.css +++ b/themes/modern/navigator/NavSecurityOverlay.css @@ -1,15 +1,20 @@ -titledbutton#security-button { - list-style-image:url("chrome://navigator/skin/unlock.gif"); -} +#security-button + { + list-style-image:url("chrome://navigator/skin/unlock.gif"); + } -titledbutton#security-button[level="high"] { +#security-button[level="high"] + { list-style-image:url("chrome://navigator/skin/lock.gif"); -} + } -titledbutton#security-button[level="low"] { +#security-button[level="low"] + { list-style-image:url("chrome://navigator/skin/lock.gif"); -} + } -titledbutton#security-button[level="broken"] { +#security-button[level="broken"] + { list-style-image:url("chrome://navigator/skin/broken.gif"); -} \ No newline at end of file + } +