1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 @namespace url
(http://www
.w3
.org
/1999/xhtml
); /* set default namespace to HTML */
8 /* Scroll-anchoring shouldn't work in any editable and scrollable elements when
9 user inserts something.
13 overflow-anchor: none
;
20 /* Use default arrow over objects with size that
21 are selected when clicked on.
22 Override the browser's pointer cursor over links
25 img:read-write
, img:read-write
[usemap
], area:read-write
,
26 object:read-write
, object:read-write
[usemap
],
27 applet:read-write
, hr:read-write
, button:read-write
,
29 a:read-write:link img
, a:read-write:visited img
,
30 a:read-write:active img
, a:read-write:-moz-only-whitespace
[name
] {
34 *|
*:any-link:read-write
{
38 /* Prevent clicking on links from going to link */
39 a:link:read-write img
, a:visited:read-write img
,
40 a:active:read-write img
{
41 -moz-user-input: none
;
44 /* We suppress user/author's prefs for link underline,
45 so we must set explicitly. This isn't good!
48 color: -moz-hyperlinktext
;
51 /* Allow double-clicks on these widgets to open properties dialogs
52 XXX except when the widget has disabled attribute */
53 *|
*:read-write
> input:read-only
,
54 *|
*:read-write
> button:read-only
,
55 *|
*:read-write
> textarea:read-only
{
57 -moz-user-input: auto
!important
;
58 -moz-user-focus: none
!important
;
61 /* XXX Still need a better way of blocking other events to these widgets */
63 *|
*:read-write
> input:disabled
,
64 *|
*:read-write
> input
[type
="checkbox"],
65 *|
*:read-write
> input
[type
="radio"],
66 *|
*:read-write
> input
[type
="file"],
67 input
[contenteditable
="true"]:disabled
,
68 input
[contenteditable
="true"][type
="checkbox"],
69 input
[contenteditable
="true"][type
="radio"],
70 input
[contenteditable
="true"][type
="file"] {
72 -moz-user-input: none
!important
;
73 -moz-user-focus: none
!important
;
76 *|
*:read-write
> input
[type
="hidden"],
77 input
[contenteditable
="true"][type
="hidden"] {
78 border: 1px solid black
!important
;
79 visibility: visible
!important
;
82 *|
*::-moz-display-comboboxcontrol-frame
{
90 /* the following rules are for Image Resizing */
92 span
[\_moz_anonclass
="mozResizer"] {
96 border: 1px black solid
;
97 background-color: white
;
99 z-index: 2147483646; /* max value -1 for this property */
102 /* we can't use :active below */
103 span
[\_moz_anonclass
="mozResizer"][\_moz_activated
],
104 span
[\_moz_anonclass
="mozResizer"]:hover
{
105 background-color: black
;
108 span
[\_moz_anonclass
="mozResizer"].hidden
,
109 span
[\_moz_anonclass
="mozResizingShadow"].hidden
,
110 img
[\_moz_anonclass
="mozResizingShadow"].hidden
,
111 span
[\_moz_anonclass
="mozGrabber"].hidden
,
112 span
[\_moz_anonclass
="mozResizingInfo"].hidden
,
113 a
[\_moz_anonclass
="mozTableRemoveRow"].hidden
,
114 a
[\_moz_anonclass
="mozTableRemoveColumn"].hidden
{
115 display: none
!important
;
118 span
[\_moz_anonclass
="mozResizer"][anonlocation
="nw"] {
121 span
[\_moz_anonclass
="mozResizer"][anonlocation
="n"] {
124 span
[\_moz_anonclass
="mozResizer"][anonlocation
="ne"] {
127 span
[\_moz_anonclass
="mozResizer"][anonlocation
="w"] {
130 span
[\_moz_anonclass
="mozResizer"][anonlocation
="e"] {
133 span
[\_moz_anonclass
="mozResizer"][anonlocation
="sw"] {
136 span
[\_moz_anonclass
="mozResizer"][anonlocation
="s"] {
139 span
[\_moz_anonclass
="mozResizer"][anonlocation
="se"] {
143 span
[\_moz_anonclass
="mozResizingShadow"],
144 img
[\_moz_anonclass
="mozResizingShadow"] {
145 outline: thin dashed black
;
149 z-index: 2147483647; /* max value for this property */
152 span
[\_moz_anonclass
="mozResizingInfo"] {
153 font-family: sans-serif
;
156 background-color: #d0d0d0;
157 border: ridge
2px #d0d0d0;
160 z-index: 2147483647; /* max value for this property */
163 img
[\_moz_resizing
] {
164 outline: thin solid black
;
168 outline: silver ridge
2px;
169 z-index: 2147483645 !important
; /* max value -2 for this property */
171 *[\_moz_abspos
="white"] {
172 background-color: white
!important
;
174 *[\_moz_abspos
="black"] {
175 background-color: black
!important
;
178 span
[\_moz_anonclass
="mozGrabber"] {
179 outline: ridge
2px silver
;
184 background-image: url
("resource://gre/res/grabber.gif");
185 background-repeat: no-repeat
;
186 background-position: center center
;
191 /* INLINE TABLE EDITING */
193 a
[\_moz_anonclass
="mozTableAddColumnBefore"] {
195 z-index: 2147483647; /* max value for this property */
196 text-decoration: none
!important
;
197 border: none
0px !important
;
200 background-image: url
("resource://gre/res/table-add-column-before.gif");
201 background-repeat: no-repeat
;
202 background-position: center center
;
204 -moz-user-focus: none
!important
;
207 a
[\_moz_anonclass
="mozTableAddColumnBefore"]:hover
{
208 background-image: url
("resource://gre/res/table-add-column-before-hover.gif");
211 a
[\_moz_anonclass
="mozTableAddColumnBefore"]:active
{
212 background-image: url
("resource://gre/res/table-add-column-before-active.gif");
215 a
[\_moz_anonclass
="mozTableAddColumnAfter"] {
217 z-index: 2147483647; /* max value for this property */
218 text-decoration: none
!important
;
219 border: none
0px !important
;
222 background-image: url
("resource://gre/res/table-add-column-after.gif");
223 background-repeat: no-repeat
;
224 background-position: center center
;
226 -moz-user-focus: none
!important
;
229 a
[\_moz_anonclass
="mozTableAddColumnAfter"]:hover
{
230 background-image: url
("resource://gre/res/table-add-column-after-hover.gif");
233 a
[\_moz_anonclass
="mozTableAddColumnAfter"]:active
{
234 background-image: url
("resource://gre/res/table-add-column-after-active.gif");
237 a
[\_moz_anonclass
="mozTableRemoveColumn"] {
239 z-index: 2147483647; /* max value for this property */
240 text-decoration: none
!important
;
241 border: none
0px !important
;
244 background-image: url
("resource://gre/res/table-remove-column.gif");
245 background-repeat: no-repeat
;
246 background-position: center center
;
248 -moz-user-focus: none
!important
;
251 a
[\_moz_anonclass
="mozTableRemoveColumn"]:hover
{
252 background-image: url
("resource://gre/res/table-remove-column-hover.gif");
255 a
[\_moz_anonclass
="mozTableRemoveColumn"]:active
{
256 background-image: url
("resource://gre/res/table-remove-column-active.gif");
259 a
[\_moz_anonclass
="mozTableAddRowBefore"] {
261 z-index: 2147483647; /* max value for this property */
262 text-decoration: none
!important
;
263 border: none
0px !important
;
266 background-image: url
("resource://gre/res/table-add-row-before.gif");
267 background-repeat: no-repeat
;
268 background-position: center center
;
270 -moz-user-focus: none
!important
;
273 a
[\_moz_anonclass
="mozTableAddRowBefore"]:hover
{
274 background-image: url
("resource://gre/res/table-add-row-before-hover.gif");
277 a
[\_moz_anonclass
="mozTableAddRowBefore"]:active
{
278 background-image: url
("resource://gre/res/table-add-row-before-active.gif");
281 a
[\_moz_anonclass
="mozTableAddRowAfter"] {
283 z-index: 2147483647; /* max value for this property */
284 text-decoration: none
!important
;
285 border: none
0px !important
;
288 background-image: url
("resource://gre/res/table-add-row-after.gif");
289 background-repeat: no-repeat
;
290 background-position: center center
;
292 -moz-user-focus: none
!important
;
295 a
[\_moz_anonclass
="mozTableAddRowAfter"]:hover
{
296 background-image: url
("resource://gre/res/table-add-row-after-hover.gif");
299 a
[\_moz_anonclass
="mozTableAddRowAfter"]:active
{
300 background-image: url
("resource://gre/res/table-add-row-after-active.gif");
303 a
[\_moz_anonclass
="mozTableRemoveRow"] {
305 z-index: 2147483647; /* max value for this property */
306 text-decoration: none
!important
;
307 border: none
0px !important
;
310 background-image: url
("resource://gre/res/table-remove-row.gif");
311 background-repeat: no-repeat
;
312 background-position: center center
;
314 -moz-user-focus: none
!important
;
317 a
[\_moz_anonclass
="mozTableRemoveRow"]:hover
{
318 background-image: url
("resource://gre/res/table-remove-row-hover.gif");
321 a
[\_moz_anonclass
="mozTableRemoveRow"]:active
{
322 background-image: url
("resource://gre/res/table-remove-row-active.gif");