Sass compile error with bootstrap

linkaiyi
Follow

Solution when compile sass files which import bootstrap

error: file _root

changed it to the following:

// Do not forget to update getting-started/theming.md!
:root {
  // Custom variable values only support SassScript inside `#{}`.
  @each $color, $value in $colors {
    #{--#{$color}}: #{$value}; //changed
  }

  @each $color, $value in $theme-colors {
    #{--#{$color}}: #{$value}; //changed
  }

  @each $bp, $value in $grid-breakpoints {
    --breakpoint-#{$bp}: #{$value};
  }

  // Use `inspect` for lists so that quoted items keep the quotes.
  // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
  --font-family-sans-serif: #{inspect($font-family-sans-serif)};
  --font-family-monospace: #{inspect($font-family-monospace)};
}
Object has 0 attachments

Was this article helpful?

This article is viewed 23 times!

Recent Viewed Articles

0 Comments

Leave a Comment

Support