Sha256: c270562d5dacb04beb1e0233ccfea5347307fd5a83547abc917b699fec78bef2

Contents?: true

Size: 1.91 KB

Versions: 25

Compression:

Stored size: 1.91 KB

Contents

////
/// @group settings/links
////

/// Enable new link styles
///
/// If enabled, the link styles will change. Underlines will:
///
/// - be consistently thinner and a bit further away from the link text
/// - have a clearer hover state, where the underline gets thicker to make the
///   link stand out to users
///
/// You should only enable the new link styles if both:
///
/// - you've made sure your whole service will use the new style consistently
/// - you do not have links in a multi-column CSS layout - there's [a Chromium
///   bug that affects links](https://github.com/alphagov/govuk-frontend/issues/2204)
///
/// @type Boolean
/// @access public

$govuk-new-link-styles: false !default;

/// Thickness of link underlines
///
/// The default will be either:
///
///  - 1px
///  - 0.0625rem, if it's thicker than 1px because the user has changed the text
///    size in their browser
///
/// Set this variable to `false` to avoid setting a thickness.
///
/// @type Number
/// @access public

$govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;

/// Offset of link underlines from text baseline
///
/// The default is 3px expressed as ems, as calculated against the default body
/// font size (on desktop) of 19px.
/// 3 รท 19 = 0.1578
///
/// Set this variable to `false` to avoid setting an offset.
///
/// @type Number
/// @access public

$govuk-link-underline-offset: .1578em !default;

/// Thickness of link underlines in hover state
///
/// The default for each link will be the thickest of the following:
///
///  - 3px
///  - 0.1875rem, if it's thicker than 3px because the user has changed the text
///    size in their browser
///  - 0.12em (relative to the link's text size)
///
/// Set this variable to `false` to avoid setting a thickness.
///
/// @type Number
/// @access public

$govuk-link-hover-underline-thickness: unquote("max(3px, .1875rem, .12em)") !default;

/*# sourceMappingURL=_links.scss.map */

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/settings/_links.scss