index.css 4.2 KB

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