Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git update bootstrap #490

Closed
denalon opened this issue Mar 25, 2021 · 2 comments
Closed

git update bootstrap #490

denalon opened this issue Mar 25, 2021 · 2 comments

Comments

@denalon
Copy link

denalon commented Mar 25, 2021

Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): SCSS processing failed: file "/denalon/code/library/assets/scss/_boxes.scss", line 7, col 18: argument $color2 of mix($color1, $color2, $weight: 50%) must be a color

@denalon
Copy link
Author

denalon commented Mar 25, 2021

The following prompt appears in the update bootstrap:

line 4, col 18: argument $color2 of mix($color1, $color2, $weight: 50%) must be a color

the clolor.scss code:

@mixin palette-variant($color-name, $color-value) {
$text-color: color-yiq($color-value);
$link-color: mix($blue, $text-color, lightness($color-value));

$link-hover-color: rgba($link-color, .5) !default;

.-bg-#{$color-name} {
    color: $text-color;
    background-color: $color-value;
}

@LisaFC
Copy link
Collaborator

LisaFC commented Mar 29, 2021

Yes, it's a known issue with Bootstrap 5 - we have an open issue to look into it #470 (it may be a more general Hugo problem as we're not the only theme it's broken) If you don't need Bootstrap 5 everything should work fine with the latest version 4, which is the most recent GA version.

@denalon denalon closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants