X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fbutton.css;h=801281e151b4de5479677dfce75654a1da3a7ed6;hp=c41cc2a3a214605ec2f92f04c908dd2c30b4d2b9;hb=9545fc93ebbd436afd6cc097b68d4b2605f25ee6;hpb=a12570b9df613c628ada41eac0bf14f642ecf578 diff --git a/LCARStrek/global/button.css b/LCARStrek/global/button.css index c41cc2a3..801281e1 100644 --- a/LCARStrek/global/button.css +++ b/LCARStrek/global/button.css @@ -35,15 +35,12 @@ * * ***** END LICENSE BLOCK ***** */ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - /* ===== button.css ===================================================== - == Styles used by the XUL button element. + == Styles used by the XUL (and XHTML in netError.xhtml) button element. ======================================================================= */ /* :::::::::: button :::::::::: */ -/* outer frame */ button { -moz-border-radius: 3px; margin: 1px 2px; @@ -51,12 +48,20 @@ button { border: none; background-color: #000000; color: #FFCF00; + text-shadow: none; } .button-box { -moz-border-radius: 3px; border: 1px solid transparent; - padding: 1px 4px 2px 3px; + padding-top: 1px; + padding-bottom: 2px; + -moz-padding-start: 3px; + -moz-padding-end: 4px; +} + +.button-icon { + -moz-margin-end: 2px; } .button-text { @@ -67,10 +72,7 @@ button { /* .......... focused state .......... */ -button:focus { -} - -button:focus > .button-box { +button:-moz-focusring > .button-box { border: 1px dotted #008484; } @@ -80,7 +82,11 @@ button[default="true"] > .button-box { font-weight: bold; list-style-image: url("chrome://global/skin/icons/return.gif"); -moz-box-direction: reverse; - padding-right: 7px; +} + +button[default="true"] > .button-box > .button-icon { + -moz-margin-end: 0px; + -moz-margin-start: 2px; } button[default="true"]:hover > .button-box, @@ -97,19 +103,19 @@ button[default="true"][disabled="true"] > .button-box { button:hover, button:hover:active { - border : none; + border: none; background-color: #FFCF00; color: #000000; } button[open="true"] { - border : none; + border: none; background-color: #FF9F00; color: #000000; } -button[checked="true"] { - border : none; +button[checked="true"]:not(:hover) { + border: none; background-color: #008484; color: #000000; } @@ -117,7 +123,10 @@ button[checked="true"] { button:hover:active > .button-box, button[open="true"] > .button-box, button[checked="true"] > .button-box { - padding: 2px 3px 1px 4px; + padding-top: 2px; + padding-bottom: 1px; + -moz-padding-start: 4px; + -moz-padding-end: 3px; } /* .......... disabled state .......... */ @@ -130,7 +139,10 @@ button[disabled="true"]:hover:active { } button[disabled="true"] > .button-box { - padding: 1px 4px 2px 3px !important; + padding-top: 1px !important; + padding-bottom: 2px !important; + -moz-padding-start: 3px !important; + -moz-padding-end: 4px !important; } /* ::::: menu/menu-button buttons ::::: */ @@ -146,8 +158,8 @@ button[type="menu-button"] { .button-menubutton-dropmarker { -moz-border-radius: 3px; margin: 1px; - min-width: 11px; - min-height: 11px; + width: 11px; + height: 11px; } /* ::::: plain buttons ::::: */ @@ -157,3 +169,23 @@ button.plain { margin: 0px !important; padding: 0px !important; } + +button[type="disclosure"] { + border: 0px !important; + margin: 0px !important; + padding: 0px !important; + list-style-image: url("chrome://global/skin/tree/twisty-closed.gif"); + min-width: 0px !important; + background-color: transparent; +} + +button[type="disclosure"][open="true"] { + list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); +} + +/* ::::: xhtml buttons ::::: */ + +button::-moz-focus-inner { + padding: 0px; + border: 0px none; +}