michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ michael@0: michael@0: *|*::-moz-canvas { michael@0: cursor: text; michael@0: } michael@0: michael@0: *|*:focus:-moz-read-write :-moz-read-only { michael@0: -moz-user-select: all !important; michael@0: } michael@0: michael@0: input:-moz-read-write > .anonymous-div:-moz-read-only, michael@0: textarea:-moz-read-write > .anonymous-div:-moz-read-only { michael@0: -moz-user-select: text !important; michael@0: } michael@0: michael@0: /* Use default arrow over objects with size that michael@0: are selected when clicked on. michael@0: Override the browser's pointer cursor over links michael@0: */ michael@0: michael@0: img:-moz-read-write, img:-moz-read-write[usemap], area:-moz-read-write, michael@0: object:-moz-read-write, object:-moz-read-write[usemap], michael@0: applet:-moz-read-write, hr:-moz-read-write, button:-moz-read-write, michael@0: select:-moz-read-write, michael@0: a:-moz-read-write:link img, a:-moz-read-write:visited img, michael@0: a:-moz-read-write:active img, a:-moz-read-write:-moz-only-whitespace[name] { michael@0: cursor: default; michael@0: } michael@0: michael@0: *|*:-moz-any-link:-moz-read-write { michael@0: cursor: text; michael@0: } michael@0: michael@0: /* Prevent clicking on links from going to link */ michael@0: a:link:-moz-read-write img, a:visited:-moz-read-write img, michael@0: a:active:-moz-read-write img { michael@0: -moz-user-input: none; michael@0: } michael@0: michael@0: /* We suppress user/author's prefs for link underline, michael@0: so we must set explicitly. This isn't good! michael@0: */ michael@0: a:link:-moz-read-write { michael@0: text-decoration: underline -moz-anchor-decoration; michael@0: color: -moz-hyperlinktext; michael@0: } michael@0: michael@0: /* Allow double-clicks on these widgets to open properties dialogs michael@0: XXX except when the widget has disabled attribute */ michael@0: *|*:-moz-read-write > input:-moz-read-only, michael@0: *|*:-moz-read-write > button:-moz-read-only, michael@0: *|*:-moz-read-write > textarea:-moz-read-only { michael@0: -moz-user-select: all !important; michael@0: -moz-user-input: auto !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: /* XXX Still need a better way of blocking other events to these widgets */ michael@0: select:-moz-read-write, michael@0: *|*:-moz-read-write > input:disabled, michael@0: *|*:-moz-read-write > input[type="checkbox"], michael@0: *|*:-moz-read-write > input[type="radio"], michael@0: *|*:-moz-read-write > input[type="file"], michael@0: input[contenteditable="true"]:disabled, michael@0: input[contenteditable="true"][type="checkbox"], michael@0: input[contenteditable="true"][type="radio"], michael@0: input[contenteditable="true"][type="file"] { michael@0: -moz-user-select: all !important; michael@0: -moz-user-input: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: /* emulation of non-standard HTML tag */ michael@0: marquee:-moz-read-write { michael@0: -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal-editable'); michael@0: } michael@0: michael@0: marquee[direction="up"]:-moz-read-write, marquee[direction="down"]:-moz-read-write { michael@0: -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical-editable'); michael@0: } michael@0: michael@0: *|*:-moz-read-write > input[type="hidden"], michael@0: input[contenteditable="true"][type="hidden"] { michael@0: border: 1px solid black !important; michael@0: visibility: visible !important; michael@0: } michael@0: michael@0: label:-moz-read-write { michael@0: -moz-user-select: all !important; michael@0: } michael@0: michael@0: *|*::-moz-display-comboboxcontrol-frame { michael@0: -moz-user-select: text !important; michael@0: } michael@0: michael@0: option:-moz-read-write { michael@0: -moz-user-select: text !important; michael@0: } michael@0: michael@0: /* the following rules are for Image Resizing */ michael@0: michael@0: span[\_moz_anonclass="mozResizer"] { michael@0: width: 5px; michael@0: height: 5px; michael@0: position: absolute; michael@0: border: 1px black solid; michael@0: background-color: white; michael@0: -moz-user-select: none; michael@0: z-index: 2147483646; /* max value -1 for this property */ michael@0: } michael@0: michael@0: /* we can't use :active below */ michael@0: span[\_moz_anonclass="mozResizer"][\_moz_activated], michael@0: span[\_moz_anonclass="mozResizer"]:hover { michael@0: background-color: black; michael@0: } michael@0: michael@0: span[\_moz_anonclass="mozResizer"].hidden, michael@0: span[\_moz_anonclass="mozResizingShadow"].hidden, michael@0: img[\_moz_anonclass="mozResizingShadow"].hidden, michael@0: span[\_moz_anonclass="mozGrabber"].hidden, michael@0: span[\_moz_anonclass="mozResizingInfo"].hidden, michael@0: a[\_moz_anonclass="mozTableRemoveRow"].hidden, michael@0: a[\_moz_anonclass="mozTableRemoveColumn"].hidden { michael@0: display: none !important; michael@0: } michael@0: michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="nw"] { michael@0: cursor: nw-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="n"] { michael@0: cursor: n-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="ne"] { michael@0: cursor: ne-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="w"] { michael@0: cursor: w-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="e"] { michael@0: cursor: e-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="sw"] { michael@0: cursor: sw-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="s"] { michael@0: cursor: s-resize; michael@0: } michael@0: span[\_moz_anonclass="mozResizer"][anonlocation="se"] { michael@0: cursor: se-resize; michael@0: } michael@0: michael@0: span[\_moz_anonclass="mozResizingShadow"], michael@0: img[\_moz_anonclass="mozResizingShadow"] { michael@0: outline: thin dashed black; michael@0: -moz-user-select: none; michael@0: opacity: 0.5; michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: } michael@0: michael@0: span[\_moz_anonclass="mozResizingInfo"] { michael@0: font-family: sans-serif; michael@0: font-size: x-small; michael@0: color: black; michael@0: background-color: #d0d0d0; michael@0: border: ridge 2px #d0d0d0; michael@0: padding: 2px; michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: } michael@0: michael@0: img[\_moz_resizing] { michael@0: outline: thin solid black; michael@0: } michael@0: michael@0: *[\_moz_abspos] { michael@0: outline: silver ridge 2px; michael@0: z-index: 2147483645 !important; /* max value -2 for this property */ michael@0: } michael@0: *[\_moz_abspos="white"] { michael@0: background-color: white !important; michael@0: } michael@0: *[\_moz_abspos="black"] { michael@0: background-color: black !important; michael@0: } michael@0: michael@0: span[\_moz_anonclass="mozGrabber"] { michael@0: outline: ridge 2px silver; michael@0: padding: 2px; michael@0: position: absolute; michael@0: width: 12px; michael@0: height: 12px; michael@0: background-image: url("resource://gre/res/grabber.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none; michael@0: cursor: move; michael@0: } michael@0: michael@0: /* INLINE TABLE EDITING */ michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnBefore"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 4px; michael@0: height: 8px; michael@0: background-image: url("resource://gre/res/table-add-column-before.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnBefore"]:hover { michael@0: background-image: url("resource://gre/res/table-add-column-before-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnBefore"]:active { michael@0: background-image: url("resource://gre/res/table-add-column-before-active.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnAfter"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 4px; michael@0: height: 8px; michael@0: background-image: url("resource://gre/res/table-add-column-after.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnAfter"]:hover { michael@0: background-image: url("resource://gre/res/table-add-column-after-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddColumnAfter"]:active { michael@0: background-image: url("resource://gre/res/table-add-column-after-active.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveColumn"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 8px; michael@0: height: 8px; michael@0: background-image: url("resource://gre/res/table-remove-column.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveColumn"]:hover { michael@0: background-image: url("resource://gre/res/table-remove-column-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveColumn"]:active { michael@0: background-image: url("resource://gre/res/table-remove-column-active.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowBefore"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 8px; michael@0: height: 4px; michael@0: background-image: url("resource://gre/res/table-add-row-before.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowBefore"]:hover { michael@0: background-image: url("resource://gre/res/table-add-row-before-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowBefore"]:active { michael@0: background-image: url("resource://gre/res/table-add-row-before-active.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowAfter"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 8px; michael@0: height: 4px; michael@0: background-image: url("resource://gre/res/table-add-row-after.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowAfter"]:hover { michael@0: background-image: url("resource://gre/res/table-add-row-after-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableAddRowAfter"]:active { michael@0: background-image: url("resource://gre/res/table-add-row-after-active.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveRow"] { michael@0: position: absolute; michael@0: z-index: 2147483647; /* max value for this property */ michael@0: text-decoration: none !important; michael@0: border: none 0px !important; michael@0: width: 8px; michael@0: height: 8px; michael@0: background-image: url("resource://gre/res/table-remove-row.gif"); michael@0: background-repeat: no-repeat; michael@0: background-position: center center; michael@0: -moz-user-select: none !important; michael@0: -moz-user-focus: none !important; michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveRow"]:hover { michael@0: background-image: url("resource://gre/res/table-remove-row-hover.gif"); michael@0: } michael@0: michael@0: a[\_moz_anonclass="mozTableRemoveRow"]:active { michael@0: background-image: url("resource://gre/res/table-remove-row-active.gif"); michael@0: }