AugurProject/augur-ui

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

Summary

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

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

.AccountDeposit__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;
  }
}

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

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

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

    &:nth-child(2) {
      width: 42%;
    }

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

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

.AccountDeposit__description {
  > p {
    font-size: @font-size-large;
    line-height: 1.5rem;
    margin: 0 0 1.5rem;
  }

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

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

.AccountDeposit__0xInstantButton {
  align-items: left;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;

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

.AccountDeposit__noFeeTextStyle {
  font-weight: 400;
}

.AccountDeposit__copyButtonElement {
  display: flex;
  margin-bottom: 10px;
  text-align: left;
}

.AccountDeposit__copyButtonSvg {
  margin-top: -0.375rem;
}

.AccountDeposit__addressLabel {
  &:extend(.caps);

  color: @color-lightgray;
  font-size: @font-size-normal;
  margin-bottom: 0.625rem;
}

.AccountDeposit__addressString {
  font-size: 15px;
  margin-right: 0.5rem;
  vertical-align: text-top;
}

.AccountDeposit__copyButtonContent {
  display: flex;
  width: 3.125rem;
}

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

  .AccountDeposit__main {
    flex-wrap: wrap;

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

    > div:nth-child(2) {
      padding-right: 0;
      width: 60%;
    }

    > div:last-child {
      border-left: none;
      margin: 2rem 0 0;
      padding: 0;
    }
  }
}

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

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

  .AccountDeposit__main {
    display: block;

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

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

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