scrawl.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /*common
  2. */
  3. body {
  4. margin: 0;
  5. a{text-decoration: none;}
  6. em{font-style: normal;}
  7. .border_style{
  8. border: 1px solid #ccc;
  9. border-radius: 5px;
  10. box-shadow:2px 2px 5px #d3d6da;
  11. }
  12. em {font-style: normal;}
  13. .ke-dialog-body {
  14. padding-top: 8px;
  15. }
  16. .scrawl-main {
  17. padding: 0px 8px;
  18. zoom: 1;
  19. overflow: hidden;
  20. max-width: 1000px;
  21. // 绘图区域
  22. .hot {
  23. float:left;
  24. .drawBoard{
  25. position: relative;
  26. cursor: crosshair;
  27. .brushBorad{
  28. position: absolute;
  29. left:0;
  30. top:0;
  31. z-index: 998;
  32. }
  33. .picBoard{
  34. border: none;
  35. text-align: center;
  36. cursor: default;
  37. }
  38. }
  39. .operateBar{
  40. margin-top:10px;
  41. font-size:12px;
  42. text-align: center;
  43. span {margin-left: 10px;}
  44. button {
  45. background:#e1e1e1;
  46. border: 1px solid #cccccc;
  47. margin: 0px 5px;
  48. cursor:default;
  49. }
  50. .prevStep {
  51. .icon {
  52. display: inline-block;
  53. width:16px;height:16px;
  54. background-image: url('images/undo.png');
  55. }
  56. }
  57. .prevStep.active {
  58. cursor: pointer;
  59. background: #FFFFFF;
  60. border-color: #56CCCC;
  61. .icon {
  62. background-image: url('images/undoH.png');
  63. }
  64. }
  65. .nextStep {
  66. .icon {
  67. display: inline-block;
  68. width:16px;
  69. height:16px;
  70. background-image: url('images/redo.png');
  71. }
  72. }
  73. .nextStep.active {
  74. cursor: pointer;
  75. background: #FFFFFF;
  76. border-color: #56CCCC;
  77. .icon {
  78. background-image: url('images/redoH.png');
  79. }
  80. }
  81. .clearBoard {
  82. cursor: default;
  83. .icon {
  84. display: inline-block;
  85. width:16px;height:16px;
  86. background-image: url('images/empty.png');
  87. }
  88. }
  89. .clearBoard.active {
  90. cursor: pointer;
  91. background: #FFFFFF;
  92. border-color: #56CCCC;
  93. .icon {
  94. background-image: url('images/emptyH.png');
  95. }
  96. }
  97. .scaleBoard {
  98. .icon {
  99. display: inline-block;
  100. width:16px;height:16px;
  101. background-image: url('images/scale.png');
  102. cursor:default;}
  103. .iconH {
  104. background-image: url('images/scaleH.png');
  105. }
  106. .text{
  107. color:#ccc;
  108. cursor:default;}
  109. }
  110. }
  111. }
  112. // 绘图工具
  113. .drawToolbar {
  114. float:right;
  115. width:110px;
  116. height:320px;
  117. overflow: hidden;
  118. .brushIcon {
  119. display: inline-block;
  120. width:16px;height:16px;
  121. background-image: url('images/brush.png')}
  122. .eraserIcon {
  123. display: inline-block;
  124. width:16px;height:16px;
  125. background-image: url('images/eraser.png')}
  126. .blurIcon {
  127. display: inline-block;
  128. width:16px;height:16px;
  129. background: url(images/blur.png) -2px -2px;
  130. background-size: 22px 20px;
  131. }
  132. .colorBar {
  133. margin-top:10px;
  134. font-size: 12px;
  135. text-align: center;
  136. zoom: 1;
  137. overflow: hidden;
  138. span {
  139. float: left;
  140. margin: 2px 3px;
  141. width: 10px;
  142. height: 10px;
  143. border:1px solid #c1c1c1;
  144. border-radius: 3px;
  145. cursor: pointer;
  146. }
  147. .active {
  148. border-color: #FF0000;
  149. box-shadow:2px 2px 5px #d3d6da;
  150. }
  151. }
  152. .sectionBar {
  153. margin-top:15px;
  154. font-size: 12px;
  155. text-align: center;
  156. a {
  157. display:inline-block;
  158. width:10px;
  159. height:12px;
  160. color: #888;
  161. text-indent: -999px;
  162. opacity: 0.3
  163. }
  164. .size1 {background: url('images/size.png') 1px center no-repeat ;}
  165. .size2 {background: url('images/size.png') -10px center no-repeat;}
  166. .size3 {background: url('images/size.png') -22px center no-repeat;}
  167. .size4 {background: url('images/size.png') -35px center no-repeat;}
  168. .icon {
  169. position: relative;
  170. top:3px;
  171. }
  172. .clearSetting {
  173. .icon {
  174. display: inline-block;
  175. width:16px;height:16px;
  176. background-image: url('images/init.png');
  177. background-size: 16px 16px;
  178. }
  179. }
  180. .addImgH {
  181. position: relative;
  182. .icon {
  183. display: inline-block;
  184. width:16px;height:16px;
  185. background-image: url('images/addimg.png');
  186. cursor:default;
  187. }
  188. .upload {
  189. position: absolute;
  190. left: 18px;top: -1px;
  191. width: 75px;
  192. height: 21px;
  193. opacity: 0;
  194. cursor: pointer;
  195. opacity: 0;
  196. }
  197. }
  198. .removeImg {
  199. .icon {
  200. display: inline-block;
  201. width:16px;height:16px;
  202. background-image: url('images/delimg.png');
  203. cursor:default;
  204. }
  205. .text{color:#ccc;cursor:default;}
  206. } //end removeImg
  207. .removeImg.active {
  208. cursor: pointer;
  209. .icon {
  210. background-image: url('images/delimgH.png');
  211. }
  212. .text{color:#000;cursor:default;}
  213. } //end removeImg
  214. //保存图片
  215. .saveImg {
  216. cursor: pointer;
  217. .icon {
  218. display: inline-block;
  219. width:16px;height:16px;
  220. background-image: url('images/save.png');
  221. background-size: 18px 18px;
  222. cursor:default;
  223. }
  224. }
  225. }
  226. #clearSetting {cursor: pointer;}
  227. }
  228. }
  229. }