toolkit/themes/faststripe/global/button.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/faststripe/global/button.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,125 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/* ===== button.css =====================================================
     1.9 +  == Styles used by the XUL button element.
    1.10 +  ======================================================================= */
    1.11 +
    1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    1.13 +
    1.14 +/* :::::::::: button :::::::::: */
    1.15 +
    1.16 +button {
    1.17 +  /*-moz-appearance: button;*/
    1.18 +  margin: 3px 7px 3px 7px;
    1.19 +  min-width: 6.3em;
    1.20 +  border: 1px solid;
    1.21 +  border-color: #555555;
    1.22 +  background-color: #eeeeee;
    1.23 +  color: black;
    1.24 +  border-radius: 3px 3px;
    1.25 +}
    1.26 +
    1.27 +.button-box {
    1.28 +  border: 1px solid transparent;
    1.29 +  padding-top: 1px;
    1.30 +  padding-bottom: 2px;
    1.31 +  -moz-padding-start: 3px;
    1.32 +  -moz-padding-end: 4px;
    1.33 +}
    1.34 +
    1.35 +.button-text {
    1.36 +  margin: 0 !important;
    1.37 +  text-align: center;
    1.38 +}
    1.39 +
    1.40 +/* .......... focused state .......... */
    1.41 +
    1.42 +button:focus {
    1.43 +}
    1.44 +
    1.45 +button:focus > .button-box {
    1.46 +  border: 1px dotted black;
    1.47 +}
    1.48 +
    1.49 +/* .......... default state .......... */
    1.50 +
    1.51 +button[default="true"] {
    1.52 +  margin: 1px 5px 1px 5px;
    1.53 +  border-width: 2px;
    1.54 +  border-radius: 3px 3px;
    1.55 +  border-color: black;
    1.56 +}
    1.57 +
    1.58 +/* .......... active/open/checked state .......... */
    1.59 +
    1.60 +button:hover:active,
    1.61 +button[open="true"],
    1.62 +button[checked="true"] {
    1.63 +  border-color: black;
    1.64 +  background: #777777;
    1.65 +}
    1.66 +
    1.67 +/* .......... disabled state .......... */
    1.68 +
    1.69 +button[disabled="true"] {
    1.70 +  border-color: #dddddd;
    1.71 +  color: gray;
    1.72 +}
    1.73 +
    1.74 +button[disabled="true"] > .button-box {
    1.75 +  padding-top: 1px !important;
    1.76 +  padding-bottom: 2px !important;
    1.77 +  -moz-padding-start: 3px !important;
    1.78 +  -moz-padding-end: 4px !important;
    1.79 +}
    1.80 +
    1.81 +/* ::::: menu/menu-button buttons ::::: */
    1.82 +
    1.83 +button[type="menu-button"] {
    1.84 +  -moz-box-align: center;
    1.85 +  -moz-box-pack: center;
    1.86 +  margin: 0;
    1.87 +  border: none;
    1.88 +}
    1.89 +
    1.90 +.button-menu-dropmarker,
    1.91 +.button-menubutton-dropmarker {
    1.92 +  -moz-appearance: none !important;
    1.93 +  margin: 1px;
    1.94 +  background-color: transparent !important;
    1.95 +  border: none !important;
    1.96 +  min-width:11px;
    1.97 +  min-height:11px;
    1.98 +}
    1.99 +
   1.100 +.button-menubutton-dropmarker[open="true"] {
   1.101 +  margin-top: 2px;
   1.102 +  margin-bottom: 0px;
   1.103 +  -moz-margin-start: 2px;
   1.104 +  -moz-margin-end: 0px;
   1.105 +}
   1.106 +
   1.107 +/* ::::: plain buttons ::::: */
   1.108 +
   1.109 +button.plain {
   1.110 +  border: 0px !important;
   1.111 +  margin: 0px !important;
   1.112 +  padding: 0px !important;
   1.113 +}
   1.114 +
   1.115 +button[type="disclosure"] {
   1.116 +  border: 0px !important;
   1.117 +  margin: 0px !important;
   1.118 +  padding: 0px !important;
   1.119 +  list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
   1.120 +  min-width: 0px !important;
   1.121 +  background-color: transparent;
   1.122 +}
   1.123 +
   1.124 +button[type="disclosure"][open="true"] {
   1.125 +  list-style-image: url("chrome://global/skin/tree/twisty-open.png"); 
   1.126 +}
   1.127 +
   1.128 +

mercurial