Skip to content

Commit

Permalink
Merge pull request #234 from alphagov/fix-path-for-rails-and-node-env…
Browse files Browse the repository at this point in the history
…ironments

Fix path for rails and node environments
  • Loading branch information
robinwhittleton committed May 23, 2016
2 parents 3b0eab4 + ab04a06 commit 07b775e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/sass/_govuk-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@import "design-patterns/breadcrumbs";

// Functions
// @import "url-helpers"; // Function to output image-url, or prefixed path (Rails and Compass only)
@import "url-helpers"; // Function to output image-url, or prefixed path (Rails and Compass only)

// GOV.UK elements

Expand Down
5 changes: 3 additions & 2 deletions public/sass/elements/_helpers.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Helpers
// ==========================================================================

// Path to assets for use with file-url() is not already defined
@if ($path == false) {
// If image-url is not defined (if we are not in a Rails environment)
// Set a path to /public/images
@if not(function-exists(image-url)) {
$path: "/public/images/";
}

Expand Down

0 comments on commit 07b775e

Please sign in to comment.