toolkit/themes/faststripe/global/textbox.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/faststripe/global/textbox.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,101 @@
     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 +/* ===== textbox.css ==================================================
     1.9 +  == Styles used by the XUL textbox element.
    1.10 +  ======================================================================= */
    1.11 +
    1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    1.13 +@namespace html url("http://www.w3.org/1999/xhtml");
    1.14 +
    1.15 +/* ::::: textbox ::::: */
    1.16 +
    1.17 +textbox {
    1.18 +  cursor: text;
    1.19 +  margin: 2px 4px;
    1.20 +  border: 1px solid #555555;
    1.21 +  padding: 2px 3px 3px;
    1.22 +  -moz-padding-start: 5px;
    1.23 +  background-color: white;
    1.24 +  color: black;
    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 +/* ..... readonly state ..... */
    1.42 +
    1.43 +textbox[readonly="true"] {
    1.44 +  background-color: -moz-Dialog;
    1.45 +  color: -moz-DialogText;
    1.46 +}
    1.47 +
    1.48 +/* ..... disabled state ..... */
    1.49 +
    1.50 +textbox[disabled="true"] {
    1.51 +  cursor: default;
    1.52 +  background-color: -moz-Dialog;
    1.53 +  color: GrayText;
    1.54 +}
    1.55 +
    1.56 +/* ::::: plain textbox ::::: */
    1.57 +
    1.58 +textbox.plain {
    1.59 +  background-color: transparent;
    1.60 +  padding: 0px !important;
    1.61 +  margin: 0px !important;
    1.62 +  border: none !important;
    1.63 +}
    1.64 +
    1.65 +/* ::::: search textbox ::::: */
    1.66 +
    1.67 +.textbox-search-icon {
    1.68 +  list-style-image: url(chrome://global/skin/icons/Search-glass.png);
    1.69 +  -moz-image-region: rect(0, 16px, 16px, 0);
    1.70 +}
    1.71 +
    1.72 +.textbox-search-icon:-moz-locale-dir(rtl) {
    1.73 +  transform: scaleX(-1);
    1.74 +}
    1.75 +
    1.76 +.textbox-search-icon[searchbutton]:not([disabled]) {
    1.77 +  cursor: pointer;
    1.78 +}
    1.79 +
    1.80 +.textbox-search-clear {
    1.81 +  list-style-image: url(chrome://global/skin/icons/Search-close.png);
    1.82 +  -moz-image-region: rect(0, 16px, 16px, 0);
    1.83 +}
    1.84 +
    1.85 +.textbox-search-clear:not([disabled]) {
    1.86 +  cursor: default;
    1.87 +}
    1.88 +
    1.89 +.textbox-search-clear:not([disabled]):hover ,
    1.90 +.textbox-search-icon[searchbutton]:not([disabled]):hover {
    1.91 +  -moz-image-region: rect(0, 32px, 16px, 16px);
    1.92 +}
    1.93 +
    1.94 +.textbox-search-clear:not([disabled]):hover:active ,
    1.95 +.textbox-search-icon[searchbutton]:not([disabled]):hover:active {
    1.96 +  -moz-image-region: rect(0, 48px, 16px, 32px);
    1.97 +}
    1.98 +
    1.99 +/* ::::: textboxes inside toolbarpaletteitems ::::: */
   1.100 +
   1.101 +toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
   1.102 +  visibility: hidden;
   1.103 +}
   1.104 +

mercurial