{"version":3,"sources":["../../../../src/nhsuk/components/panel/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;;AAE9B,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,2CAA2C;;AAE3C,oCAAoC;AACpC,oDAAoD;;AAEpD;EACE;IACE,sBAAsB;IACtB,qDAAqD,EAAE,QAAQ;IAC/D,mDAAmD,EAAE,QAAQ;IAC7D,iCAAiC;IACjC,iCAAiC;;IAEjC,4BAA4B;IAC5B,6CAA6C;;IAE7C,8CAA8C;IAC9C;;MAEE,iCAAiC;IACnC;;IAEA;MACE,qDAAqD,EAAE,QAAQ;MAC/D,8BAA8B,EAAE,QAAQ;IAC1C;;IAEA;MACE,0BAA0B;MAC1B,gBAAgB;IAClB;EACF;;EAEA;IACE,qCAAqC;EACvC;;EAEA;IACE,aAAa;EACf;;EAEA;;IAEE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;IACE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;IACE,4BAA4B;IAC5B,6CAA6C;EAC/C;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE;MACE,gBAAgB;IAClB;;IAEA,8CAA8C;IAC9C;MACE,gCAAgC;IAClC;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\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$nhsuk-panel-border-width: nhsuk-spacing(1);\n\n// @deprecated To be removed in v11.0\n$nhsuk-border-width-panel: $nhsuk-panel-border-width;\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-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    a:not(.nhsuk-button) {\n      @include nhsuk-link-style-reverse;\n    }\n\n    @include nhsuk-media-query($until: tablet) {\n      padding: nhsuk-spacing(4) - $nhsuk-panel-border-width; /* [2] */\n      @include nhsuk-text-break-word; /* [3] */\n    }\n\n    @include nhsuk-print-colour {\n      border-color: currentcolor;\n      background: none;\n    }\n  }\n\n  .nhsuk-panel--interruption {\n    background-color: $nhsuk-brand-colour;\n  }\n\n  .nhsuk-panel__title {\n    margin-top: 0;\n  }\n\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__title--l {\n    @include nhsuk-font-size(36);\n    @include nhsuk-responsive-margin(3, \"bottom\");\n  }\n\n  .nhsuk-panel__title--m {\n    @include nhsuk-font-size(26);\n    @include nhsuk-responsive-margin(3, \"bottom\");\n  }\n\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"]}
