|
1 | 1 | <template lang="html">
|
2 |
| - <main |
3 |
| - id="main" |
4 |
| - class="page page-project-list" |
5 |
| - > |
| 2 | + <main id="main" class="page page-project-list"> |
6 | 3 | <masthead-secondary
|
7 | 4 | :title="summaryData.projectListTitle"
|
8 | 5 | :text="summaryData.projectListSummary"
|
|
16 | 13 | placeholder="Search Projects"
|
17 | 14 | @search-ready="getSearchData"
|
18 | 15 | />
|
| 16 | + |
19 | 17 | <section-wrapper theme="divider">
|
20 | 18 | <divider-way-finder class="search-margin" />
|
21 | 19 | </section-wrapper>
|
| 20 | + |
22 | 21 | <section-wrapper
|
23 | 22 | v-show="
|
24 | 23 | page &&
|
25 |
| - projectList.length && |
26 |
| - hits.length == 0 && |
27 |
| - !noResultsFound |
| 24 | + projectList.length && |
| 25 | + hits.length == 0 && |
| 26 | + !noResultsFound |
28 | 27 | "
|
29 | 28 | section-title="All Projects"
|
30 | 29 | >
|
31 | 30 | <section-teaser-card :items="projectList" />
|
32 | 31 | </section-wrapper>
|
| 32 | + |
33 | 33 | <section-wrapper
|
34 | 34 | v-show="hits && hits.length > 0"
|
35 | 35 | class="section-no-top-margin"
|
36 | 36 | >
|
37 |
| - <h2 |
38 |
| - v-if="$route.query.q" |
39 |
| - class="about-results" |
40 |
| - > |
| 37 | + <h2 v-if="$route.query.q" class="about-results"> |
41 | 38 | Displaying {{ hits.length }} results for
|
42 |
| - <strong><em>“{{ $route.query.q }}</em></strong>” |
| 39 | + <strong |
| 40 | + ><em>“{{ $route.query.q }}</em></strong |
| 41 | + >” |
43 | 42 | </h2>
|
44 |
| - <h2 |
45 |
| - v-else |
46 |
| - class="about-results" |
47 |
| - > |
| 43 | + <h2 v-else class="about-results"> |
48 | 44 | Displaying {{ hits.length }} results
|
49 | 45 | </h2>
|
50 | 46 |
|
51 | 47 | <section-teaser-card :items="parseHitsResults" />
|
52 | 48 | </section-wrapper>
|
53 | 49 |
|
54 | 50 | <!-- NO RESULTS -->
|
55 |
| - <section-wrapper |
56 |
| - v-show="noResultsFound" |
57 |
| - class="section-no-top-margin" |
58 |
| - > |
| 51 | + <section-wrapper v-show="noResultsFound" class="section-no-top-margin"> |
59 | 52 | <div class="error-text">
|
60 | 53 | <rich-text>
|
61 | 54 | <h2>Search for “{{ $route.query.q }}” not found.</h2>
|
62 | 55 | <p>
|
63 | 56 | We can’t find the term you are looking for on this page.
|
64 |
| - <br> |
| 57 | + <br /> |
65 | 58 | <!-- Try searching the whole site from
|
66 | 59 | <a href="https://library.ucla.edu">UCLA Library Home</a>, or try one of the these regularly visited links:
|
67 | 60 | </p>
|
@@ -302,4 +295,16 @@ export default {
|
302 | 295 | }
|
303 | 296 | </script>
|
304 | 297 |
|
305 |
| -<style lang="scss" scoped></style> |
| 298 | +<style lang="scss" scoped> |
| 299 | +.generic-search { |
| 300 | + z-index: 30; |
| 301 | +} |
| 302 | +
|
| 303 | +::v-deep .section-teaser-card { |
| 304 | + z-index: 0; |
| 305 | +} |
| 306 | +
|
| 307 | +::v-deep .block-highlight .meta { |
| 308 | + z-index: 0; |
| 309 | +} |
| 310 | +</style> |
0 commit comments