base.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. /*-----------------------------------------------------------------------------
  6. | Variables
  7. |----------------------------------------------------------------------------*/
  8. :root {
  9. --jp-private-filebrowser-button-height: 28px;
  10. --jp-private-filebrowser-button-width: 48px;
  11. }
  12. /*-----------------------------------------------------------------------------
  13. | Copyright (c) Jupyter Development Team.
  14. | Distributed under the terms of the Modified BSD License.
  15. |----------------------------------------------------------------------------*/
  16. .jp-FileBrowser {
  17. display: flex;
  18. flex-direction: column;
  19. color: var(--jp-ui-font-color1);
  20. background: var(--jp-layout-color1);
  21. /* This is needed so that all font sizing of children done in ems is
  22. * relative to this base size */
  23. font-size: var(--jp-ui-font-size1);
  24. }
  25. .jp-FileBrowser-toolbar.jp-Toolbar {
  26. border-bottom: none;
  27. height: auto;
  28. margin: var(--jp-toolbar-header-margin);
  29. box-shadow: none;
  30. }
  31. .jp-BreadCrumbs {
  32. flex: 0 0 auto;
  33. margin: 4px 12px;
  34. }
  35. .jp-BreadCrumbs-item {
  36. margin: 0px 2px;
  37. padding: 0px 2px;
  38. border-radius: var(--jp-border-radius);
  39. cursor: pointer;
  40. }
  41. .jp-BreadCrumbs-item:hover {
  42. background-color: var(--jp-layout-color2);
  43. }
  44. .jp-BreadCrumbs-item:first-child {
  45. margin-left: 0px;
  46. }
  47. .jp-BreadCrumbs-item.jp-mod-dropTarget {
  48. background-color: var(--jp-brand-color2);
  49. opacity: 0.7;
  50. }
  51. /*-----------------------------------------------------------------------------
  52. | Buttons
  53. |----------------------------------------------------------------------------*/
  54. .jp-FileBrowser-toolbar.jp-Toolbar {
  55. padding: 0px;
  56. }
  57. .jp-FileBrowser-toolbar.jp-Toolbar {
  58. justify-content: space-evenly;
  59. }
  60. .jp-FileBrowser-toolbar.jp-Toolbar .jp-Toolbar-item {
  61. flex: 1;
  62. }
  63. .jp-FileBrowser-toolbar.jp-Toolbar .jp-ToolbarButtonComponent {
  64. width: 100%;
  65. }
  66. /*-----------------------------------------------------------------------------
  67. | DirListing
  68. |----------------------------------------------------------------------------*/
  69. .jp-DirListing {
  70. flex: 1 1 auto;
  71. display: flex;
  72. flex-direction: column;
  73. outline: 0;
  74. }
  75. .jp-DirListing-header {
  76. flex: 0 0 auto;
  77. display: flex;
  78. flex-direction: row;
  79. overflow: hidden;
  80. border-top: var(--jp-border-width) solid var(--jp-border-color2);
  81. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  82. box-shadow: var(--jp-toolbar-box-shadow);
  83. z-index: 2;
  84. }
  85. .jp-DirListing-headerItem {
  86. padding: 4px 12px;
  87. font-weight: 500;
  88. }
  89. .jp-DirListing-headerItem:hover {
  90. background: var(--jp-layout-color2);
  91. }
  92. .jp-DirListing-headerItem.jp-id-name {
  93. flex: 1 0 84px;
  94. }
  95. .jp-DirListing-headerItem.jp-id-modified {
  96. flex: 0 0 112px;
  97. border-left: var(--jp-border-width) solid var(--jp-border-color2);
  98. text-align: right;
  99. }
  100. .jp-DirListing-narrow .jp-id-modified,
  101. .jp-DirListing-narrow .jp-DirListing-itemModified {
  102. display: none;
  103. }
  104. .jp-DirListing-headerItem.jp-mod-selected {
  105. font-weight: 600;
  106. }
  107. .jp-DirListing-headerItemIcon {
  108. height: 16px;
  109. width: 16px;
  110. background-size: 18px;
  111. background-image: 18px;
  112. background-repeat: no-repeat;
  113. background-position: center;
  114. }
  115. .jp-DirListing-headerItem.jp-mod-selected .jp-DirListing-headerItemIcon {
  116. background-image: var(--jp-icon-caretup);
  117. }
  118. .jp-DirListing-headerItem.jp-mod-selected.jp-mod-descending
  119. .jp-DirListing-headerItemIcon {
  120. background-image: var(--jp-icon-caretdown);
  121. }
  122. .jp-DirListing-headerItem.jp-mod-selected.jp-id-name
  123. .jp-DirListing-headerItemIcon {
  124. float: right;
  125. }
  126. .jp-DirListing-headerItem.jp-mod-selected.jp-id-modified
  127. .jp-DirListing-headerItemIcon {
  128. float: left;
  129. }
  130. /* increase specificity to override bundled default */
  131. .jp-DirListing-content {
  132. flex: 1 1 auto;
  133. margin: 0;
  134. padding: 0;
  135. list-style-type: none;
  136. overflow: auto;
  137. background-color: var(--jp-layout-color1);
  138. }
  139. /* Style the directory listing content when a user drops a file to upload */
  140. .jp-DirListing.jp-mod-native-drop .jp-DirListing-content {
  141. outline: 5px dashed rgba(128, 128, 128, 0.5);
  142. outline-offset: -10px;
  143. cursor: copy;
  144. }
  145. .jp-DirListing-item {
  146. display: flex;
  147. flex-direction: row;
  148. padding: 4px 12px;
  149. -webkit-user-select: none;
  150. -moz-user-select: none;
  151. -ms-user-select: none;
  152. user-select: none;
  153. }
  154. .jp-DirListing-item.jp-mod-selected {
  155. color: white;
  156. background: var(--jp-brand-color1);
  157. }
  158. .jp-DirListing-item.jp-mod-dropTarget {
  159. background: var(--jp-brand-color3);
  160. }
  161. .jp-DirListing-item:hover:not(.jp-mod-selected) {
  162. background: var(--jp-layout-color2);
  163. }
  164. .jp-DirListing-itemIcon {
  165. flex: 0 0 20px;
  166. margin-right: 4px;
  167. }
  168. .jp-DirListing-itemText {
  169. flex: 1 0 64px;
  170. white-space: nowrap;
  171. overflow: hidden;
  172. text-overflow: ellipsis;
  173. user-select: none;
  174. }
  175. .jp-DirListing-itemModified {
  176. flex: 0 0 125px;
  177. text-align: right;
  178. }
  179. .jp-DirListing-editor {
  180. flex: 1 0 64px;
  181. outline: none;
  182. border: none;
  183. }
  184. .jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon:before {
  185. color: limegreen;
  186. content: '\25CF';
  187. font-size: 8px;
  188. position: relative;
  189. width: 100%;
  190. height: 100%;
  191. top: -2px;
  192. left: -8px;
  193. }
  194. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-FileIcon {
  195. background-image: var(--jp-icon-file-selected);
  196. }
  197. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-TextEditorIcon {
  198. background-image: var(--jp-icon-text-editor-selected);
  199. }
  200. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  201. background-image: var(--jp-icon-notebook-selected);
  202. }
  203. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-FolderIcon {
  204. background-image: var(--jp-icon-folder-selected);
  205. }
  206. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-MarkdownIcon {
  207. background-image: var(--jp-icon-markdown-selected);
  208. }
  209. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-PythonIcon {
  210. background-image: var(--jp-icon-python-selected);
  211. }
  212. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-JSONIcon {
  213. background-image: var(--jp-icon-json-selected);
  214. }
  215. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-SpreadsheetIcon {
  216. background-image: var(--jp-icon-spreadsheet-selected);
  217. }
  218. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-RKernelIcon {
  219. background-image: var(--jp-icon-r-selected);
  220. }
  221. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-YAMLIcon {
  222. background-image: var(--jp-icon-yaml-selected);
  223. }
  224. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-ImageIcon {
  225. background-image: var(--jp-icon-image-selected);
  226. }
  227. .jp-DirListing-item.p-mod-drag-image,
  228. .jp-DirListing-item.jp-mod-selected.p-mod-drag-image {
  229. font-size: var(--jp-ui-font-size1);
  230. padding-left: 4px;
  231. margin-left: 4px;
  232. width: 160px;
  233. background-color: var(--jp-ui-inverse-font-color2);
  234. box-shadow: var(--jp-elevation-z2);
  235. border-radius: 0px;
  236. color: var(--jp-ui-font-color1);
  237. transform: translateX(-40%) translateY(-58%);
  238. }
  239. .jp-DirListing-deadSpace {
  240. flex: 1 1 auto;
  241. margin: 0;
  242. padding: 0;
  243. list-style-type: none;
  244. overflow: auto;
  245. background-color: var(--jp-layout-color1);
  246. }
  247. .jp-Document {
  248. min-width: 120px;
  249. min-height: 120px;
  250. outline: none;
  251. }
  252. .jp-FileDialog.jp-mod-conflict input {
  253. color: red;
  254. }
  255. .jp-FileDialog .jp-new-name-title {
  256. margin-top: 12px;
  257. }