editor/composer/src/res/EditorOverride.css

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 *|* {
michael@0 6 -moz-user-modify: read-write;
michael@0 7 }
michael@0 8
michael@0 9 /* Styles to alter look of things in the Editor content window
michael@0 10 * that should NOT be removed when we display in completely WYSIWYG
michael@0 11 * "Browser Preview" mode.
michael@0 12 * Anything that should change, like appearance of table borders
michael@0 13 * and Named Anchors, should be placed in EditorContent.css instead of here.
michael@0 14 */
michael@0 15
michael@0 16 /* Primary cursor is text I-beam */
michael@0 17
michael@0 18 ::-moz-canvas, a:link {
michael@0 19 cursor: text;
michael@0 20 }
michael@0 21
michael@0 22 /* Use default arrow over objects with size that
michael@0 23 are selected when clicked on.
michael@0 24 Override the browser's pointer cursor over links
michael@0 25 */
michael@0 26
michael@0 27 img, img[usemap], area,
michael@0 28 object, object[usemap],
michael@0 29 applet, hr, button, input, textarea, select,
michael@0 30 a:link img, a:visited img, a:active img,
michael@0 31 a[name]:-moz-only-whitespace {
michael@0 32 cursor: default;
michael@0 33 }
michael@0 34
michael@0 35 a:visited, a:active {
michael@0 36 cursor: text;
michael@0 37 }
michael@0 38
michael@0 39 /* Prevent clicking on links from going to link */
michael@0 40 a:link img, a:visited img {
michael@0 41 -moz-user-input: none;
michael@0 42 }
michael@0 43
michael@0 44 /* We suppress user/author's prefs for link underline,
michael@0 45 so we must set explicitly. This isn't good!
michael@0 46 */
michael@0 47 a:link {
michael@0 48 text-decoration: underline -moz-anchor-decoration;
michael@0 49 color: -moz-hyperlinktext;
michael@0 50 }
michael@0 51
michael@0 52 /* Allow double-clicks on these widgets to open properties dialogs
michael@0 53 XXX except when the widget has disabled attribute */
michael@0 54 input, button, textarea {
michael@0 55 -moz-user-select: all !important;
michael@0 56 -moz-user-input: auto !important;
michael@0 57 -moz-user-focus: none !important;
michael@0 58 }
michael@0 59
michael@0 60 /* XXX Still need a better way of blocking other events to these widgets */
michael@0 61 select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] {
michael@0 62 -moz-user-select: all !important;
michael@0 63 -moz-user-input: none !important;
michael@0 64 -moz-user-focus: none !important;
michael@0 65 }
michael@0 66
michael@0 67 input[type="hidden"] {
michael@0 68 border: 1px solid black !important;
michael@0 69 visibility: visible !important;
michael@0 70 }
michael@0 71
michael@0 72 label {
michael@0 73 -moz-user-select: all !important;
michael@0 74 }
michael@0 75
michael@0 76 ::-moz-display-comboboxcontrol-frame {
michael@0 77 -moz-user-select: text !important;
michael@0 78 }
michael@0 79
michael@0 80 option {
michael@0 81 -moz-user-select: text !important;
michael@0 82 }
michael@0 83
michael@0 84 #mozToc.readonly {
michael@0 85 -moz-user-select: all !important;
michael@0 86 -moz-user-input: none !important;
michael@0 87 }
michael@0 88
michael@0 89 /* the following rules are for Image Resizing */
michael@0 90
michael@0 91 span[\_moz_anonclass="mozResizer"] {
michael@0 92 width: 5px;
michael@0 93 height: 5px;
michael@0 94 position: absolute;
michael@0 95 border: 1px black solid;
michael@0 96 background-color: white;
michael@0 97 -moz-user-select: none;
michael@0 98 z-index: 2147483646; /* max value -1 for this property */
michael@0 99 }
michael@0 100
michael@0 101 /* we can't use :active below */
michael@0 102 span[\_moz_anonclass="mozResizer"][\_moz_activated],
michael@0 103 span[\_moz_anonclass="mozResizer"]:hover {
michael@0 104 background-color: black;
michael@0 105 }
michael@0 106
michael@0 107 span[\_moz_anonclass="mozResizer"].hidden,
michael@0 108 span[\_moz_anonclass="mozResizingShadow"].hidden,
michael@0 109 img[\_moz_anonclass="mozResizingShadow"].hidden,
michael@0 110 span[\_moz_anonclass="mozGrabber"].hidden,
michael@0 111 span[\_moz_anonclass="mozResizingInfo"].hidden,
michael@0 112 a[\_moz_anonclass="mozTableRemoveRow"].hidden,
michael@0 113 a[\_moz_anonclass="mozTableRemoveColumn"].hidden {
michael@0 114 display: none !important;
michael@0 115 }
michael@0 116
michael@0 117 span[\_moz_anonclass="mozResizer"][anonlocation="nw"] {
michael@0 118 cursor: nw-resize;
michael@0 119 }
michael@0 120 span[\_moz_anonclass="mozResizer"][anonlocation="n"] {
michael@0 121 cursor: n-resize;
michael@0 122 }
michael@0 123 span[\_moz_anonclass="mozResizer"][anonlocation="ne"] {
michael@0 124 cursor: ne-resize;
michael@0 125 }
michael@0 126 span[\_moz_anonclass="mozResizer"][anonlocation="w"] {
michael@0 127 cursor: w-resize;
michael@0 128 }
michael@0 129 span[\_moz_anonclass="mozResizer"][anonlocation="e"] {
michael@0 130 cursor: e-resize;
michael@0 131 }
michael@0 132 span[\_moz_anonclass="mozResizer"][anonlocation="sw"] {
michael@0 133 cursor: sw-resize;
michael@0 134 }
michael@0 135 span[\_moz_anonclass="mozResizer"][anonlocation="s"] {
michael@0 136 cursor: s-resize;
michael@0 137 }
michael@0 138 span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
michael@0 139 cursor: se-resize;
michael@0 140 }
michael@0 141
michael@0 142 span[\_moz_anonclass="mozResizingShadow"],
michael@0 143 img[\_moz_anonclass="mozResizingShadow"] {
michael@0 144 outline: thin dashed black;
michael@0 145 -moz-user-select: none;
michael@0 146 opacity: 0.5;
michael@0 147 position: absolute;
michael@0 148 z-index: 2147483647; /* max value for this property */
michael@0 149 }
michael@0 150
michael@0 151 span[\_moz_anonclass="mozResizingInfo"] {
michael@0 152 font-family: sans-serif;
michael@0 153 font-size: x-small;
michael@0 154 color: black;
michael@0 155 background-color: #d0d0d0;
michael@0 156 border: ridge 2px #d0d0d0;
michael@0 157 padding: 2px;
michael@0 158 position: absolute;
michael@0 159 z-index: 2147483647; /* max value for this property */
michael@0 160 }
michael@0 161
michael@0 162 img[\_moz_resizing] {
michael@0 163 outline: thin solid black;
michael@0 164 }
michael@0 165
michael@0 166 *[\_moz_abspos] {
michael@0 167 outline: silver ridge 2px;
michael@0 168 z-index: 2147483645 !important; /* max value -2 for this property */
michael@0 169 }
michael@0 170 *[\_moz_abspos="white"] {
michael@0 171 background-color: white !important;
michael@0 172 }
michael@0 173 *[\_moz_abspos="black"] {
michael@0 174 background-color: black !important;
michael@0 175 }
michael@0 176
michael@0 177 span[\_moz_anonclass="mozGrabber"] {
michael@0 178 outline: ridge 2px silver;
michael@0 179 padding: 2px;
michael@0 180 position: absolute;
michael@0 181 width: 12px;
michael@0 182 height: 12px;
michael@0 183 background-image: url("resource://gre/res/grabber.gif");
michael@0 184 background-repeat: no-repeat;
michael@0 185 background-position: center center;
michael@0 186 -moz-user-select: none;
michael@0 187 cursor: move;
michael@0 188 z-index: 2147483647; /* max value for this property */
michael@0 189 }
michael@0 190
michael@0 191 /* INLINE TABLE EDITING */
michael@0 192
michael@0 193 a[\_moz_anonclass="mozTableAddColumnBefore"] {
michael@0 194 position: absolute;
michael@0 195 z-index: 2147483647; /* max value for this property */
michael@0 196 text-decoration: none !important;
michael@0 197 border: none 0px !important;
michael@0 198 width: 4px;
michael@0 199 height: 8px;
michael@0 200 background-image: url("resource://gre/res/table-add-column-before.gif");
michael@0 201 background-repeat: no-repeat;
michael@0 202 background-position: center center;
michael@0 203 -moz-user-select: none !important;
michael@0 204 -moz-user-focus: none !important;
michael@0 205 }
michael@0 206
michael@0 207 a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
michael@0 208 background-image: url("resource://gre/res/table-add-column-before-hover.gif");
michael@0 209 }
michael@0 210
michael@0 211 a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
michael@0 212 background-image: url("resource://gre/res/table-add-column-before-active.gif");
michael@0 213 }
michael@0 214
michael@0 215 a[\_moz_anonclass="mozTableAddColumnAfter"] {
michael@0 216 position: absolute;
michael@0 217 z-index: 2147483647; /* max value for this property */
michael@0 218 text-decoration: none !important;
michael@0 219 border: none 0px !important;
michael@0 220 width: 4px;
michael@0 221 height: 8px;
michael@0 222 background-image: url("resource://gre/res/table-add-column-after.gif");
michael@0 223 background-repeat: no-repeat;
michael@0 224 background-position: center center;
michael@0 225 -moz-user-select: none !important;
michael@0 226 -moz-user-focus: none !important;
michael@0 227 }
michael@0 228
michael@0 229 a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
michael@0 230 background-image: url("resource://gre/res/table-add-column-after-hover.gif");
michael@0 231 }
michael@0 232
michael@0 233 a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
michael@0 234 background-image: url("resource://gre/res/table-add-column-after-active.gif");
michael@0 235 }
michael@0 236
michael@0 237 a[\_moz_anonclass="mozTableRemoveColumn"] {
michael@0 238 position: absolute;
michael@0 239 z-index: 2147483647; /* max value for this property */
michael@0 240 text-decoration: none !important;
michael@0 241 border: none 0px !important;
michael@0 242 width: 8px;
michael@0 243 height: 8px;
michael@0 244 background-image: url("resource://gre/res/table-remove-column.gif");
michael@0 245 background-repeat: no-repeat;
michael@0 246 background-position: center center;
michael@0 247 -moz-user-select: none !important;
michael@0 248 -moz-user-focus: none !important;
michael@0 249 }
michael@0 250
michael@0 251 a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
michael@0 252 background-image: url("resource://gre/res/table-remove-column-hover.gif");
michael@0 253 }
michael@0 254
michael@0 255 a[\_moz_anonclass="mozTableRemoveColumn"]:active {
michael@0 256 background-image: url("resource://gre/res/table-remove-column-active.gif");
michael@0 257 }
michael@0 258
michael@0 259 a[\_moz_anonclass="mozTableAddRowBefore"] {
michael@0 260 position: absolute;
michael@0 261 z-index: 2147483647; /* max value for this property */
michael@0 262 text-decoration: none !important;
michael@0 263 border: none 0px !important;
michael@0 264 width: 8px;
michael@0 265 height: 4px;
michael@0 266 background-image: url("resource://gre/res/table-add-row-before.gif");
michael@0 267 background-repeat: no-repeat;
michael@0 268 background-position: center center;
michael@0 269 -moz-user-select: none !important;
michael@0 270 -moz-user-focus: none !important;
michael@0 271 }
michael@0 272
michael@0 273 a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
michael@0 274 background-image: url("resource://gre/res/table-add-row-before-hover.gif");
michael@0 275 }
michael@0 276
michael@0 277 a[\_moz_anonclass="mozTableAddRowBefore"]:active {
michael@0 278 background-image: url("resource://gre/res/table-add-row-before-active.gif");
michael@0 279 }
michael@0 280
michael@0 281 a[\_moz_anonclass="mozTableAddRowAfter"] {
michael@0 282 position: absolute;
michael@0 283 z-index: 2147483647; /* max value for this property */
michael@0 284 text-decoration: none !important;
michael@0 285 border: none 0px !important;
michael@0 286 width: 8px;
michael@0 287 height: 4px;
michael@0 288 background-image: url("resource://gre/res/table-add-row-after.gif");
michael@0 289 background-repeat: no-repeat;
michael@0 290 background-position: center center;
michael@0 291 -moz-user-select: none !important;
michael@0 292 -moz-user-focus: none !important;
michael@0 293 }
michael@0 294
michael@0 295 a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
michael@0 296 background-image: url("resource://gre/res/table-add-row-after-hover.gif");
michael@0 297 }
michael@0 298
michael@0 299 a[\_moz_anonclass="mozTableAddRowAfter"]:active {
michael@0 300 background-image: url("resource://gre/res/table-add-row-after-active.gif");
michael@0 301 }
michael@0 302
michael@0 303 a[\_moz_anonclass="mozTableRemoveRow"] {
michael@0 304 position: absolute;
michael@0 305 z-index: 2147483647; /* max value for this property */
michael@0 306 text-decoration: none !important;
michael@0 307 border: none 0px !important;
michael@0 308 width: 8px;
michael@0 309 height: 8px;
michael@0 310 background-image: url("resource://gre/res/table-remove-row.gif");
michael@0 311 background-repeat: no-repeat;
michael@0 312 background-position: center center;
michael@0 313 -moz-user-select: none !important;
michael@0 314 -moz-user-focus: none !important;
michael@0 315 }
michael@0 316
michael@0 317 a[\_moz_anonclass="mozTableRemoveRow"]:hover {
michael@0 318 background-image: url("resource://gre/res/table-remove-row-hover.gif");
michael@0 319 }
michael@0 320
michael@0 321 a[\_moz_anonclass="mozTableRemoveRow"]:active {
michael@0 322 background-image: url("resource://gre/res/table-remove-row-active.gif");
michael@0 323 }

mercurial