base.css 5.3 KB

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