editor/composer/src/res/EditorOverride.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/composer/src/res/EditorOverride.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,323 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +*|* {
     1.9 +  -moz-user-modify: read-write;
    1.10 +}
    1.11 +
    1.12 +/* Styles to alter look of things in the Editor content window 
    1.13 + *  that should NOT be removed when we display in completely WYSIWYG 
    1.14 + *  "Browser Preview" mode.
    1.15 + *  Anything that should change, like appearance of table borders
    1.16 + *  and Named Anchors, should be placed in EditorContent.css instead of here.
    1.17 +*/
    1.18 +
    1.19 +/* Primary cursor is text I-beam */
    1.20 +
    1.21 +::-moz-canvas, a:link {
    1.22 +  cursor: text;
    1.23 +}
    1.24 +
    1.25 +/* Use default arrow over objects with size that 
    1.26 +   are selected when clicked on.
    1.27 +   Override the browser's pointer cursor over links
    1.28 +*/
    1.29 +
    1.30 +img, img[usemap], area,
    1.31 +object, object[usemap], 
    1.32 +applet, hr, button, input, textarea, select,
    1.33 +a:link img, a:visited img, a:active img,
    1.34 +a[name]:-moz-only-whitespace {
    1.35 +  cursor: default;
    1.36 +}
    1.37 +
    1.38 +a:visited, a:active {
    1.39 +  cursor: text;
    1.40 +}
    1.41 +
    1.42 +/* Prevent clicking on links from going to link */
    1.43 +a:link img, a:visited img {
    1.44 +  -moz-user-input: none;
    1.45 +}
    1.46 +
    1.47 +/* We suppress user/author's prefs for link underline, 
    1.48 +   so we must set explicitly. This isn't good!
    1.49 +*/
    1.50 +a:link {
    1.51 +  text-decoration: underline -moz-anchor-decoration;
    1.52 +  color: -moz-hyperlinktext;
    1.53 +}
    1.54 +
    1.55 +/* Allow double-clicks on these widgets to open properties dialogs
    1.56 +   XXX except when the widget has disabled attribute */
    1.57 +input, button, textarea {
    1.58 +  -moz-user-select: all !important;
    1.59 +  -moz-user-input: auto !important;
    1.60 +  -moz-user-focus: none !important;
    1.61 +}
    1.62 +
    1.63 +/* XXX Still need a better way of blocking other events to these widgets */
    1.64 +select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] {
    1.65 +  -moz-user-select: all !important;
    1.66 +  -moz-user-input: none !important;
    1.67 +  -moz-user-focus: none !important;
    1.68 +}
    1.69 +
    1.70 +input[type="hidden"] {
    1.71 +  border: 1px solid black !important;
    1.72 +  visibility: visible !important;
    1.73 +}
    1.74 +
    1.75 +label {
    1.76 +    -moz-user-select: all !important;
    1.77 +}
    1.78 +
    1.79 +::-moz-display-comboboxcontrol-frame {
    1.80 +  -moz-user-select: text !important;
    1.81 +}
    1.82 +
    1.83 +option {
    1.84 +  -moz-user-select: text !important;
    1.85 +}
    1.86 +
    1.87 +#mozToc.readonly {
    1.88 +  -moz-user-select: all !important;
    1.89 +  -moz-user-input: none !important;
    1.90 +}
    1.91 +
    1.92 +/* the following rules are for Image Resizing */
    1.93 +
    1.94 +span[\_moz_anonclass="mozResizer"] {
    1.95 +  width: 5px;
    1.96 +  height: 5px;
    1.97 +  position: absolute;
    1.98 +  border: 1px black solid;
    1.99 +  background-color: white;
   1.100 +  -moz-user-select: none;
   1.101 +  z-index: 2147483646; /* max value -1 for this property */
   1.102 +}
   1.103 +
   1.104 +/* we can't use :active below */
   1.105 +span[\_moz_anonclass="mozResizer"][\_moz_activated],
   1.106 +span[\_moz_anonclass="mozResizer"]:hover {
   1.107 +  background-color: black;
   1.108 +}
   1.109 +
   1.110 +span[\_moz_anonclass="mozResizer"].hidden,
   1.111 +span[\_moz_anonclass="mozResizingShadow"].hidden,
   1.112 +img[\_moz_anonclass="mozResizingShadow"].hidden,
   1.113 +span[\_moz_anonclass="mozGrabber"].hidden,
   1.114 +span[\_moz_anonclass="mozResizingInfo"].hidden,
   1.115 +a[\_moz_anonclass="mozTableRemoveRow"].hidden,
   1.116 +a[\_moz_anonclass="mozTableRemoveColumn"].hidden {
   1.117 +  display: none !important;
   1.118 +}
   1.119 +
   1.120 +span[\_moz_anonclass="mozResizer"][anonlocation="nw"] {
   1.121 +  cursor: nw-resize;
   1.122 +}
   1.123 +span[\_moz_anonclass="mozResizer"][anonlocation="n"] {
   1.124 +  cursor: n-resize;
   1.125 +}
   1.126 +span[\_moz_anonclass="mozResizer"][anonlocation="ne"] {
   1.127 +  cursor: ne-resize;
   1.128 +}
   1.129 +span[\_moz_anonclass="mozResizer"][anonlocation="w"] {
   1.130 +  cursor: w-resize;
   1.131 +}
   1.132 +span[\_moz_anonclass="mozResizer"][anonlocation="e"] {
   1.133 +  cursor: e-resize;
   1.134 +}
   1.135 +span[\_moz_anonclass="mozResizer"][anonlocation="sw"] {
   1.136 +  cursor: sw-resize;
   1.137 +}
   1.138 +span[\_moz_anonclass="mozResizer"][anonlocation="s"] {
   1.139 +  cursor: s-resize;
   1.140 +}
   1.141 +span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
   1.142 +  cursor: se-resize;
   1.143 +}
   1.144 +
   1.145 +span[\_moz_anonclass="mozResizingShadow"],
   1.146 +img[\_moz_anonclass="mozResizingShadow"] {
   1.147 +  outline: thin dashed black;
   1.148 +  -moz-user-select: none;
   1.149 +  opacity: 0.5;
   1.150 +  position: absolute;
   1.151 +  z-index: 2147483647; /* max value for this property */
   1.152 +}
   1.153 +
   1.154 +span[\_moz_anonclass="mozResizingInfo"] {
   1.155 +  font-family: sans-serif;
   1.156 +  font-size: x-small;
   1.157 +  color: black;
   1.158 +  background-color: #d0d0d0;
   1.159 +  border: ridge 2px #d0d0d0;
   1.160 +  padding: 2px;
   1.161 +  position: absolute;
   1.162 +  z-index: 2147483647; /* max value for this property */
   1.163 +}
   1.164 +
   1.165 +img[\_moz_resizing] {
   1.166 +  outline: thin solid black;
   1.167 +}
   1.168 +
   1.169 +*[\_moz_abspos] {
   1.170 +  outline: silver ridge 2px;
   1.171 +  z-index: 2147483645 !important; /* max value -2 for this property */
   1.172 +}
   1.173 +*[\_moz_abspos="white"] {
   1.174 +  background-color: white !important;
   1.175 +}
   1.176 +*[\_moz_abspos="black"] {
   1.177 +  background-color: black !important;
   1.178 +}
   1.179 +
   1.180 +span[\_moz_anonclass="mozGrabber"] {
   1.181 +  outline: ridge 2px silver;
   1.182 +  padding: 2px;
   1.183 +  position: absolute;
   1.184 +  width: 12px;
   1.185 +  height: 12px;
   1.186 +  background-image: url("resource://gre/res/grabber.gif");
   1.187 +  background-repeat: no-repeat;
   1.188 +  background-position: center center;
   1.189 +  -moz-user-select: none;
   1.190 +  cursor: move;
   1.191 +  z-index: 2147483647; /* max value for this property */
   1.192 +}
   1.193 +
   1.194 +/* INLINE TABLE EDITING */
   1.195 +
   1.196 +a[\_moz_anonclass="mozTableAddColumnBefore"] {
   1.197 +  position: absolute;
   1.198 +  z-index: 2147483647; /* max value for this property */
   1.199 +  text-decoration: none !important;
   1.200 +  border: none 0px !important;
   1.201 +  width: 4px;
   1.202 +  height: 8px;
   1.203 +  background-image: url("resource://gre/res/table-add-column-before.gif");
   1.204 +  background-repeat: no-repeat;
   1.205 +  background-position: center center;
   1.206 +  -moz-user-select: none !important;
   1.207 +  -moz-user-focus: none !important;
   1.208 +}
   1.209 +
   1.210 +a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
   1.211 +  background-image: url("resource://gre/res/table-add-column-before-hover.gif");
   1.212 +}
   1.213 +
   1.214 +a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
   1.215 +  background-image: url("resource://gre/res/table-add-column-before-active.gif");
   1.216 +}
   1.217 +
   1.218 +a[\_moz_anonclass="mozTableAddColumnAfter"] {
   1.219 +  position: absolute;
   1.220 +  z-index: 2147483647; /* max value for this property */
   1.221 +  text-decoration: none !important;
   1.222 +  border: none 0px !important;
   1.223 +  width: 4px;
   1.224 +  height: 8px;
   1.225 +  background-image: url("resource://gre/res/table-add-column-after.gif");
   1.226 +  background-repeat: no-repeat;
   1.227 +  background-position: center center;
   1.228 +  -moz-user-select: none !important;
   1.229 +  -moz-user-focus: none !important;
   1.230 +}
   1.231 +
   1.232 +a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
   1.233 +  background-image: url("resource://gre/res/table-add-column-after-hover.gif");
   1.234 +}
   1.235 +
   1.236 +a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
   1.237 +  background-image: url("resource://gre/res/table-add-column-after-active.gif");
   1.238 +}
   1.239 +
   1.240 +a[\_moz_anonclass="mozTableRemoveColumn"] {
   1.241 +  position: absolute;
   1.242 +  z-index: 2147483647; /* max value for this property */
   1.243 +  text-decoration: none !important;
   1.244 +  border: none 0px !important;
   1.245 +  width: 8px;
   1.246 +  height: 8px;
   1.247 +  background-image: url("resource://gre/res/table-remove-column.gif");
   1.248 +  background-repeat: no-repeat;
   1.249 +  background-position: center center;
   1.250 +  -moz-user-select: none !important;
   1.251 +  -moz-user-focus: none !important;
   1.252 +}
   1.253 +
   1.254 +a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
   1.255 +  background-image: url("resource://gre/res/table-remove-column-hover.gif");
   1.256 +}
   1.257 +
   1.258 +a[\_moz_anonclass="mozTableRemoveColumn"]:active {
   1.259 +  background-image: url("resource://gre/res/table-remove-column-active.gif");
   1.260 +}
   1.261 +
   1.262 +a[\_moz_anonclass="mozTableAddRowBefore"] {
   1.263 +  position: absolute;
   1.264 +  z-index: 2147483647; /* max value for this property */
   1.265 +  text-decoration: none !important;
   1.266 +  border: none 0px !important;
   1.267 +  width: 8px;
   1.268 +  height: 4px;
   1.269 +  background-image: url("resource://gre/res/table-add-row-before.gif");
   1.270 +  background-repeat: no-repeat;
   1.271 +  background-position: center center;
   1.272 +  -moz-user-select: none !important;
   1.273 +  -moz-user-focus: none !important;
   1.274 +}
   1.275 +
   1.276 +a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
   1.277 +  background-image: url("resource://gre/res/table-add-row-before-hover.gif");
   1.278 +}
   1.279 +
   1.280 +a[\_moz_anonclass="mozTableAddRowBefore"]:active {
   1.281 +  background-image: url("resource://gre/res/table-add-row-before-active.gif");
   1.282 +}
   1.283 +
   1.284 +a[\_moz_anonclass="mozTableAddRowAfter"] {
   1.285 +  position: absolute;
   1.286 +  z-index: 2147483647; /* max value for this property */
   1.287 +  text-decoration: none !important;
   1.288 +  border: none 0px !important;
   1.289 +  width: 8px;
   1.290 +  height: 4px;
   1.291 +  background-image: url("resource://gre/res/table-add-row-after.gif");
   1.292 +  background-repeat: no-repeat;
   1.293 +  background-position: center center;
   1.294 +  -moz-user-select: none !important;
   1.295 +  -moz-user-focus: none !important;
   1.296 +}
   1.297 +
   1.298 +a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
   1.299 +  background-image: url("resource://gre/res/table-add-row-after-hover.gif");
   1.300 +}
   1.301 +
   1.302 +a[\_moz_anonclass="mozTableAddRowAfter"]:active {
   1.303 +  background-image: url("resource://gre/res/table-add-row-after-active.gif");
   1.304 +}
   1.305 +
   1.306 +a[\_moz_anonclass="mozTableRemoveRow"] {
   1.307 +  position: absolute;
   1.308 +  z-index: 2147483647; /* max value for this property */
   1.309 +  text-decoration: none !important;
   1.310 +  border: none 0px !important;
   1.311 +  width: 8px;
   1.312 +  height: 8px;
   1.313 +  background-image: url("resource://gre/res/table-remove-row.gif");
   1.314 +  background-repeat: no-repeat;
   1.315 +  background-position: center center;
   1.316 +  -moz-user-select: none !important;
   1.317 +  -moz-user-focus: none !important;
   1.318 +}
   1.319 +
   1.320 +a[\_moz_anonclass="mozTableRemoveRow"]:hover {
   1.321 +  background-image: url("resource://gre/res/table-remove-row-hover.gif");
   1.322 +}
   1.323 +
   1.324 +a[\_moz_anonclass="mozTableRemoveRow"]:active {
   1.325 +  background-image: url("resource://gre/res/table-remove-row-active.gif");
   1.326 +}

mercurial