You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
171 lines
3.4 KiB
171 lines
3.4 KiB
/**
|
|
* 文章展示组件样式
|
|
* Article Display Component Styles
|
|
*/
|
|
|
|
/* 基础重置样式 */
|
|
.article-display-wrapper * {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 文章容器样式 */
|
|
.article-display-wrapper {
|
|
max-width: 1200px;
|
|
margin: 1rem auto;
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.article-display-wrapper:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.article-display-wrapper .article-content {
|
|
width: 100%;
|
|
height: 400px;
|
|
}
|
|
|
|
.article-display-wrapper .article-item {
|
|
display: flex;
|
|
align-items: stretch;
|
|
background: white;
|
|
height: 100%;
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* 左侧图片栏样式 */
|
|
.article-display-wrapper .left-column {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.article-display-wrapper .left-column .image-link {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.article-display-wrapper .left-column img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.article-display-wrapper .left-column .image-link:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* 右侧内容栏样式 */
|
|
.article-display-wrapper .right-column {
|
|
flex: 1;
|
|
padding: 40px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
|
|
.article-display-wrapper .content-top {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.article-display-wrapper .title-link {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
display: block;
|
|
}
|
|
|
|
.article-display-wrapper .article-title {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
line-height: 1.4;
|
|
transition: color 0.3s ease;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.article-display-wrapper .title-link:hover .article-title {
|
|
color: #00b4a6;
|
|
}
|
|
|
|
.article-display-wrapper .article-description {
|
|
font-size: 16px;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
margin-bottom: 30px;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.article-display-wrapper:hover .article-description {
|
|
color: #555;
|
|
}
|
|
|
|
.article-display-wrapper .view-more-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: #126594;
|
|
text-decoration: none;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
transition: color 0.3s ease, transform 0.3s ease;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.article-display-wrapper .view-more-link:hover {
|
|
color: #008a7e;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.article-display-wrapper .article-item {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.article-display-wrapper .article-content {
|
|
height: auto;
|
|
}
|
|
|
|
.article-display-wrapper .left-column,
|
|
.article-display-wrapper .right-column {
|
|
flex: none;
|
|
}
|
|
|
|
.article-display-wrapper .left-column {
|
|
height: 250px;
|
|
}
|
|
|
|
.article-display-wrapper .right-column {
|
|
padding: 20px;
|
|
}
|
|
|
|
.article-display-wrapper .article-title {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.article-display-wrapper {
|
|
padding: 20px;
|
|
}
|
|
} |