home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / nvu / nvu-1.0-cs-CZ.win32.installer.exe / res / EditorOverride.css < prev    next >
Cascading Style Sheet File  |  2005-06-15  |  10KB  |  352 lines

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