1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998
19 * the Initial Developer. All Rights Reserved.
22 * Joe Hewitt <hewitt@netscape.com>
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 /* ===== console.css ====================================================
39 == Styles used by the Error Console window.
40 ====================================================================== */
42 @namespace url
("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45 background-color: -moz-Field
;
46 color: -moz-FieldText
;
49 /* ::::: console rows ::::: */
52 border-bottom: 1px solid ThreeDLightShadow
;
58 -moz-padding-start: 5px;
59 -moz-box-align: start
!important
;
62 .console-row-msg
> label
,
63 .console-row-file > label:first-child {
68 list-style-image: inherit
;
75 /* ..... error rows ..... */
80 -moz-padding-start: 3px;
81 -moz-padding-end: 0px;
92 background: url
("chrome://global/skin/console/console-error-dash.gif") repeat-x top
;
97 background: url
("chrome://global/skin/console/console-error-caret.gif") no-repeat top
;
100 /* ..... message rows ..... */
102 .console-row[type="message"] {
103 font-family: monospace
;
106 /* ..... selected state ..... */
108 .console-row[selected="true"] {
109 background-image: url
("chrome://global/skin/console/itemSelected.png");
112 .console-row-code
[selected
="true"],
113 .console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link {
114 color: inherit
!important
;
117 /* ::::: icons ::::: */
119 .console-row
[type
="error"],
120 .console-row[type="exception"] {
121 list-style-image: url
("chrome://global/skin/console/bullet-error.png");
124 .console-row
[type
="error"] .console-row-msg
,
125 .console-row[type="exception"] .console-row-msg {
129 .console-row[type="warning"] {
130 list-style-image: url
("chrome://global/skin/console/bullet-warning.png");
133 .console-row[type="message"] {
134 list-style-image: url
("chrome://global/skin/console/bullet-question.png");
137 /* ::::: toolbars ::::: */
140 margin: 2px !important
;
144 margin-top: 2px !important
;
145 margin-bottom: 2px !important
;
146 -moz-margin-start: 0px !important
;
147 -moz-margin-end: 2px !important
;
156 #ToolbarMode toolbarbutton
{
158 padding: 4px !important
;
161 toolbar#ToolbarMode
toolbarbutton:active
,
162 toolbar#ToolbarMode toolbarbutton
[checked
="true"] {
163 -moz-padding-start: 5px !important
;
164 -moz-padding-end: 3px !important
;
168 toolbar#ToolbarMode toolbarbutton
{
169 list-style-image: url
("chrome://global/skin/console/console-toolbar.png");
170 -moz-box-orient: horizontal
;
171 padding: 4px !important
;
175 -moz-image-region: rect
(0px 24px 24px 0px);
179 -moz-image-region: rect
(0px 24px 24px 0px);
182 #Console\
:modeAll:hover
,
183 #Console\
:modeAll
[checked
="true"] {
184 -moz-image-region: rect
(24px 24px 48px 0px);
187 #Console\
:modeErrors
{
188 -moz-image-region: rect
(0px 96px 24px 72px);
191 #Console\
:modeErrors:hover
,
192 #Console\
:modeErrors
[checked
="true"] {
193 -moz-image-region: rect
(24px 96px 48px 72px);
196 #Console\
:modeWarnings
{
197 -moz-image-region: rect
(0px 72px 24px 48px);
200 #Console\
:modeWarnings:hover
,
201 #Console\
:modeWarnings
[checked
="true"] {
202 -moz-image-region: rect
(24px 72px 48px 48px);
205 #Console\
:modeMessages
{
206 -moz-image-region: rect
(0px 48px 24px 24px);
209 #Console\
:modeMessages:hover
,
210 #Console\
:modeMessages
[checked
="true"] {
211 -moz-image-region: rect
(24px 48px 48px 24px);
215 -moz-image-region: rect
(0px 120px 24px 96px);
218 #Console\
:clear:hover
,
219 #Console\
:clear
[checked
="true"] {
220 -moz-image-region: rect
(24px 120px 48px 96px);
223 toolbar#ToolbarMode
.toolbarbutton-icon
{
224 padding: 2px 0 !important
;
227 toolbar#ToolbarMode
.toolbarbutton-text
{
228 -moz-padding-end: 4px;
232 /* ::::: Fix Error Console toolbar button text spacing ::::: */
234 .toolbarbutton-text {
235 -moz-padding-start: 0px;
236 -moz-padding-end: 5px;