index.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 [fill] {
  42. fill: var(--jp-ui-font-color1);
  43. }
  44. .elyra-metadataHeader + div:first-of-type {
  45. overflow-y: auto;
  46. height: calc(100vh - 95px);
  47. }
  48. .elyra-metadata-item {
  49. border-bottom: var(--jp-border-width) solid var(--jp-border-color2);
  50. display: flex;
  51. flex-direction: column;
  52. margin: 0;
  53. padding: 0;
  54. }
  55. .elyra-metadata-item .elyra-expandableContainer-details-visible {
  56. background-color: var(--jp-cell-editor-background);
  57. resize: vertical;
  58. }
  59. .elyra-metadata-item .CodeMirror.cm-s-jupyter {
  60. background-color: inherit;
  61. border: none;
  62. font-family: var(--jp-code-font-family);
  63. font-size: var(--jp-code-font-size);
  64. line-height: var(--jp-code-line-height);
  65. }
  66. .elyra-metadata-item .cm-s-jupyter li .cm-string {
  67. word-break: normal;
  68. }
  69. /* Metadata Editor CSS (a lot of the style for the metadata editor is in
  70. * the ui-components package under formeditor.css
  71. */
  72. .elyra-metadataEditor {
  73. padding: 20px;
  74. display: flex;
  75. flex-wrap: wrap;
  76. height: 100%;
  77. align-content: flex-start;
  78. align-items: flex-start;
  79. justify-content: flex-start;
  80. color: var(--jp-ui-font-color1);
  81. }
  82. /* Code Snippet Filter CSS */
  83. .elyra-searchbar {
  84. margin: 0px 8px;
  85. }
  86. .elyra-filterTools {
  87. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  88. }
  89. mark.elyra-search-bolding {
  90. background-color: transparent;
  91. font-weight: bold;
  92. color: var(--jp-ui-font-color0);
  93. }
  94. .elyra-filter {
  95. display: flex;
  96. flex-direction: column;
  97. align-items: center;
  98. margin: 10px 10px 0 10px;
  99. }
  100. .elyra-filter .elyra-filter-btn {
  101. align-self: flex-end;
  102. padding: 0px;
  103. margin-bottom: 5px;
  104. border-radius: 5px;
  105. border: none;
  106. background: none;
  107. cursor: pointer;
  108. }
  109. .elyra-filter .elyra-filter-btn:hover {
  110. background-color: var(--jp-layout-color2);
  111. }
  112. .elyra-filter-btn svg {
  113. display: block;
  114. width: 30px;
  115. height: 22px;
  116. }
  117. .elyra-filter-arrow-up.idle,
  118. .elyra-filter-option.idle {
  119. display: none;
  120. }
  121. .elyra-filter-arrow-up {
  122. position: absolute;
  123. margin-top: 16px;
  124. margin-right: 38px;
  125. align-self: flex-end;
  126. background-color: var(--jp-layout-color0);
  127. }
  128. .elyra-filter-option {
  129. border: var(--jp-border-width) solid var(--jp-border-color1);
  130. height: 140px;
  131. width: 100%;
  132. margin-bottom: 10px;
  133. padding-top: 5px;
  134. padding-bottom: 5px;
  135. overflow: auto;
  136. }
  137. .elyra-filter-tags {
  138. margin: 8px 8px;
  139. }
  140. .elyra-filter-tag {
  141. margin-left: 3px;
  142. margin-right: 3px;
  143. }
  144. button.elyra-filter-tag {
  145. height: 24px;
  146. padding: 0 12px;
  147. cursor: pointer;
  148. color: var(--jp-ui-font-color2);
  149. font-size: var(--jp-ui-font-size1);
  150. }
  151. button.elyra-filter-tag .elyra-filter-tag-label {
  152. overflow: hidden;
  153. text-overflow: ellipsis;
  154. white-space: nowrap;
  155. }
  156. button.elyra-filter-tag span,
  157. button.elyra-filter-tag svg {
  158. pointer-events: none;
  159. }
  160. .elyra-filter-empty {
  161. font-size: var(--jp-ui-font-size1);
  162. }
  163. .elyra-tools {
  164. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  165. }
  166. .elyra-metadataEditor-saveButton button {
  167. background: none;
  168. border: 1px solid var(--jp-border-color1);
  169. border-radius: 3px;
  170. padding: 10px;
  171. font-size: var(--jp-content-font-size2);
  172. width: fit-content;
  173. color: var(--jp-content-font-color0);
  174. cursor: pointer;
  175. }
  176. .elyra-metadataEditor-saveButton button:hover {
  177. background: var(--jp-border-color3);
  178. }
  179. .elyra-metadataEditor-saveButton.errorForm {
  180. color: var(--jp-content-font-color3);
  181. }
  182. .elyra-metadataEditor-saveButton.errorForm button {
  183. border-color: var(--jp-content-font-color3);
  184. cursor: not-allowed;
  185. }
  186. .elyra-no-metadata-msg {
  187. padding-left: 8px;
  188. }
  189. #split-button-menu {
  190. color: var(--jp-ui-font-color1);
  191. background-color: var(--jp-layout-color1);
  192. border: var(--jp-border-width) solid var(--jp-border-color0);
  193. border-radius: 5px;
  194. }