{"version":3,"sources":["../../../../src/nhsuk/components/panel/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;AAC9B,oBAAoB;AACpB,mBAAmB;;AAEnB,GAAG;AACH,kBAAkB;AAClB,EAAE;AACF,uDAAuD;AACvD,sFAAsF;AACtF,yCAAyC;AACzC,4FAA4F;AAC5F,8EAA8E;AAC9E,8FAA8F;AAC9F,sCAAsC;;AAEtC,0FAA0F;AAC1F,sFAAsF;AACtF,+FAA+F;AAC/F,2DAA2D;AAC3D,EAAE;AACF,6GAA6G;AAC7G,EAAE;AACF,0BAA0B;AAC1B,GAAG;;AAEH;EACE;IACE,sBAAsB;IACtB,qDAAqD,EAAE,QAAQ;IAC/D,mDAAmD,EAAE,QAAQ;IAC7D,iCAAiC;IACjC,sCAAsC;;IAEtC,4BAA4B;IAC5B,6CAA6C;;IAE7C,8CAA8C;IAC9C;;;MAGE,iCAAiC;IACnC;;IAEA;;MAEE,sDAAsD;MACtD,4CAA4C;IAC9C;;IAEA;MACE,qDAAqD,EAAE,QAAQ;MAC/D,8BAA8B,EAAE,QAAQ;IAC1C;;IAEA;MACE,0BAA0B;MAC1B,+BAA+B;MAC/B,gBAAgB;IAClB;EACF;;EAEA;IACE,qCAAqC;;IAErC;;MAEE,sDAAsD;MACtD,sDAAsD;IACxD;EACF;;EAEA;;;IAGE,aAAa;EACf;;EAEA;;;;;IAKE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;;;IAGE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;;;IAGE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;;;IAGE,gBAAgB;EAClB;;EAEA;IACE;MACE,gBAAgB;IAClB;;IAEA,8CAA8C;IAC9C;MACE,gCAAgC;IAClC;EACF;;EAEA;;IAEE,2CAA2C;EAC7C;;EAEA;;;;IAIE,6BAA6B;;IAE7B;MACE,6BAA6B;IAC/B;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n@use \"settings\" as *;\n@forward \"settings\";\n\n////\n/// Panel component\n///\n/// 1. Adds a transparent border for high contrast modes\n/// 2. This subtracts the transparent border width from the padding (because the border\n///    visually adds to the total padding)\n/// 3. This is an if-all-else-fails attempt to stop long words from overflowing the container\n///    on very narrow viewports by forcing them to break and wrap instead. This\n///    overflowing is more likely to happen when user increases text size on a mobile eg. using\n///    iOS Safari text resize controls.\n\n///    The overflowing is a particular problem with the panel component since it uses white\n///    text: when the text overflows the container, it is invisible on the white (page)\n///    background. When the text in our other components overflow, the user might have to scroll\n///    horizontally to view it but the text remains legible.\n///\n/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)\n///\n/// @group components/panel\n////\n\n@include nhsuk-exports(\"nhsuk/components/panel\") {\n  .nhsuk-panel {\n    box-sizing: border-box;\n    padding: nhsuk-spacing(5) - $nhsuk-panel-border-width; /* [2] */\n    border: $nhsuk-panel-border-width solid transparent; /* [1] */\n    color: $nhsuk-reverse-text-colour;\n    background: $nhsuk-success-text-colour;\n\n    @include nhsuk-font-size(26);\n    @include nhsuk-responsive-margin(4, \"bottom\");\n\n    // Links within the panel should use white text\n    .nhsuk-link,\n    /* stylelint-disable-next-line selector-no-qualifying-type */\n    a:not(.nhsuk-button) {\n      @include nhsuk-link-style-reverse;\n    }\n\n    [class^=\"nhsuk-caption\"],\n    .nhsuk-u-secondary-text-colour {\n      // stylelint-disable-next-line declaration-no-important\n      color: $nhsuk-reverse-text-colour !important;\n    }\n\n    @media #{nhsuk-until-breakpoint(tablet)} {\n      padding: nhsuk-spacing(4) - $nhsuk-panel-border-width; /* [2] */\n      @include nhsuk-text-break-word; /* [3] */\n    }\n\n    @media print {\n      border-color: currentcolor;\n      color: $nhsuk-print-text-colour;\n      background: none;\n    }\n  }\n\n  .nhsuk-panel--interruption {\n    background-color: $nhsuk-brand-colour;\n\n    [class^=\"nhsuk-caption\"],\n    .nhsuk-u-secondary-text-colour {\n      // stylelint-disable-next-line declaration-no-important\n      color: $nhsuk-reverse-secondary-text-colour !important;\n    }\n  }\n\n  .nhsuk-panel__heading,\n  // Deprecated, to be removed in a future release\n  .nhsuk-panel__title {\n    margin-top: 0;\n  }\n\n  .nhsuk-panel__heading,\n  .nhsuk-panel__heading--xl,\n  // Deprecated, to be removed in a future release\n  .nhsuk-panel__title,\n  .nhsuk-panel__title--xl {\n    @include nhsuk-font-size(48);\n    @include nhsuk-responsive-margin(5, \"bottom\");\n  }\n\n  .nhsuk-panel__heading--l,\n  // Deprecated, to be removed in a future release\n  .nhsuk-panel__title--l {\n    @include nhsuk-font-size(36);\n    @include nhsuk-responsive-margin(3, \"bottom\");\n  }\n\n  .nhsuk-panel__heading--m,\n  // Deprecated, to be removed in a future release\n  .nhsuk-panel__title--m {\n    @include nhsuk-font-size(26);\n    @include nhsuk-responsive-margin(3, \"bottom\");\n  }\n\n  .nhsuk-panel__heading:last-child,\n  // Deprecated, to be removed in a future release\n  .nhsuk-panel__title:last-child {\n    margin-bottom: 0;\n  }\n\n  .nhsuk-panel__body {\n    > :last-child {\n      margin-bottom: 0;\n    }\n\n    // Deduct button group vertical gap from margin\n    > .nhsuk-button-group:last-child {\n      margin-bottom: nhsuk-spacing(-3);\n    }\n  }\n\n  .nhsuk-panel + h2:not([class^=\"nhsuk-caption\"]),\n  .nhsuk-panel + .nhsuk-heading-l {\n    @include nhsuk-responsive-padding(4, \"top\");\n  }\n\n  .nhsuk-panel + h3:not([class^=\"nhsuk-caption\"]),\n  .nhsuk-panel + h4:not([class^=\"nhsuk-caption\"]),\n  .nhsuk-panel + .nhsuk-heading-m,\n  .nhsuk-panel + .nhsuk-heading-s {\n    padding-top: nhsuk-spacing(1);\n\n    @media #{nhsuk-from-breakpoint(tablet)} {\n      padding-top: nhsuk-spacing(2);\n    }\n  }\n}\n"]}
