google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.61k stars 901 forks source link

git update bootstrap #490

Closed denalon closed 3 years ago

denalon commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.