index.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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-ToolbarButtonComponent {
  61. padding: 0px 16px;
  62. }
  63. /*-----------------------------------------------------------------------------
  64. | DirListing
  65. |----------------------------------------------------------------------------*/
  66. .jp-DirListing {
  67. flex: 1 1 auto;
  68. display: flex;
  69. flex-direction: column;
  70. outline: 0;
  71. }
  72. .jp-DirListing-header {
  73. flex: 0 0 auto;
  74. display: flex;
  75. flex-direction: row;
  76. overflow: hidden;
  77. border-top: var(--jp-border-width) solid var(--jp-border-color2);
  78. border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
  79. box-shadow: var(--jp-toolbar-box-shadow);
  80. z-index: 2;
  81. }
  82. .jp-DirListing-headerItem {
  83. padding: 4px 12px;
  84. font-weight: 500;
  85. }
  86. .jp-DirListing-headerItem:hover {
  87. background: var(--jp-layout-color2);
  88. }
  89. .jp-DirListing-headerItem.jp-id-name {
  90. flex: 1 0 84px;
  91. }
  92. .jp-DirListing-headerItem.jp-id-modified {
  93. flex: 0 0 112px;
  94. border-left: var(--jp-border-width) solid var(--jp-border-color2);
  95. text-align: right;
  96. }
  97. .jp-DirListing-headerItem.jp-mod-selected {
  98. font-weight: 600;
  99. }
  100. .jp-DirListing-headerItemIcon {
  101. height: 16px;
  102. width: 16px;
  103. background-size: 18px;
  104. background-image: 18px;
  105. background-repeat: no-repeat;
  106. background-position: center;
  107. }
  108. .jp-DirListing-headerItem.jp-mod-selected .jp-DirListing-headerItemIcon {
  109. background-image: var(--jp-icon-caretup);
  110. }
  111. .jp-DirListing-headerItem.jp-mod-selected.jp-mod-descending
  112. .jp-DirListing-headerItemIcon {
  113. background-image: var(--jp-icon-caretdown);
  114. }
  115. .jp-DirListing-headerItem.jp-mod-selected.jp-id-name
  116. .jp-DirListing-headerItemIcon {
  117. float: right;
  118. }
  119. .jp-DirListing-headerItem.jp-mod-selected.jp-id-modified
  120. .jp-DirListing-headerItemIcon {
  121. float: left;
  122. }
  123. /* increase specificity to override bundled default */
  124. .jp-DirListing-content {
  125. flex: 1 1 auto;
  126. margin: 0;
  127. padding: 0;
  128. list-style-type: none;
  129. overflow: auto;
  130. background-color: var(--jp-layout-color1);
  131. }
  132. /* Style the directory listing content when a user drops a file to upload */
  133. .jp-DirListing.jp-mod-native-drop .jp-DirListing-content {
  134. outline: 5px dashed rgba(128, 128, 128, 0.5);
  135. outline-offset: -10px;
  136. cursor: copy;
  137. }
  138. .jp-DirListing-item {
  139. display: flex;
  140. flex-direction: row;
  141. padding: 4px 12px;
  142. -webkit-user-select: none;
  143. -moz-user-select: none;
  144. -ms-user-select: none;
  145. user-select: none;
  146. }
  147. .jp-DirListing-item.jp-mod-selected {
  148. color: white;
  149. background: var(--jp-brand-color1);
  150. }
  151. .jp-DirListing-item.jp-mod-dropTarget {
  152. background: var(--jp-brand-color3);
  153. }
  154. .jp-DirListing-item:hover:not(.jp-mod-selected) {
  155. background: var(--jp-layout-color2);
  156. }
  157. .jp-DirListing-itemIcon {
  158. flex: 0 0 20px;
  159. margin-right: 4px;
  160. }
  161. .jp-DirListing-itemText {
  162. flex: 1 0 64px;
  163. white-space: nowrap;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. user-select: none;
  167. }
  168. .jp-DirListing-itemModified {
  169. flex: 0 0 125px;
  170. text-align: right;
  171. }
  172. .jp-DirListing-editor {
  173. flex: 1 0 64px;
  174. outline: none;
  175. border: none;
  176. }
  177. .jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon:before {
  178. color: limegreen;
  179. content: '\25CF';
  180. font-size: 8px;
  181. position: relative;
  182. width: 100%;
  183. height: 100%;
  184. top: -2px;
  185. left: -8px;
  186. }
  187. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-NotebookIcon {
  188. background-image: var(--jp-icon-book-selected);
  189. }
  190. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-OpenFolderIcon {
  191. background-image: var(--jp-icon-directory-selected);
  192. }
  193. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-FileIcon {
  194. background-image: var(--jp-icon-file-selected);
  195. }
  196. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-YamlIcon {
  197. background-image: var(--jp-icon-yaml-selected);
  198. }
  199. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-MarkdownIcon {
  200. background-image: var(--jp-icon-markdown-selected);
  201. }
  202. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-ImageIcon {
  203. background-image: var(--jp-icon-image-selected);
  204. }
  205. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-SpreadsheetIcon {
  206. background-image: var(--jp-icon-spreadsheet-selected);
  207. }
  208. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-JSONIcon {
  209. background-image: var(--jp-icon-json-selected);
  210. }
  211. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-PythonIcon {
  212. background-image: var(--jp-icon-python-selected);
  213. }
  214. .jp-DirListing-item.jp-mod-selected .jp-DirListing-itemIcon.jp-RKernelIcon {
  215. background-image: var(--jp-icon-r-selected);
  216. }
  217. .jp-DirListing-item.p-mod-drag-image,
  218. .jp-DirListing-item.jp-mod-selected.p-mod-drag-image {
  219. font-size: var(--jp-ui-font-size1);
  220. padding-left: 4px;
  221. margin-left: 4px;
  222. width: 160px;
  223. background-color: var(--jp-ui-inverse-font-color2);
  224. box-shadow: var(--jp-elevation-z2);
  225. border-radius: 0px;
  226. color: var(--jp-ui-font-color1);
  227. transform: translateX(-40%) translateY(-58%);
  228. }
  229. .jp-DirListing-deadSpace {
  230. flex: 1 1 auto;
  231. margin: 0;
  232. padding: 0;
  233. list-style-type: none;
  234. overflow: auto;
  235. background-color: var(--jp-layout-color1);
  236. }
  237. .jp-Document {
  238. min-width: 120px;
  239. min-height: 120px;
  240. outline: none;
  241. }
  242. .jp-FileDialog.jp-mod-conflict input {
  243. color: red;
  244. }
  245. .jp-FileDialog .jp-new-name-title {
  246. margin-top: 12px;
  247. }