Sha256: 667d811064ba7eb64d5a030b6bf8a78f6b9058ab13960a161e7e2ac7e267389b

Contents?: true

Size: 1.42 KB

Versions: 15

Compression:

Stored size: 1.42 KB

Contents

@layer components {
  [data-coco].coco-button {
    @apply flex transition-colors w-auto bg-transparent text-current border border-transparent select-none flex-none;
    width: min-content;

    .button-element {
      @apply inline-flex w-full no-underline outline-none focus-visible:outline-0;
    }

    .button-inner {
      @apply inline-flex items-center text-center mx-auto gap-2;
      width: fit-content;
    }

    .button-content {
      @apply whitespace-nowrap relative leading-none inline-flex items-center order-2;
    }

    .button-state-content {
      @apply contents;
    }

    .button-icon {
      @apply inline-flex items-center order-1;
    }

    .button-dropdown {
      @apply contents rounded-md;
    }

    .button-toggle {
      @apply order-3;
    }

    /* disabled */

    &[data-disabled="true"] .button-element {
      @apply cursor-not-allowed pointer-events-none;
    }

    /* loading */

    &[data-state="loading"] > .button-element .button-icon {
      @apply animate-spin;
    }

    /* Fit */

    &[data-fit="full"] {
      @apply w-full;
    }

    /* Icons */

    &[data-icon-position="end"] > .button-element {
      .button-content {
        @apply order-1;
      }

      .button-icon {
        @apply order-2;
      }

      .button-toggle {
        @apply order-3;
      }
    }

    &.with-icon[data-collapsed="true"] > .button-element {
      .button-content {
        display: none;
      }
    }
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

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