Sha256: a37d8485904e5e8e2cdde9e7a5e68a8a1e929c6b7bc2b3d7707edd6eee13f46b

Contents?: true

Size: 1.27 KB

Versions: 83

Compression:

Stored size: 1.27 KB

Contents

.gem-c-heading {
  @include govuk-text-colour;
  @include bold-27;
  margin: 0;
}

.gem-c-heading--font-size-24 {
  @include bold-24;
}

.gem-c-heading--font-size-19 {
  @include bold-19;
}

// special case for publications and consultations pages
// separated to allow normalisation of the component for wider use
.gem-c-heading--mobile-top-margin {
  margin-top: $gutter;
  margin-bottom: $gutter-half;

  @include media(tablet) {
    margin-top: 0;
    margin-bottom: $gutter;
  }
}

.gem-c-heading--padding {
  padding: $gutter-half 0;
}

// margins would ideally be handled by a general model for all components
// but we don't have one yet, so this is in anticipation of that
// suggested scale is as follows, not fully implemented
// $gutter = 4
// $gutter-two-thirds = 3
// $gutter-half = 2
// $gutter-one-third = 1
.gem-c-heading--margin-bottom-4 {
  margin-bottom: $gutter;
}

.gem-c-heading--margin-bottom-2 {
  margin-bottom: $gutter-half;
}

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

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
govuk_publishing_components-16.12.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.11.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.10.1 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.10.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.9.2 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.9.1 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.9.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.8.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.7.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.6.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.5.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.4.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.3.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.2.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.1.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-16.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-15.3.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-15.2.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-15.1.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss
govuk_publishing_components-15.0.0 app/assets/stylesheets/govuk_publishing_components/components/_heading.scss