wizard_composer.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import 'wizard_variables';
  2. .d-editor-container {
  3. display: flex;
  4. flex-grow: 1;
  5. max-width: 100%;
  6. }
  7. .d-editor-overlay {
  8. position: absolute;
  9. background-color: black;
  10. opacity: 0.8;
  11. z-index: z("modal","overlay");
  12. }
  13. .d-editor-modals {
  14. position: absolute;
  15. z-index: z("modal","content");
  16. }
  17. .d-editor {
  18. display: flex;
  19. flex-grow: 1;
  20. min-height: 0;
  21. }
  22. .d-editor .d-editor-modal {
  23. min-width: 400px;
  24. position: absolute;
  25. background-color: $secondary;
  26. border: 1px solid $primary;
  27. padding: 1em;
  28. top: 25px;
  29. @media screen and (max-width: 424px) {
  30. min-width: 300px;
  31. }
  32. input {
  33. width: 95%;
  34. }
  35. h3 {
  36. margin-bottom: 0.5em;
  37. }
  38. }
  39. .d-editor-textarea-wrapper,
  40. .d-editor-preview-wrapper {
  41. background-color: $secondary;
  42. border: 1px solid #919191;
  43. flex: 1;
  44. }
  45. .d-editor-textarea-wrapper {
  46. display: flex;
  47. flex-direction: column;
  48. position: relative;
  49. textarea {
  50. background: transparent;
  51. }
  52. }
  53. .d-editor-preview-wrapper {
  54. display: flex;
  55. flex-direction: column;
  56. }
  57. .d-editor-button-bar {
  58. display: flex;
  59. align-items: center;
  60. border-bottom: none;
  61. min-height: 30px;
  62. padding-left: 3px;
  63. border-bottom: 1px solid #e9e9e9;
  64. button {
  65. background-color: transparent;
  66. color: $primary;
  67. }
  68. .btn:not(.no-text) {
  69. font-size: 1.1487em;
  70. }
  71. .btn.bold {
  72. font-weight: bolder;
  73. }
  74. .btn.italic {
  75. font-style: italic;
  76. }
  77. }
  78. .d-editor-spacer {
  79. width: 1px;
  80. height: 20px;
  81. margin: 0 5px;
  82. background-color: $primary;
  83. display: inline-block;
  84. }
  85. .d-editor-preview-wrapper {
  86. overflow: auto;
  87. cursor: default;
  88. }
  89. .d-editor-input,
  90. .d-editor-preview {
  91. box-sizing: border-box;
  92. flex: 1 1 100%;
  93. width: 100%;
  94. margin: 0;
  95. min-height: auto;
  96. word-wrap: break-word;
  97. -webkit-appearance: none;
  98. border-radius: 0;
  99. &:focus {
  100. box-shadow: none;
  101. border: 0;
  102. outline: 0;
  103. }
  104. }
  105. .d-editor-input {
  106. border: 0;
  107. padding: 10px;
  108. height: 100%;
  109. overflow-x: hidden;
  110. resize: none;
  111. }
  112. .d-editor-preview {
  113. height: auto;
  114. }
  115. .d-editor-plugin {
  116. display: flex;
  117. flex: 1 1;
  118. overflow: auto;
  119. }
  120. .composing-whisper .d-editor-preview {
  121. font-style: italic;
  122. color: $primary !important;
  123. }
  124. .d-editor-preview > *:first-child {
  125. margin-top: 0;
  126. }
  127. .hide-preview .d-editor-preview-wrapper {
  128. display: none;
  129. flex: 0;
  130. }
  131. ////
  132. .d-editor {
  133. max-height: 250px;
  134. }
  135. .d-editor-modal.hidden {
  136. display: none;
  137. }
  138. .d-editor-button-bar .btn {
  139. border: none;
  140. }