2021-12-28 17:05:11 +08:00
|
|
|
@charset "UTF-8";
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
// 全局 HTML 配置
|
|
|
|
html {
|
2021-12-31 15:53:37 +08:00
|
|
|
font-family: -apple-system, BlinksMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
2021-12-28 17:47:49 +08:00
|
|
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
|
|
'Noto Color Emoji';
|
2021-12-28 17:05:11 +08:00
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 500;
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
}
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
// 滚动条
|
|
|
|
html::-webkit-scrollbar {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
html::-webkit-scrollbar-thumb {
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body 主体
|
|
|
|
body {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Header 头部
|
|
|
|
.header {
|
|
|
|
width: 45rem;
|
|
|
|
padding: 7rem 0 3rem 0;
|
|
|
|
-webkit-background-size: cover;
|
|
|
|
background-size: cover;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
// 站点标题
|
2021-12-31 15:53:37 +08:00
|
|
|
>.title {
|
2021-12-28 17:05:11 +08:00
|
|
|
width: 6rem;
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>a {
|
2021-12-28 17:05:11 +08:00
|
|
|
font-size: 2.2rem;
|
|
|
|
letter-spacing: 0.2rem;
|
|
|
|
line-height: 2.4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 二级标题
|
2021-12-31 15:53:37 +08:00
|
|
|
>.description {
|
2021-12-28 17:05:11 +08:00
|
|
|
font-size: 0.9rem;
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>.socials {
|
2021-12-28 17:05:11 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>a {
|
2021-12-28 17:05:11 +08:00
|
|
|
font-size: 1rem;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// main 主体
|
|
|
|
main {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2021-12-31 15:53:37 +08:00
|
|
|
width: 52rem;
|
2021-12-28 17:05:11 +08:00
|
|
|
margin-top: 4rem;
|
2021-12-31 15:53:37 +08:00
|
|
|
padding-bottom: 3rem;
|
|
|
|
|
|
|
|
// 主体布局
|
|
|
|
> .index,
|
|
|
|
> .archives,
|
|
|
|
> .categories,
|
|
|
|
> .category,
|
|
|
|
> .links,
|
|
|
|
> .post,
|
|
|
|
> .tag
|
|
|
|
{
|
2021-12-28 17:05:11 +08:00
|
|
|
width: 45rem;
|
2021-12-31 15:53:37 +08:00
|
|
|
padding: 1rem 0.1rem 1rem 0.1rem;
|
2021-12-28 17:47:49 +08:00
|
|
|
}
|
2021-12-31 15:53:37 +08:00
|
|
|
|
|
|
|
// 首页
|
|
|
|
.index {
|
|
|
|
|
|
|
|
// 标题
|
|
|
|
>h1 {
|
|
|
|
>a {
|
2021-12-28 17:05:11 +08:00
|
|
|
letter-spacing: 0.0625rem;
|
|
|
|
font-size: 1.375rem;
|
|
|
|
line-height: 1.75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
// 摘要
|
|
|
|
>p {
|
2021-12-28 17:05:11 +08:00
|
|
|
line-height: 1.5rem;
|
|
|
|
text-indent: 2rem;
|
|
|
|
}
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
// 徽标
|
|
|
|
>.info {
|
2021-12-28 17:05:11 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-direction: row;
|
|
|
|
padding: 0.5rem 0 2rem 0;
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>.date,
|
|
|
|
.tag {
|
2021-12-28 17:05:11 +08:00
|
|
|
font-weight: 400;
|
|
|
|
font-size: 0.75rem;
|
|
|
|
margin: 0 0.5rem;
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>i {
|
2021-12-28 17:05:11 +08:00
|
|
|
position: relative;
|
2021-12-31 15:53:37 +08:00
|
|
|
top: 0.1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
>a {
|
|
|
|
font-size: 0.75rem;
|
2021-12-28 17:05:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
// 归档
|
|
|
|
.archives{
|
|
|
|
>ul {
|
|
|
|
padding: 0.625rem 0.1rem;
|
|
|
|
|
|
|
|
>.year {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 2.2rem;
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
>li {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
padding-bottom: 0.3rem;
|
|
|
|
line-height: 1.75rem;
|
|
|
|
}
|
2021-12-28 17:05:11 +08:00
|
|
|
}
|
|
|
|
}
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
// 分类目录 标签目录
|
|
|
|
.categories,.tags {
|
|
|
|
margin: 5rem 0;
|
|
|
|
> ul {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
align-content: center;
|
|
|
|
flex-wrap: wrap;
|
2021-12-29 17:46:17 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
> li {
|
|
|
|
margin: 0.5rem 1rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
.count {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: -0.5rem;
|
|
|
|
right: -0.125rem;
|
|
|
|
font-size: 0.75rem;
|
|
|
|
}
|
2021-12-28 17:47:49 +08:00
|
|
|
}
|
2021-12-31 15:53:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 分类 标签
|
|
|
|
.category,.tag{
|
|
|
|
>ul {
|
|
|
|
padding: 0.625rem 0.1rem;
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>.name {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 2.2rem;
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
}
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
>li {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 0.875rem;
|
2021-12-28 17:47:49 +08:00
|
|
|
padding-bottom: 0.3rem;
|
2021-12-29 17:46:17 +08:00
|
|
|
line-height: 1.75rem;
|
2021-12-28 17:47:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-29 17:46:17 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
// 友链
|
|
|
|
.links{
|
|
|
|
> ul {
|
|
|
|
padding: 0.625rem 0.1rem;
|
|
|
|
|
|
|
|
>.friend {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 2.2rem;
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
>li {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 1rem;
|
|
|
|
padding-bottom: 0.3rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
}
|
2021-12-29 17:46:17 +08:00
|
|
|
}
|
2021-12-31 15:53:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 文章
|
|
|
|
.post{
|
|
|
|
> .title{
|
|
|
|
margin-top: 4rem;
|
|
|
|
> h1 {
|
|
|
|
> a {
|
|
|
|
color: rgba(0, 0, 0, 1);
|
|
|
|
letter-spacing: 0.0625rem;
|
|
|
|
font-size: 2rem;
|
|
|
|
line-height: 2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .info {
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
border-bottom: 1px solid #f3f3f3;
|
2021-12-29 17:46:17 +08:00
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
> span{
|
|
|
|
margin: 0 0.25rem;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 0.75rem;
|
|
|
|
color: rgb(0, 0, 0, 0.65);
|
|
|
|
i {
|
|
|
|
position: relative;
|
|
|
|
top:0.125rem;
|
|
|
|
color: rgb(0, 0, 0, 0.85);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-29 17:46:17 +08:00
|
|
|
}
|
2021-12-31 15:53:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 分页
|
|
|
|
.pagenav {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 2rem 0;
|
|
|
|
|
|
|
|
>a {
|
|
|
|
text-decoration: none;
|
|
|
|
margin: 0 2rem;
|
2021-12-29 17:46:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
padding: 2rem 0;
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
.copyright {
|
|
|
|
font-size: 0.8rem;
|
2021-12-28 17:47:49 +08:00
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
a {
|
|
|
|
margin: 0 0.125rem;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-31 15:53:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-28 17:05:11 +08:00
|
|
|
/*animation starts*/
|
|
|
|
|
|
|
|
@-webkit-keyframes fadeInDown {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-webkit-transform: translateY(-3px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-webkit-transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes fadeInDown {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-moz-transform: translateY(-3px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-moz-transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes fadeInDown {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-o-transform: translateY(-3px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-o-transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeInDown {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-3px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*animation ends*/
|