OperationCode/front-end

View on GitHub
styles/policy.module.css

Summary

Maintainability
Test Coverage
.Policy .statisticContainer {
  display: flex;
  flex-direction: column;
  font-family: var(--primaryFontFamily), sans-serif;
  margin-top: 3em;
}

.Policy .statistic {
  background-color: rgba(0, 5, 30, 0.7);
  display: flex;
  margin: 0;
  padding: 0.5rem;
  max-width: 500px;
}

.Policy .statistic + .statistic {
  margin-top: 1rem;
}

.Policy .shortenedStatistic {
  max-width: 370px;
}

.Policy .statisticNumber {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 2.5rem;
  padding: 0 1rem 0 0.5rem;
}

@media screen and (--large-viewport) {
  .Policy .statisticNumber {
    font-size: 2rem;
    line-height: 2rem;
  }
}

@media screen and (--medium-viewport) {
  .Policy .statisticNumber {
    flex-grow: 0;
  }
}

.Policy .statisticDescription {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.7rem;
}