Skip to content

Commit e15b6b4

Browse files
committed
Fix publication layout: hide featured images, make abstract full-width, remove Type field
1 parent 33c0862 commit e15b6b4

1 file changed

Lines changed: 62 additions & 43 deletions

File tree

assets/css/custom.scss

Lines changed: 62 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,89 @@
11
/* Custom styles for publication pages */
22

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 */
519
.article-metadata {
620
display: block !important;
21+
width: 100% !important;
722
max-width: 100% !important;
823
}
924

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-"] {
1237
display: block !important;
1338
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;
1544
}
1645

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;
2252
}
2353

24-
.article-container .article-metadata > div {
54+
/* Style Abstract content */
55+
.article-metadata p {
2556
width: 100% !important;
2657
max-width: 100% !important;
58+
text-align: justify !important;
59+
line-height: 1.7 !important;
60+
margin-bottom: 2rem !important;
61+
display: block !important;
2762
}
2863

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;
3468
}
3569

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;
4073
}
4174

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;
4878
}
4979

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;
5683
}
5784

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;
6988
}
7089

0 commit comments

Comments
 (0)