Sha256: fbcf0513bb95b48ba900ac66c43ee588b6679f55b6397f18feaaea56995c1c3b

Contents?: true

Size: 1.73 KB

Versions: 190

Compression:

Stored size: 1.73 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
///
/// Set this variable to `false` to avoid setting an offset.
///
/// @type Number
/// @access public

$govuk-link-underline-offset: .1em !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

190 entries across 187 versions & 5 rubygems

Version Path
defra_ruby_template-3.15.1 vendor/assets/stylesheets/settings/_links.scss
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/settings/_links.scss
defra_ruby_template-3.15.0 vendor/assets/stylesheets/settings/_links.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_tech_docs-3.4.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.3.3 node_modules/govuk-frontend/govuk/settings/_links.scss
dxw_govuk_frontend_rails-4.0.0 vendor/assets/stylesheets/settings/_links.scss
govuk_publishing_components-35.3.2 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.3.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.3.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_tech_docs-3.3.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.2.0 node_modules/govuk-frontend/govuk/settings/_links.scss
katalyst-govuk-formbuilder-1.4.0 vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.1.1 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.1.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-35.0.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-34.14.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-34.13.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-34.12.0 node_modules/govuk-frontend/govuk/settings/_links.scss
govuk_publishing_components-34.11.0 node_modules/govuk-frontend/govuk/settings/_links.scss