@tailwind base;
@tailwind components;
@tailwind utilities;

.fira-code {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.t-underlined {
  @apply underline underline-offset-4;
}

.t-highlight {
  @apply bg-indigo-400 bg-opacity-20;
}

.t-shortcut-highlight {
  @apply text-indigo-400 font-semibold;
  @apply t-underlined;
}

.t-muted {
  @apply text-gray-400;
  @apply hover:text-white;
}

.t-link {
  @apply hover:text-indigo-400;
  @apply underline underline-offset-4;
}

.t-link-disabled {
  @apply text-gray-400 cursor-not-allowed;
}

.t-border {
  @apply border border-indigo-400;
}

.pagy-nav {
  @apply flex items-center space-x-2 text-gray-500;

  a:not(.gap) {
    @apply block p-1;
    &:hover {
      /* @apply bg-gray-300; */
    }
    &:not([href]) { /* disabled links */
      @apply text-gray-300 cursor-default;
    }
    &.current {
      @apply text-white cursor-pointer;
    }
  }

  label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}
