svg-editor.css 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466
  1. body {
  2. background: #D0D0D0;
  3. }
  4. html, body, div{
  5. -webkit-user-select: text;
  6. -khtml-user-select: text;
  7. -moz-user-select: text;
  8. -o-user-select: text;
  9. user-select: text;
  10. /* this will work for QtWebKit in future */
  11. -webkit-user-drag: text;
  12. }
  13. #browser-not-supported {
  14. font-size: 0.8em;
  15. font-family: Verdana, Helvetica, Arial;
  16. color: #000000;
  17. }
  18. #svg_editor * {
  19. transform-origin: 0 0;
  20. -moz-transform-origin: 0 0;
  21. -o-transform-origin: 0 0;
  22. -webkit-transform-origin: 0 0;
  23. }
  24. #svg_editor {
  25. font-size: 8pt;
  26. font-family: Verdana, Helvetica, Arial;
  27. color: #000000;
  28. }
  29. a {
  30. color: #19c;
  31. }
  32. hr {
  33. border: none;
  34. border-bottom: 1px solid #808080;
  35. }
  36. select {
  37. margin-top: 4px;
  38. }
  39. #svgroot {
  40. -moz-user-select: none;
  41. -webkit-user-select: none;
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. }
  46. #svgcanvas {
  47. line-height: normal;
  48. display: inline-block;
  49. background-color: #A0A0A0;
  50. text-align: center;
  51. vertical-align: middle;
  52. width: 640px;
  53. height: 480px;
  54. -apple-dashboard-region:dashboard-region(control rectangle 0px 0px 0px 0px); /* for widget regions that shouldn't react to dragging */
  55. position: relative;
  56. /*
  57. A subtle gradient effect in the canvas.
  58. Just experimenting - not sure if this is worth it.
  59. */
  60. background: -moz-radial-gradient(45deg,#bbb,#222);
  61. background: -webkit-gradient(radial, center center, 3, center center, 1000, from(#bbb), to(#222));
  62. }
  63. /* Rulers
  64. ——————————————————————————————————————*/
  65. #rulers > div {
  66. position: absolute;
  67. background: #DDD;
  68. z-index: 1;
  69. overflow: hidden;
  70. }
  71. #ruler_corner {
  72. top: 41px;
  73. left: 41px;
  74. width: 15px;
  75. height: 15px;
  76. }
  77. #ruler_x {
  78. height: 15px;
  79. top: 41px;
  80. left: 56px;
  81. right: 30px;
  82. border-bottom: 1px solid;
  83. border-left: 1px solid #777;
  84. }
  85. #ruler_y {
  86. width: 15px;
  87. top: 55px;
  88. left: 41px;
  89. bottom: 56px;
  90. border-right: 1px solid;
  91. border-top: 1px solid #777;
  92. }
  93. #ruler_x canvas:first-child {
  94. margin-left: -16px;
  95. }
  96. #ruler_x canvas {
  97. float: left;
  98. }
  99. #ruler_y canvas {
  100. margin-top: -16px;
  101. }
  102. #ruler_x > div,
  103. #ruler_y > div {
  104. overflow: hidden;
  105. }
  106. #palette_holder {
  107. overflow: hidden;
  108. margin-top: 5px;
  109. padding: 5px;
  110. position: absolute;
  111. right: 15px;
  112. height: 16px;
  113. background: #f0f0f0;
  114. border-radius: 3px;
  115. z-index: 2;
  116. }
  117. #stroke_bg,
  118. #fill_bg {
  119. height: 16px;
  120. width: 16px;
  121. margin: 1px;
  122. }
  123. #zoomLabel {
  124. cursor: pointer;
  125. margin-right: 5px;
  126. padding-top: 4px
  127. }
  128. #linkLabel > svg {
  129. height: 20px;
  130. padding-top: 4px;
  131. }
  132. #palette {
  133. float: left;
  134. width: 632px;
  135. height: 16px;
  136. }
  137. #workarea {
  138. display: inline-table-cell;
  139. position:absolute;
  140. top: 40px;
  141. left: 40px;
  142. bottom: 40px;
  143. right: 14px;
  144. background-color: #A0A0A0;
  145. border: 1px solid #808080;
  146. overflow: auto;
  147. text-align: center;
  148. }
  149. #sidepanels {
  150. display: inline-block;
  151. position:absolute;
  152. top: 40px;
  153. bottom: 40px;
  154. right: 0;
  155. width: 2px;
  156. padding: 10px;
  157. border-color: #808080;
  158. border-style: solid;
  159. border-width: 1px;
  160. border-left: none;
  161. overflow-x:hidden;
  162. overflow-y:visible;
  163. }
  164. #layerpanel {
  165. display: inline-block;
  166. position:relative;
  167. top: 0px;
  168. bottom: 0;
  169. left: 12px;
  170. width: 0;
  171. overflow: hidden;
  172. margin: 0;
  173. -moz-user-select: none;
  174. -webkit-user-select: none;
  175. }
  176. /*
  177. border-style: solid;
  178. border-color: #666;
  179. border-width: 0px 0px 0px 1px;
  180. */
  181. #sidepanel_handle {
  182. display: inline-block;
  183. position: absolute;
  184. background-color: #D0D0D0;
  185. font-weight: bold;
  186. left: 0;
  187. top: 40%;
  188. width: 1em;
  189. padding: 5px 1px 5px 5px;
  190. margin-left: 3px;
  191. cursor: pointer;
  192. border-radius: 5px;
  193. -moz-border-radius: 5px;
  194. -webkit-border-radius: 5px;
  195. -moz-user-select: none;
  196. -webkit-user-select: none;
  197. }
  198. #sidepanel_handle:hover {
  199. font-weight: bold;
  200. }
  201. #sidepanel_handle * {
  202. cursor: pointer;
  203. -moz-user-select: none;
  204. -webkit-user-select: none;
  205. }
  206. #layerbuttons {
  207. margin: 0;
  208. padding: 0;
  209. padding-left: 2px;
  210. padding-right: 2px;
  211. width: 125px;
  212. height: 20px;
  213. border-right: 1px solid #FFFFFF;
  214. border-bottom: 1px solid #FFFFFF;
  215. border-left: 1px solid #808080;
  216. border-top: 1px solid #808080;
  217. overflow: hidden;
  218. }
  219. .layer_button {
  220. width: 14px;
  221. height: 14px;
  222. padding: 1px;
  223. border-left: 1px solid #FFFFFF;
  224. border-top: 1px solid #FFFFFF;
  225. border-right: 1px solid #808080;
  226. border-bottom: 1px solid #808080;
  227. cursor: pointer;
  228. float: left;
  229. margin-right: 3px;
  230. }
  231. .layer_button:last-child {
  232. margin-right: 0;
  233. }
  234. .layer_buttonpressed {
  235. width: 14px;
  236. height: 14px;
  237. padding: 1px;
  238. border-right: 1px solid #FFFFFF;
  239. border-bottom: 1px solid #FFFFFF;
  240. border-left: 1px solid #808080;
  241. border-top: 1px solid #808080;
  242. cursor: pointer;
  243. }
  244. #layerlist {
  245. margin: 1px;
  246. padding: 0;
  247. width: 127px;
  248. border-collapse: collapse;
  249. border: 1px solid #808080;
  250. background-color: #FFFFFF;
  251. }
  252. #layerlist tr.layer {
  253. background-color: #FFFFFF;
  254. margin: 0;
  255. padding: 0;
  256. }
  257. #layerlist tr.layersel {
  258. border: 1px solid #808080;
  259. background-color: #CCCCCC;
  260. }
  261. #layerlist td.layervis {
  262. width: 22px;
  263. cursor: pointer;
  264. }
  265. #layerlist td.layerinvis {
  266. background-image: none;
  267. cursor: pointer;
  268. }
  269. #layerlist td.layervis * {
  270. display: block;
  271. }
  272. #layerlist td.layerinvis * {
  273. display: none;
  274. }
  275. #layerlist td.layername {
  276. cursor: pointer;
  277. }
  278. #layerlist td.layername:hover {
  279. color: blue;
  280. font-style: italic;
  281. }
  282. #layerlist tr.layersel td.layername {
  283. font-weight: bold;
  284. }
  285. #selLayerLabel {
  286. white-space: nowrap;
  287. }
  288. #selLayerNames {
  289. display: block;
  290. }
  291. div.palette_item {
  292. height: 15px;
  293. width: 15px;
  294. float: left;
  295. }
  296. div.palette_item:first-child {
  297. background: white;
  298. }
  299. /* Main button
  300. —————————————————————————————*/
  301. #main_button {
  302. position: absolute;
  303. top: 4px;
  304. left: 5px;
  305. z-index: 5;
  306. }
  307. #main_icon {
  308. position: relative;
  309. top: -2px;
  310. left: -2px;
  311. width: 95px;
  312. line-height: 26px;
  313. }
  314. #main_icon:hover {
  315. background: #eee !important;
  316. }
  317. #main_icon.buttondown {
  318. background: #eee !important;
  319. -moz-box-shadow: none !important;
  320. -webkit-box-shadow: none !important;
  321. box-shadow: none !important;
  322. border-radius: 3px 3px 0 0;
  323. }
  324. #logo {
  325. margin-top: -2px;
  326. }
  327. #logo img {
  328. border: 0;
  329. width: 28px;
  330. height: 28px;
  331. }
  332. #main_icon > div {
  333. float: left;
  334. }
  335. #main_button .dropdown {
  336. position: absolute;
  337. right: 7px;
  338. top: 4px;
  339. }
  340. #main_icon span {
  341. position: absolute;
  342. top: 0;
  343. left: 0;
  344. bottom: 0;
  345. right: 0;
  346. display: block;
  347. z-index: 2;
  348. font-weight: bold;
  349. padding-left: 34px;
  350. line-height: 32px;
  351. font-family: sans-serif;
  352. }
  353. #main_menu {
  354. z-index: 12;
  355. background: #eee;
  356. position: relative;
  357. width: 230px;
  358. padding: 5px;
  359. -moz-box-shadow: #555 1px 1px 4px;
  360. -webkit-box-shadow: #555 1px 1px 4px;
  361. box-shadow: #555 1px 1px 4px;
  362. font-size: 1.1em;
  363. display: none;
  364. overflow: hidden;
  365. clear: both;
  366. top: -9px;
  367. }
  368. #main_menu ul,
  369. #main_menu li {
  370. list-style: none;
  371. margin: 0;
  372. padding: 0;
  373. }
  374. #main_menu li {
  375. /* height: 35px;*/
  376. line-height: 22px;
  377. padding-top: 7px;
  378. padding-left: 7px;
  379. margin: -5px;
  380. overflow: auto;
  381. cursor: default;
  382. }
  383. #main_menu li:hover {
  384. background: #FFC;
  385. }
  386. #main_menu li > div {
  387. float: left;
  388. padding-right: 5px;
  389. }
  390. #main_menu p {
  391. margin-top: 5px;
  392. }
  393. /*—————————————————————————————*/
  394. .tool_button:hover,
  395. .push_button:hover,
  396. .buttonup:hover,
  397. .buttondown,
  398. .tool_button_current,
  399. .push_button_pressed
  400. {
  401. background-color: #ffc !important;
  402. }
  403. .tool_button_current,
  404. .push_button_pressed,
  405. .buttondown {
  406. background-color: #f4e284 !important;
  407. -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;
  408. -moz-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;
  409. box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;
  410. }
  411. #tools_top {
  412. position: absolute;
  413. left: 108px;
  414. right: 2px;
  415. top: 2px;
  416. height: 40px;
  417. border-bottom: none;
  418. overflow: auto;
  419. }
  420. #tools_top .tool_sep {
  421. margin-top: 5px;
  422. }
  423. #tools_left {
  424. position: absolute;
  425. border-right: none;
  426. width: 32px;
  427. top: 40px;
  428. left: 1px;
  429. margin-top: -2px;
  430. padding-left: 2px;
  431. background: #D0D0D0; /* Needed so flyout icons don't appear on the left */
  432. z-index: 4;
  433. }
  434. #workarea.wireframe #svgcontent * {
  435. fill: none;
  436. stroke: #000;
  437. stroke-width: 1px;
  438. stroke-opacity: 1.0;
  439. stroke-dasharray: 0;
  440. opacity: 1;
  441. pointer-events: stroke;
  442. vector-effect: non-scaling-stroke;
  443. filter: none;
  444. }
  445. #workarea.wireframe #svgcontent text {
  446. fill: #000;
  447. stroke: none;
  448. }
  449. #workarea.wireframe #canvasBackground > rect {
  450. fill: #FFF !important;
  451. }
  452. #tools_top div[id$="_panel"]:not(#editor_panel):not(#history_panel) {
  453. display: none;
  454. }
  455. #editor_panel, #history_panel {
  456. height: 34px;
  457. float: left;
  458. }
  459. #multiselected_panel .selected_tool {
  460. vertical-align: 12px;
  461. }
  462. /*TODO: Adjust position of rulers are not visible*/
  463. #cur_context_panel {
  464. position: absolute;
  465. top: 57px;
  466. left: 56px;
  467. line-height: 22px;
  468. overflow: auto;
  469. padding-left: 5px;
  470. font-size: 12px;
  471. background: rgba(0, 0, 0, 0.8);
  472. color: #ccc;
  473. padding: 0 10px;
  474. border-radius: 0 0 3px 0;
  475. }
  476. #cur_context_panel a {
  477. float: none;
  478. text-decoration: none;
  479. }
  480. #cur_context_panel a:hover {
  481. text-decoration: underline;
  482. }
  483. #tools_top > div, #tools_top {
  484. line-height: 26px;
  485. }
  486. div.toolset,
  487. div.toolset > * {
  488. float: left;
  489. }
  490. div.toolset {
  491. height: 34px;
  492. }
  493. div.toolset label span {
  494. /* outline: 1px solid red;*/
  495. padding-top: 3px;
  496. display: inline-block;
  497. }
  498. #tools_top > div > * {
  499. float: left;
  500. margin-right: 2px;
  501. }
  502. #tools_top label {
  503. margin-top: 0;
  504. margin-left: 5px;
  505. }
  506. #tools_top input {
  507. margin-top: 5px;
  508. height: 15px;
  509. }
  510. input[type=text] {
  511. padding: 2px;
  512. }
  513. #tools_left .tool_button,
  514. #tools_left .tool_button_current {
  515. position: relative;
  516. z-index: 11;
  517. }
  518. .flyout_arrow_horiz {
  519. position: absolute;
  520. bottom: -1px;
  521. right: 0;
  522. z-index: 10;
  523. }
  524. span.zoom_tool {
  525. line-height: 26px;
  526. padding: 3px;
  527. }
  528. #zoom_panel {
  529. margin-top: 5px;
  530. }
  531. .dropdown {
  532. position: relative;
  533. }
  534. .dropdown button {
  535. width: 15px;
  536. height: 21px;
  537. margin: 6px 0 0 1px;
  538. padding: 0;
  539. border-left: 1px solid #FFFFFF;
  540. border-top: 1px solid #FFFFFF;
  541. border-right: 1px solid #808080;
  542. border-bottom: 1px solid #808080;
  543. background-color: #E8E8E8;
  544. }
  545. .dropdown button.down {
  546. border-left: 1px solid #808080;
  547. border-top: 1px solid #808080;
  548. border-right: 1px solid #FFFFFF;
  549. border-bottom: 1px solid #FFFFFF;
  550. background-color: #B0B0B0;
  551. }
  552. .dropdown ul {
  553. list-style: none;
  554. position: absolute;
  555. margin: 0;
  556. padding: 0;
  557. left: -85px;
  558. top: 26px;
  559. z-index: 4;
  560. display: none;
  561. }
  562. .dropup ul {
  563. top: auto;
  564. bottom: 24px;
  565. }
  566. .dropdown li {
  567. display: block;
  568. width: 120px;
  569. padding: 4px;
  570. background: #E8E8E8;
  571. border: 1px solid #B0B0B0;
  572. margin: 0 0 -1px 0;
  573. line-height: 16px;
  574. }
  575. .dropdown li:hover {
  576. background-color: #FFC;
  577. }
  578. .dropdown li.special {
  579. padding: 10px 4px;
  580. }
  581. .dropdown li.special:hover {
  582. background: #FFC;
  583. }
  584. #font_family_dropdown-list li {
  585. font-size: 1.4em;
  586. }
  587. #font_family {
  588. margin-left: 5px;
  589. margin-right: 0;
  590. }
  591. .tool_button,
  592. .push_button,
  593. .tool_button_current,
  594. .push_button_pressed
  595. {
  596. height: 24px;
  597. width: 24px;
  598. margin: 2px 2px 4px 2px;
  599. padding: 3px;
  600. -webkit-box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);
  601. moz-box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);
  602. box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);
  603. background-color: #E8E8E8;
  604. cursor: pointer;
  605. border-radius: 3px;
  606. -moz-border-radius: 3px;
  607. -webkit-border-radius: 3px;
  608. }
  609. #main_menu li#tool_open, #main_menu li#tool_import {
  610. position: relative;
  611. overflow: hidden;
  612. }
  613. #tool_image {
  614. overflow: hidden;
  615. }
  616. #tool_open input,
  617. #tool_import input,
  618. #tool_image input {
  619. position: absolute;
  620. opacity: 0;
  621. font-size: 10em;
  622. top: -5px;
  623. right: -5px;
  624. margin: 0;
  625. cursor: pointer; /* Sadly doesn't appear to have an effect */
  626. }
  627. .disabled {
  628. opacity: 0.5;
  629. cursor: default;
  630. }
  631. .tool_sep {
  632. width: 1px;
  633. background: #888;
  634. border-left: 1px outset #EEE;
  635. margin: 2px 3px;
  636. padding: 0;
  637. height: 24px;
  638. }
  639. .icon_label {
  640. float: left;
  641. padding-top: 3px;
  642. padding-right: 3px;
  643. box-sizing: border-box;
  644. -moz-box-sizing: border-box;
  645. -webkit-box-sizing: border-box;
  646. height: 0;
  647. }
  648. .width_label {
  649. padding-right: 5px;
  650. }
  651. #tool_bold, #tool_italic {
  652. font: bold 2.1em/1.1em serif;
  653. text-align: center;
  654. padding-left: 2px;
  655. position: relative;
  656. }
  657. #text {
  658. position: absolute;
  659. left: -9999px;
  660. }
  661. #tool_bold span, #tool_italic span {
  662. position: absolute;
  663. width: 100%;
  664. height: 100%;
  665. top: 0; left: 0;
  666. background: #000;
  667. opacity: 0;
  668. }
  669. #tool_italic {
  670. font-weight: normal;
  671. font-style: italic;
  672. }
  673. #url_notice {
  674. padding-top: 4px;
  675. display: none;
  676. }
  677. #color_picker {
  678. position: absolute;
  679. display: none;
  680. background: #E8E8E8;
  681. height: 350px;
  682. z-index: 5;
  683. }
  684. .tools_flyout {
  685. position: absolute;
  686. display: none;
  687. cursor: pointer;
  688. width: 400px;
  689. z-index: 1;
  690. }
  691. .tools_flyout_v {
  692. position: absolute;
  693. display: none;
  694. cursor: pointer;
  695. width: 30px;
  696. }
  697. .tools_flyout .tool_button {
  698. float: left;
  699. background-color: #E8E8E8;
  700. border-left: 1px solid #FFFFFF;
  701. border-top: 1px solid #FFFFFF;
  702. border-right: 1px solid #808080;
  703. border-bottom: 1px solid #808080;
  704. height: 28px;
  705. width: 28px;
  706. }
  707. #tools_bottom {
  708. position: absolute;
  709. left: 40px;
  710. right: 0;
  711. bottom: 0;
  712. height: 40px;
  713. overflow: visible;
  714. }
  715. #tools_bottom_1 {
  716. width: 115px;
  717. float: left;
  718. }
  719. #tools_bottom input[type=text] {
  720. width: 2.2em;
  721. }
  722. /* Color tools: fill, stroke, opacity
  723. –––––––––––––––––––––––––––––––––––––*/
  724. #tools_bottom_2 {
  725. float: left;
  726. width: 300px;
  727. position: relative;
  728. margin-top: 5px;
  729. -webkit-transition: width 150ms ease;
  730. }
  731. .expanded #tools_bottom_2 {
  732. width: 450px;
  733. }
  734. #tools_bottom #tools_bottom_2 .dropdown button {
  735. margin-top: 2px;
  736. }
  737. .dropdown li.tool_button {
  738. width: 24px;
  739. }
  740. #tools_bottom_2 .icon_label {
  741. display: block;
  742. margin: 3px 5px;
  743. padding: 0;
  744. }
  745. #tool_opacity { right: 0;}
  746. #tool_fill { left: 0; }
  747. #tool_stroke { left: 60px;}
  748. #fill_color, #stroke_color {
  749. height: 16px;
  750. width: 16px;
  751. border: 1px solid #808080;
  752. cursor: pointer;
  753. overflow: hidden;
  754. }
  755. #stroke_expand {
  756. width: 0;
  757. overflow: hidden;
  758. }
  759. #toggle_stroke_tools {
  760. position: absolute;
  761. right: 0;
  762. top: 0;
  763. bottom: 0;
  764. width: 25px;
  765. text-align: center;
  766. border-radius: 0 3px 3px 0;
  767. margin: 0;
  768. }
  769. #toggle_stroke_tools:before {
  770. content: '>>';
  771. letter-spacing: -3px;
  772. font-weight: bold;
  773. color: #666;
  774. }
  775. .expanded #tool_stroke.color_tool {
  776. width: 280px;
  777. }
  778. .expanded #toggle_stroke_tools:before {
  779. content: '<<';
  780. }
  781. #toggle_stroke_tools:hover {
  782. background: white;
  783. }
  784. .color_tool {
  785. position: absolute;
  786. overflow: hidden;
  787. background: #f0f0f0;
  788. height: 26px;
  789. line-height: 26px;
  790. border-radius: 3px;
  791. min-width: 52px;
  792. }
  793. #tool_stroke.color_tool {
  794. width: 130px;
  795. z-index: 2;
  796. -webkit-transition: width 150ms ease;
  797. -moz-transition: width 150ms ease;
  798. -o-transition: width 150ms ease;
  799. -ms-transition: width 150ms ease;
  800. transition: width 150ms ease;
  801. }
  802. .color_block {
  803. position: absolute;
  804. top: 0;
  805. left: 0;
  806. }
  807. .color_block svg {
  808. display: block;
  809. }
  810. .color_tool > * {
  811. float: left;
  812. margin-right: 5px;
  813. }
  814. .color_tool .dropdown > * {
  815. float: left;
  816. }
  817. .color_tool .stroke_label {
  818. margin-left: 25px;
  819. float: left;
  820. }
  821. .color_tool > .color_block {
  822. top: 3px;
  823. left: 29px;
  824. }
  825. .color_tool input {
  826. margin: 0;
  827. }
  828. #tool_opacity {
  829. overflow: visible;
  830. }
  831. @media screen and (max-width:1250px) {
  832. .expanded #palette_holder {
  833. left: 560px;
  834. overflow-x: scroll;
  835. padding: 0 5px;
  836. margin-top: 2px;
  837. height: 30px;
  838. }
  839. #tools_top {
  840. height: 71px;
  841. }
  842. #workarea, #sidepanels {
  843. top: 70px;
  844. }
  845. #rulers #ruler_corner,
  846. #rulers #ruler_x, #tools_left {
  847. top: 71px;
  848. }
  849. #rulers #ruler_y {
  850. top: 86px;
  851. }
  852. #cur_context_panel {
  853. top: 87px;
  854. }
  855. #selected_panel {
  856. clear: right;
  857. }
  858. }
  859. @media screen and (max-width:1100px) {
  860. #tools_bottom:not(.expanded) #palette_holder {
  861. left: 410px;
  862. overflow-x: scroll;
  863. padding: 0 5px;
  864. margin-top: 2px;
  865. height: 30px;
  866. }
  867. }
  868. /*–––––––––––––––––––––––––––––––––––––*/
  869. #option_lists ul {
  870. display: none;
  871. position: absolute;
  872. height: auto;
  873. z-index: 3;
  874. margin: -10px;
  875. list-style: none;
  876. padding-left: 0;
  877. }
  878. #option_lists .optcols2 {
  879. width: 70px;
  880. margin-left: -15px;
  881. }
  882. #option_lists .optcols3 {
  883. width: 90px;
  884. margin-left: -31px;
  885. }
  886. #option_lists .optcols4 {
  887. width: 130px;
  888. margin-left: -44px;
  889. }
  890. #option_lists ul[class^=optcols] li {
  891. float: left;
  892. }
  893. ul li.current {
  894. background-color: #F4E284;
  895. }
  896. #option_lists ul li {
  897. margin: 0;
  898. border-radius: 0;
  899. -moz-border-radius: 0;
  900. -webkit-border-radius: 0;
  901. }
  902. #tools_bottom .dropdown button {
  903. margin-top: 2px;
  904. }
  905. #opacity_dropdown li {
  906. width: 140px;
  907. }
  908. #copyright {
  909. text-align: right;
  910. padding-right: .3em;
  911. }
  912. #svg_source_editor {
  913. display: none;
  914. }
  915. .overlay {
  916. position: absolute;
  917. top: 0;
  918. right: 0;
  919. left: 0;
  920. bottom: 0;
  921. background-color: black;
  922. opacity: 0.6;
  923. z-index: 5;
  924. }
  925. #svg_source_editor #svg_source_container {
  926. position: absolute;
  927. top: 30px;
  928. left: 30px;
  929. right: 30px;
  930. bottom: 30px;
  931. background-color: #B0B0B0;
  932. opacity: 1.0;
  933. text-align: center;
  934. border: 1px outset #777;
  935. z-index: 6;
  936. }
  937. #save_output_btns {
  938. display: none;
  939. text-align: left;
  940. }
  941. #save_output_btns p {
  942. margin: .5em 1.5em;
  943. display: inline-block;
  944. }
  945. #bg_blocks {
  946. overflow: auto;
  947. margin-left: 30px;
  948. }
  949. #bg_blocks .color_block {
  950. position: static;
  951. }
  952. #svg_docprops #svg_docprops_container,
  953. #svg_prefs #svg_prefs_container {
  954. position: absolute;
  955. top: 50px;
  956. padding: 10px;
  957. background-color: #B0B0B0;
  958. border: 1px outset #777;
  959. opacity: 1.0;
  960. /* width: 450px;*/
  961. font-family: Verdana, Helvetica, sans-serif;
  962. font-size: .8em;
  963. z-index: 20001;
  964. }
  965. #svg_docprops .error {
  966. border: 1px solid red;
  967. padding: 3px;
  968. }
  969. #svg_docprops #resolution {
  970. max-width: 14em;
  971. }
  972. #tool_docprops_back,
  973. #tool_prefs_back {
  974. margin-left: 1em;
  975. overflow: auto;
  976. }
  977. #svg_docprops_container #svg_docprops_docprops,
  978. #svg_prefs #svg_docprops_prefs {
  979. float: left;
  980. width: 221px;
  981. margin: 5px .7em;
  982. overflow: hidden;
  983. }
  984. #svg_prefs_container fieldset + fieldset {
  985. float: right;
  986. }
  987. #svg_docprops legend,
  988. #svg_prefs legend {
  989. max-width: 195px;
  990. }
  991. #svg_docprops_docprops > legend,
  992. #svg_prefs_container > fieldset > legend {
  993. font-weight: bold;
  994. font-size: 1.1em;
  995. }
  996. #svg_docprops_container fieldset,
  997. #svg_prefs fieldset {
  998. padding: 5px;
  999. margin: 5px;
  1000. border: 1px solid #DDD;
  1001. }
  1002. #svg_docprops_container label,
  1003. #svg_prefs_container label {
  1004. display: block;
  1005. margin: .5em;
  1006. }
  1007. #svginfo_bg_note {
  1008. font-size: .9em;
  1009. font-style: italic;
  1010. color: #444;
  1011. }
  1012. #canvas_title, #canvas_bg_url {
  1013. display: block;
  1014. width: 96%;
  1015. }
  1016. #svg_source_editor form {
  1017. position: absolute;
  1018. top: 40px;
  1019. bottom: 30px;
  1020. width: 100%;
  1021. }
  1022. #svg_source_editor #svg_source_textarea {
  1023. position: relative;
  1024. width: 95%;
  1025. height: 95%;
  1026. padding: 5px;
  1027. font-size: 12px;
  1028. }
  1029. #svg_source_editor #tool_source_back {
  1030. text-align: left;
  1031. padding-left: 20px;
  1032. }
  1033. #svg_prefs_container div.color_block {
  1034. float: left;
  1035. margin: 2px;
  1036. padding: 20px;
  1037. }
  1038. #change_background div.cur_background {
  1039. border: 2px solid blue;
  1040. padding: 18px;
  1041. }
  1042. #background_img {
  1043. position: absolute;
  1044. top: 0;
  1045. left: 0;
  1046. text-align: left;
  1047. }
  1048. #svg_docprops button,
  1049. #svg_prefs button {
  1050. margin-top: 0;
  1051. margin-bottom: 5px;
  1052. }
  1053. #svg_docprops,
  1054. #svg_prefs {
  1055. display: none;
  1056. }
  1057. #image_save_opts label {
  1058. font-size: .9em;
  1059. }
  1060. #image_save_opts input {
  1061. margin-left: 0;
  1062. }
  1063. #tool_prefs_option {
  1064. float: right;
  1065. }
  1066. .toolbar_button button {
  1067. border:1px solid #dedede;
  1068. line-height:130%;
  1069. float: left;
  1070. background: #E8E8E8 none;
  1071. padding:5px 10px 5px 7px; /* Firefox */
  1072. line-height:17px; /* Safari */
  1073. margin: 5px 20px 0 0;
  1074. border: 1px #808080 solid;
  1075. border-top-color: #FFF;
  1076. border-left-color: #FFF;
  1077. border-radius: 5px;
  1078. -moz-border-radius: 5px;
  1079. -webkit-border-radius: 5px;
  1080. }
  1081. .toolbar_button button:hover {
  1082. border: 1px #e0a874 solid;
  1083. border-top-color: #fcd9ba;
  1084. border-left-color: #fcd9ba;
  1085. background-color: #FFC;
  1086. }
  1087. .toolbar_button button:active {
  1088. background-color: #F4E284;
  1089. border-left: 1px solid #663300;
  1090. border-top: 1px solid #663300;
  1091. }
  1092. .toolbar_button button .svg_icon {
  1093. margin: 0 3px -3px 0 !important;
  1094. padding: 0;
  1095. border: none;
  1096. width: 16px;
  1097. height: 16px;
  1098. }
  1099. #dialog_box {
  1100. display: none;
  1101. }
  1102. #dialog_content {
  1103. height: 95px;
  1104. margin: 10px 10px 5px 10px;
  1105. background: #DDD;
  1106. overflow: auto;
  1107. text-align: left;
  1108. border: 1px solid #B0B0B0;
  1109. }
  1110. #dialog_content.prompt {
  1111. height: 75px;
  1112. }
  1113. #dialog_content p {
  1114. margin: 10px;
  1115. line-height: 1.3em;
  1116. }
  1117. #dialog_container {
  1118. position: absolute;
  1119. font-family: Verdana;
  1120. text-align: center;
  1121. left: 50%;
  1122. top: 50%;
  1123. width: 300px;
  1124. margin-left: -150px;
  1125. height: 150px;
  1126. margin-top: -80px;
  1127. position: fixed;
  1128. z-index: 50001;
  1129. background: #CCC;
  1130. border: 1px outset #777;
  1131. font-family:Verdana,Helvetica,sans-serif;
  1132. font-size:0.8em;
  1133. }
  1134. #dialog_container, #dialog_content {
  1135. border-radius: 5px;
  1136. -moz-border-radius: 5px;
  1137. -webkit-border-radius: 5px;
  1138. }
  1139. #dialog_buttons input[type=text] {
  1140. width: 90%;
  1141. display: block;
  1142. margin: 0 0 5px 11px;
  1143. }
  1144. #dialog_buttons input[type=button] {
  1145. margin: 0 1em;
  1146. }
  1147. /* Slider
  1148. ----------------------------------*/
  1149. .ui-slider { position: relative; text-align: left; }
  1150. .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
  1151. .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; }
  1152. .ui-slider-horizontal { height: .8em; }
  1153. .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
  1154. .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
  1155. .ui-slider-horizontal .ui-slider-range-min { left: 0; }
  1156. .ui-slider-horizontal .ui-slider-range-max { right: 0; }
  1157. .ui-slider-vertical { width: .8em; height: 100px; }
  1158. .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
  1159. .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
  1160. .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
  1161. .ui-slider-vertical .ui-slider-range-max { top: 0; }
  1162. .ui-slider {
  1163. border: 1px solid #B0B0B0;
  1164. }
  1165. .ui-slider-handle {
  1166. background: #B0B0B0;
  1167. border: 1px solid #000;
  1168. }
  1169. /* Necessary to keep the flyouts sized properly */
  1170. .tools_flyout .tool_button,
  1171. .tools_flyout .tool_flyout {
  1172. padding: 2px;
  1173. width: 24px;
  1174. height: 24px;
  1175. margin: 0;
  1176. border-radius: 0px;
  1177. -moz-border-radius: 0px;
  1178. -webkit-border-radius: 0px;
  1179. }
  1180. /* Generic context menu styles */
  1181. .contextMenu {
  1182. position: absolute;
  1183. z-index: 99999;
  1184. border: solid 1px rgba(0,0,0,.33);
  1185. background: rgba(255,255,255,.95);
  1186. padding: 5px 0;
  1187. margin: 0px;
  1188. display: none;
  1189. font: 12px/15px Lucida Sans, Helvetica, Verdana, sans-serif;
  1190. border-radius: 5px;
  1191. -moz-border-radius: 5px;
  1192. -moz-box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  1193. -webkit-box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  1194. box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  1195. }
  1196. .contextMenu LI {
  1197. list-style: none;
  1198. padding: 0px;
  1199. margin: 0px;
  1200. }
  1201. .contextMenu .shortcut {
  1202. width: 115px;
  1203. text-align:right;
  1204. float:right;
  1205. }
  1206. .contextMenu A {
  1207. -moz-user-select: none;
  1208. -webkit-user-select: none;
  1209. color: #222;
  1210. text-decoration: none;
  1211. display: block;
  1212. line-height: 20px;
  1213. height: 20px;
  1214. background-position: 6px center;
  1215. background-repeat: no-repeat;
  1216. outline: none;
  1217. padding: 0px 15px 1px 20px;
  1218. }
  1219. .contextMenu LI.hover A {
  1220. background-color: #2e5dea;
  1221. color: white;
  1222. cursor: default;
  1223. }
  1224. .contextMenu LI.disabled A {
  1225. color: #999;
  1226. }
  1227. .contextMenu LI.hover.disabled A {
  1228. background-color: transparent;
  1229. }
  1230. .contextMenu LI.separator {
  1231. border-top: solid 1px #E3E3E3;
  1232. padding-top: 5px;
  1233. margin-top: 5px;
  1234. }
  1235. /*
  1236. Adding Icons
  1237. You can add icons to the context menu by adding
  1238. classes to the respective LI element(s)
  1239. */
  1240. /*
  1241. .contextMenu LI.edit A { background-image: url(images/page_white_edit.png); }
  1242. .contextMenu LI.cut A { background-image: url(images/cut.png); }
  1243. .contextMenu LI.copy A { background-image: url(images/page_white_copy.png); }
  1244. .contextMenu LI.paste A { background-image: url(images/page_white_paste.png); }
  1245. .contextMenu LI.delete A { background-image: url(images/page_white_delete.png); }
  1246. .contextMenu LI.quit A { background-image: url(images/door.png); }
  1247. */