|
14 | 14 |
|
15 | 15 | <head> |
16 | 16 | <style> |
17 | | - /* Layout for one publication row */ |
| 17 | + /* === Card for one publication === */ |
18 | 18 | .paper-row { |
19 | 19 | display: flex; |
20 | | - align-items: center; /* vertically center image & text */ |
21 | | - gap: 2.4rem; /* <— space between image and text */ |
22 | | - margin-bottom: 1.5rem; /* space between entries */ |
| 20 | + align-items: center; |
| 21 | + gap: 2.8rem; /* space between image & text */ |
| 22 | + padding: 1.6rem 1.8rem; /* makes the whole box larger */ |
| 23 | + margin-bottom: 1.8rem; /* space between entries */ |
| 24 | + border-radius: 12px; |
| 25 | + background: #ffffff; |
| 26 | + box-shadow: 0 10px 30px rgba(0,0,0,0.08); |
23 | 27 | } |
24 | 28 |
|
25 | 29 | .paperimage { |
26 | | - flex: 0 0 40%; /* image column width */ |
27 | | - max-width: 380px; |
| 30 | + flex: 0 0 45%; /* image column gets ~45% width */ |
| 31 | + max-width: 440px; /* increase max width -> larger image */ |
28 | 32 | } |
29 | 33 |
|
30 | 34 | .papertext { |
31 | | - flex: 1 1 auto; /* text takes remaining width */ |
| 35 | + flex: 1 1 auto; /* text takes the remaining width */ |
32 | 36 | } |
33 | 37 |
|
34 | 38 | /* ==== image card + banner ==== */ |
35 | 39 | .venue-wrapper { |
36 | 40 | position: relative; |
37 | 41 | display: block; |
38 | | - border-radius: 6px; |
39 | | - overflow: hidden; |
40 | | - box-shadow: 0 6px 16px rgba(0,0,0,0.18); |
| 42 | + border-radius: 8px; |
| 43 | + overflow: hidden; /* round corners of image + banner */ |
41 | 44 | background: #fff; |
| 45 | + /* shadow now on whole box, so no extra here */ |
42 | 46 | } |
43 | 47 |
|
44 | 48 | .venue-wrapper img { |
45 | 49 | display: block; |
46 | | - width: 100%; /* fill the image column */ |
| 50 | + width: 100%; /* fill image column */ |
47 | 51 | height: auto; |
48 | 52 | } |
49 | 53 |
|
|
59 | 63 | border-bottom-right-radius: 10px; |
60 | 64 | z-index: 2; |
61 | 65 | } |
| 66 | + |
| 67 | + /* Optional: nicer stacking on narrow screens */ |
| 68 | + @media (max-width: 768px) { |
| 69 | + .paper-row { |
| 70 | + flex-direction: column; |
| 71 | + align-items: flex-start; |
| 72 | + } |
| 73 | + .paperimage { |
| 74 | + flex: 0 0 auto; |
| 75 | + max-width: 100%; |
| 76 | + width: 100%; |
| 77 | + } |
| 78 | + } |
62 | 79 | </style> |
63 | 80 | </head> |
64 | 81 |
|
|
0 commit comments