toolkit/themes/osx/global/textbox.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/osx/global/textbox.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,106 @@
     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 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
     1.9 +@namespace html url("http://www.w3.org/1999/xhtml");
    1.10 +
    1.11 +textbox {
    1.12 +  -moz-appearance: textfield;
    1.13 +  cursor: text;
    1.14 +  margin: 4px;
    1.15 +  border: 3px solid;
    1.16 +  -moz-border-top-colors: transparent #888888 #000000;
    1.17 +  -moz-border-right-colors: transparent #FFFFFF #000000;
    1.18 +  -moz-border-bottom-colors: transparent #FFFFFF #000000;
    1.19 +  -moz-border-left-colors: transparent #888888 #000000;
    1.20 +  border-top-right-radius: 2px;
    1.21 +  border-bottom-left-radius: 2px;
    1.22 +  padding: 0px 1px;
    1.23 +  background-color: -moz-Field;
    1.24 +  color: -moz-FieldText;
    1.25 +}
    1.26 +
    1.27 +html|*.textbox-input, 
    1.28 +html|*.textbox-textarea {
    1.29 +  margin: 0px !important;
    1.30 +  border: none !important;
    1.31 +  padding: 0px !important;
    1.32 +  background-color: inherit;
    1.33 +  color: inherit;
    1.34 +  font: inherit;
    1.35 +}
    1.36 +
    1.37 +.textbox-contextmenu {
    1.38 +  cursor: default;
    1.39 +}
    1.40 +
    1.41 +textbox[focused="true"] {
    1.42 +  -moz-border-top-colors: -moz-mac-focusring -moz-mac-focusring #000000;
    1.43 +  -moz-border-right-colors: -moz-mac-focusring -moz-mac-focusring #000000;
    1.44 +  -moz-border-bottom-colors: -moz-mac-focusring -moz-mac-focusring #000000;
    1.45 +  -moz-border-left-colors: -moz-mac-focusring -moz-mac-focusring #000000;
    1.46 +}
    1.47 +
    1.48 +textbox[readonly="true"] {
    1.49 +  background-color: -moz-Dialog;
    1.50 +  color: -moz-DialogText;
    1.51 +}
    1.52 +
    1.53 +textbox[disabled="true"] {
    1.54 +  cursor: default;
    1.55 +  -moz-border-top-colors: transparent ThreeDShadow -moz-Dialog;
    1.56 +  -moz-border-right-colors: transparent ThreeDShadow -moz-Dialog;
    1.57 +  -moz-border-bottom-colors: transparent ThreeDShadow -moz-Dialog;
    1.58 +  -moz-border-left-colors: transparent ThreeDShadow -moz-Dialog;
    1.59 +  background-color: -moz-Dialog;
    1.60 +  color: GrayText;
    1.61 +} 
    1.62 +
    1.63 +textbox.plain {
    1.64 +  -moz-appearance: none !important;
    1.65 +  background-color: transparent;
    1.66 +  padding: 0px !important;
    1.67 +  margin: 0px !important;
    1.68 +  border: none !important;
    1.69 +}
    1.70 +
    1.71 +/* ::::: search box ::::: */
    1.72 +
    1.73 +textbox[type="search"] {
    1.74 +  -moz-appearance: searchfield;
    1.75 +  padding: 1px 2px;
    1.76 +  font-size: 12px;
    1.77 +}
    1.78 +
    1.79 +.textbox-search-clear {
    1.80 +  list-style-image: url(chrome://global/skin/icons/searchfield-regular-cancel.png);
    1.81 +  -moz-image-region: rect(0, 14px, 14px, 0);
    1.82 +  margin-bottom: 1px;
    1.83 +}
    1.84 +
    1.85 +.textbox-search-clear:active:hover {
    1.86 +  -moz-image-region: rect(0, 28px, 14px, 14px);
    1.87 +}
    1.88 +
    1.89 +textbox[type="search"].compact {
    1.90 +  padding: 0 1px;
    1.91 +  font-size: 11px;
    1.92 +}
    1.93 +
    1.94 +textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear {
    1.95 +  list-style-image: url(chrome://global/skin/icons/searchfield-small-cancel.png);
    1.96 +  -moz-image-region: rect(0, 11px, 11px, 0);
    1.97 +}
    1.98 +
    1.99 +textbox[type="search"].compact > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:active:hover {
   1.100 +  -moz-image-region: rect(0, 22px, 11px, 11px);
   1.101 +}
   1.102 +
   1.103 +.textbox-search-clear:not([disabled]) {
   1.104 +  cursor: default;
   1.105 +}
   1.106 + 
   1.107 +.textbox-search-icons:not([selectedIndex="1"]) {
   1.108 +  visibility: hidden;
   1.109 +}

mercurial