// ============================================================================
// :: Font styles
// ============================================================================
/**
 * Component used to display a list of the font styles used within the
 * brandplatform. Each style is displayed with a preview and the properties
 * that apply the styling.
 */

// ============================================================================
// :: Settings
// ============================================================================
$definition-maximum-width: 15rem;

// ============================================================================
// :: Root
// ============================================================================
.bp-font-styles {
  position: relative;
}

// ============================================================================
// :: Elements
// ============================================================================
.bp-font-styles__item {
  padding: 1.5rem;
  margin-bottom: 2rem;

  border: 1px solid $bp-border-color-base;

  @include respond-at($bp-breakpoint-tablet-base) {
    margin-bottom: 4rem;
    padding: 3rem;
  }

  @include respond-at($bp-breakpoint-desktop-base) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.bp-font-style__item-name {
  display: block;
  margin-bottom: 2.5rem;

  font-size: $bp-font-size-1x-large;
  font-weight: $bp-font-weight-bold;
}

.bp-font-styles__props {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 4rem;
  margin-top: 4rem;

  border-top: 1px solid $bp-border-color-base;

  @include respond-at($bp-breakpoint-desktop-base) {
    min-width: 40rem;
    width: 40rem;
    padding: 0 0 0 4rem;
    margin: 0 0 0 4rem;

    border-left: 1px solid $bp-border-color-base;
    border-top: 0;
  }
}

.bp-font-styles__props-term {

  @include respond-at($bp-breakpoint-mobile-base) {
    width: $definition-maximum-width;
  }
}

.bp-font-styles__props-definition {
  margin: 0 0 1.4rem 0;

  color: $bp-text-color-dark;

  @include respond-at($bp-breakpoint-mobile-base) {
    width: calc(100% - #{$definition-maximum-width});
  }
}

.bp-font-styles__props-term,
.bp-font-styles__props-definition {

  @include respond-to($bp-breakpoint-mobile-base) {
    width: 100%;
  }

  @include respond-at($bp-breakpoint-mobile-base) {
    margin-bottom: 1.4rem;
  }

  @include respond-at($bp-breakpoint-desktop-base) {
    width: 50%;
  }
}


