Skip to content

The Open Standard for Generative UI

8.3 KB
Raw Blame
.page {
  min-height: 100vh;
  background: var(--openui-foreground);
  color: var(--openui-text-neutral-primary);
}

[data-theme="dark"] .page {
  background: #000;
}

.content {
  display: grid;
  gap: 4rem;
  max-width: var(--home-container-max);
  margin-inline: auto;
  padding: 3rem var(--home-section-padding-inline) 8rem;
}

.section {
  display: grid;
  gap: 1.25rem;
  /* Keeps #anchor targets clear of the sticky site header. */
  scroll-margin-top: 6rem;
}

.sectionHeader {
  display: grid;
  gap: 0.5rem;
}

.sectionHeader h2 {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.sectionHeader p {
  max-width: 48rem;
  margin: 0;
  color: var(--openui-text-neutral-secondary);
  font-family: var(--home-font-display);
  font-size: var(--home-body-size);
  line-height: 1.5;
}

.sectionHeader a {
  color: var(--openui-text-neutral-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sectionHeader h2 a {
  color: inherit;
  text-decoration: none;
}

.sectionHeader h2 a:hover {
  text-decoration: underline;
}

.sectionHeader code {
  font-family: var(--home-font-mono);
  font-size: 0.875em;
}

.models {
  display: grid;
  gap: 1rem;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.searchIcon {
  position: absolute;
  left: 0.875rem;
  color: var(--openui-text-neutral-secondary);
  pointer-events: none;
}

.searchInput {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem 0 2.5rem;
  border: 1px solid var(--openui-border-default);
  border-radius: 12px;
  background: var(--openui-foreground);
  color: var(--openui-text-neutral-primary);
  font-family: var(--home-font-display);
  font-size: 0.9375rem;
}

.searchInput::placeholder {
  color: var(--openui-text-neutral-secondary);
}

.searchInput:focus-visible {
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 1px;
}

.tableWrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 760px;
  border: 1px solid var(--openui-border-default);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
  font-family: var(--home-font-display);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: left;
}

.table th,
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--openui-border-default);
  vertical-align: middle;
}

.table thead th {
  background: var(--openui-highlight-subtle);
  color: var(--openui-text-neutral-secondary);
  font-weight: 400;
}

.sortButton {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sortButton svg {
  opacity: 0.4;
}

.sortButton:hover,
.sortButton[data-active="true"] {
  color: var(--openui-text-neutral-primary);
}

.sortButton:hover svg,
.sortButton[data-active="true"] svg {
  opacity: 1;
}

.sortButton:focus-visible {
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 2px;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: var(--openui-highlight-subtle);
}

.colContext {
  width: 9rem;
}

.colPrice {
  width: 7.5rem;
}

.colDate {
  width: 9rem;
}

.colZdr {
  width: 6rem;
}

.center {
  text-align: center !important;
  white-space: nowrap;
}

.numeric {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.model {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mark {
  display: grid;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--openui-border-default);
  border-radius: var(--openui-radius-full);
  color: var(--openui-text-neutral-primary);
  font-size: 0.75rem;
}

.markIcon {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.modelText {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.modelName {
  color: var(--openui-text-neutral-primary);
  overflow-wrap: anywhere;
}

.modelId {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--openui-text-neutral-secondary);
  font-family: var(--home-font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
}

.modelId svg {
  flex: none;
}

.modelId code {
  font-family: inherit;
  overflow-wrap: anywhere;
  text-align: left;
}

.modelId:hover {
  color: var(--openui-text-neutral-primary);
}

.modelId:focus-visible {
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 2px;
}

.muted {
  color: var(--openui-text-neutral-secondary);
}

.free {
  color: var(--openui-text-success-primary);
}

.toggle {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--openui-text-neutral-secondary);
  font: inherit;
  cursor: pointer;
}

.toggle:hover {
  color: var(--openui-text-neutral-primary);
}

.toggle:focus-visible {
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 2px;
}

.status {
  padding-block: 2.5rem !important;
  color: var(--openui-text-neutral-secondary);
  text-align: center;
}

.status a {
  color: var(--openui-text-neutral-primary);
  text-decoration: underline;
}

/* Tailwind preflight makes svg `display: block`, which ignores the cell's text-align. */
.zdrYes {
  display: inline-block;
  color: var(--openui-text-success-primary);
  vertical-align: middle;
}

.zdrNo {
  display: inline-block;
  color: var(--openui-text-neutral-tertiary);
  vertical-align: middle;
}

.zdrNote {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
}

.infoButton {
  display: inline-grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--openui-text-neutral-secondary);
  cursor: help;
}

.infoButton:hover {
  color: var(--openui-text-neutral-primary);
}

.infoButton:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 2px;
}

/* Rendered in a portal outside .homeTheme, so it uses the global --openui tokens only. */
.tooltip {
  z-index: 50;
  max-width: 16rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--openui-border-default);
  border-radius: 8px;
  background: var(--openui-popover-background);
  box-shadow: var(--openui-shadow-m);
  color: var(--openui-text-neutral-primary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--openui-text-neutral-secondary);
  font-family: var(--home-font-display);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pageControls {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.pageButton {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--openui-border-default);
  border-radius: 8px;
  background: var(--openui-foreground);
  color: var(--openui-text-neutral-primary);
  cursor: pointer;
}

.pageButton:disabled {
  cursor: default;
  opacity: 0.4;
}

.pageButton:focus-visible {
  outline: 2px solid var(--openui-border-interactive);
  outline-offset: 1px;
}

/* Phones: each row becomes a card with the model on top and labeled values below. */
@media (max-width: 767px) {
  .table {
    min-width: 0;
    table-layout: auto;
  }

  .table colgroup,
  .table thead {
    display: none;
  }

  .table tbody,
  .table tr {
    display: block;
  }

  .table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 14px 16px;
    border-bottom: 1px solid var(--openui-border-default);
  }

  .table tbody tr:last-child {
    border-bottom: 0;
  }

  .table tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .table tbody td:first-child {
    flex-basis: 100%;
    margin-bottom: 0.25rem;
  }

  .table .numeric,
  .table .center {
    text-align: left !important;
  }

  .table td[data-label]::before {
    display: block;
    color: var(--openui-text-neutral-tertiary);
    content: attr(data-label);
    font-size: 0.75rem;
  }

  .status {
    flex-basis: 100%;
  }
}