Sha256: 84a4622192e7e8b6174da091fbff1de8b7aefd8c81cd140edf9dac0cfe77afd3

Contents?: true

Size: 1.87 KB

Versions: 55

Compression:

Stored size: 1.87 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;

Version data entries

55 entries across 55 versions & 4 rubygems

Version Path
govuk_tech_docs-3.5.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_tech_docs-3.4.5 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.3.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.3.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.2.4 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.2.3 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.2.2 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.2.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.2.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.1.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.1.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-37.0.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-36.1.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-36.0.3 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-36.0.2 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-36.0.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-36.0.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.23.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.22.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.21.4 node_modules/govuk-frontend/govuk/settings/_links.scss