/**
 * Styles for the examples of this repo.
 * Internal use of this repo only.
 */

@import (reference) "fonts";
@import (reference) "colors";

.example {
  &__top {
    margin-bottom: -60px;
  }

  &__section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  &__header {
    .header;
    display: block;
    width: 100%;
    border-bottom: 1px solid @color--gray-dark;
  }

  &__code {
    width: calc(~"100% - 20px");
  }

}

pre {
  background: #f5f2f0;
  overflow-x: auto;
  padding: 1em;
  margin: .5em 0;
}

.boxer {
  display: inline-block;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.color-table {
  td:nth-child(1) {
    padding-right: 15px;
  }

  td:nth-child(2) {
    padding: 2px 5px;
  }
}


-cell {

  .white& {
    background-color: @color--white;
    &:before {
      content: "@{color--white}";
    }
  }

  .black& {
    background-color: @color--black;
    &:before {
      content: "@{color--black}";
      color: @color--white;
    }
  }

  .off-white& {
    background-color: @color--off-white;
    &:before {
      content: "@{color--off-white}";
    }
  }

  .gray-lighter& {
    background-color: @color--gray-lighter;
    &:before {
      content: "@{color--gray-lighter}";
    }
  }

  .gray-light& {
    background-color: @color--gray-light;
    &:before {
      content: "@{color--gray-light}";
    }
  }

  .gray& {
    background-color: @color--gray;
    &:before {
      content: "@{color--gray}";
    }
  }

  .gray-dark& {
    background-color: @color--gray-dark;
    &:before {
      content: "@{color--gray-dark}";
      color: @color--white;
    }
  }

  .blue& {
    background-color: @color--blue;
    &:before {
      content: "@{color--blue}";
    }
  }

  .blue-dark& {
    background-color: @color--blue-dark;
    &:before {
      content: "@{color--blue-dark}";
    }
  }

  .purple& {
    background-color: @color--purple;
    &:before {
      content: "@{color--purple}";
    }
  }

  .purple-dark& {
    background-color: @color--purple-dark;
    &:before {
      content: "@{color--purple-dark}";
      color: @color--white;
    }
  }

  .yellow-light& {
    background-color: @color--yellow-light;
    &:before {
      content: "@{color--yellow-light}";
    }
  }

  .yellow& {
    background-color: @color--yellow;
    &:before {
      content: "@{color--yellow}";
    }
  }

  .yellow-dark& {
    background-color: @color--yellow-dark;
    &:before {
      content: "@{color--yellow-dark}";
    }
  }

  .red& {
    background-color: @color--red;
    &:before {
      content: "@{color--red}";
    }
  }

  .pink& {
    background-color: @color--pink;
    &:before {
      content: "@{color--pink}";
    }
  }

  .orange& {
    background-color: @color--orange;
    &:before {
      content: "@{color--orange}";
    }
  }

  .orange-dark& {
    background-color: @color--orange-dark;
    &:before {
      content: "@{color--orange-dark}";
    }
  }

  .green& {
    background-color: @color--green;
    &:before {
      content: "@{color--green}";
    }
  }

  .green-dark& {
    background-color: @color--green-dark;
    &:before {
      content: "@{color--green-dark}";
    }
  }
}

.box {
  .boxer;
  height: 100px;
  width: 100px;
}

.box-wrap {
  .boxer;
  padding: 10px;
}
