Skip to content

Commit

Permalink
Merge pull request #197 from shippedcode/assets-support-http-prefix
Browse files Browse the repository at this point in the history
Assets: Support Github pages / http_prefix
  • Loading branch information
lfdebrux authored Jan 21, 2022
2 parents 6f84654 + 29efd4a commit fb030ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/assets/stylesheets/_govuk_tech_docs.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$govuk-assets-path: "/assets/govuk/assets/";
$govuk-assets-path: "/assets/govuk/assets/" !default;

// Include only the bits of GOV.UK Frontend we need
$govuk-new-link-styles: true;
Expand Down
4 changes: 2 additions & 2 deletions lib/assets/stylesheets/modules/_anchored-heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
text-decoration: none;
text-indent: -9999em;

background-image: url('/images/anchored-heading-icon.png');
background-image: image-url('/images/anchored-heading-icon.png');
background-repeat: no-repeat;
background-position: center center;

@include govuk-device-pixel-ratio {
background-image: url('/images/anchored-heading-icon-2x.png');
background-image: image-url('/images/anchored-heading-icon-2x.png');
background-size: $icon-width $icon-height;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/assets/stylesheets/modules/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $input-size: 40px;
padding: 0;
width: $input-size;
height: 100%;
background-image: url('/images/search-button.png');
background-image: image-url('/images/search-button.png');
background-repeat: no-repeat;
background-position: 2px 50%;
text-indent: -5000px;
Expand Down Expand Up @@ -104,7 +104,7 @@ $input-size: 40px;
left: -9px;
width: 10px;
height: 20px;
background: no-repeat url('/images/search-result-caret.svg') center right;
background: no-repeat image-url('/images/search-result-caret.svg') center right;
background-size: contain;
}
}
Expand Down
8 changes: 4 additions & 4 deletions lib/assets/stylesheets/modules/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@
height: 20px;
float: right;

background-image: url('/images/govuk-icn-numbered-list.png');
background-image: image-url('/images/govuk-icn-numbered-list.png');
background-repeat: no-repeat;
background-position: left center;

@include govuk-device-pixel-ratio {
background-image: url('/images/[email protected]');
background-image: image-url('/images/[email protected]');
background-size: 20px 20px;
}
}
Expand All @@ -178,12 +178,12 @@
height: 20px;
cursor: pointer;

background-image: url('/images/govuk-icn-close.png');
background-image: image-url('/images/govuk-icn-close.png');
background-repeat: no-repeat;
background-position: left center;

@include govuk-device-pixel-ratio {
background-image: url('/images/[email protected]');
background-image: image-url('/images/[email protected]');
background-size: 20px 20px;
}

Expand Down

0 comments on commit fb030ae

Please sign in to comment.