Skip to content
Snippets Groups Projects
tailwind.css 2.8 KiB
Newer Older
Richard Blechinger's avatar
Richard Blechinger committed
/* Note that any color adjustments here must also be reflected in custom.css!! */

@tailwind components;
@tailwind utilities;

:root {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  --primary: theme('colors.gray.800');
  --info: theme('colors.aura.purple');
Richard Blechinger's avatar
Richard Blechinger committed
}

header a,
footer a {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  color: theme('colors.gray.50');
Richard Blechinger's avatar
Richard Blechinger committed
}

header a:hover,
footer a:hover {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  color: theme('colors.gray.400');
Richard Blechinger's avatar
Richard Blechinger committed
}

.fc-event {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  padding: 1px 2px;
  background-color: theme('colors.gray.600');
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  border-color: theme('colors.gray.900');
  color: white;
Richard Blechinger's avatar
Richard Blechinger committed
}

.otherShow {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.gray.300');
  border-color: theme('colors.gray.400');
  color: theme('colors.gray.900');
Richard Blechinger's avatar
Richard Blechinger committed
}

.otherShow:hover {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  color: theme('colors.gray.900');
  cursor: pointer;
.currentShow {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.aura.purple');
  border-color: theme('colors.indigo.800');
  color: white;
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
.currentShow.emptySlot {
  background-color: theme('colors.red.600');
  border-color: theme('colors.red.800');
  color: white;
Richard Blechinger's avatar
Richard Blechinger committed
}

.noconflict {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.aura.purple') !important;
  border-color: theme('colors.indigo.800') !important;
  color: white;
Richard Blechinger's avatar
Richard Blechinger committed
}

.timeslot-discarded {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.red.500');
  opacity: 0.5;
  text-decoration: line-through !important;
  color: white;
Richard Blechinger's avatar
Richard Blechinger committed
}

.timeslot-accepted {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.aura.purple');
  border-color: theme('colors.indigo.800');
Richard Blechinger's avatar
Richard Blechinger committed
}

.timeslot-partly {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background-color: theme('colors.aura.purple');
  border-color: theme('colors.indigo.800');
  opacity: 0.5;
  font-weight: bold;
Richard Blechinger's avatar
Richard Blechinger committed
}
thead .fc-day {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  padding: 0.5rem 0;
thead .fc-day a {
  color: inherit;
}

thead .fc-day:hover {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background: theme('colors.gray.200');
  cursor: pointer;
thead .fc-day-selected {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background: theme('colors.red.500');
  color: white;
thead .fc-day-selected:hover {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  background: #a490e0;
  color: white;
.is-mismatched {
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
  color: var(--orange);
@layer utilities {
  .tw-grid-area-cover {
    grid-area: 1 / -1 / 1 / -1;
  }
}

@layer components {
  .btn-default {
    @apply tw-bg-gray-100 tw-border tw-border-solid tw-border-black/5 tw-transition hover:enabled:tw-brightness-95 focus-visible:enabled:tw-brightness-95;
  }

  .aura-table-wrapper {
    @apply tw-bg-white tw-rounded tw-shadow tw-mb-12;
    contain: paint;
  }

  .aura-table {
    @apply tw-border-separate tw-border-spacing-0 tw-w-full;

    & thead th {
      @apply tw-text-sm tw-text-gray-500 tw-border-0 tw-border-b tw-border-solid tw-border-gray-200 tw-font-bold;
    }

    & :is(th, td) {
      @apply tw-py-2 tw-px-4 tw-font-normal;
    }

    & :is(th, td):first-child {
      @apply tw-pl-6;
    }

    & :is(th, td):first-child {
      @apply tw-pr-6;
    }
  }

  .form-control:focus-within {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }