Skip to content

Instantly share code, notes, and snippets.

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 Danilo-Araujo-Silva/42e7965c77871c94ce8705267456b8a4 to your computer and use it in GitHub Desktop.
Save Danilo-Araujo-Silva/42e7965c77871c94ce8705267456b8a4 to your computer and use it in GitHub Desktop.
// This certainly is not the best way to do this.
// But I couldn't find an approach using the Sass elements for now. If you have a better approach please let me know.
// convention to a local variable
$_local: (
// some stuff here
);
// if we need to add new entries that depends of the other ones we can do this:
$_local: map-merge(
$_local,
(
// more stuff here
)
);
// convetion to local functions
@function _local-name-of-the-function (args...) {
// some stuff here
}
...
...
...
// overriding the definitions
$_local: null;
// unfortunally with this maybe we create several empty functions, but name the function with '_local'
// limits to just one function and the function don't tell us what it does.
@function _local-name-of-the-function () {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment