mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
104 lines
3.0 KiB
CSS
104 lines
3.0 KiB
CSS
/*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
* March 31, 1998.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Joe Hewitt (hewitt@netscape.com)
|
|
*/
|
|
|
|
/* ===== textbox.css ==================================================
|
|
== Styles used by the XUL textbox element.
|
|
======================================================================= */
|
|
|
|
@import url("chrome://global/content/autocomplete.css");
|
|
|
|
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
@namespace html url("http://www.w3.org/1999/xhtml");
|
|
|
|
/* ::::: textbox ::::: */
|
|
|
|
textbox {
|
|
-moz-appearance: textfield;
|
|
cursor: text;
|
|
margin: 4px 4px;
|
|
border: 3px solid;
|
|
-moz-border-top-colors: transparent #888888 #000000;
|
|
-moz-border-right-colors: transparent #FFFFFF #000000;
|
|
-moz-border-bottom-colors: transparent #FFFFFF #000000;
|
|
-moz-border-left-colors: transparent #888888 #000000;
|
|
-moz-border-radius-topright: 2px;
|
|
-moz-border-radius-bottomleft: 2px;
|
|
/*padding: 1px 0px 1px 2px ;*/
|
|
padding: 0px;
|
|
background-color: -moz-Field;
|
|
color: -moz-FieldText;
|
|
}
|
|
|
|
html|*.textbox-input,
|
|
html|*.textbox-textarea {
|
|
margin: 0px !important;
|
|
border: none !important;
|
|
padding: 0px !important;
|
|
background-color: inherit;
|
|
color: inherit;
|
|
font: inherit;
|
|
}
|
|
|
|
/* ..... focused state ..... */
|
|
|
|
textbox[focused="true"] {
|
|
-moz-border-top-colors: -moz-mac-focusring -moz-mac-focusring #000000;
|
|
-moz-border-right-colors: -moz-mac-focusring -moz-mac-focusring #000000;
|
|
-moz-border-bottom-colors: -moz-mac-focusring -moz-mac-focusring #000000;
|
|
-moz-border-left-colors: -moz-mac-focusring -moz-mac-focusring #000000;
|
|
}
|
|
|
|
/* ..... readonly state ..... */
|
|
|
|
textbox[readonly="true"] {
|
|
background-color: -moz-Dialog;
|
|
color: -moz-DialogText;
|
|
}
|
|
|
|
/* ..... disabled state ..... */
|
|
|
|
textbox[disabled="true"] {
|
|
cursor: default;
|
|
-moz-border-top-colors: transparent ThreeDShadow -moz-Dialog;
|
|
-moz-border-right-colors: transparent ThreeDShadow -moz-Dialog;
|
|
-moz-border-bottom-colors: transparent ThreeDShadow -moz-Dialog;
|
|
-moz-border-left-colors: transparent ThreeDShadow -moz-Dialog;
|
|
background-color: -moz-Dialog;
|
|
color: GrayText;
|
|
}
|
|
|
|
/* ::::: plain textbox ::::: */
|
|
|
|
textbox.plain {
|
|
-moz-appearance: none !important;
|
|
padding: 0px !important;
|
|
margin: 0px !important;
|
|
border: none !important;
|
|
}
|
|
|
|
|
|
/* ::::: rounded search box, coming soon ::::: */
|
|
|
|
#search-box {
|
|
}
|