Skip to content

Commit

Permalink
optimize registry for dark and light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanGithaigaN committed Oct 12, 2024
1 parent d4d21f7 commit 9d20bc2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions assets/scss/_registry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,40 @@
.registry-entry {
@extend .shadow;
}


// Optimize styles and responsiveness for dark and light mode, see https://getbootstrap.com/docs/5.3/customize/color-modes/
.btn {
color: var(--bs-emphasis-color);

&:hover,
&:focus,
&:active
{
color: var(--bs-white);
}
}

.badge{
font-weight: $font-weight-bold;
}


// override search box entry border styling in dark mode for mobile devices
$color-mode-type: data;

@include color-mode(dark) {
@media (max-width: 767.98px) {
.form-control {
border: 1px solid rgba(var(--bs-body-color-rgb), 0.6);
}
.ms-auto > .badge{
font-size: $font-size-sm;
}

}
}




Empty file added nvm
Empty file.

0 comments on commit 9d20bc2

Please sign in to comment.