editor.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Editor style
  2. // -------------------------
  3. .editor {
  4. background-color: @editorBackground;
  5. border: 1px solid darken(@editorBackground, 10%);
  6. border-radius: @baseBorderRadius;
  7. margin-bottom: @baseLineHeight;
  8. .editor-error {
  9. padding: @editorPadding;
  10. padding-bottom: 0px;
  11. margin-bottom: @editorPadding * -1;
  12. .help-block {
  13. color: @red;
  14. font-weight: bold;
  15. }
  16. }
  17. .editor-input {
  18. padding: @editorPadding;
  19. &>div {
  20. margin-right: 22px;
  21. position: relative;
  22. textarea {
  23. border: none;
  24. box-shadow: none;
  25. margin: @editorPadding * -1;
  26. padding: @editorPadding;
  27. padding-right: 32px;
  28. width: 100%;
  29. font-family: @monoFontFamily;
  30. }
  31. .editor-zen-on {
  32. display: none;
  33. position: absolute;
  34. top: -4px;
  35. right: -26px;
  36. padding-left: 8px;
  37. a {
  38. border-radius: 4px;
  39. display: block;
  40. .opacity(50);
  41. padding: 2px 0px;
  42. padding-bottom: 3px;
  43. width: 29px;
  44. color: @textColor;
  45. font-size: 24px;
  46. text-align: center;
  47. &:hover, &:active {
  48. box-shadow: 0px 0px 3px @grayLight;
  49. text-decoration: none;
  50. }
  51. }
  52. }
  53. }
  54. }
  55. .editor-upload {
  56. border-top: 1px solid darken(@editorBackground, 10%);
  57. overflow: auto;
  58. padding: @editorPadding;
  59. }
  60. .editor-attachments {
  61. margin: 0px;
  62. li {
  63. border-top: 1px solid darken(@editorBackground, 6%);
  64. overflow: auto;
  65. padding: @editorPadding;
  66. .attachment-image {
  67. float: left;
  68. i {
  69. display: block;
  70. height: 40px;
  71. width: 40px;
  72. color: @grayLight;
  73. font-size: 42px;
  74. text-align: center;
  75. }
  76. img {
  77. background-size: cover;
  78. border-radius: 3px;
  79. height: 40px;
  80. width: 40px;
  81. }
  82. }
  83. .attachment-body {
  84. margin-left: 52px;
  85. h4 {
  86. margin: 0px;
  87. padding: 0px;
  88. font-size: @baseFontSize;
  89. .attachment-removed-message {
  90. color: @red;
  91. }
  92. }
  93. .attachment-details {
  94. color: @grayLight;
  95. font-size: @fontSizeSmall;
  96. a:link, a:visited {
  97. color: @gray;
  98. }
  99. a:hover, a:active {
  100. color: @grayDarker;
  101. }
  102. }
  103. }
  104. .attachment-actions {
  105. float: right;
  106. margin-top: 3px;
  107. .btn {
  108. margin-left: 8px;
  109. &.btn-insert {
  110. color: lighten(@linkColor, 20%);
  111. &:hover, &:active {
  112. color: @linkColor;
  113. }
  114. }
  115. &.btn-remove {
  116. color: lighten(@red, 20%);
  117. &:hover, &:active {
  118. color: @red;
  119. }
  120. }
  121. }
  122. }
  123. &.attachment-removed {
  124. .opacity(70);
  125. }
  126. }
  127. }
  128. .editor-actions {
  129. border-top: 1px solid darken(@editorBackground, 10%);
  130. overflow: auto;
  131. padding: @editorPadding;
  132. &>.btn {
  133. margin-left: @baseFontSize;
  134. }
  135. .editor-tools {
  136. margin: 0px;
  137. margin-right: @editorPadding;
  138. li {
  139. float: left;
  140. margin-right: @editorPadding;
  141. .btn {
  142. display: block;
  143. padding-left: 0px;
  144. padding-right: 0px;
  145. width: 28px;
  146. text-align: center;
  147. i {
  148. margin: 0px;
  149. }
  150. }
  151. }
  152. }
  153. .editor-help {
  154. line-height: @baseLineHeight + @editorPadding;
  155. }
  156. }
  157. }
  158. .form-container {
  159. .editor {
  160. border-color: darken(@editorBackground, 20%);
  161. .editor-actions {
  162. border-top-color: darken(@editorBackground, 20%);
  163. }
  164. }
  165. }
  166. .zen-overlay {
  167. display: none;
  168. position: fixed;
  169. top:0;
  170. left:0;
  171. right:0;
  172. bottom:0;
  173. &>div {
  174. background: darken(@white, 3%);
  175. position:absolute;
  176. top:0;
  177. left:0;
  178. right:0;
  179. bottom:0;
  180. z-index: @zindexZenWriting;
  181. .container {
  182. height: 100%;
  183. position: relative;
  184. textarea {
  185. background: none;
  186. border: none;
  187. border-radius: 0;
  188. box-shadow: none;
  189. display: block;
  190. margin: 0 auto;
  191. margin-top: 2%;
  192. padding: 0px @fontSizeLarge;
  193. resize: none;
  194. width: 90%;
  195. height: 91%;
  196. color: @gray;
  197. font-family: @monoFontFamily;
  198. font-size: @baseFontSize * 1.5;
  199. line-height: @baseLineHeight * 1.5;
  200. }
  201. .overlay-options {
  202. background-color: @grayDarker;
  203. border-radius: 6px;
  204. position: absolute;
  205. top: 4%;
  206. right: @fontSizeLarge - 26px;
  207. ul {
  208. margin: 0px;
  209. padding: 4px;
  210. list-style: none;
  211. li {
  212. margin: 4px;
  213. padding: 0px;
  214. a {
  215. border-radius: 3px;
  216. display: block;
  217. padding: 6px 0px;
  218. width: 32px;
  219. color: @grayLight;
  220. font-size: @fontSizeLarge;
  221. text-align: center;
  222. &:hover {
  223. color: @white;
  224. text-decoration: none;
  225. }
  226. &:active {
  227. background-color: @grayLighter;
  228. color: @textColor;
  229. }
  230. }
  231. hr {
  232. border-color: @grayDark;
  233. border-bottom: none;
  234. margin: 0px;
  235. }
  236. }
  237. }
  238. }
  239. }
  240. }
  241. }