Sha256: fcf8e724675618f7e76d04ddcb1131589c9014a34db32937cab32f4ee3b43cb2

Contents?: true

Size: 828 Bytes

Versions: 11

Compression:

Stored size: 828 Bytes

Contents

.state {
  font-size: 90%;
  font-weight: $font-weight-bold;

  &:before {
    content: '';
    position: relative;
    display: inline-block;
    margin-right: 3px;
    border-radius: $font-size-root/2;
    width: $font-size-root - 4px;
    height: $font-size-root - 4px;
  }

  @each $state in $states {
    &.#{$state}:before {
      background-color: get-value($states, $states-bg-colors, $state);

      // &, a {
      //   color: get-value($states, $states-text-colors, $state);
      // }
    }
  }
}

table tbody tr {
  &[class*="state"] td:first-child {
    border-left-width: 3px;
  }
  &.state-complete td:first-child { border-left-color: $brand-success }
  &.state-cart     td:first-child { border-left-color: very-light($brand-warning, 6) }
  &.state-canceled td:first-child { border-left-color: $brand-danger }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.2.2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.3.0 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.3.0.rc3 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.3.0.rc2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.3.0.rc1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.3.0.beta1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.2.1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.2.0 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.2.0.rc1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-2.2.0.beta1 app/assets/stylesheets/spree/backend/components/_states.scss