Sha256: 6b653b3dadc2a51193d07c068654b9dbeaba82a126824f38cd2e9ac6fee1d7c8

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

@layer components {
  [data-coco][data-component="button-group"] {
    width: fit-content;
    border-radius: 44px;

    &[data-collapsible="true"] {
      @apply opacity-0;

      &.button-group-ready {
        @apply opacity-100;
      }
    }

    .button-group-buttons {
      @apply flex items-center gap-x-2;
      width: fit-content;
    }

    .divider {
      @apply w-0 border-l border-coco-gray-300 self-stretch;
    }

    &[data-reversed="true"] {
      .button-group-buttons {
        @apply flex-row-reverse;
      }
    }

    &[data-align="end"] {
      .button-group-buttons {
        @apply ml-auto;
      }
    }

    &[data-segmented="true"] {
      .button-group-buttons {
        @apply gap-x-0;

        > *:not(:first-child) .coco-button-wrapper,
        > .coco-button-wrapper:not(:first-child) {
          &:not(.button-dropdown .coco-button-wrapper) {
            .coco-button {
              @apply rounded-l-none border-l-0;
            }
          }
        }

        > *:not(:last-child) .coco-button-wrapper,
        > .coco-button-wrapper:not(:last-child) {
          &:not(.button-dropdown .coco-button-wrapper) {
            .coco-button {
              @apply rounded-r-none;
            }
          }
        }
      }

      &[data-floating="true"] {
        @apply shadow-lg;
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coveragebook_components-0.19.0 app/components/coco/buttons/button_group/button_group.css
coveragebook_components-0.18.8 app/components/coco/buttons/button_group/button_group.css
coveragebook_components-0.18.7 app/components/coco/buttons/button_group/button_group.css