Skip to content

Instantly share code, notes, and snippets.

@MFFunmaker
Last active April 21, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MFFunmaker/194a24945ef96a87fca7af15f12235d7 to your computer and use it in GitHub Desktop.
Save MFFunmaker/194a24945ef96a87fca7af15f12235d7 to your computer and use it in GitHub Desktop.
Dynamic Sass Imports
@function trump-url() {
$className: str-slice(#{&}, 2, str-length(#{&}));
@return "../trump/#{$className}.scss";
}
.signup {
$googleapi: 'googleapis';
@import url('https://fonts.#{$googleapi}.com/css?family=UnifrakturCook:700');
@import "#{trump-url()}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment