Sha256: c536700a42f2a9440afd0feae4714d182b5377e89e9cc927884e42f588a25468
Contents?: true
Size: 979 Bytes
Versions: 249
Compression:
Stored size: 979 Bytes
Contents
// stylelint-disable scss/at-extend-no-missing-placeholder .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items. .gem-c-govspeak { @import "govuk/components/button/button"; // Some links in Govspeak should look like buttons[1] when using: // ``` // {button}[Random page](https://gov.uk/random){/button} // ```. // // To make sure that the link styles don't override the button styles this // needs more specificity. // // Govspeak targets link by using element selectors; so the selector // `.gem-c-govspeak a:link` will override `.govuk-button`. Extending // `govuk-button` here gives `gem-c-govspeak .gem-c-button` and prevents the // link-that-looks-like-a-button from being overriden. // [1]: https://github.com/alphagov/govspeak#button .gem-c-button { @extend .govuk-button; } .govuk-button--start { @extend .govuk-button--start; } }
Version data entries
249 entries across 249 versions & 1 rubygems