Sha256: 2b3905fdb39e8ff76d3895d2519581dab8bf845dad0e4bd99c890fb4afbc1ea4

Contents?: true

Size: 711 Bytes

Versions: 10

Compression:

Stored size: 711 Bytes

Contents

@import "colours/organisation";

// this uses the colours from govuk_frontend_toolkit
// https://github.com/alphagov/govuk_frontend_toolkit/blob/master/stylesheets/colours/_organisation.scss

@mixin organisation-brand-colour() {
  @each $organisation in $all-organisation-brand-colours {
    .brand--#{nth($organisation, 1)} {
      .brand__color {
        color: nth($organisation, 3);
      }

      // the & declaration allows border-color to also be applied to the parent
      // element as required by the heading component, adds 2KB to the CSS
      &.brand__border-color,
      .brand__border-color {
        border-color: nth($organisation, 2);
      }
    }
  }
}

@include organisation-brand-colour;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
govuk_publishing_components-9.2.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.2.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.1.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.1.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.0.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.0.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-8.2.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-8.1.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-8.0.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-8.0.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss