Skip to content

Commit

Permalink
Optimize the registry for dark and light mode (#5395)
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanGithaigaN authored Dec 5, 2024
1 parent ce046d3 commit 30d2376
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions assets/scss/_registry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,26 @@
.registry-entry {
@extend .shadow;
}

#searchForm .btn.btn-outline-success,
.btn-outline-danger,
.btn-outline-secondary {
&:hover {
color: var(--bs-white);
}
}

@include color-mode(dark) {
@media (prefers-color-scheme: dark) {
.border-default {
border-color: #a3a3a3;
}
.card.registry-entry {
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}
.card.registry-entry,
.list-group > .list-group-item {
background-color: #262d2c;
}
}
}
2 changes: 1 addition & 1 deletion layouts/partials/ecosystem/registry/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{{ $package = merge .package (index $remoteRegistries .package.registry) -}}
{{ $package = merge $package (dict "type" .registryType) -}}
{{ end -}}
{{ $highlightStyle := "" -}}
{{ $highlightStyle := "border-default" -}}
{{ if $isNew -}}
{{ $highlightStyle = "border-info" -}}
{{ end -}}
Expand Down

0 comments on commit 30d2376

Please sign in to comment.