base.css 5.6 KB

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