202 lines
3.4 KiB
SCSS
202 lines
3.4 KiB
SCSS
@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';
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
// 滚动条
|
|
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;
|
|
|
|
// 站点标题
|
|
.title {
|
|
width: 6rem;
|
|
|
|
a {
|
|
font-size: 2.2rem;
|
|
letter-spacing: 0.2rem;
|
|
line-height: 2.4rem;
|
|
}
|
|
}
|
|
|
|
// 二级标题
|
|
.description {
|
|
font-size: 0.9rem;
|
|
|
|
.socials {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
a {
|
|
font-size: 1rem;
|
|
margin-left: 0.5rem;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
// main 主体
|
|
main {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 50rem;
|
|
margin-top: 4rem;
|
|
|
|
.post {
|
|
width: 45rem;
|
|
padding-top: 1rem;
|
|
|
|
h1 {
|
|
a {
|
|
letter-spacing: 0.0625rem;
|
|
font-size: 1.375rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
}
|
|
|
|
p {
|
|
line-height: 1.5rem;
|
|
text-indent: 2rem;
|
|
}
|
|
|
|
.info {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
padding: 0.5rem 0 2rem 0;
|
|
|
|
span {
|
|
font-weight: 400;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
a {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.date,
|
|
.tag {
|
|
margin: 0 0.5rem;
|
|
|
|
i {
|
|
position: relative;
|
|
top: 0.05rem;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
.pagenav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 2rem 0 5rem 0;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
margin: 0 2rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
padding: 2rem 0;
|
|
.copyright {
|
|
font-size: 0.8rem;
|
|
a {
|
|
margin: 0 0.125rem;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/*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*/ |