Sha256: 726abf15f3ebc5a8c6ff55e43583f232de805a400c8092e861727485775d7425

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

@import "govuk_publishing_components/individual_component_support";

.gem-c-heading,
.gem-c-heading__text {
  margin: 0;
}

.gem-c-heading--font-size-27 {
  @include govuk-text-colour;
  @include govuk-font(27, $weight: bold);
}

.gem-c-heading--padding {
  padding: govuk-spacing(3) 0;
}

// border color will default to black
// can be changed using the branding functionality
.gem-c-heading--border-top-1 {
  border-top-style: solid;
  border-top-width: 1px;
}

.gem-c-heading--border-top-2 {
  border-top-style: solid;
  border-top-width: 2px;
}

.gem-c-heading--border-top-5 {
  border-top-style: solid;
  border-top-width: 5px;
}

.gem-c-heading--inverse {
  .gem-c-heading__context,
  .gem-c-heading__text {
    color: govuk-colour("white");
  }
}

// stylelint-disable declaration-no-important
@include govuk-media-query($media-type: print) {
  // Override margins and colors
  .gem-c-heading {
    margin: 0 !important;
    color: $govuk-print-text-colour !important;
    border-color: $govuk-print-text-colour !important;
    padding: 0;
  }

  .gem-c-heading--padding[class*="--border-top"] {
    padding-top: govuk-spacing(3);
  }
}
// stylelint-enable declaration-no-important

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-51.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-50.0.1 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-50.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-49.1.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-49.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-48.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-47.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss