Sha256: 8cf61be81a3b26a98c336e6ad13d4bc4e7ad8305efeafc985f5371e8d465c2e1

Contents?: true

Size: 448 Bytes

Versions: 15

Compression:

Stored size: 448 Bytes

Contents

@mixin line-through($color: $color-2, $background: $color-1) {
  position: relative;
  text-align: center;

  &:before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    width: 100%;
    height: 1px;
    background: $color;
    z-index: 0;
  }

  > * { // usually a <span> but we'll use an * just in case
    @include padding(null 1rem);
    position: relative;
    background: $background;
    z-index: 1;
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.3 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-1.4.2 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.2 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-1.4.1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.1.0 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.1.0.rc1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.1.0.beta1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.0 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-1.4.0 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.0.rc1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-1.4.0.rc1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-2.0.0.beta1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
solidus_backend-1.4.0.beta1 app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss