|
| 1 | +/* Ensure greedy-nav distributes left and right */ |
| 2 | +.greedy-nav { |
| 3 | + display: flex; |
| 4 | + justify-content: space-between; /* pushes left and right to edges */ |
| 5 | + align-items: center; |
| 6 | + width: 100%; |
| 7 | +} |
| 8 | + |
| 9 | +/* Left side */ |
| 10 | +.masthead__left { |
| 11 | + display: flex; |
| 12 | + align-items: center; |
| 13 | + gap: 0.5rem; |
| 14 | +} |
| 15 | + |
| 16 | +/* Right side (force to right) */ |
| 17 | +.masthead__right { |
| 18 | + margin-left: auto; /* ensures it hugs the right edge */ |
| 19 | +} |
| 20 | + |
| 21 | +.masthead__right .visible-links { |
| 22 | + display: flex; |
| 23 | + gap: 1rem; |
| 24 | + margin: 0; |
| 25 | + padding: 0; |
| 26 | + list-style: none; |
| 27 | +} |
| 28 | + |
| 29 | +/* --- put this at the very end of your custom scss so it overrides theme rules --- */ |
| 30 | + |
| 31 | +/* container: tiny gap (change 0.05rem → 0 to make absolutely touching) */ |
| 32 | +.masthead__menu .masthead__social { |
| 33 | + display: flex !important; |
| 34 | + align-items: center; |
| 35 | + gap: 0.05rem !important; /* tiny gap; set to 0 for touching */ |
| 36 | + margin: 0; |
| 37 | + padding: 0; |
| 38 | +} |
| 39 | + |
| 40 | +/* remove any li spacing coming from the theme */ |
| 41 | +.masthead__menu .masthead__social li { |
| 42 | + margin: 0 !important; |
| 43 | + padding: 0 !important; |
| 44 | +} |
| 45 | + |
| 46 | +/* remove anchor padding and force inline-flex so icons align perfectly */ |
| 47 | +.masthead__menu .masthead__social li a { |
| 48 | + display: inline-flex !important; |
| 49 | + align-items: center; |
| 50 | + justify-content: center; |
| 51 | + padding: 0 !important; |
| 52 | + margin: 0 !important; |
| 53 | + line-height: 1; |
| 54 | +} |
| 55 | + |
| 56 | +/* remove spacing on the icon element itself (FontAwesome <i> or <svg>) */ |
| 57 | +.masthead__menu .masthead__social li a i, |
| 58 | +.masthead__menu .masthead__social li a svg { |
| 59 | + margin: 0 !important; |
| 60 | + padding: 0 !important; |
| 61 | + vertical-align: middle; |
| 62 | +} |
| 63 | + |
| 64 | + |
| 65 | +/* Make the about section text smaller */ |
| 66 | +#about { |
| 67 | + font-size: 0.7rem; /* default is ~1rem, reduce a bit */ |
| 68 | + line-height: 1.5; /* keep it readable */ |
| 69 | + color: #333; /* optional: softer black */ |
| 70 | +} |
| 71 | + |
| 72 | +.about-float-wrapper { |
| 73 | + overflow: hidden; /* clearfix: allows text to wrap properly around floated image */ |
| 74 | +} |
| 75 | +.about-photo-wrapper { |
| 76 | + float: right; /* keep on the right */ |
| 77 | + width: 270px; /* desktop width */ |
| 78 | + height: 270px; /* fixed height for cropping */ |
| 79 | + margin: 0 0 1rem 1rem; |
| 80 | + overflow: hidden; /* hide cropped parts */ |
| 81 | + border-radius: 50%; |
| 82 | +} |
| 83 | + |
| 84 | +.about-photo { |
| 85 | + display: block !important; |
| 86 | + width: 100% !important; |
| 87 | + height: 100% !important; |
| 88 | + max-width: none !important; /* override theme */ |
| 89 | + max-height: none !important; /* override theme */ |
| 90 | + object-fit: cover; |
| 91 | + object-position: center 20%; /* keep top visible */ |
| 92 | +} |
| 93 | + |
| 94 | +@media (max-width: 600px) { |
| 95 | + .about-photo-wrapper { |
| 96 | + float: none; |
| 97 | + width: 60%; |
| 98 | + height: auto; |
| 99 | + margin: 0 auto 1rem auto; |
| 100 | + } |
| 101 | + .about-photo { |
| 102 | + height: auto !important; |
| 103 | + object-position: center top !important; |
| 104 | + } |
| 105 | +} |
| 106 | + |
| 107 | + |
| 108 | +.welcome-name { |
| 109 | + font-size: 2.5rem; /* very large */ |
| 110 | + font-weight: 400; /* bold */ |
| 111 | + text-align: left; /* centered on page */ |
| 112 | + margin: 0rem 0 1.0rem 0; /* spacing above/below */ |
| 113 | + line-height: 1.2; |
| 114 | + padding-left: 15px; /* optional: small padding from the page edge */ |
| 115 | + |
| 116 | +} |
| 117 | + |
| 118 | +/* Scrollable container */ |
| 119 | +/* Scrollable container */ |
| 120 | +.news-scroll { |
| 121 | + max-height: 300px; /* adjust height */ |
| 122 | + overflow-y: auto; /* vertical scroll */ |
| 123 | + padding-right: 10px; /* avoid text under scrollbar */ |
| 124 | + border: 1px solid #ddd; |
| 125 | + border-radius: 8px; |
| 126 | + margin-top: 1rem; |
| 127 | + scroll-behavior: smooth; |
| 128 | +} |
| 129 | + |
| 130 | +/* Remove bullets */ |
| 131 | +.news-list { |
| 132 | + list-style: none; |
| 133 | + padding: 0; |
| 134 | + margin: 0; |
| 135 | +} |
| 136 | + |
| 137 | +/* Each news item as flex row */ |
| 138 | +.news-list li { |
| 139 | + display: flex; |
| 140 | + align-items: flex-start; /* top-align date with first line of text */ |
| 141 | + margin-bottom: 0.75rem; |
| 142 | + padding-bottom: 0.5rem; |
| 143 | + border-bottom: 1px solid #eee; |
| 144 | +} |
| 145 | + |
| 146 | +/* Date column */ |
| 147 | +.news-date { |
| 148 | + flex: 0 0 50px; /* fixed width */ |
| 149 | + display: flex; |
| 150 | + font-size: 0.7rem; /* smaller, compact text */ |
| 151 | + flex-direction: column; /* stack month/year */ |
| 152 | + justify-content: flex-start; |
| 153 | + text-align: center; |
| 154 | + margin-right: 1rem; |
| 155 | + line-height: 1.2; |
| 156 | + padding-left: 15px; |
| 157 | +} |
| 158 | + |
| 159 | +.news-month, |
| 160 | +.news-year { |
| 161 | + display: block; |
| 162 | + width: 100%; |
| 163 | +} |
| 164 | + |
| 165 | +/* News description */ |
| 166 | +.news-text { |
| 167 | + flex: 1; |
| 168 | + font-size: 0.8rem; /* smaller, compact text */ |
| 169 | + line-height: 1.4; |
| 170 | +} |
| 171 | + |
| 172 | +/* Optional: mobile stacking */ |
| 173 | +@media (max-width: 600px) { |
| 174 | + .news-list li { |
| 175 | + flex-direction: column; |
| 176 | + border-bottom: 1px solid #eee; |
| 177 | + } |
| 178 | + .news-date { |
| 179 | + margin-bottom: 0.25rem; |
| 180 | + } |
| 181 | +} |
| 182 | + |
| 183 | +.publications-preview .publication-block { |
| 184 | + display: grid; |
| 185 | + grid-template-columns: 80px 1fr; /* thumbnail column + text column */ |
| 186 | + column-gap: 1rem; |
| 187 | + align-items: start; /* top-aligns image with first line of text */ |
| 188 | + padding: 0.5rem 0; |
| 189 | +} |
| 190 | + |
| 191 | +.publication-thumbnail img { |
| 192 | + width: 80px; |
| 193 | + height: 80px; |
| 194 | + object-fit: cover; |
| 195 | + border-radius: 4px; |
| 196 | +} |
| 197 | + |
| 198 | +.publication-data { |
| 199 | + font-size: 0.85rem; |
| 200 | + line-height: 1.3; |
| 201 | +} |
| 202 | + |
| 203 | +.publication-title a { |
| 204 | + font-size: 0.9rem; |
| 205 | + font-weight: 600; |
| 206 | + color: #111; |
| 207 | + text-decoration: none; |
| 208 | +} |
| 209 | + |
| 210 | +.publication-title a:hover { |
| 211 | + text-decoration: underline; |
| 212 | +} |
| 213 | + |
| 214 | +.publication-venue, |
| 215 | +.publication-authors { |
| 216 | + font-size: 0.8rem; |
| 217 | + color: #555; |
| 218 | +} |
| 219 | + |
| 220 | +/* Mobile stacking */ |
| 221 | +@media (max-width: 600px) { |
| 222 | + .publications-preview .publication-block { |
| 223 | + grid-template-columns: 1fr; /* stack image above text */ |
| 224 | + row-gap: 0.5rem; |
| 225 | + } |
| 226 | +} |
0 commit comments