Skip to content

Commit 30d2376

Browse files
Optimize the registry for dark and light mode (#5395)
1 parent ce046d3 commit 30d2376

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

assets/scss/_registry.scss

+23
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,26 @@
3939
.registry-entry {
4040
@extend .shadow;
4141
}
42+
43+
#searchForm .btn.btn-outline-success,
44+
.btn-outline-danger,
45+
.btn-outline-secondary {
46+
&:hover {
47+
color: var(--bs-white);
48+
}
49+
}
50+
51+
@include color-mode(dark) {
52+
@media (prefers-color-scheme: dark) {
53+
.border-default {
54+
border-color: #a3a3a3;
55+
}
56+
.card.registry-entry {
57+
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
58+
}
59+
.card.registry-entry,
60+
.list-group > .list-group-item {
61+
background-color: #262d2c;
62+
}
63+
}
64+
}

layouts/partials/ecosystem/registry/entry.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{{ $package = merge .package (index $remoteRegistries .package.registry) -}}
6565
{{ $package = merge $package (dict "type" .registryType) -}}
6666
{{ end -}}
67-
{{ $highlightStyle := "" -}}
67+
{{ $highlightStyle := "border-default" -}}
6868
{{ if $isNew -}}
6969
{{ $highlightStyle = "border-info" -}}
7070
{{ end -}}

0 commit comments

Comments
 (0)