index.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. /* MetadataWidget CSS */
  17. .elyra-metadata {
  18. color: var(--jp-ui-font-color1);
  19. background: var(--jp-layout-color1);
  20. }
  21. .elyra-metadata a,
  22. .elyra-metadataEditor a {
  23. color: var(--jp-content-link-color);
  24. }
  25. .elyra-metadataHeader {
  26. font-weight: bold;
  27. padding: 8px 10px;
  28. display: flex;
  29. justify-content: space-between;
  30. }
  31. .elyra-metadataHeader p {
  32. font-weight: bold;
  33. }
  34. .elyra-metadataHeader-popper {
  35. z-index: 100;
  36. }
  37. .elyra-metadataHeader-button:hover {
  38. background-color: var(--jp-layout-color2);
  39. cursor: pointer;
  40. }
  41. .elyra-metadataHeader-button.MuiButtonGroup-groupedTextHorizontal:not(:last-child) {
  42. border-right: none;
  43. }
  44. .elyra-metadataHeader [fill] {
  45. fill: var(--jp-ui-font-color1);
  46. }
  47. .elyra-metadataHeader + div:first-of-type {
  48. overflow-y: auto;
  49. height: calc(100vh - 95px);
  50. }
  51. .elyra-metadata-item {
  52. border-bottom: var(--jp-border-width) solid var(--jp-border-color2);
  53. display: flex;
  54. flex-direction: column;
  55. margin: 0;
  56. padding: 0;
  57. }
  58. .elyra-metadata-item .elyra-expandableContainer-details-visible {
  59. background-color: var(--jp-cell-editor-background);
  60. resize: vertical;
  61. }
  62. .elyra-metadata-item .CodeMirror.cm-s-jupyter {
  63. background-color: inherit;
  64. border: none;
  65. font-family: var(--jp-code-font-family);
  66. font-size: var(--jp-code-font-size);
  67. line-height: var(--jp-code-line-height);
  68. }
  69. .elyra-metadata-item .cm-s-jupyter li .cm-string {
  70. word-break: normal;
  71. }
  72. /* MetadataEditor css */
  73. .elyra-metadataEditor .jp-InputGroup {
  74. width: 100%;
  75. }
  76. .elyra-metadataEditor-formInput.elyra-metadataEditor-secure label {
  77. margin-right: 70px;
  78. }
  79. .elyra-metadataEditor {
  80. color: var(--jp-ui-font-color1);
  81. }
  82. .elyra-form-DropDown-item {
  83. width: 100%;
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: left;
  87. margin: 0;
  88. border-radius: 0;
  89. }
  90. .elyra-metadataEditor {
  91. padding: 20px;
  92. display: flex;
  93. flex-wrap: wrap;
  94. height: 100%;
  95. align-content: flex-start;
  96. align-items: flex-start;
  97. justify-content: flex-start;
  98. }
  99. .elyra-metadataEditor .elyra-metadataEditor-arrayInput li {
  100. padding-left: 0;
  101. padding-bottom: 0;
  102. }
  103. .elyra-metadataEditor
  104. .elyra-metadataEditor-arrayInput
  105. li:not(.elyra-metadataEditor-arrayItemEditor)
  106. .elyra-elyra-metadataHeaderMuiInputBase-formControl {
  107. background-color: var(--jp-border-color3);
  108. }
  109. .elyra-metadataEditor
  110. .elyra-metadataEditor-arrayInput
  111. .elyra-metadataEditor-editButtons
  112. button {
  113. padding: 3px;
  114. }
  115. .elyra-metadataEditor
  116. .elyra-metadataEditor-arrayInput
  117. .elyra-metadataEditor-addItemButton {
  118. background-color: var(--jp-border-color1);
  119. }
  120. .elyra-metadataEditor .elyra-metadataEditor-arrayItemEditor {
  121. display: flex;
  122. padding: 6px 0 3px 0;
  123. }
  124. .elyra-metadataEditor h3 {
  125. flex-basis: 100%;
  126. margin-bottom: 15px;
  127. color: var(--jp-ui-font-color1);
  128. }
  129. .elyra-metadataEditor .elyra-form-code.jp-CodeMirrorEditor {
  130. background-color: var(--jp-cell-editor-background);
  131. border: var(--jp-border-width) solid var(--jp-input-border-color);
  132. overflow-y: auto;
  133. resize: vertical;
  134. min-height: 150px;
  135. height: 150px;
  136. padding-bottom: 10px;
  137. cursor: initial;
  138. margin-top: 5px;
  139. }
  140. .elyra-metadataEditor .CodeMirror.cm-s-jupyter {
  141. background-color: inherit;
  142. height: 100%;
  143. }
  144. .elyra-metadataEditor .elyra-metadataEditor-code {
  145. height: auto;
  146. flex-basis: 100%;
  147. display: flex;
  148. flex-direction: column;
  149. }
  150. .elyra-metadataEditor-formInput {
  151. margin: 10px;
  152. flex-basis: 45%;
  153. }
  154. .elyra-metadata-editor {
  155. overflow-y: auto;
  156. }
  157. .elyra-metadataEditor .elyra-metadataEditor-saveButton {
  158. flex-basis: 100%;
  159. display: flex;
  160. }
  161. /* Code Snippet Filter CSS */
  162. .elyra-searchbar {
  163. margin: 0px 8px;
  164. }
  165. .elyra-filterTools {
  166. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  167. }
  168. mark.elyra-search-bolding {
  169. background-color: transparent;
  170. font-weight: bold;
  171. color: var(--jp-ui-font-color0);
  172. }
  173. .elyra-filter {
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. margin: 10px 10px 0 10px;
  178. }
  179. .elyra-filter .elyra-filter-btn {
  180. align-self: flex-end;
  181. padding: 0px;
  182. margin-bottom: 5px;
  183. border-radius: 5px;
  184. border: none;
  185. background: none;
  186. cursor: pointer;
  187. }
  188. .elyra-filter .elyra-filter-btn:hover {
  189. background-color: var(--jp-layout-color2);
  190. }
  191. .elyra-filter-btn svg {
  192. display: block;
  193. width: 30px;
  194. height: 22px;
  195. }
  196. .elyra-filter-arrow-up.idle,
  197. .elyra-filter-option.idle {
  198. display: none;
  199. }
  200. .elyra-filter-arrow-up {
  201. position: absolute;
  202. margin-top: 16px;
  203. margin-right: 38px;
  204. align-self: flex-end;
  205. background-color: var(--jp-layout-color0);
  206. }
  207. .elyra-filter-option {
  208. border: var(--jp-border-width) solid var(--jp-border-color1);
  209. height: 140px;
  210. width: 100%;
  211. margin-bottom: 10px;
  212. padding-top: 5px;
  213. padding-bottom: 5px;
  214. overflow: auto;
  215. }
  216. .elyra-filter-tags {
  217. margin: 8px 8px;
  218. }
  219. .elyra-filter-tag {
  220. margin-left: 3px;
  221. margin-right: 3px;
  222. }
  223. button.elyra-filter-tag {
  224. height: 24px;
  225. padding: 0 12px;
  226. cursor: pointer;
  227. color: var(--jp-ui-font-color2);
  228. font-size: var(--jp-ui-font-size1);
  229. }
  230. button.elyra-filter-tag .elyra-filter-tag-label {
  231. overflow: hidden;
  232. text-overflow: ellipsis;
  233. white-space: nowrap;
  234. }
  235. button.elyra-filter-tag span,
  236. button.elyra-filter-tag svg {
  237. pointer-events: none;
  238. }
  239. .elyra-filter-empty {
  240. font-size: var(--jp-ui-font-size1);
  241. }
  242. .elyra-tools {
  243. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  244. }
  245. .elyra-editor-tagList {
  246. list-style: none;
  247. margin-left: -3px;
  248. margin-top: 4px;
  249. }
  250. .elyra-editor-tag {
  251. margin-left: 3px;
  252. margin-right: 3px;
  253. padding: 0 12px;
  254. height: 24px;
  255. }
  256. button.elyra-editor-tag {
  257. cursor: pointer;
  258. color: var(--jp-ui-font-color2);
  259. font-size: var(--jp-ui-font-size1);
  260. }
  261. button.elyra-editor-tag.applied-tag {
  262. color: var(--jp-ui-font-color1);
  263. }
  264. button.elyra-editor-tag.unapplied-tag {
  265. color: var(--jp-ui-font-color2);
  266. white-space: nowrap;
  267. }
  268. .elyra-editor-tag.tag.unapplied-tag input {
  269. border: none;
  270. }
  271. /* Code Snippet Tags in InputDialog */
  272. .elyra-inputTagList {
  273. list-style: none;
  274. }
  275. .elyra-inputTag {
  276. margin-left: 8px;
  277. margin-right: 8px;
  278. }
  279. button.elyra-inputTag {
  280. cursor: pointer;
  281. background: none;
  282. border: none;
  283. color: var(--jp-ui-font-color2);
  284. padding: 0;
  285. font-size: var(--jp-ui-font-size1);
  286. }
  287. input.elyra-inputTag {
  288. font-size: var(--jp-ui-font-size1);
  289. background: none;
  290. border: none;
  291. color: var(--jp-ui-font-color2);
  292. font-size: var(--jp-ui-font-size1);
  293. width: 80px;
  294. height: 15px;
  295. }
  296. .elyra-tags {
  297. margin-top: 8px;
  298. }
  299. .elyra-no-metadata-msg {
  300. padding-left: 8px;
  301. }
  302. #split-button-menu {
  303. color: var(--jp-ui-font-color1);
  304. background-color: var(--jp-layout-color1);
  305. border: var(--jp-border-width) solid var(--jp-border-color0);
  306. border-radius: 5px;
  307. }