Sha256: bb276ea17fdfdd263c615a83940f0c5ce7a9345633f676343a3be15782c3dff1

Contents?: true

Size: 826 Bytes

Versions: 15

Compression:

Stored size: 826 Bytes

Contents

.state {
  font-size: 90%;
  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

15 entries across 15 versions & 1 rubygems

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