Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

10.6 KB
Raw Blame
@import "./fonts.css";

:root {
  --vp-layout-max-width: 100vw;
  --vp-c-brand-1: #285e52;
  --vp-c-brand-2: #1d4d42;
  --vp-c-brand-3: #347361;
  --vp-c-brand-soft: rgba(52, 115, 97, 0.07);
  --vp-c-bg: #f5f4ed;
  --vp-c-bg-alt: #eceae0;
  --vp-c-bg-elv: #f5f4ed;
  --vp-c-bg-soft: #eceae0;
  --vp-c-text-1: #202723;
  --vp-c-text-2: #5c665f;
  --vp-font-family-base: "IBM Plex Sans", "LXGW Neo XiHei Screen Full", sans-serif;
  --vp-font-family-display: "Source Serif 4", "Noto Serif SC", serif;
  --vp-font-family-mono: "OV Code", ui-monospace, monospace;

  /* Embed-widget theming. The widget renders in a shadow root whose :host does
     `all: initial` — that resets inherited properties but NOT custom
     properties, so these reach it and paint the panel in the docs palette.
     Written in terms of --vp-* so the appearance toggle carries them; the
     .dark block below only redefines what cannot be expressed that way. */
  --ovw-font: var(--vp-font-family-base);
  --ovw-mono: var(--vp-font-family-mono);
  --ovw-bg: var(--vp-c-bg-elv);
  --ovw-raised: var(--vp-c-bg-soft);
  --ovw-inset: var(--vp-c-bg-alt);
  --ovw-code-bg: var(--vp-c-bg-alt);
  --ovw-fg: var(--vp-c-text-1);
  --ovw-muted: var(--vp-c-text-2);
  --ovw-border: var(--vp-c-divider);
  --ovw-accent: var(--vp-c-brand-1);
  --ovw-accent-fg: #ffffff;
  --ovw-accent-soft: var(--vp-c-brand-soft);
  --ovw-accent-border: rgba(20, 184, 166, 0.34);
  --ovw-shadow: var(--vp-shadow-3);
  --ovw-launcher-shadow: var(--vp-shadow-2);
  --ovw-rail-bg: var(--vp-c-bg);
  /* Height of the fixed VPNav; without it the rail slides under the navbar. */
  --ovw-rail-top: 64px;
}

@media (min-width: 1280px) {
  .VPContent .VPDoc.has-aside > .container > .content {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
    width: auto;
  }

  .VPContent .VPDoc.has-aside > .container > .content > .content-container {
    width: 100%;
    max-width: 800px;
  }
}

@media (min-width: 1600px) {
  :root {
    --vp-layout-max-width: calc(100vw - 176px);
  }
}

.dark {
  --vp-c-brand-1: #b3d5bb;
  --vp-c-brand-2: #c3e6cb;
  --vp-c-brand-3: #527b61;
  --vp-c-brand-soft: rgba(179, 213, 187, 0.07);
  --vp-c-bg: #1a1917;
  --vp-c-bg-alt: #242320;
  --vp-c-bg-elv: #242320;
  --vp-c-bg-soft: #242320;
  --vp-c-text-1: #e9ece7;
  --vp-c-text-2: #a0aaa2;

  /* The rest of the --ovw-* map inherits from --vp-* and flips with this
     block; only the two literals need restating. */
  --ovw-accent-fg: #0f0f0f;
  --ovw-accent-border: rgba(94, 234, 212, 0.34);
}

.VPNavBarSearch {
  display: none !important;
}

.VPSidebar .VPSidebarItem > .item {
  -webkit-user-select: none;
  user-select: none;
}

.ov-docs-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 20px 24px;
  background: rgba(0, 0, 0, 0.36);
}

.ov-docs-search-dialog {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 108px));
  overflow: visible;
  border: 1px solid var(--vp-c-divider);
  border-radius: 8px;
  background: var(--vp-c-bg);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.ov-docs-search-bar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--vp-c-divider);
}

.ov-docs-search-mode-button,
.ov-docs-search-input {
  height: 42px;
  border: 1px solid var(--vp-c-divider);
  border-radius: 8px;
  background: var(--vp-c-bg-soft);
  color: var(--vp-c-text-1);
  font: inherit;
}

.ov-docs-search-mode-picker {
  position: relative;
}

.ov-docs-search-mode-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
}

.ov-docs-search-mode-button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-docs-search-mode-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.7;
  transform: translateY(-2px) rotate(45deg);
}

.ov-docs-search-mode-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2;
  width: 210px;
  overflow: hidden;
  border: 1px solid var(--vp-c-divider);
  border-radius: 8px;
  background: var(--vp-c-bg-elv);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.ov-docs-search-mode-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--vp-c-text-1);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ov-docs-search-mode-option:hover,
.ov-docs-search-mode-option.is-selected {
  background: var(--vp-c-bg-soft);
}

.ov-docs-search-mode-option code {
  color: var(--vp-c-text-3);
  font-family: var(--vp-font-family-mono);
  font-size: 12px;
}

.ov-docs-search-input {
  min-width: 0;
  padding: 0 13px;
}

.ov-docs-search-input:focus,
.ov-docs-search-mode-button:focus {
  border-color: var(--vp-c-brand-1);
  outline: 2px solid var(--vp-c-brand-soft);
}

