index.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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. font-size: var(--jp-ui-font-size1);
  22. }
  23. .jp-FileBrowser-toolbar {
  24. border-bottom: none;
  25. height: auto;
  26. margin: var(--jp-toolbar-header-margin);
  27. }
  28. .jp-BreadCrumbs {
  29. flex: 0 0 auto;
  30. margin: 4px 12px;
  31. }
  32. .jp-BreadCrumbs-item {
  33. margin: 0px 4px;
  34. cursor: pointer;
  35. }
  36. .jp-BreadCrumbs-item:first-child {
  37. margin-left: 0px;
  38. }
  39. .jp-BreadCrumbs-item.jp-mod-dropTarget {
  40. background-color: var(--jp-brand-color2);
  41. opacity: 0.7;
  42. }
  43. /*-----------------------------------------------------------------------------
  44. | Buttons
  45. |----------------------------------------------------------------------------*/
  46. .jp-FileBrowser-toolbar > .jp-Toolbar-button {
  47. flex: 1 1 auto;
  48. height: var(--jp-private-filebrowser-button-height);
  49. line-height: var(--jp-private-filebrowser-button-height);
  50. color: var(--jp-layout-color1);
  51. font-size: var(--jp-ui-icon-font-size);
  52. outline: 0;
  53. margin-bottom: 4px;
  54. }
  55. .jp-FileBrowser-toolbar > .jp-Toolbar-button:focus {
  56. box-shadow: var(--jp-toolbar-box-shadow);
  57. border-color: var(--jp-toolbar-border-color);
  58. }
  59. /*-----------------------------------------------------------------------------
  60. | DirListing
  61. |----------------------------------------------------------------------------*/
  62. .jp-DirListing {
  63. flex: 1 1 auto;
  64. display: flex;
  65. flex-direction: column;
  66. outline: 0;
  67. }
  68. .jp-DirListing-header {
  69. flex: 0 0 auto;
  70. display: flex;
  71. flex-direction: row;
  72. overflow: hidden;
  73. border-top: var(--jp-border-width) solid var(--jp-border-color1);
  74. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  75. }
  76. .jp-DirListing-headerItem {
  77. padding: 4px 12px;
  78. font-weight: 500;
  79. }
  80. .jp-DirListing-headerItem:hover {
  81. background: var(--jp-layout-color2);
  82. }
  83. .jp-DirListing-headerItem.jp-id-name {
  84. flex: 1 0 84px;
  85. }
  86. .jp-DirListing-headerItem.jp-id-modified {
  87. flex: 0 0 112px;
  88. border-left: var(--jp-border-width) solid var(--jp-border-color1);
  89. text-align: right;
  90. }
  91. .jp-DirListing-headerItem.jp-mod-selected {
  92. font-weight: 600;
  93. }
  94. .jp-DirListing-headerItem.jp-mod-selected .jp-DirListing-headerItemIcon:before {
  95. font-family: FontAwesome;
  96. content: "\f0d8";
  97. }
  98. .jp-DirListing-headerItem.jp-mod-selected.jp-mod-descending .jp-DirListing-headerItemIcon:before {
  99. font-family: FontAwesome;
  100. content: "\f0d7";
  101. }
  102. .jp-DirListing-headerItem.jp-mod-selected.jp-id-name .jp-DirListing-headerItemIcon:before {
  103. float: right;
  104. }
  105. .jp-DirListing-headerItem.jp-mod-selected.jp-id-modified .jp-DirListing-headerItemIcon:before {
  106. float: left;
  107. }
  108. /* increase specificity to override bundled default */
  109. .jp-DirListing-content {
  110. flex: 1 1 auto;
  111. margin: 0;
  112. padding: 0;
  113. list-style-type: none;
  114. overflow: auto;
  115. background-color: var(--jp-layout-color1);
  116. }
  117. /* Styling for the file browser content scroll bar */
  118. .jp-DirListing-content::-webkit-scrollbar {
  119. background-color: var(--jp-layout-color1);
  120. border-left: 1px solid var(--jp-border-color1);
  121. width: var(--jp-scrollbar-width);
  122. }
  123. .jp-DirListing-content::-webkit-scrollbar-thumb {
  124. background-color: var(--jp-layout-color2);
  125. border-radius: 0px;
  126. border-left: 1px solid var(--jp-border-color1);
  127. }
  128. .jp-DirListing-item {
  129. display: flex;
  130. flex-direction: row;
  131. padding: 4px 12px;
  132. -webkit-user-select: none;
  133. -moz-user-select: none;
  134. -ms-user-select: none;
  135. user-select: none;
  136. }
  137. .jp-DirListing-item.jp-mod-selected {
  138. color: white;
  139. background: var(--jp-brand-color1);
  140. }
  141. .jp-DirListing-item.jp-mod-dropTarget {
  142. background: var(--jp-brand-color3);
  143. }
  144. .jp-DirListing-item:hover:not(.jp-mod-selected) {
  145. background: var(--jp-layout-color2);
  146. }
  147. .jp-DirListing-itemIcon {
  148. flex: 0 0 20px;
  149. font-family: FontAwesome;
  150. font-size: 14px;
  151. margin-right: 4px;
  152. }
  153. .jp-DirListing-itemText {
  154. flex: 1 0 64px;
  155. white-space: nowrap;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. user-select: none;
  159. }
  160. .jp-DirListing-itemModified {
  161. flex: 0 0 108px;
  162. text-align: right;
  163. }
  164. .jp-DirListing-editor {
  165. flex: 1 0 64px;
  166. outline: none;
  167. border: none;
  168. }
  169. .jp-type-folder.jp-DirListing-itemIcon:before {
  170. content: "\f114";
  171. }
  172. .jp-type-file.jp-DirListing-itemIcon:before {
  173. content: "\f016";
  174. }
  175. .jp-type-notebook.jp-DirListing-itemIcon:before {
  176. content: "\f02d";
  177. }
  178. .jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon {
  179. background-image: var(--jp-icon-book-running);
  180. }
  181. .jp-DirListing-item.jp-mod-running.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  182. color: var(--jp-accent-color3);
  183. background-image: var(--jp-icon-book-running-selected);
  184. }
  185. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  186. background-image: var(--jp-icon-book-selected);
  187. }
  188. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-OpenFolderIcon {
  189. background-image: var(--jp-icon-directory-selected);
  190. }
  191. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-FileIcon {
  192. background-image: var(--jp-icon-file-selected);
  193. }
  194. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-YamlIcon {
  195. background-image: var(--jp-icon-yaml-selected);
  196. }
  197. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-MarkdownIcon {
  198. background-image: var(--jp-icon-markdown-selected);
  199. }
  200. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-ImageIcon {
  201. background-image: var(--jp-icon-image-selected);
  202. }
  203. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-SpreadsheetIcon {
  204. background-image: var(--jp-icon-spreadsheet-selected);
  205. }
  206. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-JSONIcon {
  207. background-image: var(--jp-icon-json-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-RKernelIcon {
  213. background-image: var(--jp-icon-r-selected);
  214. }
  215. .jp-DirListing-item.p-mod-drag-image,
  216. .jp-DirListing-item.jp-mod-selected.p-mod-drag-image {
  217. font-size: var(--jp-ui-font-size1);
  218. padding-left: 4px;
  219. margin-left: 4px;
  220. width: 160px;
  221. background-color: rgba(255,255,255,.7);
  222. box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  223. border-radius: 0px;
  224. color: var(--jp-ui-font-color1);
  225. transform: translateX(-2%) translateY(4%);
  226. }
  227. .jp-Document {
  228. min-width: 120px;
  229. min-height: 120px;
  230. outline: none;
  231. }
  232. .jp-FileDialog.jp-mod-conflict input {
  233. color: red;
  234. }
  235. .jp-FileDialog .jp-new-name-title {
  236. margin-top: 12px;
  237. }