Closed JoniJnm closed 5 years ago
Include variables (colors.scss) and don't generate css code
When I include mdb variables, colors.scss generates css code
Free 4.5.7
I think that the files that define variables should not generate css code. For example I need to include bootstrap and mbd variables:
@import ".../core/bootstrap/functions"; @import ".../core/bootstrap/variables"; @import ".../core/mixins"; @import ".../core/colors"; @import ".../core/variables";
But colors.scss generates css code
@each $color_name, $color in $material-colors { .#{$color_name} { background-color: $color !important; } }
Can you move this to another file? Maybe to global.scss
Hi, we will think about a better solution for colors, thank you. Best, Marta
It's done but still exists:
https://github.com/mdbootstrap/bootstrap-material-design/blob/master/scss/core/_colors.scss#L614-L620
You have to move it to global.scss
Hi, we will. Best, Marta
Expected behavior
Include variables (colors.scss) and don't generate css code
Actual behavior
When I include mdb variables, colors.scss generates css code
Your working environment and MDB version information
Free 4.5.7
Resources (screenshots, code snippets etc.)
I think that the files that define variables should not generate css code. For example I need to include bootstrap and mbd variables:
But colors.scss generates css code
Can you move this to another file? Maybe to global.scss