Sha256: 030e108ab9343cf72cefedd6282f9922ccbfb51b9723ed986f8480c0b6d3abaf

Contents?: true

Size: 1.45 KB

Versions: 13

Compression:

Stored size: 1.45 KB

Contents

@layer components {
  [data-coco][data-component="modal"] {
    @apply fixed inset-0 z-[10000] overflow-y-auto scroll-smooth;

    .modal-overlay {
      @apply fixed inset-0 bg-black bg-opacity-60;
    }

    .modal-container {
      @apply relative flex justify-center items-center z-[10000] p-2 sm:p-8;
      min-height: var(--app-height);
    }

    .modal-content {
      @apply contents;
    }

    /* transitions */

    .modal-overlay {
      &.overlay-enter {
        @apply ease-out duration-200;
      }

      &.overlay-enter-start {
        @apply opacity-0;
      }

      &.overlay-enter-end {
        @apply opacity-100;
      }

      &.overlay-leave {
        @apply ease-in duration-150;
      }

      &.overlay-leave-start {
        @apply opacity-100;
      }

      &.overlay-leave-end {
        @apply opacity-0;
      }
    }

    .modal-container {
      &.container-enter {
        @apply ease-out duration-[400ms];
      }

      &.container-enter-start {
        @apply opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95;
      }

      &.container-enter-end {
        @apply opacity-100 translate-y-0 sm:scale-100;
      }

      &.container-leave {
        @apply ease-in duration-150;
      }

      &.container-leave-start {
        @apply opacity-100 translate-y-0 sm:scale-100;
      }

      &.container-leave-end {
        @apply opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95;
      }
    }
  }

  .modal-frame {
    @apply contents;
  }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
coveragebook_components-0.8.8 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.7 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.6 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.5 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.4 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.3 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.2 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.1 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.0 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.0.beta.3 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.0.beta.2 app/components/coco/base/modal/modal.css
coveragebook_components-0.8.0.beta.1 app/components/coco/base/modal/modal.css
coveragebook_components-0.7.10 app/components/coco/base/modal/modal.css