Sha256: 7f501460bf39fc756735e4d9731f406a54f671639eda75da22c2192685775b9e

Contents?: true

Size: 1.88 KB

Versions: 102

Compression:

Stored size: 1.88 KB

Contents

@import "../helpers/markdown-typography";
// Govspeak typography
// https://components.publishing.service.gov.uk/component-guide/govspeak/heading_levels
// https://components.publishing.service.gov.uk/component-guide/govspeak/lists
// https://components.publishing.service.gov.uk/component-guide/govspeak/nested_lists
// https://components.publishing.service.gov.uk/component-guide/govspeak/blockquote
//
// Support:
// - alphagov/whitehall: ✔︎
// - alphagov/govspeak: ✔︎

.gem-c-govspeak {
  @include markdown-typography;

  &.direction-rtl ol,
  &.direction-rtl ul {
    margin-left: 0;
    margin-right: govuk-spacing(4);

    ul,
    ol {
      margin-top: 0;
      margin-bottom: 0;
    }
  }

  // Block quotes

  blockquote {
    padding: 0 0 0 govuk-spacing(4);
    margin: 0;
    border: 0;

    @include govuk-media-query($from: desktop) {
      margin: 0 0 0 (- govuk-spacing(6));
    }

    p {
      padding-left: govuk-spacing(3);

      @include govuk-media-query($from: tablet) {
        padding-left: govuk-spacing(6);
      }

      &:before {
        content: "\201C";
        float: left;
        clear: both;
        margin-left: (- govuk-spacing(3));
      }

      &:last-child:after {
        content: "\201D";
      }
    }
  }

  &.direction-rtl blockquote {
    padding: 0 govuk-spacing(4) 0 0;

    @include govuk-media-query($from: desktop) {
      margin: 0 (- govuk-spacing(6)) 0 0;
    }

    p {
      padding-right: govuk-spacing(3);
      padding-left: 0;

      @include govuk-media-query($from: tablet) {
        padding-right: govuk-spacing(6);
        padding-left: 0;
      }

      &:before {
        content: "\201D";
        float: right;
        margin-right: (- govuk-spacing(3));
        margin-left: 0;
      }

      &:last-child:after {
        content: "\201C";
      }
    }
  }

  // Text styles

  em,
  i {
    font-style: normal;
    font-weight: inherit;
  }
}

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
govuk_publishing_components-21.45.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.44.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.43.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.42.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.41.4 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.41.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.41.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.41.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.41.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.40.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.39.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.5 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.4 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.38.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.37.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.36.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.36.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss