editor.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. //
  2. // Editor
  3. // --------------------------------------------------
  4. @editor-border: darken(@gray-lighter, 15%);
  5. .editor-border {
  6. background-color: #fff;
  7. border: 1px solid @editor-border;
  8. border-radius: @border-radius-base;
  9. }
  10. .editor-border .form-control {
  11. // remove border and resizing
  12. border: none;
  13. resize: none;
  14. // remove shadow from control
  15. &, &:focus, &:active {
  16. .box-shadow(none);
  17. }
  18. }
  19. // Footer styles
  20. .editor-footer {
  21. border-top: 1px solid @editor-border;
  22. padding: @padding-base-vertical @padding-base-horizontal;
  23. overflow: auto;
  24. .pull-left {
  25. margin-right: @padding-base-horizontal;
  26. }
  27. .pull-right {
  28. margin-left: @padding-base-horizontal;
  29. }
  30. .btn-icon .material-icon {
  31. margin-bottom: -2px;
  32. }
  33. // center buttons on small devices
  34. @media screen and (max-width: @screen-sm-max) {
  35. .buttons-list {
  36. float: none !important;
  37. margin: 0px;
  38. margin-bottom: @line-height-computed / 2;
  39. .btn {
  40. display: inline-block;
  41. float: none !important;
  42. margin: @line-height-computed / 3;
  43. }
  44. }
  45. .btn-protect {
  46. .btn-text {
  47. margin-left: @padding-small-horizontal;
  48. }
  49. .material-icon {
  50. position: relative;
  51. bottom: 2px;
  52. width: 14px;
  53. height: 14px;
  54. font-size: 14px;
  55. line-height: 14px;
  56. }
  57. }
  58. }
  59. }
  60. @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
  61. .buttons-list .btn {
  62. &:first-child {
  63. margin-left: 0px;
  64. }
  65. }
  66. }
  67. // make lock button full width
  68. @media screen and (max-width: @screen-xs-max) {
  69. .buttons-list {
  70. text-align: center;
  71. .btn-protect {
  72. display: block;
  73. float: none !important;
  74. width: 100%;
  75. margin: 0px;
  76. margin-top: @line-height-computed / 2;
  77. }
  78. }
  79. }
  80. // Attachments list
  81. .editor-attachments-list {
  82. margin: 0px;
  83. padding: 0px;
  84. li {
  85. margin: 0px;
  86. }
  87. }
  88. .editor-attachment-complete {
  89. border-top: 1px solid @editor-border;
  90. padding: @padding-base-vertical 0px;
  91. padding-right: @padding-base-horizontal;
  92. .editor-attachment-image {
  93. float: left;
  94. width: 50px;
  95. a {
  96. background-size: cover;
  97. background-position: center;
  98. border-radius: @border-radius-small;
  99. display: block;
  100. margin: 0px auto;
  101. width: 36px;
  102. height: 36px;
  103. }
  104. }
  105. .editor-attachment-icon {
  106. float: left;
  107. width: 50px;
  108. text-align: center;
  109. .material-icon {
  110. position: relative;
  111. top: 2px;
  112. height: 28px;
  113. width: 28px;
  114. font-size: 28px;
  115. line-height: 28px;
  116. }
  117. }
  118. .editor-attachment-details {
  119. margin-left: 50px;
  120. h4, p {
  121. margin: 0px;
  122. padding: 0px;
  123. font-size: @font-size-base;
  124. }
  125. p {
  126. margin-top: @padding-base-vertical / 2;
  127. color: @gray-light;
  128. font-size: @font-size-small;
  129. }
  130. abbr {
  131. white-space: nowrap;
  132. }
  133. }
  134. }
  135. .editor-attachment-actions {
  136. @media screen and (min-width: @screen-sm-min) {
  137. padding-top: 3px;
  138. }
  139. @media screen and (max-width: @screen-xs-max) {
  140. padding-left: @padding-base-horizontal;
  141. padding-right: @padding-base-horizontal;
  142. }
  143. }
  144. .editor-attachment-error {
  145. border-top: 1px solid @editor-border;
  146. padding: @padding-base-vertical 0px;
  147. padding-right: @padding-base-horizontal;
  148. }
  149. .editor-attachment-error-icon {
  150. float: left;
  151. width: 50px;
  152. text-align: center;
  153. .material-icon {
  154. position: relative;
  155. top: 2px;
  156. height: 28px;
  157. width: 28px;
  158. font-size: 28px;
  159. line-height: 28px;
  160. }
  161. }
  162. .editor-attachment-error-message {
  163. margin-left: 50px;
  164. padding: @padding-base-vertical 0px;
  165. position: relative;
  166. h4, p {
  167. margin: 0px;
  168. padding: 0px;
  169. font-size: @font-size-base;
  170. }
  171. p {
  172. margin-top: @padding-base-vertical / 2;
  173. font-size: @font-size-small;
  174. }
  175. .btn {
  176. position: absolute;
  177. top: @padding-base-vertical + 3px;
  178. right: @padding-base-horizontal;
  179. @media screen and (max-width: @screen-xs-max) {
  180. display: block;
  181. margin-top: @line-height-computed / 2;
  182. position: static;
  183. }
  184. }
  185. }
  186. .editor-attachment-progress-bar {
  187. background: @editor-border;
  188. overflow: auto;
  189. }
  190. .editor-attachment-progress {
  191. background: @brand-primary;
  192. float: left;
  193. height: 1px;
  194. }
  195. .editor-attachment-upload-message {
  196. margin: 0px;
  197. padding: @padding-base-vertical @padding-base-horizontal;
  198. }
  199. // Hide file input outside of viewport
  200. #editor-upload-field {
  201. position: absolute;
  202. left: -1000px;
  203. top: -1000px;
  204. }
  205. // Scale avatar in at.js suggestion
  206. .atwho-view ul li img {
  207. border-radius: @border-radius-small;
  208. margin-right: @font-size-base / 3;
  209. width: @line-height-computed;
  210. height: @line-height-computed;
  211. }