Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

2.5 KB
Raw Blame
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    @apply antialiased;
    font-size: 16px;
  }

  button {
    &:focus-visible {
      box-shadow: none !important;
    }
  }

  img {
    pointer-events: none;
  }

  .img-rounded-shadow {
    padding: 8px;

    img {
      border-radius: 12px;
      box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.42);
    }
  }

  // tweaks some class code hike
  .ch-codeblock {
    box-shadow: none !important;
  }

  .card-wrapper {
    border-radius: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #ededed 100%);
    box-shadow:
      0px 4px 12px 0px rgba(0, 0, 0, 0.12),
      0px -1px 1px 0px rgba(0, 0, 0, 0.1) inset,
      0px 1px 1px 0px #fff inset;
  }

  .card-wrapper-dark {
    border-radius: 12px;
    background: var(
      --Linear-dark,
      linear-gradient(
        268deg,
        rgba(117, 117, 117, 0.38) 0%,
        rgba(121, 119, 128, 0.33) 100%
      )
    );
    box-shadow:
      0px 4px 12px 0px rgba(0, 0, 0, 0.12),
      0px -1px 1px 0px rgba(0, 0, 0, 0.1) inset,
      0px 0.2px 1px 0px #fff inset;
  }

  // tweaks some class nextra
  .nextra-banner-container {
    padding-left: 8px !important;
    background: radial-gradient(
        58.83% 95.12% at 62.37% 97.91%,
        rgba(238, 203, 255, 0.59) 0%,
        rgba(255, 255, 255, 0) 100%
      ),
      linear-gradient(
        249deg,
        rgba(67, 119, 233, 0.8) 93.59%,
        rgba(194, 226, 255, 0.8) 110.85%
      ) !important;
  }

  footer {
    background-color: transparent !important;

    // Nextra renders an <hr> divider above the footer content; drop that top stroke.
    hr {
      display: none !important;
    }
  }

  .nextra-wrap-container {
    @apply mx-auto max-w-[90rem] pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)];
  }

  nav {
    justify-content: flex-start;
    > a {
      @media (min-width: 768px) {
        margin-right: 0 !important;
      }
    }
    > a:nth-child(2) {
      margin-left: 16px;
    }
    > a:nth-child(4) {
      margin-right: auto !important;
    }
  }
}

// Trim Nextra's footer wrapper bottom padding (its inner div uses nx-py-12 = 3rem)
// so the credit line isn't floating far above the bottom of the page. Kept OUTSIDE
// @layer base on purpose: the selector references Nextra's runtime `.nx-bg-gray-100`
// class (not present in our source), so inside @layer base Tailwind tree-shakes it out.
footer.nx-bg-gray-100 > div {
  padding-bottom: 1rem !important;
}