Skip to content

Commit

Permalink
v5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crissdev committed Sep 11, 2021
1 parent 39bc5d9 commit 3d8c1d4
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ For simplicity, this project will use the same version numbers as Bootstrap.

## Changelog

https://blog.getbootstrap.com/2021/08/04/bootstrap-5-1-0/
https://blog.getbootstrap.com/2021/09/07/bootstrap-5-1-1/

## Copyright and license

Expand Down
10 changes: 8 additions & 2 deletions _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 _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 _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 _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 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
6 changes: 2 additions & 4 deletions bootstrap-reboot.scss
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";
2 changes: 1 addition & 1 deletion bootstrap-utilities.scss
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 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-scss",
"version": "5.1.0",
"version": "5.1.1",
"description": "Bootstrap's SCSS files (only)",
"main": "bootstrap.scss",
"repository": {
Expand Down

0 comments on commit 3d8c1d4

Please sign in to comment.