Sha256: 15ea8948d3940f4a2f3123f27aec53b3a43ed403ec3f2d1b7312997252d1895a

Contents?: true

Size: 1.37 KB

Versions: 194

Compression:

Stored size: 1.37 KB

Contents

@if not mixin-exists("govuk-exports") {
  @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
}

@import "../base";

@include govuk-exports("govuk/core/section-break") {

  %govuk-section-break {
    margin: 0;
    border: 0;

    // fix double-width section break and forced visible section break
    // when combined with styles from alphagov/elements
    @include govuk-compatibility(govuk_elements) {
      height: 0;
    }
  }

  .govuk-section-break {
    @extend %govuk-section-break;
  }

  // Sizes

  %govuk-section-break--xl {
    @include govuk-responsive-margin(8, "top");
    @include govuk-responsive-margin(8, "bottom");
  }

  .govuk-section-break--xl {
    @extend %govuk-section-break--xl;
  }

  %govuk-section-break--l {
    @include govuk-responsive-margin(6, "top");
    @include govuk-responsive-margin(6, "bottom");
  }

  .govuk-section-break--l {
    @extend %govuk-section-break--l;
  }

  %govuk-section-break--m {
    @include govuk-responsive-margin(4, "top");
    @include govuk-responsive-margin(4, "bottom");
  }

  .govuk-section-break--m {
    @extend %govuk-section-break--m;
  }

  // Visible variant

  %govuk-section-break--visible {
    border-bottom: 1px solid $govuk-border-colour;
  }

  .govuk-section-break--visible {
    @extend %govuk-section-break--visible;
  }
}

Version data entries

194 entries across 191 versions & 4 rubygems

Version Path
defra_ruby_template-3.15.1 vendor/assets/stylesheets/core/_section-break.scss
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/core/_section-break.scss
defra_ruby_template-3.15.0 vendor/assets/stylesheets/core/_section-break.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.5.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.4.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.3.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.2.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.1.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-28.0.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.20.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.19.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.18.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_tech_docs-3.0.1 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.17.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.16.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.15.0 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.14.2 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.14.1 node_modules/govuk-frontend/govuk/core/_section-break.scss
govuk_publishing_components-27.14.0 node_modules/govuk-frontend/govuk/core/_section-break.scss