|
1 | 1 | /* Custom styles for publication pages */ |
2 | 2 |
|
3 | | -/* Make abstract display in full width (vertical layout instead of horizontal) */ |
4 | | -.pub-list-item .article-metadata, |
| 3 | +/* 1. Hide featured image on publication detail pages */ |
| 4 | +.article-header img, |
| 5 | +.page-header img, |
| 6 | +.article-banner, |
| 7 | +.featured-image img, |
| 8 | +img[src*="featured"] { |
| 9 | + display: none !important; |
| 10 | +} |
| 11 | + |
| 12 | +/* Hide the entire featured image container */ |
| 13 | +.page-header { |
| 14 | + display: none !important; |
| 15 | +} |
| 16 | + |
| 17 | +/* 2. Make Abstract display vertically (full width) */ |
| 18 | +/* Break the two-column layout for metadata */ |
5 | 19 | .article-metadata { |
6 | 20 | display: block !important; |
| 21 | + width: 100% !important; |
7 | 22 | max-width: 100% !important; |
8 | 23 | } |
9 | 24 |
|
10 | | -.pub-list-item .article-metadata .article-metadata-item, |
11 | | -.article-metadata .article-metadata-item { |
| 25 | +/* Force all rows to display as block */ |
| 26 | +.article-metadata .row { |
| 27 | + display: block !important; |
| 28 | + margin: 0 !important; |
| 29 | + padding: 0 !important; |
| 30 | +} |
| 31 | + |
| 32 | +/* Make all columns full width */ |
| 33 | +.article-metadata .col-md-1, |
| 34 | +.article-metadata .col-md-10, |
| 35 | +.article-metadata .col-md-11, |
| 36 | +.article-metadata [class*="col-"] { |
12 | 37 | display: block !important; |
13 | 38 | width: 100% !important; |
14 | | - margin-bottom: 1.5rem !important; |
| 39 | + max-width: 100% !important; |
| 40 | + flex-basis: 100% !important; |
| 41 | + padding-left: 0 !important; |
| 42 | + padding-right: 0 !important; |
| 43 | + margin: 0 !important; |
15 | 44 | } |
16 | 45 |
|
17 | | -/* Style for abstract section on publication detail pages */ |
18 | | -.article-container .article-metadata { |
19 | | - display: flex !important; |
20 | | - flex-direction: column !important; |
21 | | - gap: 1.5rem !important; |
| 46 | +/* Style Abstract heading */ |
| 47 | +.article-metadata h3 { |
| 48 | + margin-bottom: 1rem !important; |
| 49 | + font-weight: 600 !important; |
| 50 | + font-size: 1.5rem !important; |
| 51 | + display: block !important; |
22 | 52 | } |
23 | 53 |
|
24 | | -.article-container .article-metadata > div { |
| 54 | +/* Style Abstract content */ |
| 55 | +.article-metadata p { |
25 | 56 | width: 100% !important; |
26 | 57 | max-width: 100% !important; |
| 58 | + text-align: justify !important; |
| 59 | + line-height: 1.7 !important; |
| 60 | + margin-bottom: 2rem !important; |
| 61 | + display: block !important; |
27 | 62 | } |
28 | 63 |
|
29 | | -/* Make abstract title and content stack vertically */ |
30 | | -.pub-abstract { |
31 | | - display: flex !important; |
32 | | - flex-direction: column !important; |
33 | | - gap: 0.5rem !important; |
| 64 | +/* 3. Hide Type and Publication fields */ |
| 65 | +/* Hide all metadata rows except the first one (Abstract) */ |
| 66 | +.article-metadata > .row:nth-child(n+2) { |
| 67 | + display: none !important; |
34 | 68 | } |
35 | 69 |
|
36 | | -.pub-abstract h3, |
37 | | -.pub-abstract .h3 { |
38 | | - margin-bottom: 0.5rem !important; |
39 | | - font-weight: 600 !important; |
| 70 | +/* Alternative: hide stream-meta which usually contains Type */ |
| 71 | +.stream-meta { |
| 72 | + display: none !important; |
40 | 73 | } |
41 | 74 |
|
42 | | -/* Ensure abstract content takes full width */ |
43 | | -.pub-abstract p, |
44 | | -.pub-abstract div { |
45 | | - max-width: 100% !important; |
46 | | - width: 100% !important; |
47 | | - text-align: justify !important; |
| 75 | +/* Hide pub-row-heading (Type label) */ |
| 76 | +.pub-row-heading { |
| 77 | + display: none !important; |
48 | 78 | } |
49 | 79 |
|
50 | | -/* Hide Type and Publication fields if they exist */ |
51 | | -.pub-metadata .article-metadata, |
52 | | -.article-metadata { |
53 | | - .stream-meta { |
54 | | - display: none !important; |
55 | | - } |
| 80 | +/* Hide article-metadata that's not abstract */ |
| 81 | +.article-metadata .article-metadata-label { |
| 82 | + display: none !important; |
56 | 83 | } |
57 | 84 |
|
58 | | -/* For publication detail page specifically */ |
59 | | -.article-container { |
60 | | - .article-header { |
61 | | - .article-metadata { |
62 | | - /* Hide publication type and venue */ |
63 | | - [class*="pub-publication"], |
64 | | - [class*="publication"] { |
65 | | - display: none !important; |
66 | | - } |
67 | | - } |
68 | | - } |
| 85 | +/* Ensure Abstract row is visible */ |
| 86 | +.article-metadata > .row:first-child { |
| 87 | + display: block !important; |
69 | 88 | } |
70 | 89 |
|
0 commit comments