AugurProject/augur-ui

View on GitHub
src/modules/portfolio/components/transaction-meta/transaction-meta.styles.less

Summary

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

.TransactionMetaSubsectionContainer {
  background-color: @color-lightergray;
  padding: 0 2rem 1rem;
}

.TransactionMeta {
  background-color: @color-lightergray;
  border-top: 1px solid @color-lightergray-2;
  display: table;
  padding: 1rem 2rem;
  width: 100%;

  > li {
    display: table-row;

    &:not(:last-child) > span {
      padding-bottom: 0.5rem;
    }

    > span {
      display: table-cell;
      white-space: nowrap;

      &:first-child {
        &:extend(.caps--small);
      }

      &:last-child {
        padding-left: 2.5rem;
        width: 100%;

        /* width: 0; and min-width: 100%; are a nasty fix to get text-overflow: ellipsis; to work in a table layout. */
        > span {
          display: block;
          min-width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 0;
        }
      }
    }
  }
}

.TransactionMetaSubsectionHeader {
  background-color: @color-lightergray;
  border-top: 1px solid @color-lightergray-2;
  display: table;
  font-weight: 700;
  padding: 1rem 0;
  width: 100%;
}

.TransactionMetaSubsection .TransactionMeta {
  border-top: 0;
  padding: 0;
}

@media @breakpoint-mobile-medium {
  .TransactionMeta {
    padding: 1rem 1rem 1.2rem;
  }
}