Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

2.3 KB
Raw Blame
@import "tailwindcss";
@import "@rallly/tailwind-config";

/* Any app specific overrides will go here */

body {
  @apply bg-gray-100;
}

@theme {
  --font-display: var(--font-archivo), ui-sans-serif, system-ui, sans-serif;
}

h1,
h2 {
  font-family: var(--font-display);
}

/* Long-form content styles (blog posts, policy pages) */
.longform {
  h2,
  h3,
  h4 {
    @apply mb-4 mt-8;
  }
  h2 {
    @apply scroll-mt-24 text-2xl font-medium tracking-tight text-gray-800;
  }
  h3 {
    @apply text-xl font-medium tracking-tight text-gray-800;
  }
  h4 {
    @apply text-lg font-medium tracking-tight text-gray-800;
  }
  p {
    @apply mb-6 leading-relaxed;
  }
  p:has(> img) {
    @apply flex items-center justify-center overflow-hidden rounded-xl border bg-gray-50 p-2;
  }
  img {
    @apply mx-auto rounded-lg border;
  }
  ul,
  ol {
    @apply mb-6 ml-6;
  }
  ul {
    @apply list-disc;
  }
  ol {
    @apply list-decimal;
  }
  li {
    @apply mb-2;
  }
  hr {
    @apply my-12;
  }
  table {
    @apply mb-6 w-full text-left text-sm;
  }
  th {
    @apply border-b border-gray-200 py-2 pr-4 font-medium text-gray-800;
  }
  td {
    @apply border-b border-gray-100 py-2 pr-4 align-top;
  }
  a {
    @apply text-primary hover:underline;
  }
  blockquote {
    @apply my-6 border-l-4 border-gray-300 pl-4 italic text-gray-700;
  }
  pre {
    @apply my-6 overflow-x-auto rounded-lg border bg-gray-50 p-4;
  }
  code {
    @apply rounded px-1 py-0.5;
  }
  strong {
    @apply font-medium;
  }
}

/*
 * FAQ accordion. `interpolate-size` is what makes height:auto animatable;
 * without it the rules below are inert and <details> toggles instantly.
 */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    overflow: hidden;
    block-size: 0;
    opacity: 0;
    transition:
      block-size 200ms var(--ease-out-expo),
      opacity 200ms var(--ease-out-expo),
      content-visibility 200ms allow-discrete;
    /* content-visibility is discrete; without this the content is hidden
       for the whole closing transition and only the box animates. */
  }

  .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content {
    transition-property: opacity, content-visibility;
  }
}