1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/toolbarbutton.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,115 @@ 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 + padding: 3px; 1.22 + color: -moz-DialogText; 1.23 +} 1.24 + 1.25 +toolbarbutton:-moz-lwtheme { 1.26 + text-shadow: none; 1.27 +} 1.28 + 1.29 +.toolbarbutton-icon[label]:not([label=""]), 1.30 +.toolbarbutton-icon[type="menu"] { 1.31 + -moz-margin-end: 2px; 1.32 +} 1.33 + 1.34 +.toolbarbutton-text { 1.35 + margin: 0 !important; 1.36 + text-align: center; 1.37 +} 1.38 + 1.39 +toolbarbutton.tabbable { 1.40 + -moz-user-focus: normal !important; 1.41 +} 1.42 + 1.43 +toolbarbutton:hover { 1.44 + color: -moz-buttonhovertext; 1.45 +} 1.46 + 1.47 +toolbarbutton:hover:active, 1.48 +toolbarbutton[open="true"] { 1.49 + padding-top: 4px; 1.50 + padding-bottom: 2px; 1.51 + -moz-padding-start: 4px; 1.52 + -moz-padding-end: 2px; 1.53 + color: ButtonText; 1.54 +} 1.55 + 1.56 +toolbarbutton[disabled="true"], 1.57 +toolbarbutton[disabled="true"]:hover, 1.58 +toolbarbutton[disabled="true"]:hover:active, 1.59 +toolbarbutton[disabled="true"][open="true"] { 1.60 + padding: 3px; 1.61 + color: GrayText; 1.62 +} 1.63 + 1.64 +toolbarbutton[checked="true"]:not(:hover) { 1.65 + color: ButtonText; 1.66 +} 1.67 + 1.68 +toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) { 1.69 + color: inherit; 1.70 + text-shadow: inherit; 1.71 +} 1.72 + 1.73 +/* ::::: toolbarbutton menu ::::: */ 1.74 + 1.75 +.toolbarbutton-menu-dropmarker { 1.76 + -moz-appearance: toolbarbutton-dropdown !important; 1.77 + list-style-image: none; 1.78 + -moz-image-region: auto; 1.79 + padding: 0; 1.80 + margin: 0; 1.81 +} 1.82 + 1.83 +.toolbarbutton-menu-dropmarker[disabled="true"] { 1.84 + padding: 0 !important; 1.85 +} 1.86 + 1.87 +/* ::::: toolbarbutton menu-button ::::: */ 1.88 + 1.89 +toolbarbutton[type="menu-button"] { 1.90 + -moz-box-align: stretch; 1.91 + -moz-appearance: dualbutton; 1.92 + -moz-box-orient: horizontal !important; 1.93 +} 1.94 + 1.95 +toolbarbutton[type="menu-button"], 1.96 +toolbarbutton[type="menu-button"]:hover, 1.97 +toolbarbutton[type="menu-button"]:hover:active, 1.98 +toolbarbutton[type="menu-button"][open="true"], 1.99 +toolbarbutton[type="menu-button"][disabled="true"], 1.100 +toolbarbutton[type="menu-button"][disabled="true"]:hover, 1.101 +toolbarbutton[type="menu-button"][disabled="true"]:hover:active { 1.102 + padding: 0 !important; 1.103 +} 1.104 + 1.105 +.toolbarbutton-menubutton-button { 1.106 + -moz-box-align: center; 1.107 + -moz-box-pack: center; 1.108 + -moz-box-orient: vertical; 1.109 +} 1.110 + 1.111 +/* .......... dropmarker .......... */ 1.112 + 1.113 +.toolbarbutton-menubutton-dropmarker { 1.114 + margin: 0 3px; 1.115 + -moz-appearance: toolbarbutton-dropdown !important; 1.116 + list-style-image: none; 1.117 + -moz-image-region: auto; 1.118 +}