Skip to content

Commit

Permalink
Fix #3926
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Nov 11, 2024
1 parent 5531ee1 commit 6374a80
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 217 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fix #3904, #3884: fix website horizontal overflow
- Fix #3849: fix Light Mode color swatches in Dark Mode
- Fix #3918: broken placeholder images
- Fix #3926: broken documentation hero

## 1.0.2

Expand Down
8 changes: 1 addition & 7 deletions docs/_sass/docs/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
}

@media screen and (min-width: 1000px) {
@media screen and (min-width: 1400px) {
.bd-hero.is-docs {
flex-wrap: nowrap;

Expand All @@ -47,12 +47,6 @@
}
}

@media screen and (min-width: 1200px) {
.bd-hero.is-docs {
flex-wrap: nowrap;
}
}

.bd-hero-title {
color: hsl(
cv.getVar("text-h"),
Expand Down
3 changes: 2 additions & 1 deletion docs/_sass/home/bubble.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:list";
@use "sass/utilities/css-variables" as cv;
@use "../utils";

Expand Down Expand Up @@ -128,7 +129,7 @@
$bubble-order: ("axbom", "jesseschoff", "ale_codes", "MyTopSecretName");
$delay-factor: 0.3s;

@for $index from 1 through length($bubble-order) {
@for $index from 1 through list.length($bubble-order) {
$name: list.nth($bubble-order, $index);

.js-bubble-#{$name} {
Expand Down
9 changes: 5 additions & 4 deletions docs/_sass/home/custom.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:color";
@use "sass/utilities/mixins" as mx;
@use "sass/themes/light";

Expand Down Expand Up @@ -72,11 +73,11 @@ $sass: #bf4080;
color: light.$scheme-main;

&:hover {
background-color: darken($mauve, 2.5%);
background-color: color.adjust($mauve, $lightness: -2.5%);
}

&:active {
background-color: darken($mauve, 5%);
background-color: color.adjust($mauve, $lightness: -5%);
}
}

Expand All @@ -85,11 +86,11 @@ $sass: #bf4080;
color: light.$scheme-main;

&:hover {
background-color: darken($pink, 2.5%);
background-color: color.adjust($pink, $lightness: -2.5%);
}

&:active {
background-color: darken($pink, 5%);
background-color: color.adjust($pink, $lightness: -5%);
}
}
}
Expand Down
357 changes: 176 additions & 181 deletions docs/assets/css/website.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/assets/css/website.min.css

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions sass/utilities/functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
@if meta.type-of($name) ==
"string" and
(
type-of($components) == "list" or meta.type-of($components) == "color"
meta.type-of($components) ==
"list" or
meta.type-of($components) ==
"color"
) and
length($components) >=
list.length($components) >=
1
{
$color-base: null;
Expand All @@ -40,13 +43,13 @@
$color-base: list.nth($components, 1);

// If Invert, Light and Dark are provided
@if length($components) > 3 {
@if list.length($components) > 3 {
$color-invert: list.nth($components, 2);
$color-light: list.nth($components, 3);
$color-dark: list.nth($components, 4);

// If only Invert and Light are provided
} @else if length($components) > 2 {
} @else if list.length($components) > 2 {
$color-invert: list.nth($components, 2);
$color-light: list.nth($components, 3);
$color-dark: bulmaFindDarkColor($color-base);
Expand All @@ -66,7 +69,7 @@
// We merge this colors elements as map with Bulma's colors map
// (we can override them this way, no multiple definition for the same name)
// $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark)))
$merged-colors: map_merge(
$merged-colors: map.merge(
$merged-colors,
(
$name: $value,
Expand Down Expand Up @@ -146,7 +149,7 @@
$l: color.channel($color, "lightness", $space: hsl);
}

@return change-color($color, $lightness: $l);
@return color.change($color, $lightness: $l);
}

@return $background;
Expand All @@ -158,7 +161,7 @@
$luminance-delta: 0.53 - $luminance;
$target-l: round($base-l + $luminance-delta * 53);

@return change-color($color, $lightness: max($base-l, $target-l));
@return color.change($color, $lightness: max($base-l, $target-l));
}

@return $text-strong;
Expand Down

0 comments on commit 6374a80

Please sign in to comment.