File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -314,6 +314,10 @@ title: 首页
314314 .ticker-item {
315315 white-space : normal ;
316316 }
317+
318+ .ticker-duplicate {
319+ display : none ;
320+ }
317321 }
318322
319323 @media (max-width : 480px ) {
@@ -355,12 +359,14 @@ title: 首页
355359 <span class="ticker-title">{{ item.title }}</span>
356360 </a>
357361 {% endfor %}
362+ <span class="ticker-duplicate">
358363 {% for item in news_page.news_items limit: 4 %}
359364 <a class="ticker-item" href="/news/">
360365 <span class="ticker-date">{{ item.date }}</span>
361366 <span class="ticker-title">{{ item.title }}</span>
362367 </a>
363368 {% endfor %}
369+ </span>
364370 </div>
365371 </div>
366372 <a class="ticker-link" href="/news/">查看全部 →</a>
Original file line number Diff line number Diff line change @@ -212,21 +212,72 @@ permalink: /cn/research/
212212 font-size : 2rem ;
213213 }
214214
215+ .research-intro-image {
216+ float : none ;
217+ display : block ;
218+ width : 60% ;
219+ max-width : 320px ;
220+ margin : 1rem auto ;
221+ }
222+
215223 .card-header {
216224 flex-direction : column ;
217225 align-items : stretch ;
218226 gap : 1.25rem ;
219227 }
220228
221229 .card-content {
230+ width : 100% ;
231+ max-width : 100% ;
222232 padding-left : 0 ;
223233 }
224234
225235 .card-figure {
226236 flex : none ;
227237 width : 100% ;
238+ max-width : 100% ;
228239 margin-top : 0.5rem ;
229240 }
241+
242+ .card-figure img {
243+ height : auto ;
244+ width : clamp (220px , 70vw , 320px );
245+ }
246+ }
247+
248+ @media (max-width : 480px ) {
249+ .research-intro-image {
250+ width : 80% ;
251+ max-width : 280px ;
252+ }
253+
254+ .research-card {
255+ padding : 1rem ;
256+ }
257+
258+ .card-title {
259+ font-size : 1rem ;
260+ padding : 0.4rem 0.8rem ;
261+ }
262+
263+ .card-lead {
264+ font-size : 0.95rem ;
265+ }
266+
267+ .card-list li {
268+ font-size : 0.95rem ;
269+ padding-left : 1.5rem ;
270+ }
271+
272+ .card-figure img {
273+ width : 100% ;
274+ max-width : 220px ;
275+ height : auto ;
276+ }
277+
278+ .card-header {
279+ column-gap : 0.75rem ;
280+ }
230281 }
231282</style >
232283
Original file line number Diff line number Diff line change @@ -314,6 +314,10 @@ title: Home
314314 .ticker-item {
315315 white-space : normal ;
316316 }
317+
318+ .ticker-duplicate {
319+ display : none ;
320+ }
317321 }
318322
319323 @media (max-width : 480px ) {
@@ -355,12 +359,14 @@ title: Home
355359 <span class="ticker-title">{{ item.title }}</span>
356360 </a>
357361 {% endfor %}
362+ <span class="ticker-duplicate">
358363 {% for item in news_page.news_items limit: 4 %}
359364 <a class="ticker-item" href="/news/">
360365 <span class="ticker-date">{{ item.date }}</span>
361366 <span class="ticker-title">{{ item.title }}</span>
362367 </a>
363368 {% endfor %}
369+ </span>
364370 </div>
365371 </div>
366372 <a class="ticker-link" href="/news/">View all →</a>
Original file line number Diff line number Diff line change @@ -378,6 +378,10 @@ title: Research
378378 }
379379
380380 @media (max-width : 480px ) {
381+ .research-intro-image {
382+ width : 80% ;
383+ max-width : 280px ;
384+ }
381385 .research-card {
382386 padding : 1rem ;
383387 }
@@ -514,6 +518,14 @@ title: Research
514518 padding : 1.25rem ;
515519 }
516520
521+ .research-intro-image {
522+ float : none ;
523+ display : block ;
524+ width : 60% ;
525+ max-width : 320px ;
526+ margin : 1rem auto ;
527+ }
528+
517529 .research-section {
518530 padding : 1.5rem ;
519531 }
You can’t perform that action at this time.
0 commit comments