I want to have one .scss file with some varibles for all the rest .scss files. But if I do so its .scss styles are duplicated in all my .scss files:
global.scss - my global variables and styles file
$white: #FFF;
$black: #000;
$bg_red: red;
.mt30 {
margin-top: 30px;
}
header.scss - I want to use global vars and styles in this file.
@include "global"
.foo {
width: 100px;
height: 50px;
backgrounnd-color: $bg_red;
}
main.scss - I want to use global vars and styles in this file too.
@include "global"
.boo {
width: 100px;
height: 50px;
backgrounnd-color: $white;
}
But each final .css file has styles from global.scss. So I have several .mt30 styles on my page. How to avoid it?