Skip to content

Commit

Permalink
[TASK] Update frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Sep 17, 2021
1 parent 168b6c9 commit 151f487
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 89 deletions.
74 changes: 25 additions & 49 deletions Build/package-lock.json

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

6 changes: 3 additions & 3 deletions Build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"version": "12.0.2-dev",
"license": "MIT",
"devDependencies": {
"@popperjs/core": "^2.9.3",
"@popperjs/core": "^2.10.1",
"bootstrap4": "npm:bootstrap@^4.6.0",
"bootstrap5": "npm:bootstrap@^5.1.0",
"bootstrap5": "npm:[email protected].1",
"chalk": "^4.1.2",
"cookieconsent": "^3.1.1",
"fantasticon": "^1.2.2",
Expand All @@ -25,7 +25,7 @@
"grunt-sass": "^3.1.0",
"grunt-stylelint": "^0.16.0",
"jquery": "^3.6.0",
"modernizr": "^3.11.7",
"modernizr": "^3.11.8",
"node-sass": "^6.0.1",
"photoswipe": "^4.1.3",
"popper.js": "^1.16.1",
Expand Down
4 changes: 2 additions & 2 deletions Resources/Public/Contrib/bootstrap5/js/bootstrap.min.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions Resources/Public/Contrib/bootstrap5/scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@
@return red($value), green($value), blue($value);
}

// stylelint-disable scss/dollar-variable-pattern
@function rgba-css-var($identifier, $target) {
@return rgba(var(--#{$variable-prefix}#{$identifier}-rgb), var(--#{$variable-prefix}#{$target}-opacity));
@if $identifier == "body" and $target == "bg" {
@return rgba(var(--#{$variable-prefix}#{$identifier}-bg-rgb), var(--#{$variable-prefix}#{$target}-opacity));
} @if $identifier == "body" and $target == "text" {
@return rgba(var(--#{$variable-prefix}#{$identifier}-color-rgb), var(--#{$variable-prefix}#{$target}-opacity));
} @else {
@return rgba(var(--#{$variable-prefix}#{$identifier}-rgb), var(--#{$variable-prefix}#{$target}-opacity));
}
}

// stylelint-disable scss/dollar-variable-pattern
@function map-loop($map, $func, $args...) {
$_map: ();

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Contrib/bootstrap5/scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

:root {
@if $font-size-root != null {
font-size: var(--#{$variable-prefix}-root-font-size);
font-size: var(--#{$variable-prefix}root-font-size);
}

@if $enable-smooth-scroll {
Expand Down
3 changes: 2 additions & 1 deletion Resources/Public/Contrib/bootstrap5/scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

--#{$variable-prefix}white-rgb: #{to-rgb($white)};
--#{$variable-prefix}black-rgb: #{to-rgb($black)};
--#{$variable-prefix}body-rgb: #{to-rgb($body-color)};
--#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
--#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};

// Fonts

Expand Down
28 changes: 19 additions & 9 deletions Resources/Public/Contrib/bootstrap5/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -409,23 +409,33 @@ $body-text-align: null !default;
//
// Extends the default `$theme-colors` maps to help create our utilities.

// Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
// scss-docs-start utilities-colors
$utilities-colors: map-merge(
$theme-colors-rgb,
$utilities-colors: $theme-colors-rgb !default;
// scss-docs-end utilities-colors

// scss-docs-start utilities-text-colors
$utilities-text: map-merge(
$utilities-colors,
(
"black": to-rgb($black),
"white": to-rgb($white),
"body": to-rgb($body-color)
"body": to-rgb($body-color)
)
) !default;
// scss-docs-end utilities-colors

// scss-docs-start utilities-text-colors
$utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text") !default;
$utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
// scss-docs-end utilities-text-colors

// scss-docs-start utilities-bg-colors
$utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg") !default;
$utilities-bg: map-merge(
$utilities-colors,
(
"black": to-rgb($black),
"white": to-rgb($white),
"body": to-rgb($body-bg)
)
) !default;
$utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
// scss-docs-end utilities-bg-colors

// Links
Expand Down Expand Up @@ -1157,7 +1167,7 @@ $dropdown-divider-margin-y: $spacer * .5 !default;
$dropdown-box-shadow: $box-shadow !default;

$dropdown-link-color: $gray-900 !default;
$dropdown-link-hover-color: shade-color($gray-900, 10%) !default;
$dropdown-link-hover-color: shade-color($dropdown-link-color, 10%) !default;
$dropdown-link-hover-bg: $gray-200 !default;

$dropdown-link-active-color: $component-active-color !default;
Expand Down
4 changes: 3 additions & 1 deletion Resources/Public/Contrib/bootstrap5/scss/bootstrap-grid.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap Grid v5.1.0 (https://getbootstrap.com/)
* Bootstrap Grid v5.1.1 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
Expand All @@ -18,6 +18,8 @@ $include-column-box-sizing: true !default;

@import "vendor/rfs";

@import "root";

@import "containers";
@import "grid";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
* Bootstrap Reboot v5.1.1 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
Expand All @@ -8,8 +8,6 @@

@import "functions";
@import "variables";
// Prevent the usage of custom properties since we don't add them to `:root` in reboot
$font-family-base: $font-family-sans-serif; // stylelint-disable-line scss/dollar-variable-default
$font-family-code: $font-family-monospace; // stylelint-disable-line scss/dollar-variable-default
@import "mixins";
@import "root";
@import "reboot";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap Utilities v5.1.0 (https://getbootstrap.com/)
* Bootstrap Utilities v5.1.1 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Contrib/bootstrap5/scss/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap v5.1.0 (https://getbootstrap.com/)
* Bootstrap v5.1.1 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
Expand Down
Loading

0 comments on commit 151f487

Please sign in to comment.