Skip to content

Commit

Permalink
toggler runtime color
Browse files Browse the repository at this point in the history
  • Loading branch information
ArttuKuikka committed Dec 26, 2024
1 parent 86f4fae commit ca32091
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Pages/Shared/_RuntimeStyles.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@
.border-top {
border-top: 1px solid @GlobalConfig.PrimaryColor !important
}
@{
var togglerColor = "%23" + GlobalConfig.PrimaryColor.Replace("#", "");
}
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='@togglerColor' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler {
color: @GlobalConfig.PrimaryColor !important;
border-color: @GlobalConfig.PrimaryColor !important;
}
</style>

0 comments on commit ca32091

Please sign in to comment.