scss-mixins

sass bootstrap4 is not getting applied to my html file

筅森魡賤 提交于 2019-12-13 08:28:11
问题 m newbie to sass i have this html file to which i hve applied sass <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <link href="sass/app.scss" rel="stylesheet" > </head> <body> hhhhhhhhhhhhhhhhhhhhhhhhhhllllllllllllll </body> </html> and my app.scss @import "../node_modules/bootstrap/scss/bootstrap"; body { font: 100% $font-size-lg; color: $red; } these body scss is not getting applied to the html file any help would be appreciated 回答1: app.scss $primary: #3498db; $secondary: #e67e22;

How to fix Error `$map` of `map-get($map, $key)` must be a map in angular / stackblitz

夙愿已清 提交于 2019-12-11 10:53:33
问题 Attempting to create a custom theme with a theme.scss in Stackblitz created the error "Error in @angular/material/_theming.scss (1262:14) argument $map of map-get($map, $key) must be a map". I commented out every section that I thought might be responsible, which did not help. It looks like the error is actually in the angular material, but changing the material-version in package.json did not help either. I found a similar bug Error when creating Angular 2 custom theme, but the question was

How to separate scss function returned values

半城伤御伤魂 提交于 2019-12-11 08:35:48
问题 I have two SCSS maps call $my-map-1 and $my-map-2 . Each map has the keys with their hex value. I wrote a function to return the key and the hex values ( $key , $value ) of each map separately. After that, I wrote a @if condition with my function to check the map. I pass my map name to the function. If map there, check is the $key equal to the given name. If that true, pass the $valu of that $key to my color mixin. This is my code. $my-map-1: ( map-1-color-1: #506c89, map-1-color-2: #737373,

why inspections showing scss file instead of bootstrap.css?

拈花ヽ惹草 提交于 2019-12-10 11:24:02
问题 When I do inspect element on one the row div it shows the element belongs to _grid.scss instead of bootstrap.css . And even the column in the row are not displaying correctly as it should be using bootstrap. Can someone clear this confusion? I don't have any file in my css named as _grid.scss and the path it is referring to is empty as well. TIA 回答1: There are some default SCSS is available in bootstrap. For more information you can follow this link so you can better understand. 回答2: Remove

SASS - Pass $variable to @content from within a @mixin

大憨熊 提交于 2019-12-08 23:34:28
I'm fighting to pass/get a $variable to a @content from within a @mixin. I read extensively online about it and know it's not possible. But maybe someone knows a good variation and/or other solution. I created a SassMeister file to explain it: https://www.sassmeister.com/gist/f5404131ace6e243ef0a6c9cca042889 Anyone who can help me out? Thanks for reaching out ;-) I don't know if it is the best method, but you could create a global variable, change it at every loop and use it. Something like this: $color-1: #333; $color-2: #0073BD; $myvariable:0; $numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;

why inspections showing scss file instead of bootstrap.css?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 11:29:41
When I do inspect element on one the row div it shows the element belongs to _grid.scss instead of bootstrap.css . And even the column in the row are not displaying correctly as it should be using bootstrap. Can someone clear this confusion? I don't have any file in my css named as _grid.scss and the path it is referring to is empty as well. TIA Remove bootstrap.css.map that means source map. You can read more about source maps there https://medium.com/@toolmantim/getting-started-with-css-sourcemaps-and-in-browser-sass-editing-b4daab987fb0 Alternatively you can disable in your inspector tool

how to change the global variable inside a scss mixin

你。 提交于 2019-12-02 09:31:52
问题 theme-variables.scss //--------------------------------------------------------- //Declare a global variable and set it to red color //--------------------------------------------------------- $fg-primary-text: red; //--------------------------------------------------------- //below @mixin is used in styles.scss to pass the custom-theme //--------------------------------------------------------- @mixin cache-theme-colors($theme) { @include set-global-variables($theme); } //-------------------

how to change the global variable inside a scss mixin

≯℡__Kan透↙ 提交于 2019-12-02 03:41:26
theme-variables.scss //--------------------------------------------------------- //Declare a global variable and set it to red color //--------------------------------------------------------- $fg-primary-text: red; //--------------------------------------------------------- //below @mixin is used in styles.scss to pass the custom-theme //--------------------------------------------------------- @mixin cache-theme-colors($theme) { @include set-global-variables($theme); } //--------------------------------------------------------- //local mixin to set the global-variable from the $theme using