Sha256: f6938ff27dcb9e6940d823b7b0dac153e280afdd5c14277055dfc5b917515d4c

Contents?: true

Size: 980 Bytes

Versions: 8

Compression:

Stored size: 980 Bytes

Contents

.box-statistic {
  background-color: $statBoxBackground;
  margin-bottom: 5px;
  padding: 5px 10px;
  position: relative;

  .title {
    margin: 0;
    line-height: 28px;
  }

  small {
    text-transform: uppercase;
  }

  [class*="icon-"] {
    font-size: 30px;
    top: 13px;

    &.align-left {
      position: absolute;
      left: 10px;
    }

    &.align-right {
      position: absolute;
      right: 10px;
    }
  }

  @for $i from 1 through length($colorsNames) {
    $colorName: nth($colorsNames, $i);
    $color: nth($colors, $i);

    &.#{$colorName}-background {
      .title, small, [class*="icon-"] {
        color: $statBoxContrastColor !important;
      }

      small {
        @include opacity(.7);
      }
    }
  }

  &:hover {
    [class*="icon-"] {
      &.align-right {
        right: 15px;
        @include transition(right .1s linear);
      }

      &.align-left {
        left: 15px;
        @include transition(left .1s linear);
      }
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cg_app_base-1.1.1 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.78 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.62 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.56 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.55 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.54 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.52 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss
cg_app_base-1.0.51 app/assets/stylesheets/flatty/theme/_boxes-statistics.scss