Sha256: a25b3630b52044367aaf229dcfa46e0c803cf49ce65753163d7806e71bee30cf

Contents?: true

Size: 841 Bytes

Versions: 74

Compression:

Stored size: 841 Bytes

Contents

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

  &: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

74 entries across 74 versions & 2 rubygems

Version Path
spree_backend-2.4.10 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.13 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.2.14 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.9 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.12 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.2.13 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.8 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.11 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.2.12 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.7 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.10 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.6 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.9 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.2.11 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.2.10 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.8 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.5 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.4 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.3.7 app/assets/stylesheets/spree/backend/components/_states.scss
spree_backend-2.4.3 app/assets/stylesheets/spree/backend/components/_states.scss