Chic/style.css

1519 lines
32 KiB
CSS
Raw Normal View History

2024-06-27 19:59:47 +08:00
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
html {
line-height: 1.15 /* 1 */;
-webkit-text-size-adjust: 100% /* 2 */;
}
body {
margin: 0;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
hr {
box-sizing: content-box /* 1 */;
height: 0 /* 1 */;
overflow: visible /* 2 */;
}
pre {
font-family: monospace, monospace /* 1 */;
font-size: 1em /* 2 */;
}
a {
background-color: transparent;
}
abbr[title] {
border-bottom: none /* 1 */;
text-decoration: underline /* 2 */;
text-decoration: underline dotted /* 2 */;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
samp {
font-family: monospace, monospace /* 1 */;
font-size: 1em /* 2 */;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit /* 1 */;
font-size: 100% /* 1 */;
line-height: 1.15 /* 1 */;
margin: 0 /* 2 */;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
button:-moz-focusring,
[type="button"]-moz-focusring,
[type="reset"]-moz-focusring,
[type="submit"]-moz-focusring {
outline: 1px dotted ButtonText;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box /* 1 */;
color: inherit /* 2 */;
display: table /* 1 */;
max-width: 100% /* 1 */;
padding: 0 /* 3 */;
white-space: normal /* 1 */;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box /* 1 */;
padding: 0 /* 2 */;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield /* 1 */;
outline-offset: -2px /* 2 */;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button /* 1 */;
font: inherit /* 2 */;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none;
}
html::-webkit-scrollbar {
width: 8px;
height: 8px;
}
html::-webkit-scrollbar-thumb {
height: 40px;
background-color: #eee;
border-radius: 16px;
}
html::-webkit-scrollbar-thumb:hover {
background-color: #ddd;
}
body {
font-size: 11pt;
font-weight: normal;
line-height: 2em;
overflow: overlay;
background-color: #fff;
color: #161209;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
body:before {
content: "";
background-repeat: no-repeat;
background-position: center;
opacity: 0.05;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
body.dark-theme {
background-color: #292a2d;
color: #a9a9b3;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
a {
color: #161209;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
cursor: pointer;
}
a:hover {
color: #2d96bd;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.dark-theme a {
color: #a9a9b3;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.dark-theme a:hover {
color: #fff;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.navbar {
height: 4rem;
line-height: 4rem;
width: 100%;
}
.navbar .container {
width: auto;
max-width: 1200px;
text-align: center;
padding-left: 1em;
padding-right: 1em;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
.main {
flex-grow: 1;
flex-shrink: 0;
flex-basis: auto;
display: flex;
flex-direction: column;
}
.main .container {
padding-left: 1em;
padding-right: 1em;
height: 100%;
display: flex;
flex-direction: column;
flex: 1;
}
.footer {
height: 4rem;
width: 100%;
text-align: center;
line-height: 4rem;
}
/*input css begin*/
*{
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
input[type="checkbox"]:checked + label:after{
transition: all 0.3s ease-in;
}
input[type="checkbox"]:not(:checked) + label:after {
transition: all 0.3s ease-out;
}
input[type="checkbox"]:checked + label,
input[type="checkbox"]:not(:checked) + label{
transition: all 0.3s ease-in-out;
}
input[type="checkbox"]:checked + label:before,input[type="checkbox"]:checked + label i:before,input[type="checkbox"]:not(:checked) + label i:before,
input[type="checkbox"]:checked + label i:after,input[type="checkbox"]:not(:checked) + label i:after,input[type="checkbox"]:not(:checked) + label:before{
transition: all 0.3s ease-in-out;
}
input[type="radio"]:checked + label:after,
input[type="radio"]:not(:checked) + label:after {
transition: all 0.3s ease-in-out;
}
.switch_default[type="checkbox"]{
display: none;
}
.switch_default + label{
background-color: #e6e6e6;
border-radius:7px;
cursor: pointer;
display: inline-block;
height: 14px;
position: relative;
box-shadow: 0.2px 0.2px 1px 0.5px rgb(180,180,180);
width: 30px;
}
.switch_default + label:after{
background-color: #fff;
border-radius: 50%;
content: "";
height: 12px;
left: 1px;
position: absolute;
top: .5px;
width: 12px;
box-shadow: 0.2px 0.2px 1px 0.5px rgb(180,180,180);
}
.switch_default:checked + label{
background-color: #1ABC9C;
box-shadow:none;
}
.switch_default:checked + label:after{
left: 17px;
}
.header-logo a {
padding: 0;
}
.navbar .menu a {
padding: 0 8px;
}
.navbar .menu .active {
font-weight: 900;
color: #161209;
}
.dark-theme .navbar .menu .active {
color: #fff;
}
.navbar-header a:hover,
.navbar .menu a:hover {
background-color: transparent;
}
header label {
margin-left: 15px;
position: relative;
-webkit-transform: translateY(0.1em) translateX(0.5em);
}
.copyright {
font-size: 14px;
}
.pagination {
display: flex;
flex-direction: row;
justify-content: center;
list-style: none;
white-space: nowrap;
width: 100%;
padding-top: 2em;
}
.pagination a,
.pagination span {
-webkit-font-smoothing: antialiased;
font-size: 12px;
color: #bfbfbf;
letter-spacing: 0.1em;
font-weight: 700;
padding: 5px 5px;
text-decoration: none;
transition: 0.3s;
}
.pagination .page-number {
padding-bottom: 3px;
margin: 0 20px;
box-sizing: border-box;
position: relative;
display: inline;
}
.pagination .page-number.disabled {
display: none;
}
.pagination .page-number:hover a {
color: #000;
}
.dark-theme .pagination .page-number:hover a {
color: #fff;
}
.pagination .page-number:before,
.pagination .page-number:after {
position: absolute;
content: "";
width: 0;
height: 1px;
background: #000;
transition: 0.3s;
bottom: 0px;
}
.dark-theme .pagination .page-number:before,
.dark-theme .pagination .page-number:after {
background: #fff;
}
.pagination .page-number:before .current,
.pagination .page-number:after .current {
width: 100%;
}
.pagination .page-number:before {
left: 50%;
}
.pagination .page-number:after {
right: 50%;
}
.pagination .page-number:hover:before,
.pagination .page-number:hover:after {
width: 50%;
}
.pagination .page-number.current {
color: #000;
}
.dark-theme .pagination .page-number.current {
color: #fff;
}
.pagination .page-number.current:before,
.pagination .page-number.current:after {
width: 60%;
}
.profile-container {
justify-content: center;
align-items: center;
}
.intro {
text-align: center;
}
.intro .avatar {
padding: 10px;
}
.intro .avatar img {
width: 128px;
height: auto;
display: inline-block;
-webkit-border-radius: 100%;
border-radius: 100%;
-webkit-box-shadow: 0 0 0 0.3618em rgba(0,0,0,0.05);
box-shadow: 0 0 0 0.3618em rgba(0,0,0,0.05);
margin: 0 auto;
-webkit-transition: all ease 0.4s;
-moz-transition: all ease 0.4s;
-o-transition: all ease 0.4s;
transition: all ease 0.4s;
cursor: pointer;
}
.intro .avatar img:hover {
position: relative;
-webkit-transform: translateY(-0.75em);
-moz-transform: translateY(-0.75em);
-ms-transform: translateY(-0.75em);
-o-transform: translateY(-0.75em);
transform: translateY(-0.75em);
cursor: pointer;
}
.nickname {
font-size: 2em;
font-weight: normal;
}
.links a {
padding: 0 5px;
}
.links a:hover {
background-color: transparent;
}
.links .iconfont {
font-size: 2em;
}
.post-wrap {
position: relative;
width: 100%;
max-width: 780px;
margin: 0 auto;
padding-top: 2rem;
}
.post-wrap .archive-item {
margin-left: 2rem;
}
.archive-item-link {
display: inline-block;
text-decoration: none;
overflow: hidden;
white-space: nowrap;
}
.archive-item-link:hover {
color: #2d96bd;
background-color: transparent;
}
.dark-theme .archive-item-link {
color: #a9a9b3;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.dark-theme .archive-item-link:hover {
color: #fff;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.archive-item-date {
float: right;
text-align: right;
color: #a9a9b3;
}
.dark-theme .archive-item-date {
color: #87878d;
}
.post-wrap .categories-card {
margin: 0 auto;
margin-top: 1em;
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
padding: 0 2.5em;
line-height: 1.6em;
}
.post-wrap .categories-card .card-item {
font-size: 14px;
text-align: left;
width: 45%;
display: flex;
align-items: flex-start;
margin-top: 2em;
min-height: 16em;
padding: 0 2%;
position: relative;
}
.post-wrap .categories-card .card-item .categories {
overflow: hidden;
}
.tag-cloud-tags {
margin: 10px 0;
padding-top: 2em;
}
.tag-cloud-tags a {
display: inline-block;
position: relative;
margin: 5px 10px;
word-wrap: break-word;
transition-duration: 0.3s;
transition-property: transform;
transition-timing-function: ease-out;
}
.tag-cloud-tags a:active,
.tag-cloud-tags a:focus,
.tag-cloud-tags a:hover {
color: #2d96bd;
transform: scale(1.1);
}
.dark-theme .tag-cloud-tags a:active,
.dark-theme .tag-cloud-tags a:focus,
.dark-theme .tag-cloud-tags a:hover {
color: #fff;
}
.tag-cloud-tags a small {
margin: 0 0.3em;
color: #a9a9b3;
}
.dark-theme .tag-cloud-tags a small {
color: #fff;
}
.page {
padding-top: 0;
}
.page .post-content {
margin: 0;
padding-top: 0;
}
.post-wrap p {
font-size: 1em;
margin: 1em 0 1em 0;
}
.post-wrap .post-header h1 {
margin: 0 !important;
}
.post-wrap .post-title {
font-size: 2em;
line-height: 1.5em;
}
.post-wrap .post-meta {
color: rgba(85,85,85,0.529) !important;
}
.dark-theme .post-wrap .post-meta {
color: #87878d !important;
}
.post-wrap .post-meta a {
color: #2d96bd;
}
.dark-theme .post-wrap .post-meta a {
color: #eee;
}
.post-wrap .post-meta a:hover {
color: #ef3982;
}
.dark-theme .post-wrap .post-meta a:hover {
color: #fff;
}
.post-content {
padding-top: 2rem;
text-align: justify;
}
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
padding-top: 0.8em;
padding-bottom: 0.3em;
}
.post-content h1::before {
content: "#";
margin-right: 5px;
color: #2d96bd;
}
.dark-theme .post-content h1::before {
color: #eee;
}
.post-content h2::before {
content: "#";
margin-right: 5px;
color: #2d96bd;
}
.dark-theme .post-content h2::before {
color: #eee;
}
.post-content h3::before {
content: "|";
margin-right: 5px;
color: #2d96bd;
}
.dark-theme .post-content h3::before {
color: #eee;
}
.post-content h4::before {
content: "*";
margin-right: 5px;
color: #2d96bd;
}
.dark-theme .post-content h4::before {
color: #eee;
}
.post-content a {
color: #2d96bd;
}
.dark-theme .post-content a {
color: #eee;
}
.post-content a:hover {
color: #ef3982;
}
.dark-theme .post-content a:hover:hover {
color: #fff;
text-decoration: underline;
}
.post-content code,
.post-content pre {
padding: 7px;
font-size: 13px;
font-family: Consolas, Monaco, Menlo, Consolas, monospace;
}
.post-content code {
padding: 3px 5px;
border-radius: 4px;
}
.post-content figure.highlight {
margin: 1em 0;
overflow-x: auto;
position: relative;
}
.post-content figure.highlight::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.post-content figure.highlight::-webkit-scrollbar-thumb {
width: 6px;
background-color: #eee;
border-radius: 2px;
}
.post-content figure.highlight table {
position: relative;
}
.post-content figure.highlight table,
.post-content figure.highlight tr,
.post-content figure.highlight td {
margin: 0;
padding: 0;
border: 0;
width: 100%;
border-collapse: collapse;
}
.post-content figure.highlight .code pre {
margin: 0 10px;
}
.post-content figure.highlight .gutter {
width: 10px;
color: #d0d0d0;
}
.post-content figure.highlight .gutter pre {
margin: 0;
}
.post-content ul {
padding-left: 2em;
}
.post-content table {
max-width: 100%;
margin: 10px 0;
border-spacing: 0;
}
.post-content table thead {
background: #bce1ef;
}
.dark-theme .post-content table thead {
background: #626262;
}
.post-content table th,
.post-content table td {
padding: 5px 15px;
border: 0.5px solid #e8e8e8;
}
.post-content .image-caption:not(:empty) {
min-width: 20%;
max-width: 80%;
display: inline-block;
padding: 10px;
margin: 0 auto;
border-bottom: 1px solid #d9d9d9;
font-size: 14px;
color: #969696;
line-height: 1.7;
}
.post-content img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
overflow: hidden;
}
.post-content img[data-action="zoom"] {
cursor: zoom-in;
}
.post-content .image-box .image-box-title {
text-align: center;
font-size: 0.7em;
margin-top: 0.5em;
margin-bottom: 1em;
color: #a9a9b3;
}
.dark-theme .post-content .image-box .image-box-title {
color: #87878d;
}
.post-content blockquote {
font-size: 1rem;
display: block;
margin: 1em 0;
padding: 1em 1.2em 1em 1.2em;
position: relative;
color: rgba(52,73,94,0.8);
background-color: #e9f5fa;
border-left: 2px solid #2d96bd;
}
.post-content blockquote p {
margin: 0;
}
.post-content blockquote footer strong {
margin-right: 0.5em;
}
.dark-theme .post-content blockquote {
color: #a9a9b3;
background-color: #3e3e3e;
border-left: 2px solid #dcdcdc;
}
.post-content blockquote.pullquote {
background-color: transparent;
max-width: 45%;
border: 0;
}
.post-content blockquote.pullquote.left {
float: left;
text-align: left;
}
.post-content blockquote.pullquote.right {
float: right;
text-align: right;
}
.post-copyright {
margin-top: 5rem;
border-top: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
}
.post-copyright a {
color: #2d96bd;
}
.dark-theme .post-copyright a {
color: #eee;
}
.post-copyright a:hover {
color: #ef3982;
}
.dark-theme .post-copyright a:hover {
color: #fff;
}
.post-copyright .copyright-item {
margin: 5px 0;
}
.post-copyright .lincese {
font-weight: bold;
}
.dark-theme .post-copyright {
border-top: 1px solid #909196;
border-bottom: 1px solid #909196;
}
.post-content code,
.post-content pre {
line-height: 1.7em;
padding: 7px;
font-size: 13px;
font-family: Consolas, Monaco, Menlo, Consolas, monospace;
}
.post-content code {
line-height: 1.7em;
padding: 3px 5px;
border-radius: 4px;
color: #c7254e;
background: #f8f5ec;
}
.dark-theme .post-content code {
color: #fffe28;
background: #787575;
}
.post-content h1 code,
.post-content h2 code,
.post-content h3 code,
.post-content h4 code,
.post-content h5 code {
font-size: inherit;
}
.post-content figure.highlight {
margin: 1em 0;
overflow-x: auto;
position: relative;
}
.post-content figure.highlight::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.post-content figure.highlight::-webkit-scrollbar-thumb {
width: 6px;
background-color: #eee;
border-radius: 2px;
}
.post-content figure.highlight figcaption {
padding: 0 0.5em;
text-align: right;
font-size: 13px;
}
.post-content figure.highlight figcaption span {
margin: 0 0.5em;
}
.post-content figure.highlight table {
position: relative;
}
.post-content figure.highlight table,
.post-content figure.highlight tr,
.post-content figure.highlight td {
margin: 0;
padding: 0;
border: 0;
width: 100%;
border-collapse: collapse;
}
.post-content figure.highlight .code pre {
margin: 0 10px;
}
.post-content figure.highlight .gutter {
width: 10px;
color: #d0d0d0;
}
.post-content figure.highlight .gutter pre {
margin: 0;
}
.post-tags {
padding: 1rem 0 1rem;
display: flex;
justify-content: space-between;
}
.post-nav:before,
.post-nav:after {
2024-07-01 09:27:18 +08:00
content: "";
2024-06-27 19:59:47 +08:00
display: table;
}
2024-07-01 09:27:18 +08:00
.post-nav:after {
clear: both;
}
.post-nav {
width: 100%; /* 确保宽度足够 */
overflow: hidden; /* 清除浮动 */
}
.post-nav .prev,
.post-nav .next {
2024-06-27 19:59:47 +08:00
font-weight: 600;
font-size: 16px;
2024-07-01 09:27:18 +08:00
transition: transform 0.3s ease-out;
display: inline-block; /* 确保 span 转换为行内块级元素 */
2024-06-27 19:59:47 +08:00
}
2024-07-01 09:27:18 +08:00
.post-nav .prev {
2024-06-27 19:59:47 +08:00
float: left;
2024-07-01 09:27:18 +08:00
text-align: left; /* 确保文字左对齐 */
2024-06-27 19:59:47 +08:00
}
2024-07-01 09:27:18 +08:00
.post-nav .prev::before {
2024-06-27 19:59:47 +08:00
content: "<";
margin-right: 0.5em;
}
2024-07-01 09:27:18 +08:00
.post-nav .prev:hover {
2024-06-27 19:59:47 +08:00
transform: translateX(-4px);
}
2024-07-01 09:27:18 +08:00
.post-nav .next {
2024-06-27 19:59:47 +08:00
float: right;
2024-07-01 09:27:18 +08:00
text-align: right; /* 确保文字右对齐 */
font-weight: normal; /* 确保链接文字正常粗细 */
2024-06-27 19:59:47 +08:00
}
2024-07-01 09:27:18 +08:00
.post-nav .next::after {
2024-06-27 19:59:47 +08:00
content: ">";
margin-left: 0.5em;
}
2024-07-01 09:27:18 +08:00
.post-nav .next:hover {
2024-06-27 19:59:47 +08:00
transform: translateX(4px);
}
2024-07-01 09:27:18 +08:00
.post-nav .prev::before,
.post-nav .next::after {
2024-06-27 19:59:47 +08:00
font-weight: bold;
}
2024-07-01 09:27:18 +08:00
.post-nav .prev a,
.post-nav .next a {
text-decoration: none; /* 去掉链接下划线 */
color: inherit; /* 继承父级颜色 */
display: inline-block; /* 使 a 元素成为行内块级元素 */
font-weight: normal; /* 确保链接文字正常粗细 */
}
.post-nav .prev a {
text-align: left; /* 确保 a 元素文字左对齐 */
}
.post-nav .next a {
text-align: right; /* 确保 a 元素文字右对齐 */
}
2024-06-27 19:59:47 +08:00
.tag:not(:last-child) a::after {
content: " / ";
}
.post-toc {
position: fixed;
top: 95px;
right: 2em;
width: 15rem;
font-size: 0.75rem;
}
.post-toc .tocbot-list {
max-height: 450px;
max-width: 250px;
overflow: auto;
position: relative;
padding-right: 0.875rem;
}
.post-toc .tocbot-list::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.post-toc .tocbot-list::-webkit-scrollbar-thumb {
width: 6px;
background-color: #eee;
border-radius: 2px;
}
.post-toc .tocbot-list ul {
list-style: none;
position: inherit;
overflow: hidden;
}
.post-toc .tocbot-list ul li {
margin-left: 0.25rem;
}
.post-toc .toc-link::before {
background-color: #fff;
}
.post-toc .is-active-link::before {
background-color: #2d96bd;
}
.post-toc .tocbot-list-menu {
margin: 1rem 0.75rem;
font-size: 0.75rem;
}
.post-toc .tocbot-list-menu a {
display: block;
margin: 0.375rem 0;
color: #999;
cursor: pointer;
}
.post-toc .tocbot-list-menu a:hover {
color: #808080;
}
.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.toc-list{margin:0;padding-left:10px}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all 300ms ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed !important;top:0}.is-active-link{font-weight:700}.toc-link::before{background-color:#EEE;content:' ';display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54BC4B}
@media screen and (max-width: 479px) {
.main {
padding-top: 40pt;
}
.navbar {
display: none;
}
.navbar-mobile {
display: block !important;
position: fixed;
width: 100%;
z-index: 100;
transition: all 0.6s ease 0s;
}
.navbar-mobile .container {
padding: 0;
margin: 0;
line-height: 5.5em;
background: #fff;
}
.navbar-mobile .container .navbar-header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding-right: 1em;
padding-left: 1em;
box-sizing: border-box;
position: relative;
}
.navbar-mobile .container .navbar-header .menu-toggle {
cursor: pointer;
line-height: 5.5em;
padding: auto 2em;
}
.navbar-mobile .container .navbar-header .menu-toggle span {
display: block;
background: #000;
width: 36px;
height: 2px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-transition: 0.25s margin 0.25s, 0.25s transform;
-moz-transition: 0.25s margin 0.25s, 0.25s transform;
transition: 0.25s margin 0.25s, 0.25s transform;
}
.dark-theme .navbar-mobile .container .navbar-header .menu-toggle span {
background: #a9a9b3;
}
.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(1) {
margin-bottom: 8px;
}
.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(3) {
margin-top: 8px;
}
.navbar-mobile .container .navbar-header .menu-toggle.active span {
-webkit-transition: 0.25s margin, 0.25s transform 0.25s;
-moz-transition: 0.25s margin, 0.25s transform 0.25s;
transition: 0.25s margin, 0.25s transform 0.25s;
}
.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(1) {
-moz-transform: rotate(45deg) translate(4px, 6px);
-ms-transform: rotate(45deg) translate(4px, 6px);
-webkit-transform: rotate(45deg) translate(4px, 6px);
transform: rotate(45deg) translate(4px, 6px);
}
.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(2) {
opacity: 0;
}
.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(3) {
-moz-transform: rotate(-45deg) translate(8px, -10px);
-ms-transform: rotate(-45deg) translate(8px, -10px);
-webkit-transform: rotate(-45deg) translate(8px, -10px);
transform: rotate(-45deg) translate(8px, -10px);
}
.navbar-mobile .container .menu {
text-align: center;
background: #fff;
border-top: 1px solid #000;
padding-top: 1em;
padding-bottom: 1em;
display: none;
box-shadow: 0px 2px 4px rgba(0,0,0,0.1), 0px 4px 8px rgba(0,0,0,0.1);
}
.navbar-mobile .container .menu a {
display: inline-block;
margin: 0 1em;
line-height: 2.5em;
}
.navbar-mobile .container .menu.active {
display: block;
white-space: nowrap;
box-sizing: border-box;
overflow-x: auto;
}
.dark-theme .navbar-mobile .container .menu {
background: #292a2d;
border-top: 2px solid #87878d;
}
.dark-theme .navbar-mobile .container {
background: #292a2d !important;
}
.archive {
width: 90%;
}
.archive .archive-item .archive-item-date {
display: none;
}
#dynamic-to-top {
display: none !important;
}
.footer {
height: 3rem;
width: 100%;
text-align: center;
line-height: 1.5rem;
padding-top: 2em;
}
.post-warp {
padding-top: 6em;
}
.post-warp .archive-item-date {
display: none;
}
.categories .categories-card .card-item {
width: 100%;
display: flex;
min-height: 0;
}
.categories .categories-card .card-item .categories {
overflow: hidden;
}
}
@media screen and (max-width: 1023px) {
.navbar-mobile {
display: none;
}
}
@media screen and (min-width: 1024px) {
.navbar-mobile {
display: none;
}
}
@media screen and (max-width: 1279px) {
.post-toc {
display: none;
}
}
.highlight {
background: #272822;
color: #ddd;
}
.highlight .code .tag,
.highlight .code .keyword,
.highlight .code .selector-tag,
.highlight .code .literal,
.highlight .code .strong,
.highlight .code .name {
color: #f92672;
}
.highlight .code .code {
color: #66d9ef;
}
.highlight .code .class .title {
color: #fff;
}
.highlight .code .attribute,
.highlight .code .symbol,
.highlight .code .regexp,
.highlight .code .link {
color: #bf79db;
}
.highlight .code .string,
.highlight .code .bullet,
.highlight .code .subst,
.highlight .code .title,
.highlight .code .section,
.highlight .code .emphasis,
.highlight .code .type,
.highlight .code .built_in,
.highlight .code .builtin-name,
.highlight .code .selector-attr,
.highlight .code .selector-pseudo,
.highlight .code .addition,
.highlight .code .variable,
.highlight .code .template-tag,
.highlight .code .template-variable {
color: #a6e22e;
}
.highlight .code .comment,
.highlight .code .quote,
.highlight .code .deletion,
.highlight .code .meta {
color: #75715e;
}
.highlight .code .keyword,
.highlight .code .selector-tag,
.highlight .code .literal,
.highlight .code .doctag,
.highlight .code .title,
.highlight .code .section,
.highlight .code .type,
.highlight .code .selector-id {
font-weight: bold;
2024-07-01 10:03:24 +08:00
}
.pagination_page{
display: flex;
align-items: center;
justify-content: center;
margin-top: var(--margin);
gap: 0.5rem;
}
.pagination_page li.active a {
background: var(--theme);
color: #fff;
font-weight: 500;
}
.pagination_page a{
display: flex;
padding: 0.5rem;
font-size: 0.9rem;
width: 1.75rem;
height: 1.75rem;
background: var(--background);
border-radius: 50%;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition: 0.2s;
-webkit-transition: 0.2s;
justify-content: center;
align-items: center;
letter-spacing: 0;
}
.pagination_page span.next{
cursor: pointer;
}
.pagination_page li.active a:hover{
cursor: not-allowed;
}
.comment-form label {
display: block;
margin-bottom: .5rem;
font-size: 14px;
cursor: pointer;
line-height: 1.4
}
.comment-form label .required {
color: red
}
.comment-form input,
.comment-form textarea {
width: 100%;
resize: none;
border-radius: 5px;
box-sizing: border-box;
border: 1px solid #999;
padding: 8px 15px;
font-size: 14px
}
.comment-form .submit {
background-color: #000;
color: #fff;
border: 0;
font-size: 14px;
cursor: pointer;
padding: 8px 30px;
border-radius: 5px;
width: auto
}
.comment-form p {
margin-bottom: 15px
}
.comment-form p:last-of-type {
margin-bottom: 0
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
font-size: 12px;
}
.comment-reply-title {
font-weight: 700;
font-size: 18px;
display: flex;
align-items: center
}
.comment-reply-title small {
margin-left: auto;
font-weight: 400;
font-size: 14px
}
.commentlist {
2024-07-02 10:37:11 +08:00
border-top: 1px solid var(--theme);
2024-07-01 10:03:24 +08:00
list-style: none;
padding-top: 10px
}
.commentlist .comment {
padding: 0 0
}
.commentlist .comment-respond {
margin-top: 20px;
padding: 20px;
border-radius: 5px
}
@keyframes comment--fresh {
0% {
background-color: #fff
}
100% {
background-color: #fffee0
}
}
.comment:last-child>.comment-body {
border-bottom: 0
}
.comment.parent {
2024-07-02 10:37:11 +08:00
border-bottom: 1px solid var(--theme)
2024-07-01 10:03:24 +08:00
}
.comment.parent:last-child {
border-bottom: 0
}
.comment-body {
padding: 25px 0
}
.comment-body__fresh {
animation: comment--fresh 1.5s ease-in-out infinite alternate;
border-radius: 5px
}
.comment-body .avatar {
transition: .5s box-shadow
}
.comment-body:hover .avatar {
2024-07-02 10:37:11 +08:00
box-shadow: 0 0 3px 0
2024-07-01 10:03:24 +08:00
}
.comment--avatar {
flex: none;
margin-right: 10px;
display: flex
}
.comment--author {
flex: auto;
display: flex;
align-items: center
}
.comment--author .comment-reply-link {
margin-left: auto
}
.comment--author .comment-reply-link svg {
width: 15px;
height: 15px
}
.comment--author a:hover {
text-decoration: underline
}
.comment--meta {
display: flex;
align-items: center;
flex: auto
}
.comment-meta {
display: flex;
align-items: center
}
.comment-meta .avatar {
border-radius: 100%
}
div.cancel-comment-reply.cancel-comment-reply-link {
text-align: right;
}
.comment-content {
word-wrap: break-word !important;
overflow-wrap: break-word !important;
white-space: normal !important;
}
.comment-content a {
text-decoration: underline
}
.children {
margin-left: 0;
padding-bottom: 10px
}
.children .avatar {
width: 32px;
height: 32px
}
.children .comment-body {
border-bottom: 0;
padding: 15px 0
}
.children .comment-content {
font-size: 14px
}
.parent>.children {
margin-left: 50px
}
.comment-meta {
margin-bottom: 10px;
font-size: 14px;
display: flex;
align-items: center
}
.comment-meta .comment-metadata {
margin-left: auto
}
.comment-reply-link {
font-size: 12px
}
.no--comment {
text-align: center;
padding: 30px 0
}
.comments--title {
margin-top: 30px;
font-size: 18px;
font-weight: 700;
margin-bottom: 10px;
display: flex;
align-items: center
}
.comments--title svg {
width: 24px;
height: 24px;
margin-right: 5px;
position: relative;
transform: translate3d(0, 1px, 0);
}
.comment-respond {
padding-top: 30px
}
.comment-form-cookies-consent #wp-comment-cookies-consent {
display: none
}
.comment-form-cookies-consent label {
font-size: 14px;
display: flex;
align-items: center;
position: relative
}
.comment-form-cookies-consent label::before {
background-color: #fff;
border: 1px solid rgba(0, 0, 0, .15);
border-radius: 100%;
height: 16px;
margin-right: 6px;
vertical-align: middle;
width: 16px;
content: "";
flex: none
}
.dot::before {
content: "·";
margin-left: 4px;
margin-right: 4px
}
.comment-form-cookies-consent input:checked+label::after {
border-radius: 100%;
content: "";
position: absolute;
left: 1px;
height: 12px;
margin: 2px;
width: 12px;
flex: none
}
/* 去除有序列表(<ol>)的列表号 */
ol.comment-list {
list-style-type: none;
padding-left: 0; /* 取消左侧的默认填充 */
}
/* 去除无序列表(<ul>)的列表号 */
ul.comment-list {
list-style-type: none;
padding-left: 0; /* 取消左侧的默认填充 */
}
/* 适用于所有嵌套的评论列表 */
ol.comment-list li, ul.comment-list li {
list-style-type: none;
}