2009-06-24 09:42:53 -07:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla 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/MPL/
|
|
|
|
*
|
|
|
|
* 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 Mobile Browser.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Mozilla Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2008
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Mark Finkle <mfinkle@mozilla.com>
|
2009-12-01 21:24:26 -08:00
|
|
|
* Doug Turner <dougt@mozilla.com>
|
2009-06-24 09:42:53 -07:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
@namespace url("http://www.w3.org/1999/xhtml");
|
|
|
|
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
|
2009-12-01 21:24:26 -08:00
|
|
|
/* make clicking on links stand out a bit (bug 532206) */
|
2010-06-02 03:04:01 -07:00
|
|
|
* > *:not(embed):focus, * > *:focus > font {
|
2009-12-11 11:41:28 -08:00
|
|
|
outline: 2px solid #8db8d8 !important;
|
|
|
|
/*
|
2010-03-30 11:05:27 -07:00
|
|
|
XXX How do I preserve mac focusring without blowing focus color on other platforms?
|
|
|
|
outline-color: -moz-mac-focusring !important;
|
|
|
|
*/
|
2009-12-01 21:24:26 -08:00
|
|
|
}
|
|
|
|
|
2010-12-21 10:17:30 -08:00
|
|
|
*:-moz-any-link:focus {
|
2009-12-11 11:41:28 -08:00
|
|
|
outline-offset: -2px;
|
2009-12-01 21:24:26 -08:00
|
|
|
}
|
|
|
|
|
2009-06-24 09:42:53 -07:00
|
|
|
/* Style the scrollbars */
|
2010-12-21 10:17:30 -08:00
|
|
|
html xul|scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
xul|window xul|scrollbar {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2010-12-15 20:01:00 -08:00
|
|
|
xul|scrollbar[orient="vertical"] {
|
2009-06-24 09:42:53 -07:00
|
|
|
-moz-appearance: none !important;
|
2010-12-15 20:01:00 -08:00
|
|
|
opacity: 0;
|
|
|
|
position: relative;
|
|
|
|
margin-left: -8px;
|
|
|
|
min-width: 8px;
|
|
|
|
background-color: transparent !important;
|
|
|
|
background-image: none !important;
|
2010-12-21 10:17:30 -08:00
|
|
|
border: 0px solid transparent !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
xul|scrollbar[orient="vertical"] xul|thumb {
|
|
|
|
max-width: 6px !important;
|
|
|
|
min-width: 6px !important;
|
2010-12-15 20:01:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
xul|scrollbar[orient="horizontal"] {
|
|
|
|
-moz-appearance: none !important;
|
|
|
|
opacity: 0;
|
|
|
|
position: relative;
|
|
|
|
min-height: 8px;
|
|
|
|
margin-top: -8px;
|
|
|
|
background-color: transparent !important;
|
|
|
|
background-image: none !important;
|
2010-12-21 10:17:30 -08:00
|
|
|
border: 0px solid transparent !important;
|
2010-12-15 20:01:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
xul|scrollbar[orient="horizontal"] xul|thumb {
|
|
|
|
max-height: 6px !important;
|
2010-12-21 10:17:30 -08:00
|
|
|
min-height: 6px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
xul|*[panning="true"] xul|scrollbar {
|
|
|
|
opacity: 1;
|
2010-12-15 20:01:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
xul|scrollbox {
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: scroll;
|
2010-04-01 14:00:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
xul|scrollbarbutton {
|
2010-12-21 10:17:30 -08:00
|
|
|
min-height: 8px !important;
|
|
|
|
min-width: 8px !important;
|
2010-04-05 06:50:04 -07:00
|
|
|
-moz-appearance: none !important;
|
2010-12-21 10:17:30 -08:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
xul|scrollbarbutton[sbattr="scrollbar-up-top"],
|
|
|
|
xul|scrollbarbutton[sbattr="scrollbar-bottom-top"] {
|
|
|
|
display: none;
|
2010-04-01 14:00:27 -07:00
|
|
|
}
|
|
|
|
|
2010-12-15 20:01:00 -08:00
|
|
|
xul|thumb {
|
|
|
|
background-color: rgba(0, 0, 0, 0.4) !important;
|
|
|
|
-moz-border-top-colors: none !important;
|
|
|
|
-moz-border-bottom-colors: none !important;
|
|
|
|
-moz-border-right-colors: none !important;
|
|
|
|
-moz-border-left-colors: none !important;
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4) !important;
|
|
|
|
-moz-border-radius: 3px;
|
2009-06-24 09:42:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
select:not([size]):not([multiple]) > xul|scrollbar,
|
|
|
|
select[size="1"] > xul|scrollbar,
|
|
|
|
select:not([size]):not([multiple]) xul|scrollbarbutton,
|
|
|
|
select[size="1"] xul|scrollbarbutton {
|
2010-12-21 10:17:30 -08:00
|
|
|
display: block;
|
|
|
|
margin-left: 0;
|
|
|
|
min-width: 16px;
|
2009-06-24 09:42:53 -07:00
|
|
|
}
|
2009-09-01 22:22:53 -07:00
|
|
|
|
|
|
|
/* Override inverse OS themes */
|
2010-06-02 03:04:01 -07:00
|
|
|
select,
|
|
|
|
textarea,
|
|
|
|
button,
|
2010-11-12 10:42:10 -08:00
|
|
|
xul|button,
|
2010-06-02 03:04:01 -07:00
|
|
|
* > input:not([type="image"]) {
|
2010-09-21 13:06:13 -07:00
|
|
|
-moz-appearance: none !important; /* See bug 598421 for fixing the platform */
|
2010-05-18 13:41:06 -07:00
|
|
|
-moz-border-radius: 3px;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select[size],
|
|
|
|
select[multiple],
|
|
|
|
select[size][multiple],
|
|
|
|
textarea,
|
|
|
|
* > input:not([type="image"]) {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-style: solid;
|
|
|
|
border-color: #7d7d7d;
|
|
|
|
color: #414141;
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(115,115,115,0.5) 0, rgba(215,215,215,0.5) 3px, rgba(255,255,255,0.2) 16px);
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2011-01-20 11:48:39 -08:00
|
|
|
input:-moz-placeholder,
|
|
|
|
textarea:-moz-placeholder {
|
|
|
|
color: GrayText;
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select:not([size]):not([multiple]),
|
|
|
|
select[size="0"],
|
|
|
|
select[size="1"],
|
|
|
|
* > input[type="button"],
|
|
|
|
* > input[type="submit"],
|
|
|
|
* > input[type="reset"],
|
|
|
|
button {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-style: solid;
|
|
|
|
border-color: #7d7d7d;
|
|
|
|
color: #414141;
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(255,255,255,0.2) 0, rgba(215,215,215,0.5) 18px, rgba(115,115,115,0.5) 100%);
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"] {
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(115,115,115,0.5) 0, rgba(215,215,215,0.5) 2px, rgba(255,255,255,0.2) 6px);
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="radio"] {
|
2010-05-14 09:49:20 -07:00
|
|
|
background: -moz-radial-gradient(6px 6px, cover, rgba(255,255,255,0.2) 3px, rgba(195,195,195,0.5) 5px, rgba(115,115,115,0.5) 100%);
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-width: 1px;
|
|
|
|
padding: 1px;
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select:not([size]):not([multiple]),
|
|
|
|
select[size="0"],
|
|
|
|
select[size="1"] {
|
2010-05-18 11:50:42 -07:00
|
|
|
padding: 0 1px 0 1px;
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
* > input:not([type="image"]) {
|
2010-05-18 11:50:42 -07:00
|
|
|
border-width: 1px;
|
|
|
|
padding: 1px;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
textarea {
|
2010-08-10 15:13:26 -07:00
|
|
|
resize: none;
|
2010-03-30 11:05:27 -07:00
|
|
|
border-width: 1px;
|
|
|
|
padding: 2px 1px 2px 1px;
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="button"],
|
|
|
|
input[type="submit"],
|
|
|
|
input[type="reset"],
|
|
|
|
button {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-width: 1px;
|
2010-05-18 11:50:42 -07:00
|
|
|
padding: 0 7px 0 7px;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
2010-03-30 11:05:27 -07:00
|
|
|
max-width: 14px;
|
|
|
|
max-height: 14px;
|
|
|
|
border: 1px solid #a7a7a7 !important;
|
|
|
|
padding: 2px 1px 2px 1px;
|
|
|
|
}
|
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
select > input[type="button"] {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-width: 0px !important;
|
2010-06-11 07:19:25 -07:00
|
|
|
margin: 0px !important;
|
|
|
|
padding: 0px !important;
|
2010-03-30 11:05:27 -07:00
|
|
|
-moz-border-radius: 0;
|
2010-04-13 15:41:17 -07:00
|
|
|
color: #414141;
|
2010-03-30 11:05:27 -07:00
|
|
|
|
2010-06-18 06:34:12 -07:00
|
|
|
background-size: 100% 90%;
|
2010-05-18 12:16:51 -07:00
|
|
|
background-color: transparent;
|
2010-04-13 15:41:17 -07:00
|
|
|
background-image: -moz-radial-gradient(bottom left, #bbbbbb 40%, #f5f5f5) !important;
|
|
|
|
background-position: -15px center !important;
|
2010-03-30 11:05:27 -07:00
|
|
|
background-repeat: no-repeat !important;
|
2010-04-13 15:41:17 -07:00
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
/* Use to position an svg arrow on <select> element */
|
|
|
|
-moz-binding: url("chrome://browser/content/bindings.xml#select-button");
|
|
|
|
position: relative !important;
|
|
|
|
font-size: inherit;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select[size]:focus,
|
|
|
|
select[multiple]:focus,
|
|
|
|
select[size][multiple]:focus,
|
|
|
|
textarea:focus,
|
|
|
|
input[type="file"]:focus > input[type="text"],
|
|
|
|
* > input:not([type="image"]):focus {
|
2010-03-30 11:05:27 -07:00
|
|
|
outline: 0px !important;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: rgb(94,128,153);
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(27,113,177,0.5) 0, rgba(198,225,246,0.2) 3px, rgba(255,255,255,0.2) 16px);
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select:not([size]):not([multiple]):focus,
|
|
|
|
select[size="0"]:focus,
|
|
|
|
select[size="1"]:focus,
|
|
|
|
input[type="button"]:focus,
|
|
|
|
input[type="submit"]:focus,
|
|
|
|
input[type="reset"]:focus,
|
|
|
|
button:focus {
|
2010-03-30 11:05:27 -07:00
|
|
|
outline: 0px !important;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: rgb(94,128,153);
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(255,255,255,0.2) 0, rgba(198,225,256,0.2) 18px, rgba(27,113,177,0.5) 100%);
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"]:focus,
|
|
|
|
input[type="radio"]:focus {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-color: #99c6e0 !important;
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"]:focus {
|
2010-05-18 12:16:51 -07:00
|
|
|
background: white -moz-linear-gradient(top, rgba(27,113,177,0.5) 0, rgba(198,225,246,0.2) 2px, rgba(255,255,255,0.2) 6px);
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="radio"]:focus {
|
2010-05-14 09:49:20 -07:00
|
|
|
background: -moz-radial-gradient(6px 6px, cover, rgba(255,255,255,0.2) 3px, rgba(198,225,246,0.2) 5px, rgba(27,113,177,0.5) 100%);
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-05-18 11:59:49 -07:00
|
|
|
/* we need to be specific for selects because the above rules are specific too */
|
2010-06-02 03:04:01 -07:00
|
|
|
textarea[disabled],
|
|
|
|
select[size][disabled],
|
|
|
|
select[multiple][disabled],
|
|
|
|
select[size][multiple][disabled],
|
|
|
|
select:not([size]):not([multiple])[disabled],
|
|
|
|
select[size="0"][disabled],
|
|
|
|
select[size="1"][disabled],
|
|
|
|
button[disabled],
|
|
|
|
* > input:not([type="image"])[disabled] {
|
2010-03-30 11:05:27 -07:00
|
|
|
color: rgba(0,0,0,0.3);
|
|
|
|
border-color: rgba(125,125,125,0.4);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
background: transparent -moz-linear-gradient(top, rgba(185,185,185,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(255,255,255,0.4) 100%);
|
|
|
|
}
|
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
select:not([size]):not([multiple])[disabled],
|
|
|
|
select[size="0"][disabled],
|
|
|
|
select[size="1"][disabled] {
|
|
|
|
background: transparent -moz-linear-gradient(top, rgba(255,255,255,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(185,185,185,0.4) 100%);
|
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="button"][disabled],
|
|
|
|
input[type="submit"][disabled],
|
|
|
|
input[type="reset"][disabled],
|
|
|
|
button[disabled="true"] {
|
2010-05-18 11:50:42 -07:00
|
|
|
padding: 0 7px 0 7px;
|
2010-03-30 11:05:27 -07:00
|
|
|
background: transparent -moz-linear-gradient(top, rgba(255,255,255,0.4) 0, rgba(235,235,235,0.4) 3px, rgba(185,185,185,0.4) 100%);
|
|
|
|
}
|
|
|
|
|
2011-01-03 08:50:43 -08:00
|
|
|
input[type="radio"][disabled],
|
|
|
|
input[type="radio"][disabled]:active,
|
|
|
|
input[type="radio"][disabled]:hover,
|
|
|
|
input[type="radio"][disabled]:hover:active,
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"][disabled],
|
2011-01-03 08:50:43 -08:00
|
|
|
input[type="checkbox"][disabled]:active,
|
|
|
|
input[type="checkbox"][disabled]:hover,
|
|
|
|
input[type="checkbox"][disabled]:hover:active {
|
2010-03-30 11:05:27 -07:00
|
|
|
border:1px solid rgba(125,125,125,0.4) !important;
|
|
|
|
}
|
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
select[disabled] > input[type="button"] {
|
2010-03-30 11:05:27 -07:00
|
|
|
opacity: 0.6;
|
2010-04-23 10:53:34 -07:00
|
|
|
padding: 1px 7px 1px 7px;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
2010-06-11 07:19:25 -07:00
|
|
|
|
2010-10-22 09:05:00 -07:00
|
|
|
/* -moz-touch-enabled? media elements */
|
|
|
|
video > xul|videocontrols,
|
|
|
|
audio > xul|videocontrols {
|
|
|
|
-moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControls");
|
|
|
|
}
|
2011-01-11 16:21:06 -08:00
|
|
|
|
|
|
|
*:-moz-any-link:active,
|
|
|
|
*[role=button]:active,
|
|
|
|
button:active,
|
|
|
|
input:active,
|
|
|
|
option:active,
|
|
|
|
select:active,
|
|
|
|
label:active,
|
|
|
|
textarea:active {
|
2011-01-18 09:32:19 -08:00
|
|
|
background-color: rgba(141, 184, 216, 0.5) !important;
|
2011-01-11 16:21:06 -08:00
|
|
|
}
|
2011-03-04 11:29:32 -08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Until datalist are fully supported on mobile (bug 628616) set the display
|
|
|
|
* to inline in order to allow fallback to works
|
|
|
|
*/
|
|
|
|
datalist {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|