home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 May / PCWorld_2005-05_cd.bin / software / vyzkuste / nvu / nvu-0.90-csCZ-installer.exe / res / EditorOverride.css < prev    next >
Cascading Style Sheet File  |  2005-02-23  |  10KB  |  351 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.   color: -moz-hyperlinktext;
  67. }
  68.  
  69. /* Allow double-clicks on these widgets to open properties dialogs
  70.    XXX except when the widget has disabled attribute */
  71. input, button, textarea {
  72.   -moz-user-select: all !important;
  73.   -moz-user-input: auto !important;
  74.   -moz-user-focus: none !important;
  75. }
  76.  
  77. /* XXX Still need a better way of blocking other events to these widgets */
  78. select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] {
  79.   -moz-user-select: all !important;
  80.   -moz-user-input: none !important;
  81.   -moz-user-focus: none !important;
  82. }
  83.  
  84. isindex[prompt]
  85. {
  86.   -moz-user-select: none !important;
  87.   -moz-user-input: none !important;
  88.   -moz-user-focus: none !important;
  89. }
  90.  
  91. input[type="hidden"] {
  92.   border: 1px solid black !important;
  93.   visibility: visible !important;
  94. }
  95.  
  96. label {
  97.     -moz-user-select: all !important;
  98. }
  99.  
  100. ::-moz-display-comboboxcontrol-frame {
  101.   -moz-user-select: text !important;
  102. }
  103.  
  104. option {
  105.   -moz-user-select: text !important;
  106. }
  107.  
  108. #mozToc.readonly {
  109.   -moz-user-select: all !important;
  110.   -moz-user-input: none !important;
  111. }
  112.  
  113. /* the following rules are for Image Resizing */
  114.  
  115. span[\_moz_anonclass="mozResizer"] {
  116.   width: 5px;
  117.   height: 5px;
  118.   position: absolute;
  119.   border: 1px black solid;
  120.   background-color: white;
  121.   -moz-user-select: none;
  122.   z-index: 2147483646; /* max value -1 for this property */
  123. }
  124.  
  125. /* we can't use :active below */
  126. span[\_moz_anonclass="mozResizer"][\_moz_activated],
  127. span[\_moz_anonclass="mozResizer"]:hover {
  128.   background-color: black;
  129. }
  130.  
  131. span[\_moz_anonclass="mozResizer"].hidden,
  132. span[\_moz_anonclass="mozResizingShadow"].hidden,
  133. img[\_moz_anonclass="mozResizingShadow"].hidden,
  134. span[\_moz_anonclass="mozGrabber"].hidden,
  135. span[\_moz_anonclass="mozResizingInfo"].hidden,
  136. a[\_moz_anonclass="mozTableRemoveRow"].hidden,
  137. a[\_moz_anonclass="mozTableRemoveColumn"].hidden {
  138.   display: none !important;
  139. }
  140.  
  141. span[\_moz_anonclass="mozResizer"][anonlocation="nw"] {
  142.   cursor: nw-resize;
  143. }
  144. span[\_moz_anonclass="mozResizer"][anonlocation="n"] {
  145.   cursor: n-resize;
  146. }
  147. span[\_moz_anonclass="mozResizer"][anonlocation="ne"] {
  148.   cursor: ne-resize;
  149. }
  150. span[\_moz_anonclass="mozResizer"][anonlocation="w"] {
  151.   cursor: w-resize;
  152. }
  153. span[\_moz_anonclass="mozResizer"][anonlocation="e"] {
  154.   cursor: e-resize;
  155. }
  156. span[\_moz_anonclass="mozResizer"][anonlocation="sw"] {
  157.   cursor: sw-resize;
  158. }
  159. span[\_moz_anonclass="mozResizer"][anonlocation="s"] {
  160.   cursor: s-resize;
  161. }
  162. span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
  163.   cursor: se-resize;
  164. }
  165.  
  166. span[\_moz_anonclass="mozResizingShadow"],
  167. img[\_moz_anonclass="mozResizingShadow"] {
  168.   -moz-outline: thin dashed black;
  169.   -moz-user-select: none;
  170.   -moz-opacity: 0.5;
  171.   position: absolute;
  172.   z-index: 2147483647; /* max value for this property */
  173. }
  174.  
  175. span[\_moz_anonclass="mozResizingInfo"] {
  176.   font-family: sans-serif;
  177.   font-size: x-small;
  178.   color: black;
  179.   background-color: #d0d0d0;
  180.   border: ridge 2px #d0d0d0;
  181.   padding: 2px;
  182.   position: absolute;
  183.   z-index: 2147483647; /* max value for this property */
  184. }
  185.  
  186. img[\_moz_resizing] {
  187.   -moz-outline: thin solid black;
  188. }
  189.  
  190. *[\_moz_abspos] {
  191.   -moz-outline: silver ridge 2px;
  192.   z-index: 2147483645 !important; /* max value -2 for this property */
  193. }
  194. *[\_moz_abspos="white"] {
  195.   background-color: white !important;
  196. }
  197. *[\_moz_abspos="black"] {
  198.   background-color: black !important;
  199. }
  200.  
  201. span[\_moz_anonclass="mozGrabber"] {
  202.   -moz-outline: ridge 2px silver;
  203.   padding: 2px;
  204.   position: absolute;
  205.   width: 12px;
  206.   height: 12px;
  207.   background-image: url("resource:/res/grabber.gif");
  208.   background-repeat: no-repeat;
  209.   background-position: center center;
  210.   -moz-user-select: none;
  211.   cursor: move;
  212. }
  213.  
  214. /* INLINE TABLE EDITING */
  215.  
  216. a[\_moz_anonclass="mozTableAddColumnBefore"] {
  217.   position: absolute;
  218.   z-index: 2147483647; /* max value for this property */
  219.   text-decoration: none !important;
  220.   border: none 0px !important;
  221.   width: 4px;
  222.   height: 8px;
  223.   background-image: url("resource:/res/table-add-column-before.gif");
  224.   background-repeat: no-repeat;
  225.   background-position: center center;
  226.   -moz-user-select: none !important;
  227.   -moz-user-focus: none !important;
  228. }
  229.  
  230. a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
  231.   background-image: url("resource:/res/table-add-column-before-hover.gif");
  232. }
  233.  
  234. a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
  235.   background-image: url("resource:/res/table-add-column-before-active.gif");
  236. }
  237.  
  238. a[\_moz_anonclass="mozTableAddColumnAfter"] {
  239.   position: absolute;
  240.   z-index: 2147483647; /* max value for this property */
  241.   text-decoration: none !important;
  242.   border: none 0px !important;
  243.   width: 4px;
  244.   height: 8px;
  245.   background-image: url("resource:/res/table-add-column-after.gif");
  246.   background-repeat: no-repeat;
  247.   background-position: center center;
  248.   -moz-user-select: none !important;
  249.   -moz-user-focus: none !important;
  250. }
  251.  
  252. a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
  253.   background-image: url("resource:/res/table-add-column-after-hover.gif");
  254. }
  255.  
  256. a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
  257.   background-image: url("resource:/res/table-add-column-after-active.gif");
  258. }
  259.  
  260. a[\_moz_anonclass="mozTableRemoveColumn"] {
  261.   position: absolute;
  262.   z-index: 2147483647; /* max value for this property */
  263.   text-decoration: none !important;
  264.   border: none 0px !important;
  265.   width: 8px;
  266.   height: 8px;
  267.   background-image: url("resource:/res/table-remove-column.gif");
  268.   background-repeat: no-repeat;
  269.   background-position: center center;
  270.   -moz-user-select: none !important;
  271.   -moz-user-focus: none !important;
  272. }
  273.  
  274. a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
  275.   background-image: url("resource:/res/table-remove-column-hover.gif");
  276. }
  277.  
  278. a[\_moz_anonclass="mozTableRemoveColumn"]:active {
  279.   background-image: url("resource:/res/table-remove-column-active.gif");
  280. }
  281.  
  282. a[\_moz_anonclass="mozTableAddRowBefore"] {
  283.   position: absolute;
  284.   z-index: 2147483647; /* max value for this property */
  285.   text-decoration: none !important;
  286.   border: none 0px !important;
  287.   width: 8px;
  288.   height: 4px;
  289.   background-image: url("resource:/res/table-add-row-before.gif");
  290.   background-repeat: no-repeat;
  291.   background-position: center center;
  292.   -moz-user-select: none !important;
  293.   -moz-user-focus: none !important;
  294. }
  295.  
  296. a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
  297.   background-image: url("resource:/res/table-add-row-before-hover.gif");
  298. }
  299.  
  300. a[\_moz_anonclass="mozTableAddRowBefore"]:active {
  301.   background-image: url("resource:/res/table-add-row-before-active.gif");
  302. }
  303.  
  304. a[\_moz_anonclass="mozTableAddRowAfter"] {
  305.   position: absolute;
  306.   z-index: 2147483647; /* max value for this property */
  307.   text-decoration: none !important;
  308.   border: none 0px !important;
  309.   width: 8px;
  310.   height: 4px;
  311.   background-image: url("resource:/res/table-add-row-after.gif");
  312.   background-repeat: no-repeat;
  313.   background-position: center center;
  314.   -moz-user-select: none !important;
  315.   -moz-user-focus: none !important;
  316. }
  317.  
  318. a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
  319.   background-image: url("resource:/res/table-add-row-after-hover.gif");
  320. }
  321.  
  322. a[\_moz_anonclass="mozTableAddRowAfter"]:active {
  323.   background-image: url("resource:/res/table-add-row-after-active.gif");
  324. }
  325.  
  326. a[\_moz_anonclass="mozTableRemoveRow"] {
  327.   position: absolute;
  328.   z-index: 2147483647; /* max value for this property */
  329.   text-decoration: none !important;
  330.   border: none 0px !important;
  331.   width: 8px;
  332.   height: 8px;
  333.   background-image: url("resource:/res/table-remove-row.gif");
  334.   background-repeat: no-repeat;
  335.   background-position: center center;
  336.   -moz-user-select: none !important;
  337.   -moz-user-focus: none !important;
  338. }
  339.  
  340. a[\_moz_anonclass="mozTableRemoveRow"]:hover {
  341.   background-image: url("resource:/res/table-remove-row-hover.gif");
  342. }
  343.  
  344. a[\_moz_anonclass="mozTableRemoveRow"]:active {
  345.   background-image: url("resource:/res/table-remove-row-active.gif");
  346. }
  347.  
  348. nvu|* {
  349.   display: none;
  350. }
  351.