Sha256: af3065cdef2ea266c6b422b8cfc08dfe859fdcb55885eabcee56fdf2930d73a7

Contents?: true

Size: 1.08 KB

Versions: 32

Compression:

Stored size: 1.08 KB

Contents

@import "../colours";
@import "../typography";
@import "../shims";
@import "../grid_layout";

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

@mixin phase-banner($state: '') {

  @if $state != '' {
    @warn 'Passing a phase to the alpha/beta banners is deprecated';
  }

  padding: 10px 0 8px;

  @include media(tablet) {
    padding-bottom: 10px;
  }

  border-bottom: 1px solid $border-colour;

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

  .phase-tag {
    @include phase-tag();
  }

  span {
    display: table-cell;
    vertical-align: baseline;
  }
}

// Phase tag usage:
//
// Alpha or beta
// .phase-tag {
//    @include phase-tag;
// }

@mixin phase-tag($state: '') {

  @if $state != '' {
    @warn 'Passing a phase to the phase-tag mixin is deprecated';
  }

  @include inline-block;
  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: $white;
  background-color: $govuk-blue;
}

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
govuk_frontend_toolkit-9.0.1 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-9.0.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-8.2.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-8.1.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-8.0.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.6.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
idsk_frontend_toolkit-7.4.3 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.5.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
idsk_frontend_toolkit-7.4.2 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.4.2 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.4.1 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.4.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.3.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk-jekyll-theme-0.1.2 _sass/govuk_frontend_toolkit/design-patterns/_alpha-beta.scss
govuk-jekyll-theme-0.1.1 _sass/govuk_frontend_toolkit/design-patterns/_alpha-beta.scss
govuk-jekyll-theme-0.1.0 _sass/govuk_frontend_toolkit/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.2.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.1.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.0.1 app/assets/stylesheets/design-patterns/_alpha-beta.scss
govuk_frontend_toolkit-7.0.0 app/assets/stylesheets/design-patterns/_alpha-beta.scss