<commit_before>@import "../_colours";
@import "../_typography";
@import "../_shims";
@import "../_grid_layout";

@mixin phase-banner {
  padding: 10px 0 8px 0;
  @include media(tablet) {
    padding-bottom: 10px;
  }
  border-bottom: 1px solid $border-colour;

  p {
    margin: 0;
    color: $banner-text-colour;
    @include core-16;
  }

  span {
    @include inline-block;

    width: 75%;
    vertical-align: top;

    @include media(tablet) {
      width: auto;
      vertical-align: baseline;
    }
  }
}

// Phase banner usage:
//
// .phase-banner {
//    @include phase-banner;
// }

@mixin phase-tag($state: alpha) {
  @include inline-block;
  vertical-align: top;

  @include media(tablet){
    vertical-align: baseline;
  }

  margin: 0 8px 0 0;
  padding: 2px 5px 0;

  @include bold-16($line-height: 20/16);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  color: #fff;
  @if $state == alpha {
    background-color: $alpha-colour;
  } @else if $state == beta {
    background-color: $beta-colour;
  }
}

// Phase tag usage:
//
// Alpha
// .phase-tag {
//    @include phase-tag;
// }
//
// Beta
// .phase-tag {
//    @include phase-tag(beta);
// }
<commit_msg>Move mixin usage examples above mixins<commit_after>@import "../_colours";
@import "../_typography";
@import "../_shims";
@import "../_grid_layout";

// Phase banner usage:
//
// .phase-banner {
//    @include phase-banner;
// }

@mixin phase-banner {
  padding: 10px 0 8px 0;
  @include media(tablet) {
    padding-bottom: 10px;
  }
  border-bottom: 1px solid $border-colour;

  p {
    margin: 0;
    color: $banner-text-colour;
    @include core-16;
  }

  span {
    @include inline-block;

    width: 75%;
    vertical-align: top;

    @include media(tablet) {
      width: auto;
      vertical-align: baseline;
    }
  }
}

// Phase tag usage:
//
// Alpha
// .phase-tag {
//    @include phase-tag;
// }
//
// Beta
// .phase-tag {
//    @include phase-tag(beta);
// }

@mixin phase-tag($state: alpha) {
  @include inline-block;
  vertical-align: top;

  @include media(tablet){
    vertical-align: baseline;
  }

  margin: 0 8px 0 0;
  padding: 2px 5px 0;

  @include bold-16($line-height: 20/16);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  color: #fff;
  @if $state == alpha {
    background-color: $alpha-colour;
  } @else if $state == beta {
    background-color: $beta-colour;
  }
}

{'fraction_non_alphanumeric': 0.17180435676120018, 'fraction_numerical': 0.02219482120838471, 'mean_word_length': 2.4971264367816093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5441526', 'n_tokens_mistral': 970, 'n_tokens_neox': 891, 'n_words': 209}