Author: yradtsevich
Date: 2010-07-16 05:33:37 -0400 (Fri, 16 Jul 2010)
New Revision: 23492
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
Log:
https://jira.jboss.org/browse/JBIDE-6619 :
VPE Resizer is not shown on XULRunner 1.9.2
- VPE file EditorOverride.css is merged with EditorOverride.css from XULRunner 1.9.2
('-moz-outline' style is replaced by 'outline').
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2010-07-16 08:55:25 UTC
(rev 23491)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2010-07-16 09:33:37 UTC
(rev 23492)
@@ -1,25 +1,44 @@
-/*
- * The contents of this file are subject to the Netscape 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/NPL/
- *
- * 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.
- *
+/* ***** 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 Communicator client code, released
* March 31, 1998.
- *
- * The Initial Developer of the Original Code is Netscape
- * Communications Corporation. Portions created by Netscape are
- * Copyright (C) 1998-1999 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s):
- */
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998-1999
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either of 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 ***** */
+*|* {
+ -moz-user-modify: read-write;
+}
+
/* Styles to alter look of things in the Editor content window
* that should NOT be removed when we display in completely WYSIWYG
* "Browser Preview" mode.
@@ -29,7 +48,7 @@
/* Primary cursor is text I-beam */
-a:link {
+::-moz-canvas, a:link {
cursor: text;
}
@@ -42,33 +61,39 @@
object, object[usemap],
applet, hr, button, input, isindex, textarea, select,
a:link img, a:visited img, a:active img,
-a[name]:empty {
+a[name]:-moz-only-whitespace {
cursor: default;
}
a:visited, a:active {
cursor: text;
- // color : inherit;
}
+/* Prevent clicking on links from going to link */
a:link img, a:visited img {
-moz-user-input: none;
}
-
+
+/* We suppress user/author's prefs for link underline,
+ so we must set explicitly. This isn't good!
+*/
a/*:link*/ {
text-decoration: underline -moz-anchor-decoration;
color: -moz-hyperlinktext;
}
-button, textarea {
+/* Allow double-clicks on these widgets to open properties dialogs
+ XXX except when the widget has disabled attribute */
+input, button, textarea {
-moz-user-select: all !important;
-moz-user-input: auto !important;
-moz-user-focus: none !important;
}
+/* XXX Still need a better way of blocking other events to these widgets */
select, input[disabled], input[type="checkbox"], input[type="radio"],
input[type="file"] {
-moz-user-select: all !important;
- -moz-user-input: auto !important;
+ -moz-user-input: auto !important;
-moz-user-focus: none !important;
}
@@ -93,12 +118,7 @@
::-moz-display-comboboxcontrol-frame {
-moz-user-select: text !important;
}
-
-.def-link {
- text-decoration: underline -moz-anchor-decoration;
- color: -moz-hyperlinktext;
-}
-
+
option {
-moz-user-select: text !important;
}
@@ -108,6 +128,8 @@
-moz-user-input: none !important;
}
+/* the following rules are for Image Resizing */
+
span[\_moz_anonclass="mozResizer"] {
width: 5px;
height: 5px;
@@ -115,9 +137,10 @@
border: 1px black solid;
background-color: white;
-moz-user-select: none;
- z-index: 2147483646;
+ z-index: 2147483646; /* max value -1 for this property */
}
+/* we can't use :active below */
span[\_moz_anonclass="mozResizer"][\_moz_activated],
span[\_moz_anonclass="mozResizer"]:hover {
background-color: black;
@@ -160,11 +183,11 @@
span[\_moz_anonclass="mozResizingShadow"],
img[\_moz_anonclass="mozResizingShadow"] {
- -moz-outline: thin dashed black;
+ outline: thin dashed black;
-moz-user-select: none;
- -moz-opacity: 0.5;
+ opacity: 0.5;
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
}
span[\_moz_anonclass="mozResizingInfo"] {
@@ -175,12 +198,16 @@
border: ridge 2px #d0d0d0;
padding: 2px;
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
}
+img[\_moz_resizing] {
+ outline: thin solid black;
+}
+
*[\_moz_abspos] {
- -moz-outline: silver ridge 2px;
- z-index: 2147483645 !important;
+ outline: silver ridge 2px;
+ z-index: 2147483645 !important; /* max value -2 for this property */
}
*[\_moz_abspos="white"] {
background-color: white !important;
@@ -190,26 +217,29 @@
}
span[\_moz_anonclass="mozGrabber"] {
- -moz-outline: ridge 2px silver;
+ outline: ridge 2px silver;
padding: 2px;
position: absolute;
width: 12px;
height: 12px;
- background-image: url("resource:/res/grabber.gif");
+ background-image: url("resource://gre/res/grabber.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none;
cursor: move;
+ z-index: 2147483647; /* max value for this property */
}
+/* INLINE TABLE EDITING */
+
a[\_moz_anonclass="mozTableAddColumnBefore"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 4px;
height: 8px;
- background-image: url("resource:/res/table-add-column-before.gif");
+ background-image: url("resource://gre/res/table-add-column-before.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -217,21 +247,21 @@
}
a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
- background-image: url("resource:/res/table-add-column-before-hover.gif");
+ background-image:
url("resource://gre/res/table-add-column-before-hover.gif");
}
a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
- background-image: url("resource:/res/table-add-column-before-active.gif");
+ background-image:
url("resource://gre/res/table-add-column-before-active.gif");
}
a[\_moz_anonclass="mozTableAddColumnAfter"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 4px;
height: 8px;
- background-image: url("resource:/res/table-add-column-after.gif");
+ background-image: url("resource://gre/res/table-add-column-after.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -239,21 +269,21 @@
}
a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
- background-image: url("resource:/res/table-add-column-after-hover.gif");
+ background-image:
url("resource://gre/res/table-add-column-after-hover.gif");
}
a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
- background-image: url("resource:/res/table-add-column-after-active.gif");
+ background-image:
url("resource://gre/res/table-add-column-after-active.gif");
}
a[\_moz_anonclass="mozTableRemoveColumn"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 8px;
height: 8px;
- background-image: url("resource:/res/table-remove-column.gif");
+ background-image: url("resource://gre/res/table-remove-column.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -261,21 +291,21 @@
}
a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
- background-image: url("resource:/res/table-remove-column-hover.gif");
+ background-image: url("resource://gre/res/table-remove-column-hover.gif");
}
a[\_moz_anonclass="mozTableRemoveColumn"]:active {
- background-image: url("resource:/res/table-remove-column-active.gif");
+ background-image: url("resource://gre/res/table-remove-column-active.gif");
}
a[\_moz_anonclass="mozTableAddRowBefore"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 8px;
height: 4px;
- background-image: url("resource:/res/table-add-row-before.gif");
+ background-image: url("resource://gre/res/table-add-row-before.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -283,21 +313,21 @@
}
a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
- background-image: url("resource:/res/table-add-row-before-hover.gif");
+ background-image: url("resource://gre/res/table-add-row-before-hover.gif");
}
a[\_moz_anonclass="mozTableAddRowBefore"]:active {
- background-image: url("resource:/res/table-add-row-before-active.gif");
+ background-image: url("resource://gre/res/table-add-row-before-active.gif");
}
a[\_moz_anonclass="mozTableAddRowAfter"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 8px;
height: 4px;
- background-image: url("resource:/res/table-add-row-after.gif");
+ background-image: url("resource://gre/res/table-add-row-after.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -305,21 +335,21 @@
}
a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
- background-image: url("resource:/res/table-add-row-after-hover.gif");
+ background-image: url("resource://gre/res/table-add-row-after-hover.gif");
}
a[\_moz_anonclass="mozTableAddRowAfter"]:active {
- background-image: url("resource:/res/table-add-row-after-active.gif");
+ background-image: url("resource://gre/res/table-add-row-after-active.gif");
}
a[\_moz_anonclass="mozTableRemoveRow"] {
position: absolute;
- z-index: 2147483647;
+ z-index: 2147483647; /* max value for this property */
text-decoration: none !important;
border: none 0px !important;
width: 8px;
height: 8px;
- background-image: url("resource:/res/table-remove-row.gif");
+ background-image: url("resource://gre/res/table-remove-row.gif");
background-repeat: no-repeat;
background-position: center center;
-moz-user-select: none !important;
@@ -327,12 +357,12 @@
}
a[\_moz_anonclass="mozTableRemoveRow"]:hover {
- background-image: url("resource:/res/table-remove-row-hover.gif");
+ background-image: url("resource://gre/res/table-remove-row-hover.gif");
}
a[\_moz_anonclass="mozTableRemoveRow"]:active {
- background-image: url("resource:/res/table-remove-row-active.gif");
-}
+ background-image: url("resource://gre/res/table-remove-row-active.gif");
+}
/*JBIDE-3995 #1*/
select div {
@@ -404,4 +434,4 @@
z-index :inherit !important;
font-size-adjust :inherit !important;
opacity :inherit !important;
-}
\ No newline at end of file
+}