/* Window: glass chrome over the window ground, content on a sheet */ /* The window ground: an aura of ember and orange at the top, fixed so the glass chrome always has light to pick up. */ html { background: radial-gradient( 1100px 620px at 92% -160px, var(--lu-aura-b), transparent 70% ), radial-gradient( 1000px 640px at 4% -200px, var(--lu-aura-a), transparent 70% ), radial-gradient( 800px 480px at 55% -240px, var(--lu-aura-c), transparent 70% ), var(--lu-window); background-attachment: fixed; background-repeat: no-repeat; } body, .main-wrapper { background: transparent; } /* Glass: a soft sheen from the top left, and a lit rim along the bottom edge. */ .navbar { background: radial-gradient( 760px circle at 16% -120%, var(--lu-sheen-glass), transparent 62% ), var(--lu-material-chrome); -webkit-backdrop-filter: var(--lu-blur-chrome); backdrop-filter: var(--lu-blur-chrome); box-shadow: inset 0 calc(-1 * var(--lu-size-hairline)) 0 var(--lu-rim-soft), 0 var(--lu-size-hairline) 0 var(--lu-line); } /* Hover fill for navbar links. Lucent's capsule hover is a brighter white, which vanishes on the light capsule, so light mode darkens instead. */ :root { --nav-hover: var(--lu-fill); } [data-theme='dark'] { --nav-hover: var(--lu-capsule-hover); } /* Navbar controls gather into one glass capsule. */ @media (min-width: 997px) { .navbar__items--right { flex: 0 0 auto; /* Wrap the 30px items with an even 3px, so each hover pill sits concentric with the capsule's rounded ends. */ align-self: center; height: auto; gap: 2px; padding: 3px; border-radius: var(--lu-radius-capsule); background: var(--lu-capsule); box-shadow: var(--lu-shadow-capsule); } .navbar__items--right > .navbar__item { padding: 0; } .navbar__items--right .navbar__link, .navbar__items--right [class*='toggleButton'] { height: var(--lu-size-toolbar-inner); display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--lu-radius-capsule); transition: background-color var(--lu-dur-fast) var(--lu-ease); } .navbar__items--right [class*='toggleButton'] { width: var(--lu-size-toolbar-inner); padding: 0; justify-content: center; } .navbar__items--right .navbar__link:hover, .navbar__items--right [class*='toggleButton']:hover { background: var(--nav-hover); color: var(--lu-ink); } /* Links outside the capsule get the same pill on hover. */ .navbar__items:not(.navbar__items--right) .navbar__link { padding: 6px 12px; border-radius: var(--lu-radius-capsule); transition: background-color var(--lu-dur-fast) var(--lu-ease); } .navbar__items:not(.navbar__items--right) .navbar__link:hover { background: var(--nav-hover); } .navbar__items--right .navbar__search { margin-left: 2px; } } .navbar__title { font-weight: 650; letter-spacing: -0.01em; } .navbar__link { font: var(--lu-type-label); letter-spacing: var(--lu-type-label-tracking); } /* A backdrop-filter makes the navbar the containing block for its fixed children, which would trap the mobile menu inside the 56px bar. Drop the blur while the menu is open. */ .navbar.navbar-sidebar--show { -webkit-backdrop-filter: none; backdrop-filter: none; } /* The mobile menu: the docs sidebar as a drawer, on the same window ground (and aura) the desktop sidebar sits on, with a hairline edge over a scrim. */ .navbar-sidebar { /* Infima sizes both menu panels (main and docs) from this variable. */ --ifm-navbar-sidebar-width: min(320px, 100vw - 2 * var(--lu-space-6)); width: var(--ifm-navbar-sidebar-width); overflow: hidden; /* Its open edge is rounded like the content sheet. */ border-radius: 0 var(--lu-radius-sheet) var(--lu-radius-sheet) 0; background: radial-gradient( 520px 360px at 0% -120px, var(--lu-aura-a), transparent 70% ), radial-gradient( 420px 300px at 100% -140px, var(--lu-aura-b), transparent 70% ), var(--lu-window); box-shadow: var(--lu-size-hairline) 0 0 var(--lu-line), 0 0 32px rgba(20, 22, 40, 0.12); } .navbar-sidebar__backdrop { background: rgba(20, 22, 40, 0.18); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } [data-theme='dark'] .navbar-sidebar__backdrop { background: rgba(0, 0, 0, 0.4); } .navbar-sidebar__brand { height: auto; min-height: 52px; padding: var(--lu-space-2) var(--lu-space-2) var(--lu-space-2) var(--lu-space-4); box-shadow: none; } /* The theme toggle and close button: round controls, like the navbar's. */ .navbar-sidebar__brand [class*='toggleButton'], .navbar-sidebar__close { display: grid; place-items: center; width: var(--lu-size-toolbar-inner); height: var(--lu-size-toolbar-inner); border-radius: 50%; transition: background-color var(--lu-dur-fast) var(--lu-ease); } .navbar-sidebar__brand [class*='toggleButton']:hover, .navbar-sidebar__close:hover { background: var(--nav-hover); } .navbar-sidebar__brand > [class*='toggle'] { margin-right: var(--lu-space-1) !important; } .navbar-sidebar__close { /* At the drawer's far edge, past its rounded corner. */ margin-left: auto; margin-right: var(--lu-space-2); color: var(--lu-ink-muted); } .navbar-sidebar__close svg { width: 14px; height: 14px; } .navbar-sidebar__items .menu { padding: var(--lu-space-1) var(--lu-space-2) var(--lu-space-4); } /* Main menu rows: the docs sidebar's rows, with the current section as the raised chip. */ .navbar-sidebar .menu__link { min-height: var(--lu-size-row); padding: 4px 10px; border-radius: var(--lu-radius-item); font: var(--lu-type-label); font-weight: 400; color: var(--lu-ink-muted); } .navbar-sidebar .menu__link:not(.menu__link--active):hover { background: var(--lu-capsule); } .navbar-sidebar .menu__list:not(.theme-doc-sidebar-menu) > .menu__list-item > .menu__link--active { background: var(--lu-selected); box-shadow: var(--lu-selected-rim); color: var(--lu-accent); font-weight: 600; } .navbar-sidebar .menu__link svg { color: var(--lu-ink-faint); } /* "Back to main menu": a quiet row, not an accent bar. */ .navbar-sidebar__back { width: 100%; margin: 0 0 var(--lu-space-2); padding: 4px 10px; border-radius: var(--lu-radius-item); background: none; color: var(--lu-ink-muted); font: var(--lu-type-label); text-align: left; transition: background-color var(--lu-dur-fast) var(--lu-ease); } .navbar-sidebar__back:hover { background: var(--lu-capsule); color: var(--lu-ink); } /* The docs sidebar is chrome: it sits on the window ground with no divider. */ .theme-doc-sidebar-container { border-right: none !important; } /* The current page: an accent row, in the docs sidebar and the mobile menu. */ .theme-doc-sidebar-menu .menu__link[aria-current='page'] { background: var(--lu-selected); box-shadow: var(--lu-selected-rim); color: var(--lu-accent); } .theme-doc-sidebar-menu .menu__link:not(.menu__link--active):hover { background: var(--lu-capsule); } .theme-doc-sidebar-menu .menu__link { min-height: var(--lu-size-row); padding: 4px 10px; border-radius: var(--lu-radius-item); font: var(--lu-type-label); font-weight: 400; } .theme-doc-sidebar-menu .menu__list { --ifm-menu-link-padding-horizontal: 10px; } .theme-doc-sidebar-menu .menu__list-item:not(:first-child) { margin-top: 1px; } .theme-doc-sidebar-menu .menu__link--active:not(.menu__link--sublist) { font-weight: 600; } .theme-doc-sidebar-menu .menu__list-item-collapsible { border-radius: var(--lu-radius-item); } /* Top-level groups: section labels, sentence case, never shouted. Lucent's caption size is too small for labels this long, so they use the label size at a heavier weight. */ .theme-doc-sidebar-item-category-level-1 { margin-top: var(--lu-space-4) !important; } .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link { font: 600 14px/20px var(--lu-font-sans); letter-spacing: 0; color: var(--lu-ink-muted); } /* The page: one solid sheet, inset from the chrome, lifted by shadow rather than a border. */ @media (min-width: 997px) { /* Room around the sheet: the chrome reads as a frame, not a wall. */ .main-wrapper main { margin: var(--lu-space-4) var(--lu-space-4) var(--lu-space-4) var(--lu-space-2); background: var(--lu-surface); border-radius: var(--lu-radius-sheet); box-shadow: var(--lu-shadow-island), inset 0 var(--lu-size-hairline) 0 var(--lu-rim-soft); } /* Inside the sheet: the same 40px gap from every edge to the content. */ .main-wrapper main > .container { padding: 40px !important; } /* A page whose main is a centred .container (the 404 page) keeps its centring and gets the same room inside the sheet. */ .main-wrapper main.container { margin: var(--lu-space-4) auto; padding: var(--lu-space-8) 40px; } /* The docs sheet takes the space beside the sidebar, margins included (Infima's max-width doesn't count them, so the sheet overflowed). */ .main-wrapper main[class*='docMainContainer'] { flex: 1 1 0; min-width: 0; max-width: none; } .theme-doc-sidebar-menu { padding: var(--lu-space-2) var(--lu-space-2) var(--lu-space-6); } } @media (max-width: 996px) { .main-wrapper main { background: var(--lu-surface); } } /* The navbar mark, sized to the wordmark. */ .navbar__logo { height: 30px; margin-right: 8px; } /* Search: a field on glass. */ .navbar .navbar__search-input, .navbar [class*='searchBar'] input { border-radius: var(--lu-radius-control); background-color: var(--lu-field-on-glass); box-shadow: inset 0 0 0 var(--lu-size-hairline) var(--lu-button-edge); color: var(--lu-ink); } .navbar .navbar__items--right [class*='searchBar'] input { border-radius: var(--lu-radius-capsule); background-color: var(--lu-field-on-glass); box-shadow: none; } /* Light mode's faint ink vanishes on the glass field. */ .navbar [class*='searchBar'] input::placeholder { color: var(--lu-ink-muted); opacity: 1; } /* Focus: the assist ring, Lucent's one gradient border. */ .navbar [class*='searchBar'] input:focus { border: 1.5px solid transparent; background: linear-gradient(var(--lu-field), var(--lu-field)) padding-box, var(--lu-assist-ring) border-box; box-shadow: 0 0 18px -4px color-mix(in srgb, var(--lu-accent) 45%, transparent); } /* Search results: a glass menu; the selected hit is a soft accent row, not a fill. */ :root { /* Solid: a blur can't reach through the navbar's own glass. */ --search-local-modal-background: var(--lu-surface-raised); --search-local-modal-shadow: var(--lu-shadow-popover), inset 0 var(--lu-size-hairline) 0 var(--lu-rim-soft); --search-local-hit-background: transparent; --search-local-hit-shadow: none; --search-local-hit-color: var(--lu-ink); --search-local-hit-active-color: var(--lu-ink); --search-local-muted-color: var(--lu-ink-faint); --search-local-highlight-color: var(--lu-accent); --search-local-input-active-border-color: transparent; } [class*='dropdownMenu'] { border-radius: var(--lu-radius-panel); } [class*='dropdownMenu'] [class*='suggestion'] { border-radius: var(--lu-radius-item); } [class*='dropdownMenu'] [class*='suggestion'][class*='cursor'] { background: var(--lu-accent-soft) !important; }