X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fbutton.css;h=801281e151b4de5479677dfce75654a1da3a7ed6;hp=1de3e2bb40d8fde3d6da7c556fbb6c993f37b1a2;hb=9545fc93ebbd436afd6cc097b68d4b2605f25ee6;hpb=d07092f55332a0d266283fbfff8cf31e0d7f0997 diff --git a/LCARStrek/global/button.css b/LCARStrek/global/button.css index 1de3e2bb..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; + border: 1px solid transparent; + padding-top: 1px; + padding-bottom: 2px; + -moz-padding-start: 3px; + -moz-padding-end: 4px; +} + +.button-icon { + -moz-margin-end: 2px; } .button-text { @@ -67,11 +72,8 @@ button { /* .......... focused state .......... */ -button:focus { -} - -button:focus > .button-box { -/* border: 1px dotted #FF9F00; */ +button:-moz-focusring > .button-box { + border: 1px dotted #008484; } /* .......... default state .......... */ @@ -79,8 +81,12 @@ button:focus > .button-box { button[default="true"] > .button-box { font-weight: bold; list-style-image: url("chrome://global/skin/icons/return.gif"); - -moz-box-direction: reverse !important; - padding-right: 7px; + -moz-box-direction: reverse; +} + +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,19 +123,26 @@ 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 .......... */ -button[disabled="true"] { +button[disabled="true"], +button[disabled="true"]:hover:active { border: none; background-color: #000000 !important; color: #8050B0 !important; } 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 ::::: */ @@ -145,29 +158,34 @@ button[type="menu-button"] { .button-menubutton-dropmarker { -moz-border-radius: 3px; margin: 1px; - background-image: url("chrome://global/skin/arrow/arrow-down.gif"); - min-width: 11px; - min-height: 11px; + width: 11px; + height: 11px; } -.button-menu-dropmarker:hover, -.button-menubutton-dropmarker:hover { - background-image: url("chrome://global/skin/arrow/arrow-down-hover.gif"); +/* ::::: plain buttons ::::: */ + +button.plain { + border: 0px !important; + margin: 0px !important; + padding: 0px !important; } -.button-menu-dropmarker[disabled="true"], -.button-menubutton-dropmarker[disabled="true"] { - background-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !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-menubutton-dropmarker[open="true"] { - margin: 2px 0px 0px 2px; +button[type="disclosure"][open="true"] { + list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); } -/* ::::: plain buttons ::::: */ +/* ::::: xhtml buttons ::::: */ -button.plain { - border: 0px !important; - margin: 0px !important; - padding: 0px !important; +button::-moz-focus-inner { + padding: 0px; + border: 0px none; }