{"version":3,"sources":["../../../../src/nhsuk/components/action-link/_index.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;AAC9B,kCAAkC;;AAElC,GAAG;AACH,wBAAwB;AACxB,EAAE;AACF,mEAAmE;AACnE,iDAAiD;AACjD,kEAAkE;AAClE,gEAAgE;AAChE,EAAE;AACF,gCAAgC;AAChC,GAAG;;AAEH;EACE,oDAAoD;EACpD,qDAAqD;;EAErD,wCAAwC;EACxC,qDAAqD;;EAErD;IACE,sBAAsB;IACtB,qBAAqB,EAAE,KAAK;;IAE5B,kBAAkB,EAAE,KAAK;;IAEzB,sDAAsD,EAAE,KAAK;;IAE7D,SAAS;;IAET,gBAAgB;;IAEhB,gBAAgB;;IAEhB,eAAe;;IAEf;MACE;QACE,0BAA0B,EAAE,KAAK;MACnC;IACF;;IAEA,uEAAuE;IACvE,iCAAiC;IACjC,sCAAsC;;IAEtC,6CAA6C;;IAE7C;MACE,wDAAwD;IAC1D;;IAEA;MACE,sDAAsD,EAAE,KAAK;MAC7D,mEAAmE;IACrE;;IAEA;;;MAGE,sDAAsD;MACtD,8BAA8B;IAChC;;IAEA;MACE,kBAAkB;MAClB,2BAA2B;;MAE3B;QACE,2BAA2B;QAC3B,wBAAwB;QACxB,yBAAyB;MAC3B;IACF;;IAEA;;;MAGE,2BAA2B;;MAE3B;QACE,gBAAgB;MAClB;IACF;EACF;;EAEA;IACE,iCAAiC;;IAEjC;MACE,sDAAsD;MACtD,sDAAsD;IACxD;;IAEA;;;MAGE,gCAAgC;;MAEhC;QACE,gBAAgB;MAClB;IACF;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"sass:math\";\n@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n@forward \"../../core/styles/icons\";\n\n////\n/// Action link component\n///\n/// 1. Display inline-block so top and bottom margins are respected.\n/// 2. Add sufficient space between icon and text.\n/// 3. Position is relative so the arrow icon can display absolute.\n/// 4. Text decoration none used to override default <a> styling.\n///\n/// @group components/action-link\n////\n\n@include nhsuk-exports(\"nhsuk/components/action-link\") {\n  $_small-icon-size: nhsuk-px-to-rem($nhsuk-icon-size);\n  $_small-icon-spacing: math.div($_small-icon-size, 10);\n\n  $_large-icon-size: nhsuk-px-to-rem(36px);\n  $_large-icon-spacing: math.div($_large-icon-size, 10);\n\n  .nhsuk-action-link {\n    box-sizing: border-box;\n    display: inline-block; // [1]\n\n    position: relative; // [3]\n\n    padding-left: $_small-icon-size + $_small-icon-spacing; // [2]\n\n    border: 0;\n\n    background: none;\n\n    text-align: left;\n\n    cursor: pointer;\n\n    &:not(:focus):hover {\n      .nhsuk-action-link__text {\n        text-decoration: underline; // [4]\n      }\n    }\n\n    @include nhsuk-font(22, $weight: bold, $line-height: $_small-icon-size);\n    @include nhsuk-link-style-default;\n    @include nhsuk-link-style-no-underline;\n\n    @include nhsuk-responsive-margin(6, \"bottom\");\n\n    @media print {\n      @include nhsuk-link-style-text($nhsuk-print-text-colour);\n    }\n\n    @media #{nhsuk-from-breakpoint(tablet)} {\n      padding-left: $_large-icon-size + $_large-icon-spacing; // [2]\n      line-height: nhsuk-line-height($_large-icon-size, $font-size: 22px);\n    }\n\n    &:focus .nhsuk-u-secondary-text-colour,\n    &:hover .nhsuk-u-secondary-text-colour,\n    &:active .nhsuk-u-secondary-text-colour {\n      // stylelint-disable-next-line declaration-no-important\n      color: currentcolor !important;\n    }\n\n    .nhsuk-icon {\n      position: absolute;\n      left: -$_small-icon-spacing;\n\n      @media #{nhsuk-from-breakpoint(tablet)} {\n        left: -$_large-icon-spacing;\n        width: $_large-icon-size;\n        height: $_large-icon-size;\n      }\n    }\n\n    &:not(:focus) .nhsuk-icon,\n    &:not(:focus):hover .nhsuk-icon,\n    &:not(:focus):active .nhsuk-icon {\n      fill: nhsuk-colour(\"green\");\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        fill: ButtonText;\n      }\n    }\n  }\n\n  .nhsuk-action-link--reverse {\n    @include nhsuk-link-style-reverse;\n\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    &:not(:focus) .nhsuk-icon,\n    &:not(:focus):hover .nhsuk-icon,\n    &:not(:focus):active .nhsuk-icon {\n      fill: $nhsuk-reverse-text-colour;\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        fill: ButtonText;\n      }\n    }\n  }\n}\n"]}
