File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1- $govuk-assets-path : " /assets/govuk/assets/" !default ;
1+ // Set $govuk-assets-path so that $govuk-images-path and $govuk-fonts-path
2+ // (used below, but set in govuk/base) are correct.
3+ $govuk-assets-path : " /assets/govuk/assets/" ;
4+
5+ // Use Sprockets' asset url helpers to add the http prefix if present.
6+ // GOV.UK Frontend provides hooks for us to define the url lookup functions,
7+ // see https://frontend.design-system.service.gov.uk/sass-api-reference/
8+ @function tech-docs-image-url-function ($filename ) {
9+ @return image-url ($govuk-images-path + $filename );
10+ }
11+
12+ @function tech-docs-font-url-function ($filename ) {
13+ @return font-url ($govuk-fonts-path + $filename );
14+ }
15+
16+ $govuk-font-url-function : " tech-docs-font-url-function" ;
17+ $govuk-image-url-function : " tech-docs-image-url-function" ;
218
319// Include only the bits of GOV.UK Frontend we need
420$govuk-new-link-styles : true;
You can’t perform that action at this time.
0 commit comments