UNPKG

@jupyterlab/filebrowser

Version:
74 lines (64 loc) 1.83 kB
/*----------------------------------------------------------------------------- | Copyright (c) Jupyter Development Team. | Distributed under the terms of the Modified BSD License. |----------------------------------------------------------------------------*/ /* PathNavigator contains only the input and the suggestions dropdown */ .jp-PathNavigator { position: relative; display: inline-block; } .jp-PathNavigator > input { display: none; width: 100%; box-sizing: border-box; background: var(--jp-layout-color0); color: var(--jp-ui-font-color0); border-radius: var(--jp-border-radius); padding: 2px 6px; font-size: var(--jp-ui-font-size1); font-family: var(--jp-ui-font-family); height: 20px; border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color); } .jp-PathNavigator > input:focus { outline: none; } .jp-PathNavigator-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: var(--jp-layout-color1); border: var(--jp-border-width) solid var(--jp-border-color1); border-radius: var(--jp-border-radius); list-style: none; margin: 2px 0 0; padding: 0; max-height: 200px; overflow-y: auto; box-shadow: var(--jp-elevation-z4); } .jp-PathNavigator-suggestions > li { padding: 4px 8px; cursor: pointer; font-size: var(--jp-ui-font-size1); } .jp-PathNavigator-suggestions > li:hover, .jp-PathNavigator-suggestions > li.jp-mod-active { background: var(--jp-layout-color2); } .jp-PathNavigator-suggestions > li[data-is-dot] { opacity: 75%; } /* * Edit mode: stretch the PathNavigator to fill the full width. */ .jp-BreadCrumbs.jp-mod-editMode > .jp-PathNavigator { display: block; flex: 1; position: relative; } .jp-BreadCrumbs.jp-mod-editMode > .jp-PathNavigator > input { display: block; }