AugurProject/augur-ui

View on GitHub
src/modules/account/components/account-rep-faucet/account-rep-faucet.styles.less

Summary

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

.AccountRepFaucet {
  background: white;
  padding: 5.5rem 4.625rem 7rem;
}

.AccountRepFaucet__heading {
  margin-bottom: 2.5rem;

  > h1 {
    color: @color-darkpurple;
    display: inline-block;
    font-size: @font-size-extra-large;
    font-weight: 500;
    letter-spacing: 0.14rem;
    margin-bottom: 0;
    margin-right: 1rem;
    text-transform: uppercase;
  }
}

.AccountRepFaucet__main {
  display: flex;
  max-width: @max-width;

  > div {
    padding-left: 5%;
    padding-right: 5%;

    &:first-child {
      padding-left: 0;
      width: 40%;
    }

    &:last-child {
      padding-right: 0;
      width: 60%;
    }

    &:not(:first-child) {
      border-left: 1px solid @color-lightergray;
    }
  }
}

.AccountRepFaucet__description {
  > a {
    &:extend(.caps--large);

    color: @color-purple;
    font-weight: 500;
  }

  p {
    margin-top: 0;
  }
}

.AccountRepFaucet__button {
  &:extend(.button--purple all);
}

.AccountRepFaucet__legacyRep {
  font-weight: bold;
}

@media @breakpoint-mobile {
  .AccountRepFaucet {
    padding: 3.125rem 2rem;
  }

  .AccountRepFaucet__main {
    flex-wrap: wrap;

    > div:first-child {
      width: 40%;
    }

    > div:last-child {
      border-left: none;
      padding: 0;
      width: 60%;
    }
  }
}

@media @breakpoint-mobile-medium {
  .AccountRepFaucet__heading {
    margin-bottom: 1rem;

    > h1 {
      font-size: @font-size-rather-large;
    }
  }

  .AccountRepFaucet__main {
    display: block;

    > div:first-child,
    > div:last-child {
      border-left: none;
      margin: 0 0 2rem;
      padding: 0;
      width: 100%;
    }

    > div:last-child {
      margin-bottom: 0;
    }
  }

  .AccountRepFaucet__description {
    > p {
      font-size: @font-size-normal;
      line-height: @font-size-somewhat-large;
    }
  }
}