2
0

codered-editor.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /* Reset fonts to system */
  2. .title .halloeditor, .title input, .title textarea,
  3. .Draftail-Editor .DraftEditor-root {
  4. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important;
  5. }
  6. /* Inputs and form fields */
  7. .title .halloeditor, .title input, .title textarea {
  8. font-size:2.5em;
  9. }
  10. .full .halloeditor, .full input, .full textarea {
  11. padding-top:1em;
  12. padding-bottom:1em;
  13. background-color:transparent;
  14. }
  15. .sequence-member input[type='text'],
  16. .sequence-member input[type='email'],
  17. .sequence-member input[type='url'],
  18. .sequence-member input[type='number'],
  19. .sequence-member input[type='date'],
  20. .sequence-member input[type='time'],
  21. .sequence-member input[type='datetime'],
  22. .sequence-member input[type='datetime-local'],
  23. .sequence-member textarea,
  24. .sequence-member select,
  25. .sequence-member .richtext,
  26. .sequence-member .tagit {
  27. background-color:white;
  28. border:1.5px solid #ddd;
  29. }
  30. .sequence-member input:focus,
  31. .sequence-member textarea:focus,
  32. .sequence-member select:focus,
  33. .sequence-member .richtext:focus,
  34. .sequence-member .tagit:focus {
  35. border-color:#00b0b1;
  36. background-color:#f2fcfc;
  37. }
  38. .input input,
  39. .input select {
  40. width: 300px;
  41. max-width: 100%;
  42. }
  43. .input input[type='radio'],
  44. .input input[type='checkbox'] {
  45. width: auto;
  46. }
  47. .input textarea,
  48. .full .input input {
  49. width:100%;
  50. }
  51. .input input[type='color']{
  52. height: 40px;
  53. padding: 5px;
  54. }
  55. /* Override and enhance the streamfield editor to support our deeply nested streamfields. */
  56. .chooser .unchosen::before, .chooser .chosen::before {
  57. color:rgba(0,0,0,0.2)
  58. }
  59. li.sequence-member {
  60. border:none;
  61. }
  62. li.sequence-member li.sequence-member {
  63. background-color:rgba(0,0,0,0.05);
  64. border:none;
  65. margin:0 0 20px 0;
  66. }
  67. li.sequence-member:hover {
  68. background-color:rgba(0,0,0,0.05);
  69. border:none;
  70. }
  71. li.sequence-member .sequence-member-inner,
  72. li.sequence-member .struct-block .sequence-container .sequence-member-inner {
  73. padding:1em;
  74. }
  75. @media screen and (max-width:49.99em) {
  76. li.sequence-member .struct-block .sequence-container {
  77. width:100%;
  78. }
  79. }
  80. .field.char_field.widget-draftail_rich_text_area .field-content,
  81. .field.char_field.widget-textarea .field-content {
  82. width:100%;
  83. max-width:100%;
  84. }
  85. .sequence-controls {
  86. border: none;
  87. background-color: transparent;
  88. top: unset;
  89. }
  90. .sequence-controls h3 label {
  91. font-weight: bold;
  92. }
  93. .tab-content {
  94. width: 100%;
  95. }
  96. .objects * {
  97. box-sizing: border-box;
  98. }
  99. .object > h2 {
  100. font-weight: 600;
  101. }
  102. .object .multiple {
  103. width:100%;
  104. max-width:100%;
  105. }
  106. .object fieldset {
  107. width:100%;
  108. max-width:100%;
  109. }
  110. .object > fieldset {
  111. padding-top:6em;
  112. }
  113. .object > fieldset fieldset {
  114. padding-top:0;
  115. }
  116. li.sequence-member .struct-block .fields {
  117. width:100%;
  118. max-width:100%;
  119. }
  120. .stream-menu.stream-menu-closed .toggle {
  121. color:#888;
  122. }
  123. .fields > li, .field-col {
  124. padding-bottom:0.5em;
  125. }
  126. .tagit, input, select, textarea {
  127. color:#000;
  128. }
  129. .tagit, input, select, textarea {
  130. font-weight:normal;
  131. }
  132. /* Draftail */
  133. .Draftail-Toolbar {
  134. background-color:transparent !important;
  135. border-radius:0 !important;
  136. color:rgba(0,0,0,0.2) !important;
  137. padding: 0 !important;
  138. transition: all ease .25s;
  139. }
  140. .Draftail-Toolbar:hover {
  141. color:rgba(0,0,0,0.7) !important;
  142. transition: all ease .25s;
  143. }
  144. .Draftail-Toolbar .Draftail-ToolbarButton--active {
  145. background-color:rgba(0,0,0,0.05) !important;
  146. border:none;
  147. transition: all ease .25s;
  148. }
  149. .Draftail-Toolbar:hover .Draftail-ToolbarButton--active {
  150. background-color:rgba(0,0,0,0.2) !important;
  151. transition: all ease .25s;
  152. }
  153. .Draftail-Toolbar .Draftail-ToolbarGroup + .Draftail-ToolbarGroup::before {
  154. content: none;
  155. }
  156. .Draftail-Toolbar .Draftail-ToolbarGroup + .Draftail-ToolbarGroup {
  157. margin-left: 1em;
  158. }
  159. li.sequence-member li > .field .Draftail-Editor,
  160. li.sequence-member li.sequence-member .Draftail-Editor {
  161. background-color: #fff !important;
  162. border-radius:5px;
  163. border:1.5px solid #ddd !important;
  164. padding: 0.5em 1em;
  165. }
  166. li.sequence-member li.sequence-member .Draftail-Editor {
  167. margin:-1em;
  168. }
  169. li.sequence-member li > .field .Draftail-Editor {
  170. margin: 0;
  171. }
  172. .Draftail-Editor .DraftEditor-root {
  173. color:#000 !important;
  174. }
  175. .Draftail-DividerBlock {
  176. background-color:#ccc !important;
  177. }
  178. /* custom */
  179. .codered-collapsible {
  180. padding:0;
  181. }
  182. .codered-collapsible fieldset {
  183. padding: 10px 0 0;
  184. }
  185. .codered-checkbox-group {
  186. margin-bottom: 1em;
  187. }
  188. .codered-checkbox-group ul {
  189. margin-top: 0.5em;
  190. }
  191. .codered-checkbox-group label {
  192. padding-bottom: 0.25em;
  193. }
  194. .codered-checkbox-group label input {
  195. margin-right: 0.25em;
  196. }
  197. .codered-callout {
  198. background-color: #f0f1f2;
  199. border-radius: 6px;
  200. display: inline-block;
  201. padding: 2em 3em;
  202. text-align: center;
  203. }
  204. .codered-callout .codered-big-icon {
  205. font-size: 10rem;
  206. color: rgba(0,0,0,0.1);
  207. }
  208. .codered-callout h3 {
  209. font-size: 1.2rem;
  210. font-weight: 600;
  211. }
  212. .codered-callout p {
  213. font-size: 1rem;
  214. }
  215. .codered-callout .codered-new {
  216. border-radius: 4px;
  217. background-color: rgba(0,0,0,0.1);
  218. font-size: 0.6em;
  219. padding: 0.3em 0.6em;
  220. text-transform: uppercase;
  221. }