index.css 5.5 KB

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