gecko-dev/themes/modern/global/textbox.css

136 строки
3.3 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"); /* namespace for HTML elements */
/* ::::: textbox ::::: */
textbox {
cursor: text;
margin: 2px 4px;
background-color: #ffffff;
color: #000000;
font: inherit;
}
textbox,
textbox[readonly="true"][focused="true"] {
border-top: 1px solid #BEC3D3;
border-right: 1px solid #F8FAFE;
border-bottom: 1px solid #F8FAFE;
border-left: 1px solid #BEC3D3;
}
.textbox-internal-box,
.textarea-internal-box {
padding: 1px 0px 1px 2px;
}
.textbox-internal-box,
.textarea-internal-box,
textbox[readonly="true"][focused="true"] > .textbox-internal-box,
textbox[readonly="true"][focused="true"] > .textarea-internal-box {
border: 1px solid #5D616E;
}
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"] {
border: 1px solid #A5A8B1;
}
textbox[focused="true"] > .textbox-internal-box,
textbox[focused="true"] > .textarea-internal-box {
border-color: #000000;
}
/* ..... disabled state ..... */
textbox[disabled="true"] {
background-color: #C7D0D9;
color: #999999;
cursor: default !important;
}
/* ..... readonly state ..... */
textbox[readonly="true"] > .textbox-internal-box,
textbox[readonly="true"] > .textarea-internal-box {
background-color: #C7D0D9;
}
/* ::::: plain textbox ::::: */
textbox.plain,
textbox.plain > .textbox-internal-box,
textbox.plain > .textarea-internal-box {
margin: 0px !important;
border: none !important;
padding: 0px !important;
}
/* ::::: scrollable textbox ::::: */
.scrollfield {
border: none !important;
margin: 0px;
margin-top: 1px;
padding: 0px !important;
background: inherit;
}
.scrollfield > .textbox-internal-box {
border: none !important;
margin: 0px !important;
padding: 0px !important;
}
/* ::::: inline-edit textbox ::::: */
.textbox-inline-edit {
margin: 0px !important;
border: 1px solid #000000 !important;
}
.textbox-inline-edit > .textbox-internal-box {
border: none !important;
padding: 1px !important;
}