diff --git a/scss/_maps.scss b/scss/_maps.scss index 68ee421c2b1f..b147814a3dc2 100644 --- a/scss/_maps.scss +++ b/scss/_maps.scss @@ -32,6 +32,8 @@ $theme-colors-bg-subtle: ( ) !default; // scss-docs-end theme-bg-subtle-map +$theme-colors-bg-subtle-rgb: map-loop($theme-colors-bg-subtle, to-rgb, "$value") !default; + // scss-docs-start theme-border-subtle-map $theme-colors-border-subtle: ( "primary": $primary-border-subtle, @@ -48,6 +50,7 @@ $theme-colors-border-subtle: ( $theme-colors-text-dark: null !default; $theme-colors-bg-subtle-dark: null !default; $theme-colors-border-subtle-dark: null !default; +$theme-colors-bg-subtle-rgb-dark: null !default; @if $enable-dark-mode { // scss-docs-start theme-text-dark-map @@ -134,15 +137,16 @@ $utilities-bg: map-merge( $utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default; $utilities-bg-subtle: ( - "primary-subtle": var(--#{$prefix}primary-bg-subtle), - "secondary-subtle": var(--#{$prefix}secondary-bg-subtle), - "success-subtle": var(--#{$prefix}success-bg-subtle), - "info-subtle": var(--#{$prefix}info-bg-subtle), - "warning-subtle": var(--#{$prefix}warning-bg-subtle), - "danger-subtle": var(--#{$prefix}danger-bg-subtle), - "light-subtle": var(--#{$prefix}light-bg-subtle), - "dark-subtle": var(--#{$prefix}dark-bg-subtle) + "primary-subtle": rgba(var(--#{$prefix}primary-bg-subtle), var(--#{$prefix}bg-opacity)), + "secondary-subtle": rgba(var(--#{$prefix}secondary-bg-subtle), var(--#{$prefix}bg-opacity)), + "success-subtle": rgba(var(--#{$prefix}success-bg-subtle), var(--#{$prefix}bg-opacity)), + "info-subtle": rgba(var(--#{$prefix}info-bg-subtle), var(--#{$prefix}bg-opacity)), + "warning-subtle": rgba(var(--#{$prefix}warning-bg-subtle), var(--#{$prefix}bg-opacity)), + "danger-subtle": rgba(var(--#{$prefix}danger-bg-subtle), var(--#{$prefix}bg-opacity)), + "light-subtle": rgba(var(--#{$prefix}light-bg-subtle), var(--#{$prefix}bg-opacity)), + "dark-subtle": rgba(var(--#{$prefix}dark-bg-subtle), var(--#{$prefix}bg-opacity)) ) !default; +$theme-colors-bg-subtle-rgb-dark: map-loop($theme-colors-bg-subtle-dark, to-rgb, "$value") !default; // scss-docs-end utilities-bg-colors // scss-docs-start utilities-border-colors diff --git a/scss/_root.scss b/scss/_root.scss index becddf14afdc..8b63869caad5 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -26,7 +26,7 @@ --#{$prefix}#{$color}-text-emphasis: #{$value}; } - @each $color, $value in $theme-colors-bg-subtle { + @each $color, $value in $theme-colors-bg-subtle-rgb { --#{$prefix}#{$color}-bg-subtle: #{$value}; } @@ -156,7 +156,7 @@ --#{$prefix}#{$color}-text-emphasis: #{$value}; } - @each $color, $value in $theme-colors-bg-subtle-dark { + @each $color, $value in $theme-colors-bg-subtle-rgb-dark { --#{$prefix}#{$color}-bg-subtle: #{$value}; } diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 696f906ec9c4..a2515afd07fd 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -674,6 +674,14 @@ $utilities: map-merge( ) ) ), + "subtle-background-color": ( + property: background-color, + class: bg, + local-vars: ( + "bg-opacity": 1 + ), + values: $utilities-bg-subtle + ), "bg-opacity": ( css-var: true, class: bg-opacity, @@ -685,11 +693,6 @@ $utilities: map-merge( 100: 1 ) ), - "subtle-background-color": ( - property: background-color, - class: bg, - values: $utilities-bg-subtle - ), // scss-docs-end utils-bg-color "gradient": ( property: background-image, diff --git a/site/content/docs/5.3/examples/album/index.html b/site/content/docs/5.3/examples/album/index.html index 54b2c5bde159..727130cc00a0 100644 --- a/site/content/docs/5.3/examples/album/index.html +++ b/site/content/docs/5.3/examples/album/index.html @@ -3,206 +3,70 @@ title: Album example --- -
- - -
- -
- -
-
-
-

Album example

-

Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.

-

- Main call to action - Secondary action -

-
-
-
- -
-
- -
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
- -
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
+
+
+ This is default secondary background +
+
+ This is 75% opacity secondary background +
+
+ This is 50% opacity secondary background +
+
+ This is 25% opacity secondary background +
+
+ This is 10% opacity secondary background +
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- {{< placeholder width="100%" height="225" background="#55595c" color="#eceeef" class="card-img-top" text="Thumbnail" >}} -
-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
+
+ This is default secondary-subtle background +
+
+ This is 75% opacity secondary-subtle background +
+
+ This is 50% opacity secondary-subtle background
+
+ This is 25% opacity secondary-subtle background +
+
+ This is 10% opacity secondary-subtle background +
+
-
+
+
+ This is default secondary background +
+
+ This is 75% opacity secondary background +
+
+ This is 50% opacity secondary background +
+
+ This is 25% opacity secondary background +
+
+ This is 10% opacity secondary background +
- +
+ This is default secondary-subtle background +
+
+ This is 75% opacity secondary-subtle background +
+
+ This is 50% opacity secondary-subtle background +
+
+ This is 25% opacity secondary-subtle background +
+
+ This is 10% opacity secondary-subtle background +
+