Sha256: bf17ad1898a3b797379f7e9bb6ed974577cc4d257b34704e04d21a011d23f622

Contents?: true

Size: 1.22 KB

Versions: 26

Compression:

Stored size: 1.22 KB

Contents

@import "govuk_publishing_components/individual_component_support";
@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

26 entries across 26 versions & 1 rubygems

Version Path
govuk_publishing_components-35.15.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.14.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.13.2 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.13.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.13.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.12.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.11.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.10.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.9.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.8.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.7.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.6.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.5.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.4.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.5 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.4 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.3 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.2 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.1 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
govuk_publishing_components-35.3.0 app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss