]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve consistency of navbar icon declaration (#37720)
authorMark Dumay <61946753+markdumay@users.noreply.github.com>
Mon, 26 Dec 2022 19:19:53 +0000 (20:19 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Dec 2022 19:19:53 +0000 (21:19 +0200)
* Use $navbar-light-color instead of inline color

* Introduce separate $navbar-light-icon-color

scss/_variables.scss

index 09438a6cb38a01876da96cd5757e201bfa5b28d1..1be146bd0ac78a7af35259fadc88c47c964c45d5 100644 (file)
@@ -1165,7 +1165,8 @@ $navbar-light-color:                rgba(var(--#{$prefix}emphasis-color-rgb), .6
 $navbar-light-hover-color:          rgba(var(--#{$prefix}emphasis-color-rgb), .8) !default;
 $navbar-light-active-color:         rgba(var(--#{$prefix}emphasis-color-rgb), 1) !default;
 $navbar-light-disabled-color:       rgba(var(--#{$prefix}emphasis-color-rgb), .3) !default;
-$navbar-light-toggler-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{rgba($body-color, .75)}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>") !default;
+$navbar-light-icon-color:           rgba($body-color, .75) !default;
+$navbar-light-toggler-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-light-icon-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>") !default;
 $navbar-light-toggler-border-color: rgba(var(--#{$prefix}emphasis-color-rgb), .15) !default;
 $navbar-light-brand-color:          $navbar-light-active-color !default;
 $navbar-light-brand-hover-color:    $navbar-light-active-color !default;