editor.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. &, & li {
  34. margin: 0px;
  35. padding: 0px;
  36. }
  37. }
  38. .editor-attachment-ready {
  39. border-top: 1px solid @editor-border;
  40. }
  41. .editor-attachment-error {
  42. border-top: 1px solid @editor-border;
  43. padding: @padding-base-vertical 0px;
  44. padding-right: @padding-base-horizontal;
  45. }
  46. .editor-attachment-error-icon {
  47. float: left;
  48. width: 46px;
  49. font-size: @font-size-large;
  50. text-align: center;
  51. }
  52. .editor-attachment-error-message {
  53. margin-left: 46px;
  54. padding: @padding-base-vertical 0px;
  55. position: relative;
  56. h4, p {
  57. margin: 0px;
  58. padding: 0px;
  59. font-size: @font-size-base;
  60. }
  61. p {
  62. margin-top: @padding-base-vertical / 2;
  63. font-size: @font-size-small;
  64. }
  65. .btn {
  66. position: absolute;
  67. top: @padding-base-vertical + 3px;
  68. right: @padding-base-horizontal;
  69. }
  70. }
  71. .editor-attachment-progress-bar {
  72. background: @editor-border;
  73. overflow: auto;
  74. }
  75. .editor-attachment-progress {
  76. background: @brand-primary;
  77. float: left;
  78. height: 1px;
  79. }
  80. .editor-attachment-upload-message {
  81. margin: 0px;
  82. padding: @padding-base-vertical @padding-base-horizontal;
  83. }
  84. // Hide file input outside of viewport
  85. #editor-upload-field {
  86. position: absolute;
  87. left: -1000px;
  88. top: -1000px;
  89. }