PageRenderTime 51ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Kona.Web/Scripts/edit_area/edit_area.css

#
CSS | 507 lines | 412 code | 74 blank | 21 comment | 0 complexity | 530fdc14abd22448abb235bf553760c2 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. body, html{
  2. margin: 0;
  3. padding: 0;
  4. height: 100%;
  5. border: none;
  6. overflow: hidden;
  7. background-color: #FFF;
  8. }
  9. body, html, table, form, textarea{
  10. font: 12px monospace, sans-serif;
  11. }
  12. #editor{
  13. border: solid #888 1px;
  14. overflow: visible;
  15. }
  16. #result{
  17. z-index: 4;
  18. overflow-x: auto;
  19. overflow-y: scroll;
  20. border-top: solid #888 1px;
  21. border-bottom: solid #888 1px;
  22. position: relative;
  23. clear: both;
  24. }
  25. #result.empty{
  26. overflow: hidden;
  27. }
  28. #container{
  29. overflow: hidden;
  30. border: solid blue 0;
  31. position: relative;
  32. z-index: 10;
  33. padding: 0 5px 0 45px;
  34. /*padding-right: 5px;*/
  35. }
  36. #textarea{
  37. position: relative;
  38. top: 0;
  39. left: 0;
  40. margin: 0;
  41. padding: 0;
  42. width: 100%;
  43. height: 100%;
  44. overflow: hidden;
  45. z-index: 7;
  46. border-width: 0;
  47. background-color: transparent;
  48. }
  49. #textarea, #textarea:hover{
  50. outline: none; /* safari outline fix */
  51. }
  52. #content_highlight{
  53. white-space: pre;
  54. margin: 0;
  55. padding: 0;
  56. position : absolute;
  57. z-index: 4;
  58. overflow: visible;
  59. }
  60. #selection_field{
  61. margin: 0;
  62. background-color: #E1F2F9;
  63. height: 1px;
  64. position: absolute;
  65. z-index: 5;
  66. top: -100px;
  67. padding: 0;
  68. white-space: pre;
  69. overflow: hidden;
  70. }
  71. #selection_field.show_colors{
  72. z-index: 3;
  73. background-color:#EDF9FC;
  74. color:transparent;
  75. }
  76. #container.wrap_text #content_highlight, #container.wrap_text #selection_field{
  77. white-space: pre-wrap; /* css-3 */
  78. white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
  79. white-space: -pre-wrap; /* Opera 4-6 */
  80. white-space: -o-pre-wrap; /* Opera 7 */
  81. word-wrap: break-word; /* Internet Explorer 5.5+ */
  82. width: 99%;
  83. }
  84. #line_number{
  85. position: absolute;
  86. overflow: hidden;
  87. border-right: solid black 1px;
  88. z-index:8;
  89. width: 38px;
  90. padding: 0 5px 0 0;
  91. margin: 0 0 0 -45px;
  92. text-align: right;
  93. color: #AAAAAA;
  94. }
  95. #test_font_size{
  96. padding: 0;
  97. margin: 0;
  98. visibility: hidden;
  99. position: absolute;
  100. white-space: pre;
  101. }
  102. pre{
  103. margin: 0;
  104. padding: 0;
  105. }
  106. .hidden{
  107. opacity: 0.2;
  108. filter:alpha(opacity=20);
  109. }
  110. #result .edit_area_cursor{
  111. position: absolute;
  112. z-index:6;
  113. background-color: #FF6633;
  114. top: -100px;
  115. margin: 1px 0 0 0;
  116. }
  117. #result .edit_area_selection_field .overline{
  118. background-color: #996600;
  119. }
  120. /* area popup */
  121. .editarea_popup{
  122. border: solid 1px #888888;
  123. background-color: #ECE9D8;
  124. width: 250px;
  125. padding: 4px;
  126. position: absolute;
  127. visibility: hidden;
  128. z-index: 15;
  129. top: -500px;
  130. }
  131. .editarea_popup, .editarea_popup table{
  132. font-family: sans-serif;
  133. font-size: 10pt;
  134. }
  135. .editarea_popup img{
  136. border: 0;
  137. }
  138. .editarea_popup .close_popup{
  139. float: right;
  140. line-height: 16px;
  141. border: 0;
  142. padding: 0;
  143. }
  144. .editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{
  145. margin: 0;
  146. padding: 0;
  147. }
  148. .editarea_popup .copyright{
  149. text-align: right;
  150. }
  151. /* Area_search */
  152. div#area_search_replace{
  153. /*width: 250px;*/
  154. }
  155. div#area_search_replace img{
  156. border: 0;
  157. }
  158. div#area_search_replace div.button{
  159. text-align: center;
  160. line-height: 1.7em;
  161. }
  162. div#area_search_replace .button a{
  163. cursor: pointer;
  164. border: solid 1px #888888;
  165. background-color: #DEDEDE;
  166. text-decoration: none;
  167. padding: 0 2px;
  168. color: #000000;
  169. white-space: nowrap;
  170. }
  171. div#area_search_replace a:hover{
  172. /*border: solid 1px #888888;*/
  173. background-color: #EDEDED;
  174. }
  175. div#area_search_replace #move_area_search_replace{
  176. cursor: move;
  177. border: solid 1px #888;
  178. }
  179. div#area_search_replace #close_area_search_replace{
  180. text-align: right;
  181. vertical-align: top;
  182. white-space: nowrap;
  183. }
  184. div#area_search_replace #area_search_msg{
  185. height: 18px;
  186. overflow: hidden;
  187. border-top: solid 1px #888;
  188. margin-top: 3px;
  189. }
  190. /* area help */
  191. #edit_area_help{
  192. width: 350px;
  193. }
  194. #edit_area_help div.close_popup{
  195. float: right;
  196. }
  197. /* area_toolbar */
  198. .area_toolbar{
  199. /*font: 11px sans-serif;*/
  200. width: 100%;
  201. /*height: 21px; */
  202. margin: 0;
  203. padding: 0;
  204. background-color: #ECE9D8;
  205. text-align: center;
  206. }
  207. .area_toolbar, .area_toolbar table{
  208. font: 11px sans-serif;
  209. }
  210. .area_toolbar img{
  211. border: 0;
  212. vertical-align: middle;
  213. }
  214. .area_toolbar input{
  215. margin: 0;
  216. padding: 0;
  217. }
  218. .area_toolbar select{
  219. font-family: 'MS Sans Serif',sans-serif,Verdana,Arial;
  220. font-size: 7pt;
  221. font-weight: normal;
  222. margin: 2px 0 0 0 ;
  223. padding: 0;
  224. vertical-align: top;
  225. background-color: #F0F0EE;
  226. }
  227. table.statusbar{
  228. width: 100%;
  229. }
  230. .area_toolbar td.infos{
  231. text-align: center;
  232. width: 130px;
  233. border-right: solid 1px #888;
  234. border-width: 0 1px 0 0;
  235. padding: 0;
  236. }
  237. .area_toolbar td.total{
  238. text-align: right;
  239. width: 50px;
  240. padding: 0;
  241. }
  242. .area_toolbar td.resize{
  243. text-align: right;
  244. }
  245. /*
  246. .area_toolbar span{
  247. line-height: 1px;
  248. padding: 0;
  249. margin: 0;
  250. }*/
  251. .area_toolbar span#resize_area{
  252. cursor: nw-resize;
  253. visibility: hidden;
  254. }
  255. /* toolbar buttons */
  256. .editAreaButtonNormal, .editAreaButtonOver, .editAreaButtonDown, .editAreaSeparator, .editAreaSeparatorLine, .editAreaButtonDisabled, .editAreaButtonSelected {
  257. border: 0; margin: 0; padding: 0; background: transparent;
  258. margin-top: 0;
  259. margin-left: 1px;
  260. padding: 0;
  261. }
  262. .editAreaButtonNormal {
  263. border: 1px solid #ECE9D8 !important;
  264. cursor: pointer;
  265. }
  266. .editAreaButtonOver {
  267. border: 1px solid #0A246A !important;
  268. cursor: pointer;
  269. background-color: #B6BDD2;
  270. }
  271. .editAreaButtonDown {
  272. cursor: pointer;
  273. border: 1px solid #0A246A !important;
  274. background-color: #8592B5;
  275. }
  276. .editAreaButtonSelected {
  277. border: 1px solid #C0C0BB !important;
  278. cursor: pointer;
  279. background-color: #F4F2E8;
  280. }
  281. .editAreaButtonDisabled {
  282. filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);
  283. -moz-opacity:0.3;
  284. opacity: 0.3;
  285. border: 1px solid #F0F0EE !important;
  286. cursor: pointer;
  287. }
  288. .editAreaSeparatorLine {
  289. margin: 1px 2px;
  290. background-color: #C0C0BB;
  291. width: 2px;
  292. height: 18px;
  293. }
  294. /* waiting screen */
  295. #processing{
  296. display: none;
  297. background-color:#ECE9D8;
  298. border: solid #888 1px;
  299. position: absolute;
  300. top: 0;
  301. left: 0;
  302. width: 100%;
  303. height: 100%;
  304. z-index: 100;
  305. text-align: center;
  306. }
  307. #processing_text{
  308. position:absolute;
  309. left: 50%;
  310. top: 50%;
  311. width: 200px;
  312. height: 20px;
  313. margin-left: -100px;
  314. margin-top: -10px;
  315. text-align: center;
  316. }
  317. /* end */
  318. /**** tab browsing area ****/
  319. #tab_browsing_area{
  320. display: none;
  321. background-color: #CCC9A8;
  322. border-top: 1px solid #888;
  323. text-align: left;
  324. margin: 0;
  325. }
  326. #tab_browsing_list {
  327. padding: 0;
  328. margin: 0;
  329. list-style-type: none;
  330. white-space: nowrap;
  331. }
  332. #tab_browsing_list li {
  333. float: left;
  334. margin: -1px;
  335. }
  336. #tab_browsing_list a {
  337. position: relative;
  338. display: block;
  339. text-decoration: none;
  340. float: left;
  341. cursor: pointer;
  342. line-height:14px;
  343. }
  344. #tab_browsing_list a span {
  345. display: block;
  346. color: #000;
  347. background: #ECE9D8;
  348. border: 1px solid #888;
  349. border-width: 1px 1px 0;
  350. text-align: center;
  351. padding: 2px 2px 1px 4px;
  352. position: relative; /*IE 6 hack */
  353. }
  354. #tab_browsing_list a b {
  355. display: block;
  356. border-bottom: 2px solid #617994;
  357. }
  358. #tab_browsing_list a .edited {
  359. display: none;
  360. }
  361. #tab_browsing_list a.edited .edited {
  362. display: inline;
  363. }
  364. #tab_browsing_list a img{
  365. margin-left: 7px;
  366. }
  367. #tab_browsing_list a.edited img{
  368. margin-left: 3px;
  369. }
  370. #tab_browsing_list a:hover span {
  371. background: #F4F2E8;
  372. border-color: #0A246A;
  373. }
  374. #tab_browsing_list .selected a span{
  375. background: #046380;
  376. color: #FFF;
  377. }
  378. #no_file_selected{
  379. height: 100%;
  380. width: 150%; /* Opera need more than 100% */
  381. background: #CCC;
  382. display: none;
  383. z-index: 20;
  384. position: absolute;
  385. }
  386. /*** Non-editable mode ***/
  387. .non_editable #editor
  388. {
  389. border-width: 0 1px;
  390. }
  391. .non_editable .area_toolbar
  392. {
  393. display: none;
  394. }
  395. /*** Auto completion ***/
  396. #auto_completion_area
  397. {
  398. background: #FFF;
  399. border: solid 1px #888;
  400. position: absolute;
  401. z-index: 15;
  402. width: 280px;
  403. height: 180px;
  404. overflow: auto;
  405. display:none;
  406. }
  407. #auto_completion_area a, #auto_completion_area a:visited
  408. {
  409. display: block;
  410. padding: 0 2px 1px;
  411. color: #000;
  412. text-decoration:none;
  413. }
  414. #auto_completion_area a:hover, #auto_completion_area a:focus, #auto_completion_area a.focus
  415. {
  416. background: #D6E1FE;
  417. text-decoration:none;
  418. }
  419. #auto_completion_area ul
  420. {
  421. margin: 0;
  422. padding: 0;
  423. list-style: none inside;
  424. }
  425. #auto_completion_area li
  426. {
  427. padding: 0;
  428. }
  429. #auto_completion_area .prefix
  430. {
  431. font-style: italic;
  432. padding: 0 3px;
  433. }