Skip to content

The Open Standard for Generative UI

4.6 KB
Raw Blame
.footer {
  width: 100%;
}

.absoluteSvg {
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
}

.contentSection {
  /* Open above the brand row, tighter below it, so the mark and the theme
     control read as belonging to the separator they sit on. */
  --footer-air: 60px;
  --footer-air-below: 1.75rem;

  padding: var(--footer-air) 1.25rem 1rem;
  background: var(--openui-foreground);
}

.contentContainer {
  max-width: 75rem;
  margin-inline: auto;
}

.navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-bottom: 3.5rem;
}

.navigationHeading {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--openui-text-neutral-primary);
}

.navigationList {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigationList a {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--openui-text-neutral-secondary);
  transition: color 0.15s ease;
}

.navigationList a:hover,
.navigationList a:focus-visible {
  color: var(--openui-text-neutral-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
  .navigation {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* The mark and the theme control face each other across the footer's width. */
.brandRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: var(--footer-air-below);
}

.logoWrap {
  display: block;
  position: relative;
  /* Held to the mark's own 2.5:1 ratio, so the wordmark never stretches. */
  height: 2.625rem;
  width: 105px;
  flex-shrink: 0;
  color: var(--openui-text-neutral-primary);
}

/* ---- Theme tabs ----
   A segmented pair rather than the header's single swap button, so the footer
   shows which theme is on rather than only offering the other one. */
.themeTabs {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
  padding: 0.25rem;
  border: 1px solid var(--home-hairline);
  border-radius: var(--openui-radius-full);
}

.themeTab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--openui-radius-full);
  background: transparent;
  color: var(--openui-text-neutral-secondary);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.themeTabActive {
  border-color: var(--openui-border-default);
  background: var(--openui-highlight);
  color: var(--openui-text-neutral-primary);
}

.themeTabIcon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.bottomBar {
  padding-block: 1rem;
  border-top: 1px solid var(--home-hairline);
}

.desktopBottomBar {
  display: none;
}

.desktopMetaLeft,
.desktopMetaRight {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--openui-text-neutral-secondary);
}

.desktopMetaLeft {
  text-align: left;
}

.desktopMetaRight {
  text-align: right;
}

.mobileBottomBar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 0 1.25rem;
}

.socialIcons {
  display: flex;
  gap: 1.5rem;
}

.socialLink {
  position: relative;
  height: 1.5rem;
  width: 1.5rem;
  color: var(--openui-text-neutral-secondary);
  transition: color 0.15s ease;
}

/* Steps up to the page's ink under the pointer, so the icon reads as live
   rather than as a static row. */
.socialLink:hover,
.socialLink:focus-visible {
  color: var(--openui-text-neutral-primary);
}

.socialIconWrap {
  position: absolute;
}

.socialIconTwitter {
  inset: 10.82% 4.33% 18.35% 4.17%;
}

.socialIconYoutube {
  left: 50%;
  top: 50%;
  width: 22px;
  height: 15.469px;
  transform: translate(-50%, -50%);
}

.socialIconLinkedIn {
  left: 50%;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translate(-50%, -50%);
}

.mobileMeta {
  margin-top: 2.5rem;
  text-align: center;
}

.mobileMetaText {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--openui-text-neutral-secondary);
}

/* Dark mode: the footer band sits on var(--openui-foreground) (a dark gray raised
   surface) by default; make it pure black so the footer matches the black page. */
[data-theme="dark"] .contentSection {
  background: #000;
}

@media (min-width: 1024px) {
  .contentSection {
    padding-inline: 2rem;
  }

  .mobileBottomBar {
    display: none;
  }

  .desktopBottomBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}