Sha256: 1d708015df1567bed57508d1991a97512b449ff293f3a5ec9993d4d6161bf424

Contents?: true

Size: 1.15 KB

Versions: 23

Compression:

Stored size: 1.15 KB

Contents

@import "mixins/prefixed-transform";
@import "govuk/components/accordion/accordion";

// Prevent elements inside the button from receiving click events
.gem-c-accordion__show-all > * {
  pointer-events: none;
}

// This is in place until a proper fix comes through from GOV.UK Frontend.
//
// TODO: Replace with the print styles that will come from GOV.UK Frontend.

@include govuk-media-query($media-type: print) {
  // Open all of the accordion sections.
  .govuk-accordion__section-content {
    display: block !important; // stylelint-disable-line declaration-no-important
  }

  // Change the colour from the blue link colour to black.
  .govuk-accordion__section-button {
    color: govuk-colour("black") !important; // stylelint-disable-line declaration-no-important
  }

  // Change the summary subheading size.
  .govuk-accordion__section-summary {
    @include govuk-typography-common;
    @include govuk-typography-responsive($size: 16, $important: true);
  }

  // Hide the unusable "Show all" and "Show" sections.
  .govuk-accordion__show-all,
  .govuk-accordion__section-toggle {
    display: none !important; // stylelint-disable-line declaration-no-important
  }
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
govuk_publishing_components-34.12.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.11.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.10.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.10.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.9.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.9.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.8.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.8.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.7.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.7.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.6.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.5.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.5.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.4.2 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.4.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.4.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.3.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.2.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.1.3 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-34.1.2 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss