settingeditor.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. :root {
  6. --jp-private-settingeditor-add-width: 16px;
  7. --jp-private-settingeditor-key-width: 150px;
  8. --jp-private-settingeditor-legend-height: 16px;
  9. --jp-private-settingeditor-row-height: 16px;
  10. --jp-private-settingeditor-type-width: 75px;
  11. }
  12. #setting-editor {
  13. background-color: var(--jp-layout-color0);
  14. border-top: var(--jp-border-width) solid var(--jp-border-color1);
  15. margin-top: -1px;
  16. outline: none;
  17. }
  18. #setting-editor::before {
  19. content: '';
  20. display: block;
  21. height: var(--jp-toolbar-micro-height);
  22. background: var(--jp-toolbar-background);
  23. border-bottom: 1px solid var(--jp-toolbar-border-color);
  24. box-shadow: var(--jp-toolbar-box-shadow);
  25. z-index: 10;
  26. }
  27. #setting-editor > .p-Widget {
  28. position: absolute;
  29. top: var(--jp-toolbar-micro-height);
  30. bottom: 0;
  31. left: 0;
  32. right: 0;
  33. }
  34. #setting-editor .jp-SettingEditor-main .p-SplitPanel {
  35. position: absolute;
  36. top: 0;
  37. bottom: 0;
  38. left: 0;
  39. right: 0;
  40. }
  41. #setting-editor .p-SplitPanel-handle {
  42. background-color: var(--jp-border-color2);
  43. }
  44. #setting-editor .jp-SettingEditorInstructions {
  45. text-align: center;
  46. }
  47. #setting-editor .jp-SettingEditorInstructions-icon {
  48. display: inline-block;
  49. background-size: 60px;
  50. width: 60px;
  51. height: 78px;
  52. margin-right: 5px;
  53. }
  54. #setting-editor .jp-SettingEditorInstructions-title {
  55. font-size: 32px;
  56. font-weight: 200;
  57. line-height: 78px;
  58. vertical-align: top;
  59. }
  60. #setting-editor .jp-SettingEditorInstructions-text {
  61. font-size: var(--jp-ui-font-size2);
  62. }
  63. #setting-editor ul.jp-PluginList {
  64. background-color: var(--jp-layout-color1);
  65. color: var(--jp-ui-font-color1);
  66. font-size: var(--jp-ui-font-size1);
  67. list-style-type: none;
  68. margin: 0;
  69. padding: 0;
  70. min-width: 150px;
  71. width: 150px;
  72. overflow-y: auto;
  73. }
  74. #setting-editor ul.jp-PluginList li {
  75. border: 1px solid transparent;
  76. overflow: hidden;
  77. padding: 2px 0 5px 5px;
  78. text-overflow: ellipsis;
  79. white-space: nowrap;
  80. }
  81. #setting-editor ul.jp-PluginList li:hover {
  82. background-color: var(--jp-layout-color2);
  83. border: 1px solid var(--jp-border-color2);
  84. }
  85. #setting-editor ul.jp-PluginList li.jp-mod-selected {
  86. background-color: var(--jp-brand-color1);
  87. color: white;
  88. }
  89. #setting-editor ul.jp-PluginList li.jp-mod-selected {
  90. border: 1px solid var(--jp-brand-color1);
  91. }
  92. #setting-editor .jp-PluginList-icon {
  93. display: inline-block;
  94. height: 20px;
  95. width: 20px;
  96. margin-right: 3px;
  97. position: relative;
  98. top: 3px;
  99. }
  100. #setting-editor .jp-PluginEditor {
  101. padding: 10px;
  102. }
  103. #setting-editor .jp-PluginEditor .jp-JSONEditor-host {
  104. height: 100%;
  105. margin-left: 0;
  106. margin-right: 0;
  107. overflow: auto;
  108. }
  109. #setting-editor .jp-PluginEditor .jp-JSONEditor-header {
  110. position: absolute;
  111. right: 0;
  112. z-index: 9999;
  113. }
  114. #setting-editor .jp-TableEditor {
  115. border: 1px solid var(--jp-brand-color1);
  116. margin: 0;
  117. padding: 0;
  118. }
  119. #setting-editor .jp-TableEditor legend {
  120. color: var(--jp-brand-color1);
  121. font-size: 70%;
  122. font-weight: bold;
  123. margin-left: 15px;
  124. height: var(--jp-private-settingeditor-legend-height);
  125. }
  126. #setting-editor .jp-TableEditor-wrapper {
  127. position: absolute;
  128. top: var(--jp-private-settingeditor-legend-height);
  129. bottom: 0;
  130. overflow-y: auto;
  131. }
  132. #setting-editor .jp-TableEditor table {
  133. table-layout: fixed;
  134. color: var(--jp-ui-font-color1);
  135. font-size: var(--jp-ui-font-size1);
  136. padding: 2px;
  137. width: calc(100% - 4px);
  138. overflow: hidden;
  139. }
  140. #setting-editor .jp-TableEditor tr {
  141. color: var(--jp-ui-font-color2);
  142. height: var( --jp-private-settingeditor-row-height);
  143. overflow: hidden;
  144. }
  145. #setting-editor .jp-TableEditor th {
  146. background-color: var(--jp-layout-color3);
  147. border: 1px solid transparent;
  148. font-weight: bold;
  149. height: var( --jp-private-settingeditor-row-height);
  150. }
  151. #setting-editor .jp-TableEditor td {
  152. border: 1px solid transparent;
  153. height: var( --jp-private-settingeditor-row-height);
  154. }
  155. #setting-editor .jp-TableEditor th.jp-TableEditor-add {
  156. width: var(--jp-private-settingeditor-add-width);
  157. }
  158. #setting-editor .jp-TableEditor th.jp-TableEditor-key {
  159. width: var(--jp-private-settingeditor-key-width);
  160. }
  161. #setting-editor .jp-TableEditor th.jp-TableEditor-type {
  162. width: var(--jp-private-settingeditor-type-width);
  163. }
  164. #setting-editor .jp-TableEditor td.jp-TableEditor-add {
  165. cursor: pointer;
  166. text-align: center;
  167. }
  168. #setting-editor .jp-TableEditor td.jp-TableEditor-add.jp-mod-active:hover {
  169. border: 1px solid var(--jp-toolbar-border-color);
  170. }
  171. #setting-editor .jp-TableEditor td.jp-TableEditor-key {
  172. overflow: hidden;
  173. white-space: nowrap;
  174. text-overflow: ellipsis;
  175. }
  176. #setting-editor .jp-TableEditor td.jp-TableEditor-value {
  177. overflow: hidden;
  178. white-space: nowrap;
  179. text-overflow: ellipsis;
  180. }
  181. #setting-editor .jp-TableEditor td.jp-TableEditor-type {
  182. text-align: right;
  183. }
  184. #setting-editor .jp-TableEditor .jp-TableEditor-button {
  185. display: inline-block;
  186. background-position: center;
  187. background-repeat: no-repeat;
  188. background-size: 8px;
  189. border: 1px solid var(--jp-layout-color3);
  190. border-radius: 8px;
  191. width: 8px;
  192. height: 8px;
  193. margin-top: 3px;
  194. }