base.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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-DirListing-narrow .jp-id-modified,
  133. .jp-DirListing-narrow .jp-DirListing-itemModified {
  134. display: none;
  135. }
  136. .jp-DirListing-headerItem.jp-mod-selected {
  137. font-weight: 600;
  138. }
  139. /* increase specificity to override bundled default */
  140. .jp-DirListing-content {
  141. flex: 1 1 auto;
  142. margin: 0;
  143. padding: 0;
  144. list-style-type: none;
  145. overflow: auto;
  146. background-color: var(--jp-layout-color1);
  147. }
  148. .jp-DirListing-content mark {
  149. color: var(--jp-ui-font-color0);
  150. background-color: transparent;
  151. font-weight: bold;
  152. }
  153. /* Style the directory listing content when a user drops a file to upload */
  154. .jp-DirListing.jp-mod-native-drop .jp-DirListing-content {
  155. outline: 5px dashed rgba(128, 128, 128, 0.5);
  156. outline-offset: -10px;
  157. cursor: copy;
  158. }
  159. .jp-DirListing-item {
  160. display: flex;
  161. flex-direction: row;
  162. padding: 4px 12px;
  163. -webkit-user-select: none;
  164. -moz-user-select: none;
  165. -ms-user-select: none;
  166. user-select: none;
  167. }
  168. .jp-DirListing-item[data-is-dot] {
  169. opacity: 75%;
  170. }
  171. .jp-DirListing-item.jp-mod-selected {
  172. color: white;
  173. background: var(--jp-brand-color1);
  174. }
  175. .jp-DirListing-item.jp-mod-dropTarget {
  176. background: var(--jp-brand-color3);
  177. }
  178. .jp-DirListing-item:hover:not(.jp-mod-selected) {
  179. background: var(--jp-layout-color2);
  180. }
  181. .jp-DirListing-itemIcon {
  182. flex: 0 0 20px;
  183. margin-right: 4px;
  184. }
  185. .jp-DirListing-itemText {
  186. flex: 1 0 64px;
  187. white-space: nowrap;
  188. overflow: hidden;
  189. text-overflow: ellipsis;
  190. user-select: none;
  191. }
  192. .jp-DirListing-itemModified {
  193. flex: 0 0 125px;
  194. text-align: right;
  195. }
  196. .jp-DirListing-editor {
  197. flex: 1 0 64px;
  198. outline: none;
  199. border: none;
  200. }
  201. .jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon:before {
  202. color: limegreen;
  203. content: '\25CF';
  204. font-size: 8px;
  205. position: absolute;
  206. left: -8px;
  207. }
  208. .jp-DirListing-item.lm-mod-drag-image,
  209. .jp-DirListing-item.jp-mod-selected.lm-mod-drag-image {
  210. font-size: var(--jp-ui-font-size1);
  211. padding-left: 4px;
  212. margin-left: 4px;
  213. width: 160px;
  214. background-color: var(--jp-ui-inverse-font-color2);
  215. box-shadow: var(--jp-elevation-z2);
  216. border-radius: 0px;
  217. color: var(--jp-ui-font-color1);
  218. transform: translateX(-40%) translateY(-58%);
  219. }
  220. .jp-DirListing-deadSpace {
  221. flex: 1 1 auto;
  222. margin: 0;
  223. padding: 0;
  224. list-style-type: none;
  225. overflow: auto;
  226. background-color: var(--jp-layout-color1);
  227. }
  228. .jp-Document {
  229. min-width: 120px;
  230. min-height: 120px;
  231. outline: none;
  232. }