Sha256: 6d4e58c99e78cc8f42fba5fc408286023c142c9f8659df0590c2c94f56dfcfc3

Contents?: true

Size: 1.43 KB

Versions: 43

Compression:

Stored size: 1.43 KB

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);

        &:hover,
        &:focus {
          color: darken( nth($organisation, 3), 10% );
        }
      }

      // 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;

// colours for the prime ministers office are not included in the toolkit
// so are written out here for our use

.brand--prime-ministers-office-10-downing-street {
  .brand__color {
    color: $fuschia;

    &:hover,
    &:focus {
      color: darken( $fuschia, 10% );
    }
  }

  &.brand__border-color,
  .brand__border-color {
    border-color: $black;
  }
}

// in the toolkit, civil service has red for the text and borders
// but the required border colour is black, ideally would fix this in
// the toolkit but other things are using it

.brand--civil-service {
  &.brand__border-color,
  .brand__border-color {
    border-color: $black;
  }
}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
govuk_publishing_components-11.2.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-11.1.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-11.0.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-10.2.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-10.1.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-10.0.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.28.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.27.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.26.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.26.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.25.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.24.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.23.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.22.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.21.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.20.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.19.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.18.0 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.17.1 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
govuk_publishing_components-9.17 app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss