editor.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. text-align: center;
  40. .btn {
  41. display: inline-block;
  42. float: none !important;
  43. margin: @line-height-computed / 3;
  44. }
  45. }
  46. .btn-protect {
  47. .btn-text {
  48. margin-left: @padding-small-horizontal;
  49. }
  50. .material-icon {
  51. position: relative;
  52. bottom: 2px;
  53. width: 14px;
  54. height: 14px;
  55. font-size: 14px;
  56. line-height: 14px;
  57. }
  58. }
  59. }
  60. // make lock button full width
  61. @media screen and (max-width: @screen-xs-max) {
  62. .btn-protect {
  63. display: block;
  64. float: none !important;
  65. width: 100%;
  66. margin: 0px;
  67. margin-top: @line-height-computed / 2;
  68. }
  69. }
  70. }
  71. // Attachments list
  72. .editor-attachments-list {
  73. margin: 0px;
  74. padding: 0px;
  75. li {
  76. margin: 0px;
  77. }
  78. }
  79. .editor-attachment-complete {
  80. border-top: 1px solid @editor-border;
  81. padding: @padding-base-vertical 0px;
  82. .editor-attachment-image {
  83. float: left;
  84. width: 50px;
  85. a {
  86. background-size: cover;
  87. background-position: center;
  88. border-radius: @border-radius-small;
  89. display: block;
  90. margin: 0px auto;
  91. width: 36px;
  92. height: 36px;
  93. }
  94. }
  95. .editor-attachment-icon {
  96. float: left;
  97. width: 50px;
  98. text-align: center;
  99. .material-icon {
  100. position: relative;
  101. top: 2px;
  102. height: 28px;
  103. width: 28px;
  104. font-size: 28px;
  105. line-height: 28px;
  106. }
  107. }
  108. .editor-attachment-details {
  109. margin-left: 50px;
  110. h4, p {
  111. margin: 0px;
  112. padding: 0px;
  113. font-size: @font-size-base;
  114. }
  115. p {
  116. margin-top: @padding-base-vertical / 2;
  117. color: @gray-light;
  118. font-size: @font-size-small;
  119. }
  120. abbr {
  121. white-space: nowrap;
  122. }
  123. }
  124. }
  125. .editor-attachment-actions {
  126. @media screen and (min-width: @screen-sm-min) {
  127. padding-top: 3px;
  128. }
  129. @media screen and (max-width: @screen-xs-max) {
  130. padding-left: @padding-base-horizontal;
  131. padding-right: @padding-base-horizontal;
  132. }
  133. }
  134. .editor-attachment-error {
  135. border-top: 1px solid @editor-border;
  136. padding: @padding-base-vertical 0px;
  137. padding-right: @padding-base-horizontal;
  138. }
  139. .editor-attachment-error-icon {
  140. float: left;
  141. width: 50px;
  142. text-align: center;
  143. .material-icon {
  144. position: relative;
  145. top: 2px;
  146. height: 28px;
  147. width: 28px;
  148. font-size: 28px;
  149. line-height: 28px;
  150. }
  151. }
  152. .editor-attachment-error-message {
  153. margin-left: 50px;
  154. padding: @padding-base-vertical 0px;
  155. position: relative;
  156. h4, p {
  157. margin: 0px;
  158. padding: 0px;
  159. font-size: @font-size-base;
  160. }
  161. p {
  162. margin-top: @padding-base-vertical / 2;
  163. font-size: @font-size-small;
  164. }
  165. .btn {
  166. position: absolute;
  167. top: @padding-base-vertical + 3px;
  168. right: @padding-base-horizontal;
  169. @media screen and (max-width: @screen-xs-max) {
  170. display: block;
  171. margin-top: @line-height-computed / 2;
  172. position: static;
  173. }
  174. }
  175. }
  176. .editor-attachment-progress-bar {
  177. background: @editor-border;
  178. overflow: auto;
  179. }
  180. .editor-attachment-progress {
  181. background: @brand-primary;
  182. float: left;
  183. height: 1px;
  184. }
  185. .editor-attachment-upload-message {
  186. margin: 0px;
  187. padding: @padding-base-vertical @padding-base-horizontal;
  188. }
  189. // Hide file input outside of viewport
  190. #editor-upload-field {
  191. position: absolute;
  192. left: -1000px;
  193. top: -1000px;
  194. }