Skip to content

Commit 161ffe4

Browse files
committed
Fix Style
1 parent 839370f commit 161ffe4

3 files changed

Lines changed: 26 additions & 24 deletions

File tree

_layouts/latest-news.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
55
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
66

7+
<style>
8+
/* --- Latest News Page Styles --- */
9+
.news-container { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
10+
.news-header { text-align: center; margin-bottom: 3rem; }
11+
.news-header h1 { font-size: 3.5em; font-weight: 800; margin-bottom: 2rem; }
12+
13+
.news-search-wrapper { position: relative; }
14+
.news-search-wrapper .fa-search { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #aaa; }
15+
.news-search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 3rem; font-size: 1em; border-radius: 12px; border: 1px solid #ddd; background-color: #f8f8fa; }
16+
17+
.news-entry { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid #e5e5e5; }
18+
.news-entry:last-child { border-bottom: none; margin-bottom: 0; }
19+
20+
.news-date { font-size: 0.9em; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
21+
.news-title { font-size: 2em; font-weight: 700; line-height: 1.3; margin: 0 0 1rem 0; }
22+
.news-content { font-size: 1.1em; line-height: 1.7; color: #333; }
23+
24+
/* --- Image Slider Styles --- */
25+
.swiper { width: 100%; height: 500px; border-radius: 16px; margin-top: 2rem; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
26+
.swiper-slide { display: flex; justify-content: center; align-items: center; background: #eee; }
27+
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
28+
.swiper-button-next, .swiper-button-prev { color: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
29+
@media (max-width: 768px) { .swiper { height: 400px; } }
30+
</style>
31+
732
<div class="news-container">
833
<header class="news-header">
934
<h1>Latest News</h1>

_sass/custom/_latest-news.scss

Lines changed: 0 additions & 22 deletions
This file was deleted.

assets/css/main.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
@import "custom/homepage";
1616
@import "custom/knowledge-base";
1717
@import "custom/kb-post";
18-
@import "custom/hobby-details";
19-
@import "custom/latest-news";
18+
@import "custom/hobby-details";

0 commit comments

Comments
 (0)