From d3bf7ecfc73685f44d1ba4f34dc9f962f4bffc1e Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 16 Apr 2001 20:27:41 +0000 Subject: [PATCH] trying to fit in menubuttons better --- EarlyBlue/communicator/skin/menubutton.css | 81 +++++-- EarlyBlue/global/skin/menubutton.css | 256 +++++++++++---------- EarlyBlue/navigator/skin/navigator.css | 7 +- 3 files changed, 197 insertions(+), 147 deletions(-) diff --git a/EarlyBlue/communicator/skin/menubutton.css b/EarlyBlue/communicator/skin/menubutton.css index 129a1a3e..ed0c2c40 100755 --- a/EarlyBlue/communicator/skin/menubutton.css +++ b/EarlyBlue/communicator/skin/menubutton.css @@ -59,79 +59,122 @@ **/ +/* This is really a hack to deal with buggy :hover - but it's now in toolkit (see below, taken from classic) */ + +/** + * XXX - this is a hack. :hover does not work to spec and so we're using a binding + * with JS that lives in xpfe/global/resources/content/menulistBindings.xml + * to set attributes on various parts of the button when mouse down/over + * events fire. When :hover works correctly, this can be removed (see + * revision 1.21 of this file for details. + */ + + .menubutton-dual.top + { + -moz-binding : url("chrome://global/content/menulistBindings.xml#menubutton-dual-ex"); +/* -moz-user-focus : ignore !important; */ + } + +.menubutton-dual.left + { + -moz-binding : url("chrome://global/content/menulistBindings.xml#menubutton-dual-ex-left"); +/* -moz-user-focus : none !important; */ + } + + + +.menubutton-dual { font-size : smaller; } -.menubutton-dual.top > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box > .button-text-container +.menubutton-dual-ex-button > .button-internal-box > .button-text-container { padding-top : 3px; text-align : center; } -.menubutton-dual.top > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box + + +.menubutton-dual > .menubutton-dual-ex-button > .button-internal-box { border : 1px solid transparent; padding : 1px; } -.menubutton-dual.top:hover > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top > .menubutton-internal-box > .menubutton-dual-button:hover > .button-internal-box +.menubutton-dual-ex-button + { + margin : 0px; + } + +.menubutton-dual:hover > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[buttonover="true"] > .menubutton-dual-ex-button > .button-internal-box { border : 1px outset #CCD0DD; padding : 1px; } -.menubutton-dual.top:hover:active > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top[open="true"] > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box +.menubutton-dual:hover:active > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[open="true"] > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual > .menubutton-dual-ex-button:hover:active > .button-internal-box { border : 1px inset #CCD0DD; padding : 2px 0px 0px 2px; } -.menubutton-dual.top[disabled="true"] > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top[disabled="true"]:hover:active > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top[disabled="true"][open="true"] > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, -.menubutton-dual.top[disabled="true"] > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box +.menubutton-dual[disabled="true"] > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[disabled="true"]:hover:active > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[disabled="true"][open="true"] > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[disabled="true"][buttonover="true"] > .menubutton-dual-ex-button > .button-internal-box, +.menubutton-dual[disabled="true"] > .menubutton-dual-ex-button:hover:active > .button-internal-box { border : 1px solid transparent; padding : 1px; } -.menubutton-dual.top > .menubutton-internal-box > .menubutton-dual-dropmarker-box + + +.menubutton-dual > .menubutton-dual-dropmarker-box { border : 1px solid transparent; padding : 1px; } -.menubutton-dual.top:hover > .menubutton-internal-box > .menubutton-dual-dropmarker-box +.menubutton-dual-ex:hover > .menubutton-dual-dropmarker-box, +.menubutton-dual:hover > .menubutton-dual-dropmarker-box, +.menubutton-dual > .menubutton-dual-dropmarker-box:hover, +.menubutton-dual[buttonover="true"] > .menubutton-dual-dropmarker-box { border : 1px outset #CCD0DD; padding : 1px; } -.menubutton-dual.top:hover:active > .menubutton-internal-box > .menubutton-dual-dropmarker-box, -.menubutton-dual.top[open="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box +.menubutton-dual:hover:active > .menubutton-dual-dropmarker-box, +.menubutton-dual[open="true"] > .menubutton-dual-dropmarker-box { border : 1px inset #CCD0DD; padding : 2px 0px 0px 2px; } -.menubutton-dual.top[disabled="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box, -.menubutton-dual.top[disabled="true"]:hover:active > .menubutton-internal-box > .menubutton-dual-dropmarker-box, -.menubutton-dual.top[disabled="true"][open="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box +.menubutton-dual[disabled="true"] > .menubutton-dual-dropmarker-box, +.menubutton-dual[disabled="true"]:hover:active > .menubutton-dual-dropmarker-box, +.menubutton-dual[disabled="true"][open="true"] > .menubutton-dual-dropmarker-box, +.menubutton-dual[disabled="true"][buttonover="true"] > .menubutton-dual-dropmarker-box { border : 1px solid transparent; padding : 1px; } -menubutton > .menubutton-internal-box > .menubutton-dual-dropmarker-box > .menubutton-dropmarker + +menubutton > .menubutton-dual-dropmarker-box > .menubutton-dropmarker { /* padding-bottom : 17px; */ padding-bottom : 24px; } + + + diff --git a/EarlyBlue/global/skin/menubutton.css b/EarlyBlue/global/skin/menubutton.css index a8e0db36..ccbca606 100755 --- a/EarlyBlue/global/skin/menubutton.css +++ b/EarlyBlue/global/skin/menubutton.css @@ -1,126 +1,130 @@ - -/* outermost frame */ - menubutton - { -/* margin : 3px 5px 3px 5px; */ - } - - menubutton[disabled="true"] - { - color : #999999; - } - - menubutton > .menubutton-internal-box - { - border : none; - padding : 0px; - vertical-align : middle; - } - - .menubutton-single-icon - { - margin-right : 3px; - } - -/** "Dual Functionality" menubutton - * Has a popup spawning button and a command invoking button, e.g. back/forward - * class="menubutton-dual" - **/ - -/* inner button */ - - menubutton > .menubutton-internal-box > .menubutton-dual-button, - menubutton:hover > .menubutton-internal-box > .menubutton-dual-button, - menubutton:active > .menubutton-internal-box > .menubutton-dual-button - { - border : none; - margin : 0px; - -moz-border-radius : 0px; - } - - menubutton > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, - { - border : 1px outset #CCD0DD; - margin : 0px - } - - menubutton[open="true"] > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, - menubutton > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box, - menubutton:hover:active > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box - { - border : 1px inset #CCD0DD; - } - - menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box - { - border : 1px outset #CCD0DD; - } - - -/* inner dropmarker */ - menubutton > .menubutton-internal-box > .menubutton-dual-dropmarker-box - { - border : 1px outset #CCD0DD; - padding : 0px 2px 0px 2px; - } - - menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box - { - border : 1px outset #CCD0DD; - } - - menubutton[open="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box - { - border : 1px inset #CCD0DD; - padding : 1px 1px -1px 3px; - } - - menubutton > .menubutton-internal-box > .menubutton-dual-dropmarker-box > .menubutton-dropmarker - { - border : none; - list-style-image : url("chrome://global/skin/scroll-down.gif"); - } - - menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box > .menubutton-dropmarker - { - list-style-image : url("chrome://global/skin/scroll-down-disabled.gif"); - } - - menubutton > menupopup - { - min-width : 0px; - border : 1px outset #CCD0DD; - } - - menubutton > menupopup > .menupopup-internal-box - { - border : 1px outset #CCD0DD; - } - - menubutton > menupopup > menuitem - { - padding : 0px 0px 0px 3px; - } - -/** Icon only menubutton.menubutton-duals - * class="menubutton.menubutton-dual-icon" - **/ - .menubutton.menubutton-dual-icon - { - border : none; - background-color : #CCD0DD; - } - - .menubutton.menubutton-dual-icon > .menubutton.menubutton-dual-icon-internal-box - { - border : 1px outset #CCD0DD; - padding : 1px; - } - - .menubutton.menubutton-dual-icon:hover:active > .menubutton.menubutton-dual-icon-internal-box, - .menubutton.menubutton-dual-icon[open="true"] > .menubutton.menubutton-dual-icon-internal-box - { - border : 1px inset #CCD0DD; - padding : 2px 0px 0px 2px; - } - \ No newline at end of file + +/* outermost frame */ + menubutton + { +/* margin : 3px 5px 3px 5px; */ + } + + menubutton[disabled="true"] + { + color : #999999; + } + + menubutton > .menubutton-internal-box + { + border : none; + padding : 0px; + vertical-align : middle; + } + + .menubutton-single-icon + { + margin-right : 3px; + } + +/** "Dual Functionality" menubutton + * Has a popup spawning button and a command invoking button, e.g. back/forward + * class="menubutton-dual" + **/ + +/* inner button */ + + menubutton > .menubutton-internal-box > .menubutton-dual-button, + menubutton:hover > .menubutton-internal-box > .menubutton-dual-button, + menubutton[buttonover="true"] > .menubutton-internal-box > .menubutton-dual-button, + menubutton:active > .menubutton-internal-box > .menubutton-dual-button + { + border : none; + margin : 0px; + -moz-border-radius : 0px; + } + + menubutton > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, + { + border : 1px outset #CCD0DD; + margin : 0px + } + + menubutton[open="true"] > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box, + menubutton > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box, + menubutton:hover:active > .menubutton-internal-box > .menubutton-dual-button > .button-internal-box + { + border : 1px inset #CCD0DD; + } + + menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-button:hover:active > .button-internal-box + { + border : 1px outset #CCD0DD; + } + + +/* inner dropmarker */ + menubutton > .menubutton-internal-box > .menubutton-dual-dropmarker-box + { + border : 1px outset #CCD0DD; + padding : 0px 2px 0px 2px; + } + + menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box + { + border : 1px outset #CCD0DD; + } + + menubutton[open="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box + { + border : 1px inset #CCD0DD; + padding : 1px 1px -1px 3px; + } + + .menubutton-dual-dropmarker-box > .menubutton-dropmarker + { + border : none; + list-style-image : url("chrome://global/skin/scroll-down.gif"); + } + + menubutton[disabled="true"] > .menubutton-internal-box > .menubutton-dual-dropmarker-box > .menubutton-dropmarker, + .menubutton-dual-dropmarker-box > .menubutton-dropmarker[disabled="true"] + { + list-style-image : url("chrome://global/skin/scroll-down-disabled.gif"); + } + + menubutton > menupopup + { + min-width : 0px; + border : 1px outset #CCD0DD; + } + + menubutton > menupopup > .menupopup-internal-box + { + border : 1px outset #CCD0DD; + } + + menubutton > menupopup > menuitem + { + padding : 0px 0px 0px 3px; + } + +/** Icon only menubutton.menubutton-duals + * class="menubutton.menubutton-dual-icon" + **/ + .menubutton.menubutton-dual-icon + { + border : none; + background-color : #CCD0DD; + } + + .menubutton.menubutton-dual-icon > .menubutton.menubutton-dual-icon-internal-box + { + border : 1px outset #CCD0DD; + padding : 1px; + } + + .menubutton.menubutton-dual-icon:hover:active > .menubutton.menubutton-dual-icon-internal-box, + .menubutton.menubutton-dual-icon[open="true"] > .menubutton.menubutton-dual-icon-internal-box + { + border : 1px inset #CCD0DD; + padding : 2px 0px 0px 2px; + } + + + diff --git a/EarlyBlue/navigator/skin/navigator.css b/EarlyBlue/navigator/skin/navigator.css index fb51b5aa..a88e9c68 100755 --- a/EarlyBlue/navigator/skin/navigator.css +++ b/EarlyBlue/navigator/skin/navigator.css @@ -41,12 +41,14 @@ window[chromehidden~="extrachrome"] .chromeclass-extrachrome { /* * Images for the main buttons */ -.menubutton-dual-button > .button-internal-box > .button-text-container +.menubutton-dual-button > .button-internal-box > .button-text-container, +.menubutton-dual-ex-button > .button-internal-box > .button-text-container { display : none; } -.menubutton-dual-button +.menubutton-dual-button, +.menubutton-dual-ex-button { min-width : 32px; min-height : 32px; @@ -193,3 +195,4 @@ window[chromehidden~="extrachrome"] .chromeclass-extrachrome { } + -- 2.43.0