index.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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-expandableContainer-button,
  17. .elyra-expandableContainer-button.jp-mod-styled {
  18. background-color: transparent;
  19. vertical-align: middle;
  20. padding: 0;
  21. width: 20px;
  22. }
  23. .elyra-expandableContainer-button:hover {
  24. cursor: pointer;
  25. }
  26. .elyra-expandableContainer-actionButton:hover {
  27. background-color: var(--jp-layout-color1);
  28. }
  29. .elyra-expandableContainer-actionButton:active {
  30. background-color: var(--jp-layout-color2);
  31. }
  32. .elyra-expandableContainer-title {
  33. align-items: center;
  34. display: flex;
  35. flex-direction: row;
  36. padding: 0px 4px;
  37. height: 36px;
  38. }
  39. .elyra-expandableContainer-title:hover {
  40. background: var(--jp-layout-color2);
  41. }
  42. .elyra-expandableContainer-name {
  43. flex-grow: 1;
  44. font-size: var(--jp-ui-font-size1);
  45. white-space: nowrap;
  46. overflow: hidden;
  47. text-overflow: ellipsis;
  48. padding: 4px 0 4px 2px;
  49. line-height: 28px;
  50. }
  51. .elyra-expandableContainer-name:hover {
  52. cursor: pointer;
  53. }
  54. .elyra-button {
  55. background-repeat: no-repeat;
  56. background-position: center;
  57. border: none;
  58. height: 100%;
  59. }
  60. .elyra-expandableContainer-details-visible {
  61. overflow-x: auto;
  62. overflow-y: auto;
  63. display: block;
  64. padding: 5px;
  65. margin: 5px;
  66. border: 1px solid var(--jp-border-color2);
  67. border-radius: 2px;
  68. color: var(--jp-ui-font-color1);
  69. background-color: var(--jp-layout-color1);
  70. }
  71. .elyra-expandableContainer-details-visible textarea {
  72. color: var(--jp-ui-font-color1);
  73. }
  74. .elyra-expandableContainer-details-hidden {
  75. display: none;
  76. }
  77. .elyra-expandableContainer-action-buttons {
  78. display: inline-flex;
  79. align-self: flex-end;
  80. height: 100%;
  81. }
  82. .elyra-errorDialog-messageDisplay pre {
  83. min-height: 125px;
  84. height: 100%;
  85. width: 100%;
  86. resize: none;
  87. overflow-x: scroll;
  88. }
  89. .elyra-errorDialog-messageDisplay {
  90. padding-bottom: 5px;
  91. display: flex;
  92. flex-direction: column;
  93. height: 100%;
  94. white-space: pre-line;
  95. }
  96. .elyra-errorDialog-messageDisplay > div:nth-child(2) {
  97. margin: 15px 0;
  98. display: flex;
  99. flex: 1;
  100. min-height: 0px;
  101. flex-direction: column;
  102. }
  103. /* temporary fix until this is addressed in jupyterlab */
  104. .lm-TabBar-tabIcon svg {
  105. height: auto;
  106. }
  107. .jp-Dialog-content {
  108. resize: both;
  109. }
  110. .elyra-DialogDefaultButton.jp-mod-styled:hover:disabled,
  111. .elyra-DialogDefaultButton.jp-mod-styled:active:disabled,
  112. .elyra-DialogDefaultButton.jp-mod-styled:focus:disabled,
  113. .elyra-DialogDefaultButton.jp-mod-styled:disabled {
  114. background-color: var(--jp-layout-color3);
  115. opacity: 0.3;
  116. pointer-events: none;
  117. }
  118. /* icons */
  119. [data-jp-theme-light='false'] .elyra-pieBrain-icon rect.st1,
  120. [data-jp-theme-light='false'] .elyra-pieBrain-icon rect.st2 {
  121. fill: var(--jp-inverse-layout-color3);
  122. }
  123. .elyra-feedbackButton {
  124. display: inline;
  125. position: relative;
  126. }
  127. .elyra-feedbackButton[data-feedback]:not([data-feedback='']):before {
  128. border: solid;
  129. border-color: var(--jp-inverse-layout-color2) transparent;
  130. border-width: 0 6px 6px 6px;
  131. bottom: 0;
  132. content: '';
  133. left: 5px;
  134. position: absolute;
  135. z-index: 999;
  136. }
  137. .elyra-feedbackButton[data-feedback]:not([data-feedback='']):after {
  138. background: var(--jp-inverse-layout-color2);
  139. border-radius: 2px;
  140. bottom: -20px;
  141. color: var(--jp-ui-inverse-font-color1);
  142. content: attr(data-feedback);
  143. font-size: 0.75rem;
  144. font-weight: 400;
  145. padding: 3px 5px;
  146. pointer-events: none;
  147. position: absolute;
  148. right: -10px;
  149. text-align: center;
  150. width: max-content;
  151. word-wrap: break-word;
  152. z-index: 999;
  153. }
  154. .elyra-browseFileDialog .jp-Dialog-content {
  155. height: 400px;
  156. width: 600px;
  157. }
  158. .elyra-metadataEditor-BooleanInput {
  159. margin-top: 12px;
  160. display: flex;
  161. align-items: center;
  162. }
  163. .elyra-expandableContainer-draggable:hover {
  164. cursor: grab;
  165. }
  166. .rIcon {
  167. content: url('./icons/r-logo.svg');
  168. height: 24px;
  169. width: 14px;
  170. }