128 lines
2.1 KiB
CSS
128 lines
2.1 KiB
CSS
.news-focus-lwd {
|
|
margin-top: 40px;
|
|
max-width: 1200px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.news-focus-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 2px solid #333;
|
|
padding-bottom: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.news-focus-header h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.news-focus-header .btn-more {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.news-focus-content {
|
|
display: flex;
|
|
gap: 30px;
|
|
}
|
|
|
|
/* 좌측 메인 포스트 */
|
|
.main-post {
|
|
width: 40%;
|
|
}
|
|
|
|
.main-post a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.main-post .post-thumb {
|
|
width: 100%;
|
|
height: 250px;
|
|
overflow: hidden;
|
|
margin-bottom: 15px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.main-post .post-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.main-post:hover .post-thumb img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.main-post .post-info h3 {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.main-post .post-info p {
|
|
font-size: 0.95rem;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
height: 4.8em; /* 3줄 제한 */
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
/* 우측 서브 포스트 리스트 */
|
|
.sub-post-list {
|
|
width: 60%;
|
|
}
|
|
|
|
.sub-post-list ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.sub-post-list li {
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.sub-post-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.sub-post-list a {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 0;
|
|
text-decoration: none;
|
|
color: #333;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.sub-post-list a:hover {
|
|
color: #0056b3;
|
|
}
|
|
|
|
.sub-post-list .post-subject {
|
|
font-size: 1rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 80%;
|
|
}
|
|
|
|
.sub-post-list .post-date {
|
|
font-size: 0.85rem;
|
|
color: #999;
|
|
}
|