@internetarchive/collection-browser 0.4.18-alpha.6 → 0.4.18
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/dist/src/collection-browser.d.ts +1 -8
- package/dist/src/collection-browser.js +291 -318
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/facets-template.js +0 -2
- package/dist/src/collection-facets/facets-template.js.map +1 -1
- package/dist/src/collection-facets/more-facets-content.js +70 -63
- package/dist/src/collection-facets/more-facets-content.js.map +1 -1
- package/dist/src/collection-facets/more-facets-pagination.js +55 -49
- package/dist/src/collection-facets/more-facets-pagination.js.map +1 -1
- package/dist/src/collection-facets/toggle-switch.js +56 -46
- package/dist/src/collection-facets/toggle-switch.js.map +1 -1
- package/dist/src/collection-facets.d.ts +1 -1
- package/dist/src/collection-facets.js +84 -94
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/sort-filter-bar/alpha-bar.d.ts +1 -2
- package/dist/src/sort-filter-bar/alpha-bar.js +25 -33
- package/dist/src/sort-filter-bar/alpha-bar.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.d.ts +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js +186 -198
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/grid/account-tile.js +1 -1
- package/dist/src/tiles/grid/account-tile.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.js +2 -2
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +2 -2
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js +15 -5
- package/dist/src/tiles/grid/styles/tile-grid-shared-styles.js.map +1 -1
- package/dist/src/tiles/grid/tile-stats.js +65 -58
- package/dist/src/tiles/grid/tile-stats.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.js +2 -3
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/dist/test/collection-facets.test.js +5 -8
- package/dist/test/collection-facets.test.js.map +1 -1
- package/dist/test/sort-filter-bar/alpha-bar.test.js +12 -12
- package/dist/test/sort-filter-bar/alpha-bar.test.js.map +1 -1
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js +2 -2
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +1 -1
- package/package.json +5 -5
- package/src/collection-browser.ts +293 -321
- package/src/collection-facets/facets-template.ts +0 -2
- package/src/collection-facets/more-facets-content.ts +70 -63
- package/src/collection-facets/more-facets-pagination.ts +55 -49
- package/src/collection-facets/toggle-switch.ts +61 -51
- package/src/collection-facets.ts +85 -96
- package/src/sort-filter-bar/alpha-bar.ts +18 -26
- package/src/sort-filter-bar/sort-filter-bar.ts +186 -200
- package/src/tiles/grid/account-tile.ts +1 -1
- package/src/tiles/grid/collection-tile.ts +2 -2
- package/src/tiles/grid/item-tile.ts +2 -2
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +15 -5
- package/src/tiles/grid/tile-stats.ts +73 -66
- package/src/tiles/tile-dispatcher.ts +0 -1
- package/test/collection-facets.test.ts +2 -10
- package/test/sort-filter-bar/alpha-bar.test.ts +12 -16
- package/test/sort-filter-bar/sort-filter-bar.test.ts +2 -2
- package/dist/src/styles/sr-only.d.ts +0 -1
- package/dist/src/styles/sr-only.js +0 -18
- package/dist/src/styles/sr-only.js.map +0 -1
- package/src/styles/sr-only.ts +0 -18
|
@@ -70,7 +70,6 @@ import {
|
|
|
70
70
|
analyticsActions,
|
|
71
71
|
analyticsCategories,
|
|
72
72
|
} from './utils/analytics-events';
|
|
73
|
-
import { srOnlyStyle } from './styles/sr-only';
|
|
74
73
|
|
|
75
74
|
@customElement('collection-browser')
|
|
76
75
|
export class CollectionBrowser
|
|
@@ -378,9 +377,7 @@ export class CollectionBrowser
|
|
|
378
377
|
class="column${this.isResizeToMobile ? ' preload' : ''}"
|
|
379
378
|
>
|
|
380
379
|
<div id="mobile-header-container">
|
|
381
|
-
${this.mobileView
|
|
382
|
-
? this.mobileFacetsTemplate
|
|
383
|
-
: html`<h2 id="facets-header" class="sr-only">Filters</h2>`}
|
|
380
|
+
${this.mobileView ? this.mobileFacetsTemplate : nothing}
|
|
384
381
|
<div id="results-total">
|
|
385
382
|
<span id="big-results-count">
|
|
386
383
|
${shouldShowSearching ? html`Searching…` : resultsCount}
|
|
@@ -390,12 +387,15 @@ export class CollectionBrowser
|
|
|
390
387
|
</span>
|
|
391
388
|
</div>
|
|
392
389
|
</div>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
390
|
+
<div
|
|
391
|
+
id="facets-container"
|
|
392
|
+
class=${!this.mobileView || this.mobileFacetsVisible
|
|
393
|
+
? 'expanded'
|
|
394
|
+
: ''}
|
|
395
|
+
>
|
|
396
|
+
${this.facetsTemplate}
|
|
397
|
+
<div id="facets-scroll-sentinel"></div>
|
|
398
|
+
</div>
|
|
399
399
|
${this.mobileView ? nothing : html`<div id="facets-bottom-fade"></div>`}
|
|
400
400
|
</div>
|
|
401
401
|
<div id="right-column" class="column">
|
|
@@ -411,7 +411,6 @@ export class CollectionBrowser
|
|
|
411
411
|
return html`<infinite-scroller
|
|
412
412
|
class=${this.infiniteScrollerClasses}
|
|
413
413
|
itemCount=${this.placeholderType ? 0 : nothing}
|
|
414
|
-
ariaLandmarkLabel="Search results"
|
|
415
414
|
.cellProvider=${this}
|
|
416
415
|
.placeholderCellTemplate=${this.placeholderCellTemplate}
|
|
417
416
|
@scrollThresholdReached=${this.scrollThresholdReached}
|
|
@@ -582,34 +581,28 @@ export class CollectionBrowser
|
|
|
582
581
|
this.selectedCreatorFilter = e.detail.selectedLetter;
|
|
583
582
|
}
|
|
584
583
|
|
|
585
|
-
|
|
586
|
-
* The full template for how the facets should be structured in mobile view,
|
|
587
|
-
* including the collapsible container (with header) and the facets themselves.
|
|
588
|
-
*/
|
|
589
|
-
private get mobileFacetsTemplate(): TemplateResult {
|
|
590
|
-
const toggleFacetsVisible = () => {
|
|
591
|
-
this.isResizeToMobile = false;
|
|
592
|
-
this.mobileFacetsVisible = !this.mobileFacetsVisible;
|
|
593
|
-
};
|
|
594
|
-
|
|
584
|
+
private get mobileFacetsTemplate() {
|
|
595
585
|
return html`
|
|
596
|
-
<
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
586
|
+
<div id="mobile-filter-collapse">
|
|
587
|
+
<h1
|
|
588
|
+
@click=${() => {
|
|
589
|
+
this.isResizeToMobile = false;
|
|
590
|
+
this.mobileFacetsVisible = !this.mobileFacetsVisible;
|
|
591
|
+
}}
|
|
592
|
+
@keyup=${() => {
|
|
593
|
+
this.isResizeToMobile = false;
|
|
594
|
+
this.mobileFacetsVisible = !this.mobileFacetsVisible;
|
|
595
|
+
}}
|
|
596
|
+
>
|
|
597
|
+
<span class="collapser ${this.mobileFacetsVisible ? 'open' : ''}">
|
|
598
|
+
${chevronIcon}
|
|
599
|
+
</span>
|
|
600
|
+
Filters
|
|
601
|
+
</h1>
|
|
602
|
+
</div>
|
|
607
603
|
`;
|
|
608
604
|
}
|
|
609
605
|
|
|
610
|
-
/**
|
|
611
|
-
* The template for the facets component alone, without any surrounding wrappers.
|
|
612
|
-
*/
|
|
613
606
|
private get facetsTemplate() {
|
|
614
607
|
return html`
|
|
615
608
|
<collection-facets
|
|
@@ -1703,327 +1696,306 @@ export class CollectionBrowser
|
|
|
1703
1696
|
}
|
|
1704
1697
|
}
|
|
1705
1698
|
|
|
1706
|
-
static
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
css`
|
|
1710
|
-
:host {
|
|
1711
|
-
display: block;
|
|
1712
|
-
|
|
1713
|
-
--leftColumnWidth: 18rem;
|
|
1714
|
-
--leftColumnPaddingRight: 2.5rem;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* When page width resizes from desktop to mobile, use this class to
|
|
1719
|
-
* disable expand/collapse transition when loading.
|
|
1720
|
-
*/
|
|
1721
|
-
.preload * {
|
|
1722
|
-
transition: none !important;
|
|
1723
|
-
-webkit-transition: none !important;
|
|
1724
|
-
-moz-transition: none !important;
|
|
1725
|
-
-ms-transition: none !important;
|
|
1726
|
-
-o-transition: none !important;
|
|
1727
|
-
}
|
|
1699
|
+
static styles = css`
|
|
1700
|
+
:host {
|
|
1701
|
+
display: block;
|
|
1728
1702
|
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1703
|
+
--leftColumnWidth: 18rem;
|
|
1704
|
+
--leftColumnPaddingRight: 2.5rem;
|
|
1705
|
+
}
|
|
1732
1706
|
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1707
|
+
/**
|
|
1708
|
+
* When page width resizes from desktop to mobile, use this class to
|
|
1709
|
+
* disable expand/collapse transition when loading.
|
|
1710
|
+
*/
|
|
1711
|
+
.preload * {
|
|
1712
|
+
transition: none !important;
|
|
1713
|
+
-webkit-transition: none !important;
|
|
1714
|
+
-moz-transition: none !important;
|
|
1715
|
+
-ms-transition: none !important;
|
|
1716
|
+
-o-transition: none !important;
|
|
1717
|
+
}
|
|
1736
1718
|
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
height: 12px;
|
|
1741
|
-
transition: transform 0.2s ease-out;
|
|
1742
|
-
}
|
|
1719
|
+
#content-container {
|
|
1720
|
+
display: flex;
|
|
1721
|
+
}
|
|
1743
1722
|
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
}
|
|
1723
|
+
.collapser {
|
|
1724
|
+
display: inline-block;
|
|
1725
|
+
}
|
|
1748
1726
|
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1727
|
+
.collapser svg {
|
|
1728
|
+
width: 10px;
|
|
1729
|
+
height: 10px;
|
|
1730
|
+
transition: transform 0.2s ease-out;
|
|
1731
|
+
}
|
|
1752
1732
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
font-size: 2rem;
|
|
1757
|
-
}
|
|
1733
|
+
.collapser.open svg {
|
|
1734
|
+
transform: rotate(90deg);
|
|
1735
|
+
}
|
|
1758
1736
|
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1737
|
+
#mobile-filter-collapse h1 {
|
|
1738
|
+
cursor: pointer;
|
|
1739
|
+
}
|
|
1762
1740
|
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1741
|
+
#content-container.mobile {
|
|
1742
|
+
display: block;
|
|
1743
|
+
}
|
|
1766
1744
|
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1745
|
+
.column {
|
|
1746
|
+
padding-top: 2rem;
|
|
1747
|
+
}
|
|
1770
1748
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1749
|
+
#right-column {
|
|
1750
|
+
flex: 1;
|
|
1751
|
+
position: relative;
|
|
1752
|
+
border-left: 1px solid rgb(232, 232, 232);
|
|
1753
|
+
border-right: 1px solid rgb(232, 232, 232);
|
|
1754
|
+
padding-left: 1rem;
|
|
1755
|
+
padding-right: 1rem;
|
|
1756
|
+
background: #fff;
|
|
1757
|
+
}
|
|
1780
1758
|
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1759
|
+
.mobile #right-column {
|
|
1760
|
+
border-left: none;
|
|
1761
|
+
padding: 5px 5px 0;
|
|
1762
|
+
}
|
|
1785
1763
|
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1764
|
+
#left-column {
|
|
1765
|
+
width: var(--leftColumnWidth, 18rem);
|
|
1766
|
+
/* Prevents Safari from shrinking col at first draw */
|
|
1767
|
+
min-width: var(--leftColumnWidth, 18rem);
|
|
1768
|
+
padding-top: 0;
|
|
1769
|
+
/* Reduced padding by 0.2rem to add the invisible border in the rule below */
|
|
1770
|
+
padding-right: calc(var(--leftColumnPaddingRight, 2.5rem) - 0.2rem);
|
|
1771
|
+
border-right: 0.2rem solid transparent; /* Pads to the right of the scrollbar a bit */
|
|
1772
|
+
z-index: 1;
|
|
1773
|
+
}
|
|
1796
1774
|
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1775
|
+
.desktop #left-column {
|
|
1776
|
+
top: 0;
|
|
1777
|
+
position: sticky;
|
|
1778
|
+
height: calc(100vh - 2rem);
|
|
1779
|
+
max-height: calc(100vh - 2rem);
|
|
1780
|
+
overflow-x: hidden;
|
|
1781
|
+
overflow-y: scroll;
|
|
1782
|
+
|
|
1783
|
+
/*
|
|
1784
|
+
* Firefox doesn't support any of the -webkit-scrollbar stuff below, but
|
|
1785
|
+
* does at least give us a tiny bit of control over width & color.
|
|
1786
|
+
*/
|
|
1787
|
+
scrollbar-width: thin;
|
|
1788
|
+
scrollbar-color: transparent transparent;
|
|
1789
|
+
}
|
|
1790
|
+
.desktop #left-column:hover {
|
|
1791
|
+
scrollbar-color: auto;
|
|
1792
|
+
}
|
|
1793
|
+
.desktop #left-column::-webkit-scrollbar {
|
|
1794
|
+
appearance: none;
|
|
1795
|
+
width: 6px;
|
|
1796
|
+
}
|
|
1797
|
+
.desktop #left-column::-webkit-scrollbar-button {
|
|
1798
|
+
height: 3px;
|
|
1799
|
+
background: transparent;
|
|
1800
|
+
}
|
|
1801
|
+
.desktop #left-column::-webkit-scrollbar-corner {
|
|
1802
|
+
background: transparent;
|
|
1803
|
+
}
|
|
1804
|
+
.desktop #left-column::-webkit-scrollbar-thumb {
|
|
1805
|
+
border-radius: 4px;
|
|
1806
|
+
}
|
|
1807
|
+
.desktop #left-column:hover::-webkit-scrollbar-thumb {
|
|
1808
|
+
background: rgba(0, 0, 0, 0.15);
|
|
1809
|
+
}
|
|
1810
|
+
.desktop #left-column:hover::-webkit-scrollbar-thumb:hover {
|
|
1811
|
+
background: rgba(0, 0, 0, 0.2);
|
|
1812
|
+
}
|
|
1813
|
+
.desktop #left-column:hover::-webkit-scrollbar-thumb:active {
|
|
1814
|
+
background: rgba(0, 0, 0, 0.3);
|
|
1815
|
+
}
|
|
1838
1816
|
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1817
|
+
#facets-bottom-fade {
|
|
1818
|
+
background: linear-gradient(
|
|
1819
|
+
to bottom,
|
|
1820
|
+
#f5f5f700 0%,
|
|
1821
|
+
#f5f5f7c0 50%,
|
|
1822
|
+
#f5f5f7 80%,
|
|
1823
|
+
#f5f5f7 100%
|
|
1824
|
+
);
|
|
1825
|
+
position: fixed;
|
|
1826
|
+
bottom: 0;
|
|
1827
|
+
height: 50px;
|
|
1828
|
+
/* Wide enough to cover the content, but leave the scrollbar uncovered */
|
|
1829
|
+
width: calc(
|
|
1830
|
+
var(--leftColumnWidth) + var(--leftColumnPaddingRight) - 10px
|
|
1831
|
+
);
|
|
1832
|
+
z-index: 2;
|
|
1833
|
+
pointer-events: none;
|
|
1834
|
+
transition: height 0.1s ease;
|
|
1835
|
+
}
|
|
1836
|
+
#facets-bottom-fade.hidden {
|
|
1837
|
+
height: 0;
|
|
1838
|
+
}
|
|
1861
1839
|
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1840
|
+
.desktop #left-column-scroll-sentinel {
|
|
1841
|
+
width: 1px;
|
|
1842
|
+
height: 100vh;
|
|
1843
|
+
background: transparent;
|
|
1844
|
+
}
|
|
1867
1845
|
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1846
|
+
.desktop #facets-scroll-sentinel {
|
|
1847
|
+
width: 1px;
|
|
1848
|
+
height: 1px;
|
|
1849
|
+
background: transparent;
|
|
1850
|
+
}
|
|
1873
1851
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1852
|
+
.mobile #left-column {
|
|
1853
|
+
width: 100%;
|
|
1854
|
+
padding: 0;
|
|
1855
|
+
}
|
|
1878
1856
|
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
}
|
|
1857
|
+
#mobile-header-container {
|
|
1858
|
+
display: flex;
|
|
1859
|
+
justify-content: space-between;
|
|
1860
|
+
align-items: center;
|
|
1861
|
+
}
|
|
1885
1862
|
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1863
|
+
.desktop #mobile-header-container {
|
|
1864
|
+
padding-top: 2rem;
|
|
1865
|
+
}
|
|
1889
1866
|
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1867
|
+
#facets-container {
|
|
1868
|
+
position: relative;
|
|
1869
|
+
max-height: 0;
|
|
1870
|
+
transition: max-height 0.2s ease-in-out;
|
|
1871
|
+
z-index: 1;
|
|
1872
|
+
padding-bottom: 2rem;
|
|
1873
|
+
}
|
|
1897
1874
|
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1875
|
+
.mobile #facets-container {
|
|
1876
|
+
overflow: hidden;
|
|
1877
|
+
padding-bottom: 0;
|
|
1878
|
+
padding-left: 10px;
|
|
1879
|
+
padding-right: 10px;
|
|
1880
|
+
}
|
|
1904
1881
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1882
|
+
#facets-container.expanded {
|
|
1883
|
+
max-height: 2000px;
|
|
1884
|
+
}
|
|
1908
1885
|
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1886
|
+
#results-total {
|
|
1887
|
+
display: flex;
|
|
1888
|
+
align-items: baseline;
|
|
1889
|
+
margin-bottom: 5rem;
|
|
1890
|
+
}
|
|
1914
1891
|
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1892
|
+
.mobile #results-total {
|
|
1893
|
+
margin-bottom: 0;
|
|
1894
|
+
}
|
|
1918
1895
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1896
|
+
#big-results-count {
|
|
1897
|
+
font-size: 2.4rem;
|
|
1898
|
+
font-weight: 500;
|
|
1899
|
+
margin-right: 5px;
|
|
1900
|
+
}
|
|
1924
1901
|
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1902
|
+
#big-results-label {
|
|
1903
|
+
font-size: 1.4rem;
|
|
1904
|
+
font-weight: 200;
|
|
1905
|
+
}
|
|
1929
1906
|
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1907
|
+
#list-header {
|
|
1908
|
+
max-height: 4.2rem;
|
|
1909
|
+
}
|
|
1933
1910
|
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1911
|
+
.loading-cover {
|
|
1912
|
+
position: absolute;
|
|
1913
|
+
top: 0;
|
|
1914
|
+
left: 0;
|
|
1915
|
+
width: 100%;
|
|
1916
|
+
height: 100%;
|
|
1917
|
+
display: flex;
|
|
1918
|
+
justify-content: center;
|
|
1919
|
+
z-index: 1;
|
|
1920
|
+
padding-top: 50px;
|
|
1921
|
+
}
|
|
1945
1922
|
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1923
|
+
circular-activity-indicator {
|
|
1924
|
+
width: 30px;
|
|
1925
|
+
height: 30px;
|
|
1926
|
+
}
|
|
1950
1927
|
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1928
|
+
sort-filter-bar {
|
|
1929
|
+
display: block;
|
|
1930
|
+
margin-bottom: 4rem;
|
|
1931
|
+
}
|
|
1955
1932
|
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1933
|
+
infinite-scroller {
|
|
1934
|
+
display: block;
|
|
1935
|
+
--infiniteScrollerRowGap: var(--collectionBrowserRowGap, 1.7rem);
|
|
1936
|
+
--infiniteScrollerColGap: var(--collectionBrowserColGap, 1.7rem);
|
|
1937
|
+
}
|
|
1961
1938
|
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1939
|
+
infinite-scroller.list-compact {
|
|
1940
|
+
--infiniteScrollerCellMinWidth: var(
|
|
1941
|
+
--collectionBrowserCellMinWidth,
|
|
1942
|
+
100%
|
|
1943
|
+
);
|
|
1944
|
+
--infiniteScrollerCellMinHeight: 34px; /* override infinite scroller component */
|
|
1945
|
+
--infiniteScrollerCellMaxHeight: 56px;
|
|
1946
|
+
--infiniteScrollerRowGap: 0px;
|
|
1947
|
+
}
|
|
1971
1948
|
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1949
|
+
infinite-scroller.list-detail {
|
|
1950
|
+
--infiniteScrollerCellMinWidth: var(
|
|
1951
|
+
--collectionBrowserCellMinWidth,
|
|
1952
|
+
100%
|
|
1953
|
+
);
|
|
1954
|
+
--infiniteScrollerCellMinHeight: var(
|
|
1955
|
+
--collectionBrowserCellMinHeight,
|
|
1956
|
+
5rem
|
|
1957
|
+
);
|
|
1958
|
+
/*
|
|
1959
|
+
30px in spec, compensating for a -4px margin
|
|
1960
|
+
to align title with top of item image
|
|
1961
|
+
src/tiles/list/tile-list.ts
|
|
1962
|
+
*/
|
|
1963
|
+
--infiniteScrollerRowGap: 34px;
|
|
1964
|
+
}
|
|
1988
1965
|
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1966
|
+
.mobile infinite-scroller.list-detail {
|
|
1967
|
+
--infiniteScrollerRowGap: 24px;
|
|
1968
|
+
}
|
|
1992
1969
|
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
1fr
|
|
2001
|
-
);
|
|
2002
|
-
}
|
|
1970
|
+
infinite-scroller.grid {
|
|
1971
|
+
--infiniteScrollerCellMinWidth: var(
|
|
1972
|
+
--collectionBrowserCellMinWidth,
|
|
1973
|
+
17rem
|
|
1974
|
+
);
|
|
1975
|
+
--infiniteScrollerCellMaxWidth: var(--collectionBrowserCellMaxWidth, 1fr);
|
|
1976
|
+
}
|
|
2003
1977
|
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
1978
|
+
/* Allow tiles to shrink a bit further at smaller viewport widths */
|
|
1979
|
+
@media screen and (max-width: 880px) {
|
|
1980
|
+
infinite-scroller.grid {
|
|
1981
|
+
--infiniteScrollerCellMinWidth: var(
|
|
1982
|
+
--collectionBrowserCellMinWidth,
|
|
1983
|
+
15rem
|
|
1984
|
+
);
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
/* At very small widths, maintain a 2-tile layout as far as it can reasonably go */
|
|
1988
|
+
@media screen and (max-width: 360px) {
|
|
1989
|
+
infinite-scroller.grid {
|
|
1990
|
+
--infiniteScrollerCellMinWidth: var(
|
|
1991
|
+
--collectionBrowserCellMinWidth,
|
|
1992
|
+
12rem
|
|
1993
|
+
);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
2022
1996
|
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
];
|
|
2028
|
-
}
|
|
1997
|
+
infinite-scroller.hidden {
|
|
1998
|
+
display: none;
|
|
1999
|
+
}
|
|
2000
|
+
`;
|
|
2029
2001
|
}
|