Sha256: 878b9ed9d8e0fc3bd525b6665f65d7b017b6780f52c17a57cb373ae76d41a326

Contents?: true

Size: 1.97 KB

Versions: 78

Compression:

Stored size: 1.97 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: ✔︎

// stylelint-disable max-nesting-depth

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

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

    a {
      overflow-wrap: break-word;
    }

    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

78 entries across 78 versions & 1 rubygems

Version Path
govuk_publishing_components-23.7.4 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.7.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.7.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.7.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.7.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.6.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.5.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.5.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.4.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.3.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.2.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.2.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.1.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-23.0.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.69.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.68.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.68.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.67.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.67.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
govuk_publishing_components-21.67.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss