AugurProject/augur-ui

View on GitHub
src/modules/reporting/components/time-progress-bar/time-progress-bar.styles.less

Summary

Maintainability
Test Coverage
@import (reference) "~assets/styles/shared";

.TimeProgressBar {
  color: @color-white;
  margin-top: 0.25rem;
  padding: 4.5rem 2rem 0;
}

.TimeProgressBar__graph__forking,
.TimeProgressBar__graph {
  background-color: @color-darkpurple;
  border-radius: 0.1875rem;
  display: flex;
  height: 1.5rem;
  justify-content: space-between;
  margin-top: 0.25rem;
  overflow: hidden;
}

.TimeProgressBar__graph__forking {
  background-color: @color-grayish-purple;
}

.TimeProgressBar__current {
  width: 100%;

  > div {
    background-image: linear-gradient(-90deg, rgba(155, 139, 245, 0.5) 3%, rgba(155, 139, 245, 0) 96%);
    border-right: 0.125rem solid @color-white;
    height: 100%;
    position: relative;

    > span {
      font-size: 0.625rem;
      left: 100%;
      line-height: 0.625rem;
      margin-left: 0.5rem;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      white-space: nowrap;
    }
  }
}

.TimeProgressBar__current_overflow {
  width: 100%;

  > div {
    background-image: linear-gradient(-90deg, rgba(155, 139, 245, 0.5) 3%, rgba(155, 139, 245, 0) 96%);
    border-right: 0.125rem solid @color-white;
    height: 100%;
    position: relative;

    > span {
      font-size: 0.625rem;
      line-height: 0.625rem;
      margin-right: 0.5rem;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      white-space: nowrap;
    }
  }
}

.TimeProgressBar__dispute-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.675rem;
}

.TimeProgressBar__graph-current {
  width: 100%;

  > div {
    background-image: linear-gradient(-90deg, rgba(155, 139, 245, 0.5) 3%, rgba(155, 139, 245, 0) 96%);
    height: 100%;
    position: relative;

    > span {
      font-size: 0.625rem;
      left: 100%;
      line-height: 0.625rem;
      margin-left: 0.5rem;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      white-space: nowrap;
    }
  }
}

.TimeProgressBar__daysLeft {
  display: flex;
  font-family: "Roboto Mono", monospace;
  font-size: @font-size-small;
  font-weight: 500;
  justify-content: flex-end;
  margin-bottom: 1.125rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.TimeProgressBar__value-label {
  color: @color-lightgray;
  font-size: @font-size-small;
  font-weight: 500;
  margin-bottom: 0.3125rem;
  text-transform: uppercase;
}

.TimeProgressBar__value-number {
  align-items: flex-end;
  color: @color-white;
  display: flex;
  font-family: "Roboto Mono", monospace;
  font-size: @font-size-rather-large;
}

.TimeProgressBar__value-number:focus {
  outline: none;
}

.TimeProgressBar__readMore-value-label {
  color: @color-grayish-purple;
  font-size: @font-size-small;
  font-weight: 500;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

.TimeProgressBar__border {
  border-bottom: 0.0625rem solid @color-border-gray;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
}

.TimeProgressBar__readMore-value-number {
  color: @color-almostblack;
  font-family: "Roboto Mono", monospace;
  font-size: @font-size-medium;
  font-weight: 500;
}

.TimeProgressBar__value-unit {
  font-family: @roboto;
  font-size: @font-size-medium;
  font-weight: 400;
  margin-bottom: 0.125rem;
  margin-left: 0.625rem;
  margin-right: 0.3125rem;
}

.TimeProgressBar__rowFees {
  display: flex;
  flex-grow: 1;
}

.TimeProgressBar__readMore-value-unit {
  font-size: @font-size-medium;
  font-weight: 400;
  margin-right: 0.3125rem;
}

.TimeProgressBar__endTime {
  &:extend(.caps--small);

  align-items: baseline;
  color: @color-lightgray;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  font-size: @font-size-small;
  font-weight: 500;
  justify-content: flex-end;
}

.TimeProgressBar__endTimeValue {
  color: @color-white;
  font-family: "Roboto Mono", monospace;
  font-size: @font-size-large;
  font-weight: 500;
  margin-left: 0.75rem;
  text-transform: none;
}

.TimeProgressBar__row {
  display: flex;
  flex-grow: 1;
  margin-top: 1.25rem;
}

.TimeProgressBar__column {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.TimeProgressBar__endTimeRow {
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0.3125rem;
}

.TimeProgressBar__heading {
  color: @color-lightergray;
  letter-spacing: 0.125rem;
  margin: 0 0 1rem;
  text-transform: uppercase;

  > span {
    color: @color-white;
    font-weight: 500;
  }
}

.TimeProgressBar__labels {
  &:extend(.caps--extra-small);

  display: flex;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 0.5rem;
  text-align: left;

  > span:last-child {
    width: 22%;
  }
}

@media @breakpoint-mobile {
  .TimeProgressBar__statsContainer {
    width: 100%;
  }

  .TimeProgressBar__participation {
    margin-top: 1.25rem;
    max-width: 100%;
  }

  .TimeProgressBar {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3.25rem;
  }

  .TimeProgressBar__rowFees {
    flex-direction: row;
  }

  .TimeProgressBar__row {
    flex-direction: column;
  }

  .TimeProgressBar__endTimeValue {
    font-size: 0.95rem;
    line-height: 1rem;
    text-align: right;
  }
}

@media @breakpoint-mobile-small {
  .TimeProgressBar__stake {
    font-weight: 500;
  }
}