Sha256: 25c2c0c3a9154f0a0c7104579b1330a57185db6fc758c01d4f0f6a97bc8b3bae

Contents?: true

Size: 1.4 KB

Versions: 39

Compression:

Stored size: 1.4 KB

Contents

$staacking-order: (
  item: 10,
  primary: 20,
  focused: 30,
);

.Polaris-Connected {
  position: relative;
  display: flex;
}

.Polaris-Connected__Item {
  position: relative;
  z-index: z-index(item, $staacking-order);
  flex: 0 0 auto;

  &:not(:first-child) {
    margin-left: -1px;
  }
}

// This is a violation of our component model, but it's the cleanest
// way to remove the border radii on connected elements.
// stylelint-disable declaration-no-important

.Polaris-Connected__Item--primary {
  z-index: z-index(primary, $staacking-order);
  flex: 1 1 auto;

  &:not(:first-child) * {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  &:not(:last-child) * {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

.Polaris-Connected__Item--connection {
  &:first-child * {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;

    &::after {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }
  }

  &:last-child * {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;

    &::after {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
    }
  }
}

// stylelint-enable declaration-no-important

.Polaris-Connected__Item--focused {
  z-index: z-index(focused, $staacking-order);
}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
polaris_view_helpers-1.2.11 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.10 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.9 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.8 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.7 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.6 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.5 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.4 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.3 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.2 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.1 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.2.0 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.1.6 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.1.5 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.5 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.4 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.3 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.2 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.1 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss
polaris_view_helpers-1.0.0 vendor/assets/stylesheets/shopify-polaris-1.0.3/styles/components/Connected.scss