Sha256: fd4583eb45fd8be8867321b4fc543e9c37e4332d513bead068118709365a97af

Contents?: true

Size: 855 Bytes

Versions: 34

Compression:

Stored size: 855 Bytes

Contents

.state {
  text-transform: uppercase;
  font-size: 80%;
  font-weight: $font-weight-bold;

  &:before {
    content: '';
    position: relative;
    display: inline-block;
    margin-right: 3px;
    border-radius: $body-font-size/2;
    width: $body-font-size - 4px;
    height: $body-font-size - 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: $color-success }
  &.state-cart     td:first-child { border-left-color: very-light($color-notice, 6) }
  &.state-canceled td:first-child { border-left-color: $color-error }
}

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.3 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.1.4 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.0.7 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.3.1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.3.0 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.3.0.rc2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.3.0.rc1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.3.0.beta1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.0.6 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.1.3 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.0.5 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.0 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.0.rc2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.0.4 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.1.2 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.0.rc1 app/assets/stylesheets/spree/backend/components/_states.scss
solidus_backend-1.2.0.beta1 app/assets/stylesheets/spree/backend/components/_states.scss