blacklight-frontend 9.2.1 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/assets/builds/blacklight.css +39 -9
- package/app/assets/javascripts/blacklight/blacklight.esm.js +207 -125
- package/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- package/app/assets/javascripts/blacklight/blacklight.js +207 -125
- package/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- package/app/assets/stylesheets/blacklight/_search_results.scss +24 -0
- package/app/assets/stylesheets/blacklight/blacklight_defaults.scss +18 -3
- package/app/javascript/blacklight-frontend/bookmark_toggle.js +10 -8
- package/app/javascript/blacklight-frontend/checkbox_submit.js +42 -33
- package/app/javascript/blacklight-frontend/color_theme_switcher.js +47 -16
- package/app/javascript/blacklight-frontend/core.js +18 -19
- package/app/javascript/blacklight-frontend/debounce.js +7 -5
- package/app/javascript/blacklight-frontend/facet_suggest.js +27 -25
- package/app/javascript/blacklight-frontend/index.js +1 -1
- package/app/javascript/blacklight-frontend/modal.js +69 -52
- package/app/javascript/blacklight-frontend/search_context.js +36 -17
- package/package.json +7 -4
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
which over-rides things in this file. Or of course you can choose
|
|
6
6
|
not to use the Blacklight CSS file at all in your local app. */
|
|
7
7
|
:root {
|
|
8
|
-
--bl-logo-image: url("blacklight/logo.svg");
|
|
8
|
+
--bl-logo-image-light: url("blacklight/logo.svg");
|
|
9
|
+
--bl-logo-image-dark: url("blacklight/logo-dark.svg");
|
|
9
10
|
--bl-logo-width: 150px;
|
|
10
11
|
--bl-logo-height: 50px;
|
|
11
12
|
--bl-main-padding-y: 0.5rem;
|
|
@@ -15,10 +16,21 @@
|
|
|
15
16
|
--bl-modal-backdrop-bg: rgba(0, 0, 0, 0.5);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
/* Browsers that support light-dark() with images pick the logo from color-scheme */
|
|
20
|
+
@supports (background-image: light-dark(linear-gradient(#fff, #fff), linear-gradient(#000, #000))) {
|
|
21
|
+
:root {
|
|
22
|
+
--bl-logo-image: light-dark(var(--bl-logo-image-light), var(--bl-logo-image-dark));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/* Fallback for browsers without light-dark() image support (e.g. Safari 26) */
|
|
26
|
+
@supports not (background-image: light-dark(linear-gradient(#fff, #fff), linear-gradient(#000, #000))) {
|
|
27
|
+
:root {
|
|
28
|
+
--bl-logo-image: var(--bl-logo-image-light);
|
|
29
|
+
}
|
|
30
|
+
[data-bs-theme=dark] {
|
|
31
|
+
--bl-logo-image: var(--bl-logo-image-dark);
|
|
32
|
+
}
|
|
20
33
|
}
|
|
21
|
-
|
|
22
34
|
.page-link {
|
|
23
35
|
white-space: nowrap;
|
|
24
36
|
}
|
|
@@ -192,6 +204,22 @@ main {
|
|
|
192
204
|
padding-left: 3rem;
|
|
193
205
|
}
|
|
194
206
|
|
|
207
|
+
.thumbnail-stack {
|
|
208
|
+
display: inline-grid;
|
|
209
|
+
}
|
|
210
|
+
.thumbnail-stack > * {
|
|
211
|
+
grid-area: 1/1;
|
|
212
|
+
}
|
|
213
|
+
.thumbnail-stack .thumbnail-fallback {
|
|
214
|
+
place-self: center;
|
|
215
|
+
}
|
|
216
|
+
.thumbnail-stack > img {
|
|
217
|
+
place-self: stretch;
|
|
218
|
+
min-width: 100%;
|
|
219
|
+
max-width: 0;
|
|
220
|
+
object-fit: cover;
|
|
221
|
+
}
|
|
222
|
+
|
|
195
223
|
.page-links {
|
|
196
224
|
display: inline-block;
|
|
197
225
|
border: 1px solid transparent;
|
|
@@ -215,8 +243,6 @@ main {
|
|
|
215
243
|
|
|
216
244
|
.bookmark-toggle {
|
|
217
245
|
--bl-icon-color: var(--bs-primary);
|
|
218
|
-
/* override for line 21.
|
|
219
|
-
Creates weird spacing in toolbar when min-width is set to 8rem */
|
|
220
246
|
}
|
|
221
247
|
.no-js .bookmark-toggle input[type=submit] {
|
|
222
248
|
display: inline;
|
|
@@ -249,6 +275,10 @@ main {
|
|
|
249
275
|
.bookmark-toggle .toggle-bookmark .toggle-bookmark-input:checked + span svg.bookmark-unchecked {
|
|
250
276
|
display: none;
|
|
251
277
|
}
|
|
278
|
+
.bookmark-toggle {
|
|
279
|
+
/* override for line 21.
|
|
280
|
+
Creates weird spacing in toolbar when min-width is set to 8rem */
|
|
281
|
+
}
|
|
252
282
|
.bookmark-toggle .header-tools .toggle-bookmark-label {
|
|
253
283
|
min-width: 2rem;
|
|
254
284
|
}
|
|
@@ -381,13 +411,13 @@ main {
|
|
|
381
411
|
float: start;
|
|
382
412
|
}
|
|
383
413
|
|
|
414
|
+
.facet-field-heading a {
|
|
415
|
+
color: inherit;
|
|
416
|
+
}
|
|
384
417
|
.facet-field-heading {
|
|
385
418
|
/* This prevents the contained stretch link from covering the panel body */
|
|
386
419
|
position: relative;
|
|
387
420
|
}
|
|
388
|
-
.facet-field-heading a {
|
|
389
|
-
color: inherit;
|
|
390
|
-
}
|
|
391
421
|
|
|
392
422
|
/* Pivot Facets
|
|
393
423
|
-------------------------------------------------- */
|