Sha256: ca7d3eeefb2e3549506908f47f72955415acc7f4990d48c1159a171c5ddc74b4

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

// Table of Contents
// ==================================================
// Cohort

// scss-lint:disable ImportantRule
// scss-lint:disable NestingDepth

// Cohort
// ==================================================
.cohort-title {
  background: color(white);
  border: 1px solid color(dark-haze);
  border-bottom: 0;
  font-size: text-size(b);
  font-weight: text-weight(semibold);
  padding: 10px;
  text-align: center;
}
.cohort-table {
  background: light-color(light-haze);
  border: 1px solid color(dark-haze);
  border-spacing: 0;
  border-collapse: collapse;
  font-size: text-size(b);
  margin: auto;
  max-width: 100%;
  width: 100%;

  tr:first-child {
    th {
      border-bottom-width: 3px;

      &:last-child { border-right: 0; }
    }
  }

  td,
  th {
    text-align: center;
    padding: 8px;
  }

  th {
    border-bottom: 1px solid color(dark-haze);
    border-right: 1px solid color(dark-haze);
    font-weight: text-weight(semibold);
  }
}
.cohort-percentage {
  &::after {
    content: '%';
    margin-left: 1px;
  }
}
.cohort-label,
.cohort-total {
  border-bottom: 1px solid color(dark-haze);
  border-right: 1px solid color(dark-haze);
  font-weight: text-weight(semibold);
  width: 80px;
}
.cohort-label { text-align: left !important; }
.cohort-total {
  border-right-width: 3px;
  font-weight: text-weight(normal);
}
.cohort-empty {
  background: color(white);
  border-bottom: 1px solid color(dark-haze);
  border-right: 1px solid color(dark-haze);
}
.cohort-low,
.cohort-medium-low,
.cohort-medium,
.cohort-medium-high,
.cohort-high,
.cohort-hot,
.cohort-extra-hot { color: color(white); }
@each $name, $multiplier in (low: 3, medium-low: 2, medium: 1) {
  .cohort-#{$name} { background: lighten(color(primary), percentage((7.5 * $multiplier) / 100)); }
}
.cohort-medium-high {
  background: color(primary);
}
@each $name, $multiplier in (high: 1, hot: 2, extra-hot: 3) {
  .cohort-#{$name} { background: darken(color(primary), percentage((7.5 * $multiplier) / 100)); }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_frontend-14.0.90 vendor/assets/stylesheets/components/_cohort.scss