index.css 5.5 KB

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