base.css 6.3 KB

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