254 lines
4.4 KiB
SCSS
254 lines
4.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;
|
|
}
|
|
.post > {
|
|
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;
|
|
}
|
|
.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;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/*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*/ |