AugurProject/augur-ui

View on GitHub
src/modules/app/components/inner-banner/inner-banner.styles.less

Summary

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

.InnerBanner {
  align-items: center;
  background: @color-cuttoff-red;
  color: black;
  display: flex;
  font-size: @font-size-normal;
  height: @inner-banner-height;
  left: 4.5rem;
  line-height: 21px;
  padding: 0 2rem;
  position: absolute;
  right: 0;
  top: @top-bar-height; // have to be under core stats bar
  z-index: 10;

  > div:first-of-type {
    align-items: center;
    display: flex;

    > svg > path:last-of-type {
      fill: black;
    }
  }

  > div:last-of-type {
    display: flex;
    flex: 1;

    > span {
      margin-left: 1.75rem;
      margin-right: 100px;
    }

    > a {
      align-items: center;
      display: flex;
      flex: 1;
      font-weight: bold;
      justify-content: flex-end;
      text-decoration: underline;
      white-space: nowrap;
    }
  }

  @media @breakpoint-mobile {
    align-items: center;
    font-size: @font-size-small;
    height: @inner-banner-height-mobile;
    left: 0;
    line-height: 1rem;
    padding: 1rem 0.75rem;
    top: @top-bar-height-mobile;

    > div:first-of-type {
      align-items: flex-start;
    }

    > div:last-of-type {
      display: block;
      margin-left: 1rem;

      > span {
        margin-left: 0;
        margin-right: 0;
      }

      > a {
        display: inline;
        margin-left: 0.2rem;
      }
    }
  }

  @media @breakpoint-mobile-small {
    height: @inner-banner-height-mobile-small;
  }
}