.ov-docs-search-notice {
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid var(--vp-c-divider);
  color: var(--vp-c-text-2);
  font-size: 13px;
}

.ov-docs-search-results {
  max-height: min(560px, calc(100vh - 218px));
  overflow: auto;
  padding: 8px;
}

.ov-docs-search-empty {
  margin: 0;
  padding: 34px 18px;
  color: var(--vp-c-text-2);
  text-align: center;
}

.ov-docs-search-result {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.ov-docs-search-result:hover {
  background: var(--vp-c-bg-soft);
}

.ov-docs-search-result-title {
  color: var(--vp-c-text-1);
  font-size: 15px;
  font-weight: 700;
}

.ov-docs-search-result-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vp-c-text-2);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ov-docs-search-result-path {
  overflow: hidden;
  color: var(--vp-c-text-3);
  font-family: var(--vp-font-family-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ov-docs-search-backdrop {
    padding: 58px 12px 16px;
  }

  .ov-docs-search-bar {
    grid-template-columns: 1fr;
  }
}
.doc-page-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.doc-page-actions > .copy-md-wrap {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.doc-page-actions > .copy-md-wrap {
  margin-left: auto;
}

@media (max-width: 640px) {
  .doc-page-actions {
    align-items: center;
  }
}

.api-example-tabs {
  margin: 20px 0 28px;
}

.api-example-tabs__tablist {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--vp-c-divider);
}

.api-example-tabs__tablist button {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--vp-c-text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.api-example-tabs__tablist button:hover { color: var(--vp-c-text-1); }
.api-example-tabs__tablist button.is-active {
  border-bottom-color: var(--vp-c-brand-1);
  color: var(--vp-c-brand-1);
}

.api-example-tabs > p:has(> strong:first-child) { margin-top: 0; }
.api-example-tabs > div[class*='language-'] { margin: 0; }
.api-example-tabs__panel > p:first-child { margin-top: 0; }
.api-example-tabs__panel > div[class*='language-'] { margin: 0; }
.api-example-tabs-enhancer { display: none; }

/* ── VikingBot rail: the host half of the widget's push contract ────────
   The widget publishes `ov-assistant-open` / `ov-assistant-resizing` /
   `ov-assistant-pill` plus `--ov-rail` on <html>; nothing below reaches into
   the widget. 900px is pinned to the widget's own sheet breakpoint — below it
   the panel is a bottom sheet and there is no rail to make room for. */
@media (min-width: 900px) {
  html.ov-assistant-open .Layout,
  html.ov-assistant-open .VPNav {
    padding-right: var(--ov-rail);
  }

  html.ov-assistant-open .Layout,
  html.ov-assistant-open .VPNav,
  html.ov-assistant-open .VPSidebar {
    transition: padding-right 0.24s ease, right 0.24s ease;
  }

  html.ov-assistant-open .VPContent .VPDoc {
    padding-right: 60px;
    padding-left: 60px;
  }

  html.ov-assistant-open .VPContent .VPDoc.has-aside > .container > .content {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Between the sheet breakpoint and the wide layout there is only room for one
   of {sidebar, doc, aside, rail}. Drop the two navigation columns rather than
   squeezing the prose to a gutter. */
@media (min-width: 900px) and (max-width: 1279px) {
  html.ov-assistant-open .VPSidebar {
    display: none;
  }

  html.ov-assistant-open .VPContent.has-sidebar {
    padding-left: 0;
  }

  html.ov-assistant-open .VPContent .VPDoc > .container > .aside {
    display: none !important;
  }
}

/* The sidebar comes back at 1280, but sidebar + aside + rail leaves the prose
   at ~300px. Screenshots at 1280 made the call: keep the sidebar, drop the
   aside, and the reading column roughly doubles. */
@media (min-width: 1280px) and (max-width: 1439px) {
  html.ov-assistant-open .VPContent .VPDoc > .container > .aside {
    display: none !important;
  }
}

@media (min-width: 900px) and (max-width: 1599px) {
  html.ov-assistant-open .VPContent .VPDoc {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (min-width: 1280px) {
  html.ov-assistant-open .VPSidebar {
    width: var(--vp-sidebar-width);
    padding-left: 60px;
  }

  html.ov-assistant-open .VPContent .VPDoc > .container > .aside {
    max-width: 240px;
    padding-left: 16px;
  }
}

/* A width drag fires on every pointermove; without this each one restarts the
   0.24s ease and the layout trails the pointer. */
html.ov-assistant-resizing .Layout,
html.ov-assistant-resizing .VPNav,
html.ov-assistant-resizing .VPSidebar {
  transition: none;
}

/* Clearance so the entry pill never sits on top of the last line of a page. */
html.ov-assistant-pill .VPContent {
  padding-bottom: 96px;
}

@media (max-width: 899.98px) {
  html.ov-assistant-pill .VPContent {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}

/* The custom menu includes browser-following mode on desktop and mobile. */
.VPNavBarTranslations, .VPNavScreenTranslations { display: none !important; }

/* Architecture page: keep module name and responsibility on one line. */
.vp-doc .module-table th:nth-child(-n + 2),
.vp-doc .module-table td:nth-child(-n + 2) {
  white-space: nowrap;
}