2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-06-24 09:42:53 -07:00
|
|
|
|
2011-05-28 10:02:47 -07:00
|
|
|
%filter substitution
|
|
|
|
%include defines.inc
|
|
|
|
|
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");
|
|
|
|
|
2012-03-20 14:57:12 -07:00
|
|
|
::-moz-selection {
|
|
|
|
background-color: @color_background_highlight@;
|
|
|
|
color: @color_text_highlight@;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window 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;
|
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbar[orient="vertical"]:-moz-locale-dir(rtl) {
|
2011-03-31 17:27:05 -07:00
|
|
|
margin-left: 2px;
|
|
|
|
margin-right: -10px;
|
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbar[orient="vertical"] xul|thumb {
|
2010-12-21 10:17:30 -08:00
|
|
|
max-width: 6px !important;
|
|
|
|
min-width: 6px !important;
|
2010-12-15 20:01:00 -08:00
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbar[orient="horizontal"] {
|
2010-12-15 20:01:00 -08:00
|
|
|
-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
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbar[orient="horizontal"] xul|thumb {
|
2010-12-15 20:01:00 -08:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbox {
|
2010-12-15 20:01:00 -08:00
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: scroll;
|
2010-04-01 14:00:27 -07:00
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window 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;
|
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbarbutton[sbattr="scrollbar-up-top"],
|
|
|
|
xul|window xul|scrollbarbutton[sbattr="scrollbar-bottom-top"] {
|
2010-12-21 10:17:30 -08:00
|
|
|
display: none;
|
2010-04-01 14:00:27 -07:00
|
|
|
}
|
|
|
|
|
2012-08-04 12:32:24 -07:00
|
|
|
xul|window xul|scrollbar xul|thumb {
|
2012-03-20 14:57:12 -07:00
|
|
|
background-color: @color_background_scroller@ !important;
|
2010-12-15 20:01:00 -08:00
|
|
|
-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;
|
2014-08-29 08:45:14 -07:00
|
|
|
border-radius: @form_border_radius@;
|
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
|
|
|
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 */
|
2014-08-29 08:45:14 -07:00
|
|
|
border-radius: @form_border_radius@;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
select[size],
|
|
|
|
select[multiple],
|
|
|
|
select[size][multiple],
|
|
|
|
textarea,
|
2014-08-29 08:45:14 -07:00
|
|
|
* > input:not([type="image"]):not([type="image"]) {
|
2010-03-30 11:05:27 -07:00
|
|
|
border-style: solid;
|
2014-08-29 08:45:14 -07:00
|
|
|
border-color: @form_border@;
|
|
|
|
color: @form_text@;
|
|
|
|
background-color: @form_background@;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2011-10-06 19:58:31 -07:00
|
|
|
/* Selects are handled by the form helper, see bug 685197 */
|
|
|
|
select option, select optgroup {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
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;
|
2014-08-29 08:45:14 -07:00
|
|
|
border-color: @form_border@;
|
|
|
|
color: @form_text@;
|
|
|
|
background-color: @form_background@;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"] {
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background@;
|
2009-09-01 22:22:53 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="radio"] {
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background@
|
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;
|
2014-10-02 06:05:16 -07:00
|
|
|
border-radius: @form_border_radius@;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
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;
|
2014-08-29 08:45:14 -07:00
|
|
|
border: 1px solid @form_border@ !important;
|
2010-03-30 11:05:27 -07:00
|
|
|
padding: 2px 1px 2px 1px;
|
|
|
|
}
|
|
|
|
|
2012-01-18 08:49:48 -08:00
|
|
|
select > 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;
|
2012-02-22 14:14:51 -08:00
|
|
|
border-radius: 0;
|
2010-04-13 15:41:17 -07:00
|
|
|
color: #414141;
|
2010-03-30 11:05:27 -07:00
|
|
|
|
2014-08-29 08:45:14 -07:00
|
|
|
background-size: auto auto;
|
2010-05-18 12:16:51 -07:00
|
|
|
background-color: transparent;
|
2014-08-29 08:45:14 -07:00
|
|
|
background-image: url("chrome://browser/skin/images/dropmarker.svg") !important;
|
|
|
|
background-position: -moz-calc(50% + 1px) 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
|
|
|
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;
|
2014-08-29 08:45:14 -07:00
|
|
|
border-color: @form_border@;
|
|
|
|
background-color: @form_background@;
|
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;
|
2014-08-29 08:45:14 -07:00
|
|
|
border-color: @form_border@;
|
|
|
|
background-color: @form_background@;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"]:focus,
|
|
|
|
input[type="radio"]:focus {
|
2014-08-29 08:45:14 -07:00
|
|
|
border-color: @form_border@ !important;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="checkbox"]:focus {
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background@;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="radio"]:focus {
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background@;
|
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],
|
2013-06-12 00:40:14 -07:00
|
|
|
button[disabled]:active,
|
|
|
|
* > input:not([type="image"])[disabled],
|
|
|
|
* > input:not([type="image"])[disabled]:active {
|
2014-08-29 08:45:14 -07:00
|
|
|
color: @form_text_disabled@;
|
|
|
|
border-color: @form_border@;
|
2010-03-30 11:05:27 -07:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background_disabled@;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2010-06-11 07:19:25 -07:00
|
|
|
select:not([size]):not([multiple])[disabled],
|
|
|
|
select[size="0"][disabled],
|
|
|
|
select[size="1"][disabled] {
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background_disabled@;
|
2010-06-11 07:19:25 -07:00
|
|
|
}
|
|
|
|
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="button"][disabled],
|
2013-06-12 00:40:14 -07:00
|
|
|
input[type="button"][disabled]:active,
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="submit"][disabled],
|
2013-06-12 00:40:14 -07:00
|
|
|
input[type="submit"][disabled]:active,
|
2010-06-02 03:04:01 -07:00
|
|
|
input[type="reset"][disabled],
|
2013-06-12 00:40:14 -07:00
|
|
|
input[type="reset"][disabled]:active,
|
|
|
|
button[disabled],
|
|
|
|
button[disabled]:active {
|
2010-05-18 11:50:42 -07:00
|
|
|
padding: 0 7px 0 7px;
|
2014-08-29 08:45:14 -07:00
|
|
|
background: @form_background_disabled@;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
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 {
|
2014-08-29 08:45:14 -07:00
|
|
|
border:1px solid @form_border@ !important;
|
2010-03-30 11:05:27 -07:00
|
|
|
}
|
|
|
|
|
2012-01-18 08:49:48 -08:00
|
|
|
select[disabled] > 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 */
|
2012-06-15 11:33:14 -07:00
|
|
|
:-moz-any(video, audio) > xul|videocontrols {
|
2010-10-22 09:05:00 -07:00
|
|
|
-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,
|
2013-06-12 00:40:14 -07:00
|
|
|
button:not([disabled]):active,
|
2013-11-26 12:53:21 -08:00
|
|
|
input:not(:focus):not([disabled]):active,
|
2013-06-12 00:40:14 -07:00
|
|
|
select:not([disabled]):active,
|
2013-11-26 12:53:21 -08:00
|
|
|
textarea:not(:focus):not([disabled]):active,
|
2011-01-11 16:21:06 -08:00
|
|
|
option:active,
|
|
|
|
label:active,
|
2013-02-22 16:05:34 -08:00
|
|
|
xul|menulist:active {
|
2013-11-12 16:23:52 -08:00
|
|
|
background-color: @color_background_highlight_overlay@;
|
2011-01-11 16:21:06 -08:00
|
|
|
}
|
2013-09-04 03:30:36 -07:00
|
|
|
|
2013-12-08 13:27:28 -08:00
|
|
|
input[type=number] > div > div, /* work around bug 946184 */
|
2013-09-04 03:30:36 -07:00
|
|
|
input[type=number]::-moz-number-spin-box {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|