feature(archives): Build a archives page draft
This commit is contained in:
@@ -65,35 +65,35 @@ main .post {
|
||||
width: 45rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
main .post h1 a {
|
||||
main .post > h1 a {
|
||||
letter-spacing: 0.0625rem;
|
||||
font-size: 1.375rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
main .post p {
|
||||
main .post > p {
|
||||
line-height: 1.5rem;
|
||||
text-indent: 2rem;
|
||||
}
|
||||
main .post .info {
|
||||
main .post > .info {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
padding: 0.5rem 0 2rem 0;
|
||||
}
|
||||
main .post .info span {
|
||||
main .post > .info span {
|
||||
font-weight: 400;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
main .post .info a {
|
||||
main .post > .info a {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
main .post .info .date,
|
||||
main .post .info .tag {
|
||||
main .post > .info .date,
|
||||
main .post > .info .tag {
|
||||
margin: 0 0.5rem;
|
||||
}
|
||||
main .post .info .date i,
|
||||
main .post .info .tag i {
|
||||
main .post > .info .date i,
|
||||
main .post > .info .tag i {
|
||||
position: relative;
|
||||
top: 0.05rem;
|
||||
}
|
||||
@@ -102,10 +102,46 @@ main .pagenav {
|
||||
justify-content: space-between;
|
||||
padding: 2rem 0 5rem 0;
|
||||
}
|
||||
main .pagenav a {
|
||||
main .pagenav > a {
|
||||
text-decoration: none;
|
||||
margin: 0 2rem;
|
||||
}
|
||||
main .archives {
|
||||
width: 45rem;
|
||||
padding-top: 1rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
main .archives > li {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
main .archives > .year {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
line-height: 2.2rem;
|
||||
letter-spacing: 0.1rem;
|
||||
padding: 0.625rem 0;
|
||||
}
|
||||
main .archives > .list {
|
||||
margin-bottom: 3rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
main .archives > .list .title {
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
main .archives > .list .title a {
|
||||
display: inline-block;
|
||||
width: 85%;
|
||||
color: #1f1f1f;
|
||||
}
|
||||
main .archives > .list .title .time {
|
||||
float: right;
|
||||
color: #c5c5c5;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
main .archives > .list .title a:hover {
|
||||
color: #1f1f1f;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 2rem 0;
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
// 全局 HTML 配置
|
||||
html {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||
'Noto Color Emoji';
|
||||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||||
'Noto Color Emoji';
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
font-variant-numeric: tabular-nums;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
// 滚动条
|
||||
html::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
@@ -76,10 +78,11 @@ main {
|
||||
width: 50rem;
|
||||
margin-top: 4rem;
|
||||
|
||||
.post {
|
||||
.post{
|
||||
width: 45rem;
|
||||
padding-top: 1rem;
|
||||
|
||||
}
|
||||
.post > {
|
||||
h1 {
|
||||
a {
|
||||
letter-spacing: 0.0625rem;
|
||||
@@ -126,18 +129,67 @@ main {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 2rem 0 5rem 0;
|
||||
|
||||
}
|
||||
.pagenav > {
|
||||
a {
|
||||
text-decoration: none;
|
||||
margin: 0 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.archives{
|
||||
width: 45rem;
|
||||
padding-top: 1rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.archives > {
|
||||
li {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.year {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
line-height: 2.2rem;
|
||||
letter-spacing: 0.1rem;
|
||||
padding: 0.625rem 0;
|
||||
}
|
||||
|
||||
.list {
|
||||
margin-bottom: 3rem;
|
||||
line-height: 1.75rem;
|
||||
|
||||
.title{
|
||||
padding-bottom: 0.3rem;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
width: 85%;
|
||||
color: #1f1f1f;
|
||||
}
|
||||
|
||||
.time {
|
||||
float: right;
|
||||
color: #c5c5c5;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #1f1f1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 2rem 0;
|
||||
|
||||
.copyright {
|
||||
font-size: 0.8rem;
|
||||
|
||||
a {
|
||||
margin: 0 0.125rem;
|
||||
|
||||
|
||||
@@ -70,6 +70,15 @@ main .pagenav a {
|
||||
main .pagenav a:hover {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
main .archives > .list .title a {
|
||||
color: black;
|
||||
}
|
||||
main .archives > .list .title a:hover {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
main .archives > .list .title .time {
|
||||
color: #c5c5c5;
|
||||
}
|
||||
|
||||
footer .copyright a {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
|
||||
@@ -63,7 +63,7 @@ body {
|
||||
main {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.08);
|
||||
|
||||
// 首页
|
||||
.post {
|
||||
h1 {
|
||||
a {
|
||||
@@ -96,7 +96,7 @@ main {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 文章分页
|
||||
.pagenav {
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
|
||||
@@ -108,6 +108,24 @@ main {
|
||||
}
|
||||
}
|
||||
}
|
||||
// 归档页面
|
||||
.archives > {
|
||||
.list {
|
||||
.title{
|
||||
a {
|
||||
color: rgb(0, 0, 0);
|
||||
|
||||
&:hover {
|
||||
color: rgb(0, 0, 0, 0.65);
|
||||
}
|
||||
}
|
||||
.time {
|
||||
color: #c5c5c5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// 脚注
|
||||
@@ -122,4 +140,6 @@ footer {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user