index.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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-color2);
  74. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  75. box-shadow: var(--jp-toolbar-box-shadow);
  76. z-index: 2;
  77. }
  78. .jp-DirListing-headerItem {
  79. padding: 4px 12px;
  80. font-weight: 500;
  81. }
  82. .jp-DirListing-headerItem:hover {
  83. background: var(--jp-layout-color2);
  84. }
  85. .jp-DirListing-headerItem.jp-id-name {
  86. flex: 1 0 84px;
  87. }
  88. .jp-DirListing-headerItem.jp-id-modified {
  89. flex: 0 0 112px;
  90. border-left: var(--jp-border-width) solid var(--jp-border-color2);
  91. text-align: right;
  92. }
  93. .jp-DirListing-headerItem.jp-mod-selected {
  94. font-weight: 600;
  95. }
  96. .jp-DirListing-headerItemIcon {
  97. height: 16px;
  98. width: 16px;
  99. background-size: 18px;
  100. background-image: 18px;
  101. background-repeat: no-repeat;
  102. background-position: center;
  103. }
  104. .jp-DirListing-headerItem.jp-mod-selected .jp-DirListing-headerItemIcon {
  105. background-image: var(--jp-icon-caretup);
  106. }
  107. .jp-DirListing-headerItem.jp-mod-selected.jp-mod-descending .jp-DirListing-headerItemIcon {
  108. background-image: var(--jp-icon-caretdown);
  109. }
  110. .jp-DirListing-headerItem.jp-mod-selected.jp-id-name .jp-DirListing-headerItemIcon {
  111. float: right;
  112. }
  113. .jp-DirListing-headerItem.jp-mod-selected.jp-id-modified .jp-DirListing-headerItemIcon {
  114. float: left;
  115. }
  116. /* increase specificity to override bundled default */
  117. .jp-DirListing-content {
  118. flex: 1 1 auto;
  119. margin: 0;
  120. padding: 0;
  121. list-style-type: none;
  122. overflow: auto;
  123. background-color: var(--jp-layout-color1);
  124. }
  125. .jp-DirListing-item {
  126. display: flex;
  127. flex-direction: row;
  128. padding: 4px 12px;
  129. -webkit-user-select: none;
  130. -moz-user-select: none;
  131. -ms-user-select: none;
  132. user-select: none;
  133. }
  134. .jp-DirListing-item.jp-mod-selected {
  135. color: white;
  136. background: var(--jp-brand-color1);
  137. }
  138. .jp-DirListing-item.jp-mod-dropTarget {
  139. background: var(--jp-brand-color3);
  140. }
  141. .jp-DirListing-item:hover:not(.jp-mod-selected) {
  142. background: var(--jp-layout-color2);
  143. }
  144. .jp-DirListing-itemIcon {
  145. flex: 0 0 20px;
  146. margin-right: 4px;
  147. }
  148. .jp-DirListing-itemText {
  149. flex: 1 0 64px;
  150. white-space: nowrap;
  151. overflow: hidden;
  152. text-overflow: ellipsis;
  153. user-select: none;
  154. }
  155. .jp-DirListing-itemModified {
  156. flex: 0 0 108px;
  157. text-align: right;
  158. }
  159. .jp-DirListing-editor {
  160. flex: 1 0 64px;
  161. outline: none;
  162. border: none;
  163. }
  164. .jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon {
  165. background-image: var(--jp-icon-book-running);
  166. }
  167. .jp-DirListing-item.jp-mod-running.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  168. color: var(--jp-accent-color3);
  169. background-image: var(--jp-icon-book-running-selected);
  170. }
  171. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  172. background-image: var(--jp-icon-book-selected);
  173. }
  174. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-OpenFolderIcon {
  175. background-image: var(--jp-icon-directory-selected);
  176. }
  177. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-FileIcon {
  178. background-image: var(--jp-icon-file-selected);
  179. }
  180. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-YamlIcon {
  181. background-image: var(--jp-icon-yaml-selected);
  182. }
  183. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-MarkdownIcon {
  184. background-image: var(--jp-icon-markdown-selected);
  185. }
  186. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-ImageIcon {
  187. background-image: var(--jp-icon-image-selected);
  188. }
  189. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-SpreadsheetIcon {
  190. background-image: var(--jp-icon-spreadsheet-selected);
  191. }
  192. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-JSONIcon {
  193. background-image: var(--jp-icon-json-selected);
  194. }
  195. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-PythonIcon {
  196. background-image: var(--jp-icon-python-selected);
  197. }
  198. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-RKernelIcon {
  199. background-image: var(--jp-icon-r-selected);
  200. }
  201. .jp-DirListing-item.p-mod-drag-image,
  202. .jp-DirListing-item.jp-mod-selected.p-mod-drag-image {
  203. font-size: var(--jp-ui-font-size1);
  204. padding-left: 4px;
  205. margin-left: 4px;
  206. width: 160px;
  207. background-color: rgba(255,255,255,.7);
  208. box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  209. border-radius: 0px;
  210. color: var(--jp-ui-font-color1);
  211. transform: translateX(-2%) translateY(4%);
  212. }
  213. .jp-Document {
  214. min-width: 120px;
  215. min-height: 120px;
  216. outline: none;
  217. }
  218. .jp-FileDialog.jp-mod-conflict input {
  219. color: red;
  220. }
  221. .jp-FileDialog .jp-new-name-title {
  222. margin-top: 12px;
  223. }