editor.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. }
  31. // Attachments list
  32. .editor-attachments-list {
  33. margin: 0px;
  34. padding: 0px;
  35. li {
  36. margin: 0px;
  37. }
  38. }
  39. .editor-attachment-complete {
  40. border-top: 1px solid @editor-border;
  41. padding: @padding-base-vertical 0px;
  42. padding-right: @padding-base-horizontal;
  43. .editor-attachment-image {
  44. float: left;
  45. width: 50px;
  46. a {
  47. background-size: cover;
  48. background-position: center;
  49. border-radius: @border-radius-small;
  50. display: block;
  51. margin: 0px auto;
  52. width: 36px;
  53. height: 36px;
  54. }
  55. }
  56. .editor-attachment-icon {
  57. float: left;
  58. width: 50px;
  59. text-align: center;
  60. .material-icon {
  61. position: relative;
  62. top: 2px;
  63. height: 28px;
  64. width: 28px;
  65. font-size: 28px;
  66. line-height: 28px;
  67. }
  68. }
  69. .editor-attachment-details {
  70. margin-left: 50px;
  71. h4, p {
  72. margin: 0px;
  73. padding: 0px;
  74. font-size: @font-size-base;
  75. }
  76. p {
  77. margin-top: @padding-base-vertical / 2;
  78. color: @gray-light;
  79. font-size: @font-size-small;
  80. }
  81. }
  82. }
  83. .editor-attachment-actions {
  84. float: right;
  85. margin: 0px;
  86. margin-top: 3px;
  87. li {
  88. margin-left: @line-height-computed / 2;
  89. }
  90. }
  91. .editor-attachment-error {
  92. border-top: 1px solid @editor-border;
  93. padding: @padding-base-vertical 0px;
  94. padding-right: @padding-base-horizontal;
  95. }
  96. .editor-attachment-error-icon {
  97. float: left;
  98. width: 50px;
  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-error-message {
  109. margin-left: 50px;
  110. padding: @padding-base-vertical 0px;
  111. position: relative;
  112. h4, p {
  113. margin: 0px;
  114. padding: 0px;
  115. font-size: @font-size-base;
  116. }
  117. p {
  118. margin-top: @padding-base-vertical / 2;
  119. font-size: @font-size-small;
  120. }
  121. .btn {
  122. position: absolute;
  123. top: @padding-base-vertical + 3px;
  124. right: @padding-base-horizontal;
  125. }
  126. }
  127. .editor-attachment-progress-bar {
  128. background: @editor-border;
  129. overflow: auto;
  130. }
  131. .editor-attachment-progress {
  132. background: @brand-primary;
  133. float: left;
  134. height: 1px;
  135. }
  136. .editor-attachment-upload-message {
  137. margin: 0px;
  138. padding: @padding-base-vertical @padding-base-horizontal;
  139. }
  140. // Hide file input outside of viewport
  141. #editor-upload-field {
  142. position: absolute;
  143. left: -1000px;
  144. top: -1000px;
  145. }