TextEditor.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. #sg-editing-textEditor-container {
  2. position: absolute;
  3. top: 0px;
  4. left: 0px;
  5. font-family: Dosis, sans-serif;
  6. letter-spacing: 1px;
  7. }
  8. #sg-editing-textEditor {
  9. position: absolute;
  10. }
  11. /***********************
  12. * Text Editing Toolbar
  13. ***********************/
  14. #textShapeToolbar {
  15. position: absolute;
  16. /*
  17. top: -74px;
  18. right: 0px;
  19. */
  20. width: 300px;
  21. /*
  22. background: background: rgb(255,255,255);
  23. background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(239,239,239,1) 100%);
  24. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(239,239,239,1)));
  25. background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%);
  26. background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%);
  27. border: 2px solid rgb(255, 41, 61);
  28. */
  29. -webkit-user-select: none;
  30. -moz-user-select: none;
  31. -ms-user-select: none;
  32. user-select: none;
  33. /*padding: 0 0 5px 5px;*/
  34. padding: 0;
  35. }
  36. #textShapeToolbar .btn-group {
  37. float: right;
  38. position: relative;
  39. height: 30px;
  40. margin: 5px 0 0 5px;
  41. }
  42. #textShapeToolbar .dropdown-toggle {
  43. padding-right: 10px;
  44. }
  45. #textShapeToolbar .dropdown-toggle.open {
  46. background: #B10A1B;
  47. }
  48. #textShapeToolbar .dropdown-toggle.open:not(.right):after {
  49. position: absolute;
  50. left: 0;
  51. bottom: -11px;
  52. content: "";
  53. width: 0;
  54. height: 0;
  55. border-style: solid;
  56. border-width: 0 15px 10px 15px;
  57. border-color: transparent transparent rgb(183, 12, 29) transparent;
  58. z-index: 2;
  59. }
  60. #textShapeToolbar .dropdown-toggle.right {
  61. padding-right: 18px;
  62. }
  63. #textShapeToolbar .dropdown-toggle .caret {
  64. position: absolute;
  65. right: 3px;
  66. top: 12px;
  67. border-right: 6px solid transparent;
  68. border-left: 6px solid transparent;
  69. border-top: 6px solid #fff;
  70. }
  71. #textShapeToolbar .dropdown-toggle .caretRight {
  72. position: absolute;
  73. right: 3px;
  74. top: 9px;
  75. border-bottom: 6px solid transparent;
  76. border-left: 6px solid #fff;
  77. border-top: 6px solid transparent;
  78. }
  79. #textShapeToolbar .dropdown-menu {
  80. position: absolute;
  81. top: 41px;
  82. left: -20px;
  83. width: 200px;
  84. max-height: 200px;
  85. margin: 0;
  86. padding: 0;
  87. overflow: auto;
  88. background: #B10A1B;
  89. z-index: 1;
  90. border: 2px solid #B10A1B;
  91. list-style: none;
  92. display: none;
  93. }
  94. #textShapeToolbar .dropdown-menu.small {
  95. width: 84px;
  96. }
  97. #textShapeToolbar .dropdown-menu.input-append {
  98. display: none !important;
  99. color: #fff;
  100. background-color: rgb(255, 41, 61);
  101. padding: 4px;
  102. }
  103. #textShapeToolbar .dropdown-menu.input-append input {
  104. color: #000;
  105. }
  106. #textShapeToolbar .dropdown-menu.active {
  107. display: block !important;
  108. }
  109. #textShapeToolbar .dropdown-menu li, #textShapeToolbar .dropdown-menu li a {
  110. display: block;
  111. color: #fff;
  112. height: auto;
  113. }
  114. #textShapeToolbar .dropdown-menu li a {
  115. padding: 3px 6px;
  116. text-decoration: none;
  117. }
  118. #textShapeToolbar .dropdown-menu li a.wysihtml5-command-active {
  119. background: rgb(255, 41, 61);
  120. }
  121. #textShapeToolbar .dropdown-menu li a.wysihtml5-command-active:hover {
  122. background: #B10A1B;
  123. }
  124. #textShapeToolbar a {
  125. display: inline-block;
  126. background: rgb(255, 41, 61);
  127. cursor: pointer;
  128. height: 30px;
  129. }
  130. #textShapeToolbar a:hover {
  131. background: #B10A1B;
  132. }
  133. #textShapeToolbar a.wysihtml5-command-active {
  134. background: #B10A1B;
  135. }
  136. #textShapeToolbar a i {
  137. display: inline-block;
  138. width: 30px;
  139. height: 30px;
  140. background-size: 30px 30px;
  141. background-position: center;
  142. background-repeat: no-repeat;
  143. }
  144. #textShapeToolbar a i.icon-font {
  145. background-image: url(./icons/font.face.svg);
  146. }
  147. #textShapeToolbar a i.icon-text-height {
  148. background-image: url(./icons/font.size.svg);
  149. }
  150. #textShapeToolbar a i.icon-bold {
  151. background-image: url(./icons/font.style.bold.svg);
  152. }
  153. #textShapeToolbar a i.icon-italic {
  154. background-image: url(./icons/font.style.italic.svg);
  155. }
  156. #textShapeToolbar a i.icon-strikethrough {
  157. background-image: url(./icons/font.style.strikeout.svg);
  158. }
  159. #textShapeToolbar a i.icon-underline {
  160. background-image: url(./icons/font.style.underline.svg);
  161. }
  162. #textShapeToolbar a i.icon-list-ul {
  163. background-image: url(./icons/list.unordered.svg);
  164. }
  165. #textShapeToolbar a i.icon-list-ol {
  166. background-image: url(./icons/list.ordered.svg);
  167. }
  168. #textShapeToolbar a i.icon-align-left {
  169. background-image: url(./icons/align.left.svg);
  170. }
  171. #textShapeToolbar a i.icon-align-center {
  172. background-image: url(./icons/align.center.svg);
  173. }
  174. #textShapeToolbar a i.icon-align-right {
  175. background-image: url(./icons/align.right.svg);
  176. }
  177. #textShapeToolbar a i.icon-align-justify {
  178. background-image: url(./icons/align.justify.svg);
  179. }
  180. #textShapeToolbar a i.icon-indent-right {
  181. background-image: url(./icons/indent.right.svg);
  182. }
  183. #textShapeToolbar a i.icon-indent-left {
  184. background-image: url(./icons/indent.left.svg);
  185. }
  186. #textShapeToolbar a.hyperlink i.icon-link {
  187. background-image: url(./icons/link.svg);
  188. }
  189. #textShapeToolbar a.hyperlink.wysihtml5-command-active i.icon-link {
  190. background-image: url(./icons/unlink.svg);
  191. }
  192. /*
  193. #textShapeToolbar a i.icon-remove-link {
  194. background-image: url(./icons/unlink.svg);
  195. }
  196. */
  197. #textShapeToolbar a i.icon-color {
  198. background-image: url(./icons/font.color.svg);
  199. }
  200. #textShapeToolbar .sg-colorpicker-container-text {
  201. position: absolute;
  202. background-color: rgb(255, 41, 61);
  203. border: 2px solid rgb(183, 12, 29);
  204. padding: 5px;
  205. -moz-box-sizing: border-box;
  206. -webkit-box-sizing: border-box;
  207. box-sizing: border-box;
  208. top: 41px;
  209. left: -20px;
  210. display: none;
  211. }
  212. #textShapeToolbar .sg-colorpicker-container-text.active {
  213. display: block;
  214. }
  215. #textShapeToolbar .sg-colorpicker-container-text.active:after {
  216. content: '';
  217. position: absolute;
  218. top: -12px;
  219. left: 18px;
  220. width: 0;
  221. height: 0;
  222. border-style: solid;
  223. border-width: 0 15px 10px 15px;
  224. border-color: transparent transparent rgb(183, 12, 29) transparent;
  225. };