Sha256: df4df0cc331276f50bf74976ef713056e78c72a8993607546295de828a71a998
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
// Helpers // ========================================================================== // Path to assets for use with file-url() is not already defined @if ($path == false) { $path: "/public/images/"; } // Return ems from a pixel value // This assumes a base of 19px @function em($px, $base: 19) { @return ($px / $base) + em; } // Want to see how the grid works? // add this class to the body to see how grid padding is set .example-highlight-grid { .grid-row { background: $grey-2; } .column-highlight { background: $grey-3; width: 100%; } } // Hide for both screenreaders and browsers .hidden { display: none; visibility: hidden; } // Hide, but not for screenreaders .visually-hidden, .visuallyhidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; } // Hide, only when JavaScript is enabled .js-enabled .js-hidden { display: none; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_elements_rails-1.1.2 | vendor/assets/stylesheets/elements/_helpers.scss |