AugurProject/augur-ui

View on GitHub
src/modules/trading/components/trading--wrapper/trading--wrapper.styles.less

Summary

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

.TradingWrapper__header_buy,
.TradingWrapper__header_sell,
.TradingWrapper__header {
  display: flex;
  padding: 1.3rem 1.875rem 0;

  > li {
    border-bottom: 8px solid transparent;
    color: @color-lightgray;
    text-align: center;
    width: 50%;

    &.active_buy {
      border-bottom-color: @color-positive;
      color: @color-darkpurple;
    }

    &.active_sell {
      border-bottom-color: @color-negative;
      color: @color-darkpurple;
    }

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

      font-weight: 700;
      padding: 1.25rem 0;
      width: 100%;
    }
  }
}

.TradingWrapper__header_buy {
  border-bottom: 1px solid @color-positive;
}

.TradingWrapper__header_sell {
  border-bottom: 1px solid @color-negative;
}

.TradingWrapper__button--add-funds {
  &:extend(.button--purple all);

  margin: 2rem auto 0;
  max-width: 9.5rem;
}

.TradingWrapper__button--login {
  &:extend(.button--purple all);

  margin: 2rem auto 0;
  max-width: 12rem;
}

.TradingWrapper__initial-message {
  font-size: @font-size-large;
  line-height: @font-size-rather-large;
  margin: 7.75rem auto 0;
  max-width: 14rem;
  text-align: center;
}

.TradingWrapper__mobile-header {
  color: @color-white;
  padding: 1.5rem 1rem 0;
  position: relative;
  text-align: center;

  > span {
    display: block;
  }
}

.TradingWrapper__mobile-header-close {
  left: 1rem;
  position: absolute;
  top: 1rem;

  > svg {
    height: 1rem;
    width: 1rem;
  }
}

.TradingWrapper__mobile-header-outcome {
  &:extend(.caps--small);

  font-weight: 500;
  margin-bottom: 1rem;
}

.TradingWrapper__mobile-header-last {
  color: @color-lightgray;
}

@media @breakpoint-mobile {
  .TradingWrapper {
    background-color: @color-almostblack;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    top: 2.3rem;
    width: 100vw;
    z-index: 30;
  }

  .TradingWrapper__header_buy,
  .TradingWrapper__header_sell,
  .TradingWrapper__header {
    border-bottom-color: @color-lightgray;
    padding: 0.5rem 0 0;

    > li {
      border-bottom: 8px solid transparent;
      color: @color-lightgray;
      text-align: center;
      width: 50%;

      &.active_buy {
        border-bottom-color: @color-positive;
        color: @color-positive;
      }

      &.active_sell {
        border-bottom-color: @color-negative;
        color: @color-negative;
      }

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

        font-weight: 700;
        padding: 1.25rem 0;
        width: 100%;
      }
    }
  }
}