|
47 | 47 | .results-list.use { |
48 | 48 | list-style-type: none; |
49 | 49 | padding: 0; |
| 50 | + margin-bottom: 0; |
50 | 51 | } |
51 | 52 |
|
52 | 53 | // -------------------------------------- |
|
139 | 140 | // -------------------------------------- |
140 | 141 |
|
141 | 142 | .result.use, .result.primo { |
142 | | - margin-bottom: 48px; |
143 | | - padding: 0; |
| 143 | + padding: 48px 0; |
| 144 | + margin: 0; |
| 145 | + border-bottom: 1px solid $color-gray-400; |
144 | 146 | border-top: none; |
| 147 | + |
| 148 | + &:first-child { |
| 149 | + padding-top: 0; |
| 150 | + } |
145 | 151 |
|
| 152 | + &:last-child { |
| 153 | + border-bottom: none; |
| 154 | + } |
| 155 | + |
146 | 156 | &:hover, |
147 | 157 | &:focus { |
148 | 158 | background-color: transparent; |
|
169 | 179 |
|
170 | 180 | .pub-info { |
171 | 181 | font-size: $fs-base; |
172 | | - color: $color-text-secondary; |
173 | | - span:first-child:after { |
174 | | - content: " • "; |
175 | | - color: $color-text-disabled; |
| 182 | + |
| 183 | + span { |
| 184 | + &::before, &:last-child::before { |
| 185 | + content: " • "; |
| 186 | + color: $color-text-disabled; |
| 187 | + } |
| 188 | + |
| 189 | + &:first-child::before { |
| 190 | + content: " "; |
| 191 | + } |
| 192 | + |
| 193 | + // Override the default separator |
| 194 | + &::after, &:first-child::after { |
| 195 | + content: " "; |
| 196 | + } |
| 197 | + |
176 | 198 | } |
| 199 | + |
177 | 200 | margin-bottom: 1em; |
178 | 201 | margin-top: 0; |
179 | 202 | } |
180 | 203 |
|
| 204 | + .result-subjects, .result-summary, .result-container { |
| 205 | + font-size: 1.4rem; |
| 206 | + margin-bottom: 8px; |
| 207 | + color: $color-text-secondary; |
| 208 | + } |
| 209 | + |
| 210 | + .result-subjects { |
| 211 | + color: $color-text-secondary; |
| 212 | + |
| 213 | + ul { |
| 214 | + line-clamp: 1; |
| 215 | + -webkit-line-clamp: 1; |
| 216 | + |
| 217 | + li { |
| 218 | + margin-bottom: 0; |
| 219 | + |
| 220 | + &::after { |
| 221 | + content: " • "; |
| 222 | + color: $color-text-disabled; |
| 223 | + } |
| 224 | + |
| 225 | + &:last-child::after { |
| 226 | + content: " "; |
| 227 | + } |
| 228 | + |
| 229 | + } |
| 230 | + } |
| 231 | + |
| 232 | + } |
| 233 | + |
181 | 234 | .result-highlights.use { |
182 | 235 | margin-top: 0; |
183 | 236 |
|
| 237 | + h4, strong {font-weight: $fw-medium;} |
| 238 | + |
184 | 239 | ul { |
185 | 240 | list-style: disc outside; |
186 | 241 | padding-left: 16px; |
| 242 | + margin-bottom: 0; |
187 | 243 |
|
188 | 244 | li { |
189 | 245 | margin-left: 0.6rem; |
190 | | - font-size: 1.6rem; |
| 246 | + font-size: 1.4rem; |
191 | 247 | } |
192 | 248 | } |
193 | 249 | } |
|
196 | 252 | background-color: $color-highlight; |
197 | 253 | } |
198 | 254 |
|
199 | | - &.use, &.primo { |
200 | | - .result-metadata { |
201 | | - margin-bottom: 16px; |
202 | | - } |
| 255 | + .result-metadata { |
| 256 | + margin-bottom: 16px; |
| 257 | + } |
203 | 258 |
|
204 | | - .pub-info { |
205 | | - margin-bottom: 4px; |
206 | | - } |
| 259 | + .pub-info { |
| 260 | + margin-bottom: 4px; |
| 261 | + } |
207 | 262 |
|
208 | | - ul.contributors { |
209 | | - li { |
210 | | - font-weight: $fw-normal; |
| 263 | + ul.contributors { |
| 264 | + line-clamp: 1; |
| 265 | + -webkit-line-clamp: 1; |
| 266 | + margin-bottom: 12px; |
211 | 267 |
|
212 | | - a { |
213 | | - color: $color-text-secondary; |
214 | | - text-decoration: none; |
| 268 | + li { |
| 269 | + font-weight: $fw-normal; |
215 | 270 |
|
216 | | - &:hover { |
217 | | - text-decoration: underline; |
218 | | - } |
| 271 | + a { |
| 272 | + text-decoration: none; |
| 273 | + |
| 274 | + &:hover { |
| 275 | + text-decoration: underline; |
219 | 276 | } |
220 | 277 | } |
221 | 278 | } |
| 279 | + } |
222 | 280 |
|
223 | | - .inner-heading { |
224 | | - font-size: 1.6rem; |
225 | | - font-family: $base-font; // Since we're using 16px, override to use body font |
226 | | - } |
227 | | - |
228 | | - .result-get { |
229 | | - display: flex; |
230 | | - align-items: center; |
231 | | - gap: 24px; |
232 | | - } |
233 | | - |
234 | | - // Make result buttons present as underlined links |
235 | | - a.button { |
236 | | - @include underlinedLinks; |
237 | | - font-weight: $fw-medium; |
238 | | - font-size: 1.6rem; |
239 | | - } |
| 281 | + .inner-heading { |
| 282 | + font-size: 1.6rem; |
| 283 | + font-family: $base-font; // Since we're using 16px, override to use body font |
| 284 | + } |
240 | 285 |
|
241 | | - // Except the first button, which should present as a secondary button |
242 | | - .result-get > a.button:first-child { |
243 | | - @include buttonSecondary; |
244 | | - } |
| 286 | + .result-get { |
| 287 | + display: flex; |
| 288 | + align-items: center; |
| 289 | + gap: 24px; |
| 290 | + } |
245 | 291 |
|
246 | | - // Loading skeleton when a button isn't available |
247 | | - span.skeleton-loader { |
248 | | - @include skeleton-loader(112px); |
249 | | - } |
| 292 | + // Make result buttons present as underlined links |
| 293 | + a.button { |
| 294 | + @include underlinedLinks; |
| 295 | + font-weight: $fw-medium; |
| 296 | + font-size: 1.6rem; |
| 297 | + } |
250 | 298 |
|
251 | | - .truncate-list li:last-child {margin-bottom: 0;} |
| 299 | + // Except the first button, which should present as a secondary button |
| 300 | + .result-get > a.button:first-child { |
| 301 | + @include buttonSecondary; |
| 302 | + } |
252 | 303 |
|
| 304 | + // Loading skeleton when a button isn't available |
| 305 | + span.skeleton-loader { |
| 306 | + @include skeleton-loader(112px); |
253 | 307 | } |
254 | 308 |
|
| 309 | + .truncate-list li:last-child {margin-bottom: 0;} |
| 310 | + |
255 | 311 | .availability { |
256 | 312 | color: $color-text-secondary; |
257 | 313 |
|
|
300 | 356 |
|
301 | 357 | .results-context-description { |
302 | 358 | color: $color-text-secondary; |
303 | | - margin-bottom: 32px; |
| 359 | + margin-bottom: 40px; |
304 | 360 | } |
305 | 361 |
|
306 | 362 | #results-section { |
|
0 commit comments