w-e-text.styl 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .w-e-toolbar,
  2. .w-e-text-container,
  3. .w-e-menu-panel {
  4. padding: 0;
  5. margin: 0;
  6. box-sizing: border-box;
  7. background-color: #fff;
  8. h1 {
  9. font-size: 32px !important;
  10. }
  11. h2 {
  12. font-size: 24px !important;
  13. }
  14. h3 {
  15. font-size: 18.72px !important;
  16. }
  17. h4 {
  18. font-size: 16px !important;
  19. }
  20. h5 {
  21. font-size: 13.28px !important;
  22. }
  23. p {
  24. font-size: 16px !important;
  25. }
  26. /*表情菜单样式*/
  27. .eleImg{
  28. cursor: pointer;
  29. display: inline-block;
  30. font-size: 18px;
  31. padding: 0 3px;
  32. }
  33. * {
  34. padding: 0;
  35. margin: 0;
  36. box-sizing: border-box;
  37. }
  38. /*分割线样式*/
  39. hr{
  40. cursor: pointer;
  41. display: block;
  42. height: 0px;
  43. border: 0;
  44. border-top: 3px solid #ccc;
  45. margin: 20px 0;
  46. }
  47. }
  48. .w-e-clear-fix:after {
  49. content: "";
  50. display: table;
  51. clear: both;
  52. }
  53. .w-e-drop-list-item {
  54. position: relative;
  55. top: 1px;
  56. padding-right: 7px;
  57. color: #333 !important;
  58. }
  59. .w-e-drop-list-tl {
  60. padding-left: 10px;
  61. text-align: left;
  62. }
  63. .w-e-text-container {
  64. position: relative;
  65. height: 100%;
  66. .w-e-progress {
  67. position: absolute;
  68. background-color: #1e88e5;
  69. top: 0;
  70. left: 0;
  71. height: 1px;
  72. }
  73. .placeholder {
  74. color: #D4D4D4;
  75. position: absolute;
  76. font-size: 11pt;
  77. line-height: 22px;
  78. left: 10px;
  79. top: 10px;
  80. user-select: none;
  81. z-index: -1;
  82. }
  83. }
  84. .w-e-text {
  85. //padding: 0 10px;
  86. //overflow-y: auto;
  87. p,h1,h2,h3,h4,h5,table,pre {
  88. margin: 10px 0;
  89. line-height: 1.5;
  90. }
  91. ul, ol {
  92. margin: 10px 0 10px 20px;
  93. }
  94. blockquote {
  95. display: block;
  96. border-left: 8px solid #d0e5f2;
  97. padding: 5px 10px;
  98. margin: 10px 0;
  99. line-height: 1.4;
  100. font-size: 100%;
  101. background-color: #f1f1f1;
  102. }
  103. code {
  104. display: inline-block;
  105. background-color: #f1f1f1;
  106. border-radius: 3px;
  107. padding: 3px 5px;
  108. margin: 0 3px;
  109. }
  110. pre {
  111. code {
  112. display: block;
  113. }
  114. }
  115. table {
  116. border-top: 1px solid #ccc;
  117. border-left: 1px solid #ccc;
  118. td,th {
  119. border-bottom: 1px solid #ccc;
  120. border-right: 1px solid #ccc;
  121. padding: 3px 5px;
  122. min-height: 30px;
  123. height: 30px;
  124. }
  125. th {
  126. border-bottom: 2px solid #ccc;
  127. text-align: center;
  128. background-color: #f1f1f1;
  129. }
  130. }
  131. &:focus {
  132. outline: none;
  133. }
  134. img {
  135. cursor: pointer;
  136. &:hover {
  137. box-shadow: 0 0 5px #333;
  138. }
  139. }
  140. .w-e-todo {
  141. margin:0 0 0 20px;
  142. li {
  143. list-style:none;
  144. font-size: 1em;
  145. span:nth-child(1) {
  146. position: relative;
  147. left: -18px;
  148. input {
  149. position: absolute;
  150. margin-right:3px;
  151. }
  152. // 防止其他样式通过属性选择器重置input样式
  153. input[type=checkbox] {
  154. top: 50%;
  155. margin-top: -6px;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. .w-e-tooltip {
  162. position: absolute;
  163. display: flex;
  164. color: #f1f1f1;
  165. background-color: rgba(0,0,0,.75);
  166. box-shadow: 0 2px 8px 0 rgba(0,0,0,.15);
  167. border-radius: 4px;
  168. padding: 4px 5px 6px;
  169. justify-content: center;
  170. align-items: center;
  171. }
  172. // 下箭头
  173. .w-e-tooltip-up::after {
  174. content: "";
  175. position: absolute;
  176. top: 100%;
  177. left: 50%;
  178. margin-left: -5px;
  179. border: 5px solid rgba(0,0,0,0);
  180. border-top-color: rgba(0,0,0,.73);
  181. }
  182. // 上箭头
  183. .w-e-tooltip-down::after {
  184. content: "";
  185. position: absolute;
  186. bottom: 100%;
  187. left: 50%;
  188. margin-left: -5px;
  189. border: 5px solid rgba(0,0,0,0);
  190. border-bottom-color: rgba(0,0,0,.73);
  191. }
  192. .w-e-tooltip-item-wrapper {
  193. cursor: pointer;
  194. font-size: 14px;
  195. margin: 0 5px;
  196. &:hover {
  197. color: #ccc;
  198. text-decoration: underline;
  199. }
  200. }
  201. .w-e-text-container {
  202. overflow: hidden;
  203. }
  204. .w-e-img-drag-mask {
  205. position: absolute;
  206. z-index: 1;
  207. border: 1px dashed #ccc;
  208. box-sizing: border-box;
  209. .w-e-img-drag-rb {
  210. position: absolute;
  211. right: -5px;
  212. bottom: -5px;
  213. width: 16px;
  214. height: 16px;
  215. border-radius: 50%;
  216. background: #ccc;
  217. cursor: se-resize;
  218. }
  219. .w-e-img-drag-show-size {
  220. min-width: 110px;
  221. height: 22px;
  222. line-height: 22px;
  223. font-size: 14px;
  224. color: #999;
  225. position: absolute;
  226. left: 0;
  227. top: 0;
  228. background-color: #999;
  229. color: #fff;
  230. border-radius: 2px;
  231. padding: 0 5px;
  232. }
  233. }