mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
160 lines
2.3 KiB
CSS
160 lines
2.3 KiB
CSS
pre {
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
border: var(--secondary-text-color) 1px dashed;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
}
|
|
|
|
tr, th, td {
|
|
height: 30px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
border: 1px var(--secondary-text-color) solid;
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
.post-menu {
|
|
max-width: 1000px;
|
|
}
|
|
|
|
.post-title {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.post-info {
|
|
max-width: 1000px;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
.post-info-wrap {
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.post-info-item {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.post-content {
|
|
line-height: 1.6;
|
|
max-width: 1000px;
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
.post-content h1,
|
|
.post-content h2 {
|
|
margin-top: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.post-content h3,
|
|
.post-content h4 {
|
|
margin-top: 3rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.post-content h5,
|
|
.post-content h6 {
|
|
margin-top: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.post-content img {
|
|
margin-top: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.post-content img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.post-footer {
|
|
width: 100%;
|
|
padding-top: 2rem;
|
|
padding-bottom: 2rem;
|
|
text-align: center;
|
|
color: var(--secondary-text-color);
|
|
}
|
|
|
|
#toc-box-area {
|
|
width: 250px;
|
|
position: fixed;
|
|
top: 4rem;
|
|
left: 30px;
|
|
}
|
|
|
|
#toc-box-menu {
|
|
margin-top: 20px;
|
|
display: none;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.toc-box-menu-item {
|
|
cursor: pointer;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#toc-title {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
#toc-box {
|
|
max-height: 500px;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
#toc-box li {
|
|
list-style: none;
|
|
}
|
|
|
|
#toc-box .li-1 {
|
|
font-size: 16px;
|
|
padding-left: 0;
|
|
}
|
|
|
|
#toc-box .li-2 {
|
|
font-size: 15px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
#toc-box .li-3 {
|
|
font-size: 14px;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
#toc-box .li-4 {
|
|
font-size: 13px;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
#toc-box .li-5 {
|
|
font-size: 12px;
|
|
padding-left: 40px;
|
|
}
|
|
|
|
#toc-box .li-6 {
|
|
font-size: 11px;
|
|
padding-left: 50px;
|
|
}
|
|
|
|
.image-preview-wrap {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: none;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.image-preview-img {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
} |