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.

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

mercurial