index.css 7.0 KB

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