Last active
March 4, 2017 02:16
-
-
Save Danilo-Araujo-Silva/42e7965c77871c94ce8705267456b8a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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