toolkit/themes/windows/global/toolbarbutton.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/windows/global/toolbarbutton.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,148 @@
     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 +/* ===== toolbarbutton.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 +/* ::::: toolbarbutton ::::: */
    1.15 +
    1.16 +toolbarbutton {
    1.17 +  -moz-appearance: toolbarbutton;
    1.18 +  -moz-box-align: center;
    1.19 +  -moz-box-pack: center;
    1.20 +  margin: 0;
    1.21 +  border: 1px solid transparent;
    1.22 +  padding: 3px;
    1.23 +  background-color: transparent;
    1.24 +  color: -moz-DialogText;
    1.25 +}
    1.26 +
    1.27 +.toolbarbutton-icon[label]:not([label=""]),
    1.28 +.toolbarbutton-icon[type="menu"] {
    1.29 +  -moz-margin-end: 5px;
    1.30 +}
    1.31 +
    1.32 +.toolbarbutton-text {
    1.33 +  margin: 0 !important;
    1.34 +  text-align: center;
    1.35 +}
    1.36 +
    1.37 +toolbarbutton.tabbable {
    1.38 +  -moz-user-focus: normal !important;
    1.39 +}
    1.40 +
    1.41 +toolbarbutton:-moz-focusring {
    1.42 +  /* -moz-appearance looks redundant here but is necessary.
    1.43 +      Without it, the outline won't appear. */
    1.44 +  -moz-appearance: toolbarbutton;
    1.45 +  outline: 1px dotted -moz-DialogText;
    1.46 +  outline-offset: -2px;
    1.47 +}
    1.48 +
    1.49 +toolbarbutton:hover:not([disabled="true"]) {
    1.50 +  border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
    1.51 +}
    1.52 +
    1.53 +toolbarbutton:hover:active:not([disabled="true"]),
    1.54 +toolbarbutton[open="true"]:hover,
    1.55 +toolbarbutton[open="true"] {
    1.56 +  border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
    1.57 +  padding-top: 4px;
    1.58 +  padding-bottom: 2px;
    1.59 +  -moz-padding-start: 4px;
    1.60 +  -moz-padding-end: 2px;
    1.61 +}
    1.62 +
    1.63 +toolbarbutton[disabled="true"] {
    1.64 +  color: GrayText;
    1.65 +  text-shadow: none;
    1.66 +}
    1.67 +
    1.68 +@media (-moz-windows-classic) {
    1.69 +  toolbarbutton[disabled="true"] {
    1.70 +    color: ThreeDShadow;
    1.71 +    text-shadow: 1px 1px ThreeDHighlight;
    1.72 +  }
    1.73 +}
    1.74 +
    1.75 +toolbarbutton[checked="true"]:not([disabled="true"]) {
    1.76 +  border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
    1.77 +  padding-top: 4px;
    1.78 +  padding-bottom: 2px;
    1.79 +  -moz-padding-start: 4px;
    1.80 +  -moz-padding-end: 2px;
    1.81 +  background-color: rgba(255,255,255,0.5);
    1.82 +  color: ButtonText;
    1.83 +}
    1.84 +
    1.85 +@media (-moz-windows-default-theme) {
    1.86 +  toolbarbutton:-moz-lwtheme {
    1.87 +    text-shadow: none;
    1.88 +  }
    1.89 +
    1.90 +  toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) {
    1.91 +    color: inherit;
    1.92 +    text-shadow: inherit;
    1.93 +  }
    1.94 +}
    1.95 +
    1.96 +@media not all and (-moz-windows-default-theme) {
    1.97 +  toolbarbutton:-moz-lwtheme {
    1.98 +    -moz-appearance: none;
    1.99 +  }
   1.100 +
   1.101 +  toolbarbutton:-moz-lwtheme:not([disabled="true"]) {
   1.102 +    color: inherit;
   1.103 +    text-shadow: inherit;
   1.104 +  }
   1.105 +}
   1.106 +
   1.107 +/* ::::: toolbarbutton menu ::::: */
   1.108 +
   1.109 +.toolbarbutton-menu-dropmarker {
   1.110 +  -moz-appearance: none !important;
   1.111 +  border: none !important;
   1.112 +  background-color: transparent !important;
   1.113 +  padding: 0;
   1.114 +  width: auto;
   1.115 +  height: auto;
   1.116 +  margin-top: 1px;
   1.117 +}
   1.118 +
   1.119 +/* ::::: toolbarbutton menu-button ::::: */
   1.120 +
   1.121 +toolbarbutton[type="menu-button"] {
   1.122 +  -moz-box-align: stretch;
   1.123 +  -moz-box-orient: horizontal !important;
   1.124 +}
   1.125 +
   1.126 +toolbarbutton[type="menu-button"],
   1.127 +toolbarbutton[type="menu-button"]:hover,
   1.128 +toolbarbutton[type="menu-button"]:hover:active,
   1.129 +toolbarbutton[type="menu-button"][open="true"],
   1.130 +toolbarbutton[type="menu-button"][disabled="true"],
   1.131 +toolbarbutton[type="menu-button"][disabled="true"]:hover,
   1.132 +toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
   1.133 +  border-style: none;
   1.134 +  padding: 0 !important;
   1.135 +}
   1.136 +
   1.137 +.toolbarbutton-menubutton-button {
   1.138 +  -moz-box-align: center;
   1.139 +  -moz-box-pack: center;
   1.140 +  -moz-box-orient: vertical;
   1.141 +}
   1.142 +
   1.143 +/* .......... dropmarker .......... */
   1.144 +
   1.145 +.toolbarbutton-menubutton-dropmarker {
   1.146 +  -moz-appearance: none;
   1.147 +  padding: 3px 7px;
   1.148 +  border: none;
   1.149 +  background-color: transparent;
   1.150 +  width: auto;
   1.151 +}

mercurial