Closed eko24ive closed 7 years ago
SASS gives you ability to share variable across other .sass files. For example.
//style.sass $primaryColor: green; @import "typography"
//_typography.sass body color: $primaryColor;
This feature is available since you import any sass file after variable declaration, for example this code wouldn't work
import
@import "typography"// _typography.sass don't know about $primaryColor yet $primaryColor: green;
You can refactor this code:
@import url('../vendor/fonts/OpenSans-Bold.ttf') @import 'mobile' @import 'ipad' $myFont: 'Open Sans' $navColor: #2C3E50 $whiteColor: #FEFEFE $green-blockColor: #18BC9C $greyColor: #333333 $placeholderColor: #A39CAB
And get rid of $greyColor declaration in _mobile.sass
$greyColor
_mobile.sass
Fixed
Good job
SASS gives you ability to share variable across other .sass files. For example.
This feature is available since you
import
any sass file after variable declaration, for example this code wouldn't workYou can refactor this code:
And get rid of
$greyColor
declaration in_mobile.sass