settingeditor.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. :root {
  6. --jp-private-settingeditor-debug-height: 28px;
  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-switcher-height: 32px;
  11. --jp-private-settingeditor-toolbar-height: 28px;
  12. --jp-private-settingeditor-type-width: 75px;
  13. }
  14. #setting-editor {
  15. min-width: 360px;
  16. min-height: 240px;
  17. background-color: var(--jp-layout-color0);
  18. margin-top: -1px;
  19. outline: none;
  20. /* This is needed so that all font sizing of children done in ems is
  21. * relative to this base size */
  22. font-size: var(--jp-ui-font-size1);
  23. }
  24. #setting-editor > .p-Widget {
  25. position: absolute;
  26. top: 0;
  27. bottom: 0;
  28. left: 0;
  29. right: 0;
  30. }
  31. #setting-editor .p-SplitPanel-handle {
  32. background-color: var(--jp-border-color2);
  33. }
  34. #setting-editor .jp-SettingEditorInstructions {
  35. text-align: center;
  36. }
  37. #setting-editor .jp-SettingEditorInstructions-icon {
  38. display: inline-block;
  39. background-size: 60px;
  40. width: 60px;
  41. height: 78px;
  42. margin-right: 5px;
  43. }
  44. #setting-editor .jp-SettingEditorInstructions-title {
  45. color: var(--jp-ui-font-color0);
  46. font-size: 32px;
  47. font-weight: 200;
  48. line-height: 78px;
  49. vertical-align: top;
  50. }
  51. #setting-editor .jp-SettingEditorInstructions-text {
  52. color: var(--jp-ui-font-color0);
  53. font-size: var(--jp-ui-font-size2);
  54. }
  55. #setting-editor .jp-PluginList {
  56. min-width: 175px;
  57. width: 175px;
  58. }
  59. #setting-editor .jp-PluginList-switcher {
  60. height: var(--jp-private-settingeditor-switcher-height);
  61. position: absolute;
  62. top: 1px;
  63. left: 0;
  64. right: 0;
  65. }
  66. #setting-editor .jp-PluginList-switcher button {
  67. background: var(--jp-layout-color2);
  68. color: var(--jp-ui-font-color2);
  69. border: 0;
  70. border-bottom: 1px solid var(--jp-ui-font-color3);
  71. margin: 0;
  72. padding: 0;
  73. height: var(--jp-private-settingeditor-switcher-height);
  74. width: 50%;
  75. }
  76. #setting-editor .jp-PluginList-switcher button:first-child {
  77. border-right: 1px solid var(--jp-ui-font-color3);
  78. }
  79. #setting-editor .jp-PluginList-switcher button:disabled {
  80. background: var(--jp-layout-color1);
  81. color: var(--jp-ui-font-color0);
  82. }
  83. #setting-editor .jp-PluginList ul {
  84. background-color: var(--jp-layout-color1);
  85. color: var(--jp-ui-font-color1);
  86. font-size: var(--jp-ui-font-size1);
  87. list-style-type: none;
  88. margin: 0;
  89. padding: 0;
  90. overflow-y: auto;
  91. position: absolute;
  92. top: var(--jp-private-settingeditor-switcher-height);
  93. bottom: 0;
  94. left: 0;
  95. right: 0;
  96. }
  97. #setting-editor .jp-PluginList li {
  98. border: 1px solid transparent;
  99. overflow: hidden;
  100. padding: 2px 0 5px 5px;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. }
  104. #setting-editor .jp-PluginList li:hover {
  105. background-color: var(--jp-layout-color2);
  106. border: 1px solid var(--jp-border-color2);
  107. }
  108. #setting-editor .jp-PluginList li.jp-mod-selected {
  109. background-color: var(--jp-brand-color1);
  110. color: white;
  111. border: 1px solid var(--jp-brand-color1);
  112. }
  113. #setting-editor
  114. ul.jp-PluginList
  115. li.jp-mod-selected
  116. span.jp-PluginList-icon.jp-FileIcon {
  117. background-image: var(--jp-icon-file-selected);
  118. }
  119. #setting-editor .jp-PluginList-icon {
  120. display: inline-block;
  121. height: 20px;
  122. width: 20px;
  123. margin-right: 3px;
  124. position: relative;
  125. top: 3px;
  126. }
  127. #setting-editor .jp-SettingsRawEditor .jp-Toolbar {
  128. color: var(--jp-ui-font-color0);
  129. font-size: var(--jp-ui-font-size1);
  130. height: var(--jp-private-settingeditor-toolbar-height);
  131. max-height: var(--jp-private-settingeditor-toolbar-height);
  132. }
  133. #setting-editor .jp-SettingsRawEditor .jp-Toolbar-item {
  134. margin-top: 2px;
  135. }
  136. #setting-editor
  137. .jp-SettingsRawEditor.jp-mod-error
  138. .jp-Toolbar-item.jp-BugIcon::after {
  139. color: red;
  140. content: '\25CF'; /* Unicode circle character (error dot) */
  141. font-size: 7px;
  142. width: 100%;
  143. height: 100%;
  144. position: absolute;
  145. top: 4px;
  146. left: 6px;
  147. }
  148. #setting-editor .jp-SettingsRawEditor .jp-Inspector {
  149. border-top: 2px solid var(--jp-layout-color2);
  150. max-height: var(--jp-private-settingeditor-debug-height);
  151. }
  152. #setting-editor
  153. .jp-SettingsRawEditor
  154. .jp-InspectorItem.jp-SettingsDebug
  155. .jp-RenderedHTMLCommon {
  156. padding: 2px 5px 2px 0;
  157. width: 100%;
  158. }
  159. #setting-editor
  160. .jp-SettingsRawEditor
  161. .jp-InspectorItem.jp-SettingsDebug
  162. .jp-RenderedHTMLCommon
  163. p {
  164. text-align: right;
  165. }
  166. #setting-editor .jp-SettingsTableEditor {
  167. border: 1px solid var(--jp-brand-color1);
  168. margin: 0;
  169. padding: 0;
  170. }
  171. #setting-editor .jp-SettingsTableEditor legend {
  172. color: var(--jp-brand-color1);
  173. font-size: 70%;
  174. font-weight: bold;
  175. margin-left: 15px;
  176. height: var(--jp-private-settingeditor-legend-height);
  177. }
  178. #setting-editor .jp-SettingsTableEditor-wrapper {
  179. position: absolute;
  180. top: var(--jp-private-settingeditor-legend-height);
  181. bottom: 0;
  182. overflow-y: auto;
  183. }
  184. #setting-editor .jp-SettingsTableEditor table {
  185. table-layout: fixed;
  186. color: var(--jp-ui-font-color1);
  187. font-size: var(--jp-ui-font-size1);
  188. padding: 2px;
  189. width: calc(100% - 4px);
  190. overflow: hidden;
  191. }
  192. #setting-editor .jp-SettingsTableEditor tr {
  193. color: var(--jp-ui-font-color2);
  194. height: var(--jp-private-settingeditor-row-height);
  195. overflow: hidden;
  196. }
  197. #setting-editor .jp-SettingsTableEditor th {
  198. background-color: var(--jp-layout-color3);
  199. border: 1px solid transparent;
  200. font-weight: bold;
  201. height: var(--jp-private-settingeditor-row-height);
  202. }
  203. #setting-editor .jp-SettingsTableEditor td {
  204. border: 1px solid transparent;
  205. height: var(--jp-private-settingeditor-row-height);
  206. }
  207. #setting-editor .jp-SettingsTableEditor th.jp-SettingsTableEditor-key {
  208. width: var(--jp-private-settingeditor-key-width);
  209. }
  210. #setting-editor .jp-SettingsTableEditor th.jp-SettingsTableEditor-type {
  211. width: var(--jp-private-settingeditor-type-width);
  212. }
  213. #setting-editor .jp-SettingsTableEditor td.jp-SettingsTableEditor-key {
  214. overflow: hidden;
  215. white-space: nowrap;
  216. text-overflow: ellipsis;
  217. }
  218. #setting-editor .jp-SettingsTableEditor td.jp-SettingsTableEditor-value {
  219. overflow: hidden;
  220. white-space: nowrap;
  221. text-overflow: ellipsis;
  222. }
  223. #setting-editor .jp-SettingsTableEditor td.jp-SettingsTableEditor-type {
  224. text-align: right;
  225. }