formeditor.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. /*
  2. * Copyright 2018-2022 Elyra Authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. .elyra-tags {
  17. margin-top: 8px;
  18. }
  19. .elyra-formEditor-form-tags input {
  20. margin: 0;
  21. }
  22. .rjsf > .form-group.field,
  23. .form-group.field.tagsField,
  24. .form-group.field.languageField {
  25. width: 100%;
  26. }
  27. .panel.panel-danger.errors,
  28. p#root__description,
  29. button.btn[type='submit'] {
  30. display: none;
  31. }
  32. li.text-danger {
  33. color: var(--jp-error-color1);
  34. padding: 5px 0 0 9px;
  35. }
  36. form.rjsf {
  37. width: 100%;
  38. }
  39. fieldset#root > div > fieldset {
  40. display: flex;
  41. flex-wrap: wrap;
  42. }
  43. label.control-label {
  44. font-size: var(--jp-content-font-size2);
  45. font-weight: 500;
  46. }
  47. fieldset#root {
  48. display: flex;
  49. flex-wrap: wrap;
  50. width: 100%;
  51. justify-content: space-between;
  52. }
  53. .form-group.field {
  54. padding: 0px 30px 15px 0;
  55. display: flex;
  56. flex-direction: column;
  57. width: 50%;
  58. position: relative;
  59. height: fit-content;
  60. min-width: 400px;
  61. }
  62. .elyra-formEditor datalist {
  63. display: none;
  64. }
  65. .elyra-inputTagList {
  66. list-style: none;
  67. }
  68. .elyra-inputTag {
  69. margin-left: 8px;
  70. margin-right: 8px;
  71. }
  72. button.elyra-inputTag {
  73. cursor: pointer;
  74. background: none;
  75. border: none;
  76. color: var(--jp-ui-font-color2);
  77. padding: 0;
  78. font-size: var(--jp-ui-font-size1);
  79. }
  80. .field-object > fieldset > legend {
  81. font-size: var(--jp-content-font-size3);
  82. padding-bottom: 15px;
  83. font-weight: 600;
  84. }
  85. legend#root__noCategory__title {
  86. display: none;
  87. }
  88. .form-group input[readonly] {
  89. background: var(--jp-border-color3);
  90. }
  91. .form-group.field.field-object {
  92. width: 100%;
  93. padding: 0;
  94. }
  95. .jp-ArrayOperations button:disabled {
  96. cursor: not-allowed;
  97. }
  98. .elyra-passwordFieldButton {
  99. border: none;
  100. border-radius: 5px;
  101. background: var(--jp-input-active-background);
  102. position: absolute;
  103. right: 6px;
  104. bottom: 5px;
  105. }
  106. .elyra-passwordFieldButton > div {
  107. display: grid;
  108. }
  109. .elyra-passwordField {
  110. position: relative;
  111. display: flex;
  112. }
  113. .elyra-passwordFieldButton:hover {
  114. background-color: var(--jp-border-color2);
  115. }
  116. .elyra-passwordFieldButton svg {
  117. width: 25px;
  118. display: flex;
  119. color: var(--jp-content-font-color0);
  120. }
  121. input.elyra-inputTag {
  122. font-size: var(--jp-ui-font-size1);
  123. background: none;
  124. border: none;
  125. color: var(--jp-ui-font-color2);
  126. font-size: var(--jp-ui-font-size1);
  127. width: 80px;
  128. height: 15px;
  129. }
  130. .form-group .form-control {
  131. padding: 8px;
  132. border: 1px solid var(--jp-border-color1);
  133. border-radius: 4px;
  134. font-size: var(--jp-content-font-size2);
  135. margin-top: 10px;
  136. width: 100%;
  137. background-color: var(--jp-input-active-background);
  138. color: var(--jp-content-font-color0);
  139. }
  140. .elyra-editor-tagList {
  141. list-style: none;
  142. margin-left: -3px;
  143. margin-top: 4px;
  144. }
  145. .elyra-editor-tag {
  146. margin-left: 3px;
  147. margin-right: 3px;
  148. padding: 0 12px;
  149. height: 24px;
  150. }
  151. button.elyra-editor-tag {
  152. cursor: pointer;
  153. color: var(--jp-ui-font-color2);
  154. font-size: var(--jp-ui-font-size1);
  155. }
  156. button.elyra-editor-tag.applied-tag {
  157. color: var(--jp-ui-font-color1);
  158. }
  159. button.elyra-editor-tag.unapplied-tag {
  160. color: var(--jp-ui-font-color2);
  161. white-space: nowrap;
  162. }
  163. .elyra-editor-tag.tag.unapplied-tag input {
  164. border: none;
  165. }
  166. .elyra-formEditor h3 {
  167. flex-basis: 100%;
  168. margin-bottom: 15px;
  169. color: var(--jp-ui-font-color1);
  170. }
  171. .elyra-formEditor .elyra-form-code.jp-CodeMirrorEditor {
  172. background-color: var(--jp-cell-editor-background);
  173. border: var(--jp-border-width) solid var(--jp-input-border-color);
  174. overflow-y: auto;
  175. resize: vertical;
  176. min-height: 150px;
  177. height: 150px;
  178. padding-bottom: 10px;
  179. cursor: initial;
  180. margin-top: 5px;
  181. }
  182. .elyra-formEditor .CodeMirror.cm-s-jupyter {
  183. background-color: inherit;
  184. height: 100%;
  185. }
  186. .elyra-formEditor .elyra-formEditor-code {
  187. height: auto;
  188. flex-basis: 100%;
  189. display: flex;
  190. flex-direction: column;
  191. }
  192. .elyra-formEditor-formInput {
  193. margin: 10px;
  194. flex-basis: 45%;
  195. }
  196. .elyra-formEditor .elyra-formEditor-saveButton {
  197. flex-basis: 100%;
  198. display: flex;
  199. flex-direction: column;
  200. padding-bottom: 15px;
  201. }
  202. .elyra-formEditor .form-group.field.elyra-formEditor-form-code,
  203. .elyra-formEditor .form-group.field.elyra-formEditor-form-tags {
  204. width: 80%;
  205. }
  206. .elyra-formEditor .field-description {
  207. display: none;
  208. }
  209. .elyra-formEditor .description-wrapper:hover .field-description {
  210. color: var(--jp-content-font-color1);
  211. position: absolute;
  212. bottom: 110%;
  213. left: 50%;
  214. transform: translate(-50%, -10%);
  215. background-color: var(--jp-border-color3);
  216. border: 1px solid var(--jp-border-color2);
  217. padding: 5px;
  218. border-radius: 5px;
  219. display: initial;
  220. max-width: 22ch;
  221. width: max-content;
  222. word-wrap: break-word;
  223. z-index: 1;
  224. }
  225. .elyra-formEditor select.form-control {
  226. -moz-appearance: none !important;
  227. -webkit-appearance: none;
  228. background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  229. background-repeat: no-repeat;
  230. background-position-x: calc(100% - 4px);
  231. background-position-y: 50%;
  232. }
  233. .elyra-formEditor
  234. .label-header
  235. .description-wrapper
  236. p.field-description.short-title {
  237. transform: translate(-20%, -10%);
  238. }
  239. .elyra-formEditor .form-group.field-array .label-header {
  240. margin-bottom: 10px;
  241. }
  242. .elyra-formEditor .description-wrapper {
  243. width: fit-content;
  244. position: relative;
  245. }
  246. .elyra-formEditor .description-button {
  247. border-radius: 100%;
  248. margin-left: 6px;
  249. border: 1px solid var(--jp-border-color1);
  250. background: none;
  251. color: var(--jp-border-color0);
  252. padding: 2px 5px;
  253. }
  254. .elyra-formEditor .label-header {
  255. display: flex;
  256. align-items: center;
  257. }
  258. .elyra-formEditor .array-item {
  259. display: flex;
  260. margin-bottom: 15px;
  261. }
  262. .elyra-formEditor .field-array button {
  263. border-radius: 3px;
  264. margin-top: 4px;
  265. }
  266. .elyra-formEditor .array-item .form-group.field {
  267. padding-bottom: 0;
  268. padding-right: 10px;
  269. }
  270. .elyra-formEditor .array-item .form-group.field input {
  271. margin-top: 0;
  272. }
  273. .elyra-formEditor .jp-ArrayOperations {
  274. display: flex;
  275. }
  276. .elyra-formEditor .jp-ArrayOperations button {
  277. width: max-content;
  278. }
  279. .elyra-formEditor .field.field-array {
  280. width: 100%;
  281. }