feat: 增加文章模板 修改部分页面样式
This commit is contained in:
+102
-10
@@ -7,7 +7,7 @@
|
||||
/* 顶部 banner:复用站点 .banner 结构,图片通过 .banner__bg 填充 */
|
||||
.news-page .banner {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
height: 520px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -40,11 +40,13 @@
|
||||
font-size: 46px;
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 6px;
|
||||
letter-spacing: 2px;
|
||||
user-select: none;
|
||||
}
|
||||
.news-page .banner__body__sub {
|
||||
margin-top: 14px;
|
||||
font-size: 18px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* 内容容器 */
|
||||
@@ -227,7 +229,6 @@
|
||||
border-radius: 4px;
|
||||
padding: 8px 16px;
|
||||
margin: 0 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.news-main .pages ul li a {
|
||||
@@ -241,13 +242,6 @@
|
||||
.news-main .pages ul li.active a {
|
||||
color: #fff;
|
||||
}
|
||||
.news-main .pages ul li:hover {
|
||||
background: #eb662b;
|
||||
border-color: #eb662b;
|
||||
}
|
||||
.news-main .pages ul li:hover a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* 右侧悬浮热文推荐 */
|
||||
.news-main .neirong .you {
|
||||
@@ -314,3 +308,101 @@
|
||||
font-size: 12px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* 文章详情页样式(统一模板) */
|
||||
.news-main .nav_all .name {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
line-height: 40px;
|
||||
}
|
||||
.news-main .articlea {
|
||||
overflow: hidden;
|
||||
}
|
||||
.news-main .articleb {
|
||||
border: 1px solid #ebebeb;
|
||||
padding: 30px;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.news-main .articleba {
|
||||
position: relative;
|
||||
font-size: 26px;
|
||||
display: block;
|
||||
letter-spacing: 2px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 25px;
|
||||
color: #333;
|
||||
text-align: left;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.news-main .articled {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
gap: 12px
|
||||
}
|
||||
.news-main .articlee {
|
||||
text-align: left;
|
||||
margin: 20px 0;
|
||||
line-height: 1.8;
|
||||
font-size: 16px;
|
||||
color: #3d464d;
|
||||
}
|
||||
.news-main .articlee p {
|
||||
margin-bottom: 25px;
|
||||
line-height: 1.8;
|
||||
font-size: 16px;
|
||||
}
|
||||
.news-main .articlee img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
border: 8px solid #fff;
|
||||
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.1);
|
||||
margin: 20px auto 0;
|
||||
}
|
||||
.news-main .article-copyright2 {
|
||||
margin-top: 30px;
|
||||
padding: 14px 16px;
|
||||
background: #f8f9fb;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
line-height: 1.8;
|
||||
text-align: left;
|
||||
}
|
||||
.news-main .articlea .pages {
|
||||
margin-top: 24px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #ebebeb;
|
||||
text-align: left;
|
||||
}
|
||||
.news-main .articlea .pages ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.news-main .articlea .pages ul li {
|
||||
display: block;
|
||||
margin: 4px 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
.news-main .articlea .pages ul li a {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: bottom;
|
||||
color: #1a2026;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.news-main .articlea .pages ul li a:hover {
|
||||
color: #eb662b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user