2024-08-14 18:16:34 +08:00

2041 lines
32 KiB
CSS

::-webkit-scrollbar {
display: none;
}
html {
height: 100%;
}
body {
margin: 0;
padding-left: 150px;
color: #1a1a1a;
font: 16px/1.8 'Biaodian Pro Sans GB', 'Helvetica Neue', Helvetica, Arial, 'pingfang sc', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', STHeiti, SimSun, sans-serif;
text-rendering: optimizeLegibility;
overflow: -moz-scrollbars-none;
-ms-overflow-style: none;
-ms-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
}
a {
background: transparent;
}
a:focus {
outline: thin dotted;
}
a:active,
a:hover {
outline: 0;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: 700;
}
strong:hover, strong:focus {
color: #ca0002;
text-decoration: underline;
}
dfn {
font-style: italic;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
mark {
background: #ff0;
color: #000;
}
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
padding: .2em .4em;
margin: 0;
white-space: break-spaces;
background-color: #e3e9ee;
border-radius: 6px;
}
pre {
white-space: pre-wrap;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
audio,
canvas,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
q {
quotes: "\201C""\201D""\2018""\2019";
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 0;
}
fieldset {
border: 1px solid silver;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
button,
input,
select,
textarea {
font-family: inherit;
font-size: 100%;
margin: 0;
}
button,
input {
line-height: normal;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="search-form-submit"] {
-webkit-appearance: button;
appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a {
color: #333;
text-decoration: none;
}
a:hover,
a:active {
color: #ca0002;
outline: 0;
}
table {
border: 1px solid #ddd;
width: 100%;
}
table th,
table td {
padding: 5px 10px;
}
table th {
background: #f3f3f3;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
padding: 5px;
border: 1px solid #e9e9e9;
width: 100%;
border-radius: 2px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
textarea {
resize: vertical;
}
input,
textarea,
select {
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background-color: #fff;
border: 1px solid #ccc;
display: inline-block;
margin: 0;
outline: medium none;
padding: 8px;
}
input:focus,
textarea:focus {
border: 1px solid #008deb;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 8px rgba(82, 168, 236, 0.6);
}
input[type="checkbox"],
input[type="radio"] {
background-color: transparent;
border: medium none;
cursor: pointer;
height: auto;
line-height: normal;
margin: 3px 0;
padding: 0;
width: auto;
}
input[type="file"] {
background-color: #fff;
box-shadow: none;
}
input[type="button"],
input[type="reset"],
input[type="search-form-submit"] {
height: auto;
width: auto;
}
select,
input[type="file"] {
height: 36px;
line-height: 30px;
}
::selection {
color: #fff;
background-color: #e78170;
}
::-moz-selection {
color: #fff;
background-color: #2b2b2b;
}
.label {
background: 0;
border: 1px solid #e78170;
color: #e78170;
text-shadow: none;
font-size: 12px;
font-weight: normal;
line-height: 1;
padding: 2px 4px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.btn {
color: #fff;
border-color: #15a7f0;
background: #15a7f0;
border: 0;
font-size: 14px;
height: 32px;
padding: 0 10px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.btn:hover {
border-color: #3dbcf5;
background-color: #3dbcf5;
}
a.btn {
display: inline-block;
line-height: 32px;
}
a.btn:hover {
color: #fff;
}
.btn-telegram {
background: #2a2a2a;
}
.btn-telegram:hover {
background: #6e6e6e;
}
.btn-instagram {
background: #ee583f;
}
.btn-instagram:hover {
background: #c5317f;
}
.btn-twitter {
background: #2aa9f0;
}
.btn-twitter:hover {
background: #3897f0;
}
.btn-youtube {
background: #ff0000;
}
.btn-youtube:hover {
background: #be0101;
}
.btn-reddit {
background-color: #ff3c00;
}
.btn-reddit:hover {
background-color: #fb5522;
}
.btn-github {
background-color: #2a2a2a;
}
.btn-github:hover {
background-color: #888888;
}
a.avatar img,
img.avatar {
vertical-align: middle;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
margin-bottom: 15px;
}
#wrapper {
width: 100%;
}
#wrapper:before,
#wrapper:after {
display: table;
content: "";
line-height: 0;
}
#cover,
#body {
display: block;
width: 100%;
min-height: 30px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
margin-left: 0;
}
#cover {
position: fixed;
top: 0;
bottom: 0;
right: 0;
z-index: 1024;
left: 150px;
width: 25%;
}
#cover .cover-img {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
#cover .cover-info {
position: absolute;
bottom: 0;
width: 100%;
padding: 25% 0;
color: white;
text-align: center;
}
#cover h1,
h3,
h4 {
font-family: Georgia, Times New Roman, Times, Songti SC, serif;
margin: 8px 0;
}
#cover .cover-sns {
margin: 15px;
}
#cover .cover-sns .btn {
display: inline-block;
position: relative;
height: 26px;
line-height: 26px;
margin: 0 5px;
cursor: pointer;
}
#cover .cover-sns .btn a {
color: #fff;
}
#body {
margin-left: 25%;
width: 66%;
max-width: 1136px;
}
.fleft {
float: left;
}
.fright {
float: right;
}
#nav {
position: fixed;
top: 0;
left: 0;
z-index: 2048;
height: 100%;
width: 150px;
background-color: #2a2a2a;
text-align: left;
}
#nav .nav-menu a {
display: block;
color: #fff;
font-weight: 600;
font-size: 16px;
width: 100%;
height: 50px;
line-height: 50px;
}
#nav .nav-menu a i {
padding-left: 15px;
display: inline-block;
width: 16px;
text-align: center;
}
#nav .nav-menu a span {
padding-left: 8px;
}
#nav a.site-name {
text-align: center;
display: none;
}
#nav .nav-menu a.current {
background-color: #e78170;
}
#nav .nav-menu a:hover {
background-color: #f49484;
}
.nav-user {
position: fixed;
top: 0;
right: 0;
z-index: 1025;
height: 43px;
line-height: 43px;
}
.nav-user a {
display: inline-block;
margin-right: 10px;
}
.nav-user a.btn-search {
display: none;
}
.main-inner {
padding-top: 45px;
padding-left: 32px;
}
.page-title {
height: 45px;
position: fixed;
z-index: 100;
border-width: 2px;
box-sizing: border-box;
border-bottom: 2px solid #d9d9d9;
background-color: #fff;
font-family: Georgia, Times New Roman, Times, Songti SC, serif;
}
.page-title ul {
list-style: none;
margin: 0;
padding: 0 0 0 20px;
}
.page-title li {
display: inline-block;
}
.page-title li.page-search {
line-height: 43px;
float: right;
}
.page-title li a {
color: #333;
font-weight: 800;
font-size: 16px;
height: 43px;
line-height: 43px;
display: inline-block;
padding: 0 15px;
}
.page-title li a:hover {
background-color: #eee;
color: #111;
}
.page-title li.active {
height: 43px;
margin-bottom: -2px;
border-bottom: 2px solid #555;
}
.post {
padding: 10px 15px;
margin-bottom: 10px;
border-bottom: 1px dashed #d9d9d9;
}
.post:last-child {
border-bottom: 0;
}
.post:after {
clear: both;
}
.post:before,
.post:after {
content: " ";
display: table;
}
.post-header {
margin: 0 0 10px;
line-height: 32px;
display: block;
}
.post-header h3 {
margin: 0;
padding: 0;
font-size: 1.12em;
}
.post-header:last-child {
margin: 0;
}
.post-title {
color: #555;
}
.post-title:hover {
text-decoration: underline;
color: #333;
}
.post-title-item {
color: #333;
}
.post-title-item:hover {
text-decoration: underline;
}
.post-desc {
font-size: 14px;
font-weight: 'bold';
color: #666;
}
.post-meta {
font-size: 14px;
}
.post-meta,
.post-meta a {
color: #888;
font-weight: bold;
}
.post-meta a:hover,
.post-meta span:hover {
color: #666;
}
.post-meta em {
margin: 0 5px;
color: #666;
}
.post-author {
margin: 15px 0;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.post-author .avatar {
margin-right: 10px;
}
.post-author p {
font-size: 14px;
height: 24px;
line-height: 24px;
margin: 0;
padding: 0;
font-family: Hannotate SC;
}
.post-cover {
float: right;
width: 100px;
height: 96px;
margin-left: 15px;
}
.post-cover img {
display: block;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
object-fit: cover;
background-color: #d9d9d9;
image-rendering: crisp-edges;
image-rendering: -webkit-optimize-contrast
}
.post-content {
padding-bottom: 10px;
}
.post-tool {
text-align: center;
padding: 10px 0;
}
.post-tool a {
display: inline-block;
margin: 0 5px;
padding: 0 10px;
height: 32px;
line-height: 32px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
outline: 0;
border: 1px solid #e78170;
color: #e78170;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.post-tool a:hover {
background: #f6cec7;
border-color: #f6cec7;
}
.post-tags {
margin: 5px 0;
}
.post-tags a {
padding: 0 5px;
display: inline-block;
}
.post-tags a:hover {
background-color: #f28979;
color: #fff;
}
#btn-pager {
text-align: center;
margin-bottom: 10px;
}
.page-number {
display: inline-block;
margin: 0 5px;
padding: 0 10px;
text-align: center;
color: #333;
}
.page-number.current {
background: #eee;
font-weight: bolder;
}
.page-number:hover {
color: #e78170 !important;
background: #eee !important;
text-decoration: none !important;
}
.extend .prev a {
display: inline-block;
margin-right: 5px;
}
.extend .next a {
display: inline-block;
margin-left: 5px;
}
.archives-item h3 {
color: #555;
font-style: italic;
}
.archives-title {
margin: 0 !important;
padding: 0 !important;
font-family: 'Courier New', Courier, monospace, 'pingfang sc', sans-serif;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
}
.archives-title a:hover {
text-decoration: underline;
color: #ca0002;
}
.tags-bg {
margin: 2% 0;
}
.tags-bg img {
box-sizing: content-box;
max-width: 100%;
}
.tag-list {
padding-bottom: 2%;
}
.tag-list li {
display: inline-block;
width: 24%;
}
.tag-list-item {
margin: 0 !important;
padding: 0 !important;
}
.tag-list-item a:hover {
text-decoration: underline;
}
.flinks li {
width: 32%;
}
.tagV-ads {
min-height: 300px;
}
#search {
position: relative;
margin-top: 5px;
height: 32px;
line-height: 32px;
}
#search .text {
height: 32px;
line-height: 32px;
padding-right: 32px;
}
#search .search-form-submit {
position: absolute;
top: 0;
right: 0;
height: 32px;
line-height: 32px;
width: 32px;
border: 0;
background: transparent;
}
#local-search-input-tip {
border-radius: 16px;
font-family: Hannotate SC;
}
.local-search-pop-overlay {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 2080;
background-color: rgba(0, 0, 0, 0.4);
}
.local-search-popup {
display: none;
position: fixed;
top: 10%;
left: 50%;
margin-left: -350px;
width: 700px;
height: 80%;
padding: 0;
background: #fff;
color: #333;
z-index: 9999;
border-radius: 5px;
}
.local-search-popup ul.search-result-list {
padding: 0;
margin: 0 5px;
}
.local-search-popup p.search-result {
border-bottom: 1px dashed #ccc;
padding: 5px 0;
}
.local-search-popup a.search-result-title {
font-weight: bold;
font-size: 16px;
}
.local-search-popup .search-keyword {
border-bottom: 1px dashed #f00;
font-weight: bold;
color: #f00;
}
.local-search-popup .local-search-header {
padding: 5px;
height: 36px;
background: #f5f5f5;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.local-search-popup #local-search-result {
overflow: auto;
position: relative;
padding: 6px 13px;
height: calc(100% - 55px);
overflow-x: hidden;
overflow-y: scroll;
}
.local-search-popup .local-search-input-wrapper {
display: inline-block;
width: calc(100% - 90px);
height: 36px;
line-height: 36px;
padding: 0 5px;
}
.local-search-popup .local-search-input-wrapper input {
padding: 8px 0;
height: 20px;
width: 100%;
outline: none;
border: none;
background: transparent;
vertical-align: middle;
box-sizing: unset;
}
.local-search-popup .search-icon,
.local-search-popup .popup-btn-close {
display: inline-block;
font-size: 18px;
color: #999;
height: 36px;
line-height: 36px;
width: 18px;
padding-left: 10px;
padding-right: 10px;
}
.local-search-popup .search-icon {
float: left;
}
.local-search-popup .popup-btn-close {
border-left: 1px solid #eee;
float: right;
cursor: pointer;
}
.local-search-popup #no-result {
position: absolute;
left: 50%;
top: 50%;
flex-direction: column;
display: flex;
align-items: center;
-webkit-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
color: #ccc;
}
.footer {
color: #999;
box-sizing: border-box;
font-size: 12px;
font-weight: normal;
line-height: 20px;
padding: 8px 0 10px 25%;
border-top: 1px solid #d9d9d9;
overflow: hidden;
}
.footer-inner p {
padding-left: 15px;
}
.footer,
.footer a {
color: #adadad;
}
.footer p {
margin: 0;
line-height: 20px;
}
#notice {
position: fixed;
z-index: 9999;
top: 25%;
right: 50%;
}
#notice .notice-item {
padding: 20px;
position: relative;
background-color: #666;
color: #fff;
min-width: 150px;
line-height: 24px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 10px;
}
#notice .notice-item .notice-item-close {
position: absolute;
top: 10px;
right: 10px;
filter: alpha(opacity=30);
-khtml-opacity: 0.3;
-moz-opacity: 0.3;
opacity: 0.3;
cursor: pointer;
}
#notice .notice-item .notice-item-type {
position: absolute;
top: 10px;
left: 10px;
background-color: #337ab7;
width: 24px;
height: 24px;
text-align: center;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
}
#notice .notice-item.error .notice-item-type {
background-color: #d9534f;
}
#notice .notice-item:hover {
margin-top: 15px;
}
#notice .notice-item:hover .notice-item-close {
filter: alpha(opacity=100);
-moz-opacity: 1;
-khtml-opacity: 1;
opacity: 1;
}
#notice .notice-item p {
margin: 0;
}
#notice .notice-item,
#notice .notice-item .notice-item-close {
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-ms-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.fixed-btn {
position: fixed;
right: 10px;
bottom: 2%;
width: 40px;
border: 1px solid #eee;
background-color: #fff;
font-size: 24px;
z-index: 1040;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
display: none;
}
.fixed-btn a {
display: inline-block;
width: 40px;
height: 40px;
text-align: center;
color: #999;
}
.fixed-btn a:hover {
color: #000;
}
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
img.alignleft {
margin: 0 15px 0 0;
}
img.alignright {
margin: 0 0 0 15px;
}
.single #body {
margin-left: 17.5%;
float: none;
}
.single .footer {
padding: 8px 10px;
}
.single .main,
.single .footer-inner {
padding-left: 0;
}
.single .page-title {
top: 0;
left: 150px;
right: 0;
}
.single #search {
margin-right: 220px;
}
.main,
.footer-inner {
padding-left: 43px;
}
body,
#wrapper,
#nav,
.nav-menu,
#search,
#cover,
#body,
.page-title,
.nav-user {
-webkit-transition: width, top 0.5s;
-moz-transition: width, top 0.5s;
-ms-transition: width, top 0.5s;
-o-transition: width, top 0.5s;
transition: width, top 0.5s;
}
.hidden {
display: none !important;
visibility: hidden;
}
.invisible {
visibility: hidden;
}
.clearfix {
zoom: 1;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.fa-homepage:before {
content: "\f015";
}
.fa-links:before {
content: "\f0c1";
}
.fa-contact:before,
.fa-guestbook:before {
content: "\f086";
}
.fa-about:before {
content: "\f05a";
}
.fa-archives:before {
content: "\f187";
}
.fa-categories:before {
content: "\f02d";
}
.fa-services:before {
content: "\f0f2";
}
.markdown-body {
color: #101423;
line-height: 1.8;
word-wrap: break-word;
overflow: auto;
font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica, Arial, sans-serif;
}
.markdown-body,
.markdown-body p {
word-break: break-all;
word-wrap: break-word;
font-size: 17px;
}
.markdown-body::before {
display: table;
content: "";
}
.markdown-body::after {
display: table;
clear: both;
content: "";
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body.articleBody a {
color: #0000f5;
text-decoration: underline;
text-underline-position: under;
text-decoration-style: dotted;
}
.markdown-body.articleBody a:hover {
color: #ca0002;
}
.markdown-body a:not([href]) {
color: inherit;
text-decoration: none;
}
.markdown-body .absent {
color: #c00;
}
.markdown-body .anchor {
float: left;
padding-right: 4px;
margin-left: -20px;
line-height: 1;
}
.markdown-body .anchor:focus {
outline: 0;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body a {
color: #2a2a2a;
}
.markdown-body a:hover {
color: #ca0002;
}
.markdown-body img {
max-width: 65%;
box-sizing: content-box;
background-color: #fff;
}
.markdown-body hr {
height: 0.25em;
padding: 0;
margin: 24px 0;
background-color: #e7e7e7;
border: 0;
}
.markdown-body blockquote {
margin-left: 0.5em;
margin-right: 0.5em;
padding: 0.25em 1em;
color: #666;
background-color: #f3f3f3;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 12px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .loweralpha {
list-style-type: lower-alpha;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: #000;
vertical-align: middle;
visibility: hidden;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
visibility: visible;
}
.markdown-body h1 tt,
.markdown-body h1 code,
.markdown-body h2 tt,
.markdown-body h2 code,
.markdown-body h3 tt,
.markdown-body h3 code,
.markdown-body h4 tt,
.markdown-body h4 code,
.markdown-body h5 tt,
.markdown-body h5 code,
.markdown-body h6 tt,
.markdown-body h6 code {
font-size: inherit;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2em;
border-bottom: 1px solid #eee;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.5em;
border-bottom: 1px solid #eee;
}
.markdown-body h3 {
font-size: 1.25em;
}
.markdown-body h4 {
font-size: 1em;
}
.markdown-body h5 {
font-size: 0.875em;
}
.markdown-body h6 {
font-size: 0.85em;
color: #777;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ul.no-list,
.markdown-body ol.no-list {
padding: 0;
list-style-type: none;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body li+li {
margin-top: 0.25em;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
}
.markdown-body table th {
font-weight: bold;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
flex: 1;
flex-direction: row;
align-items: stretch;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img[align="right"] {
padding-left: 20px;
}
.markdown-body img[align="left"] {
padding-right: 20px;
}
.markdown-body .emoji {
max-width: none;
vertical-align: text-top;
background-color: transparent;
}
.markdown-body span.frame {
display: block;
overflow: hidden;
}
.markdown-body span.frame>span {
display: block;
float: left;
width: auto;
padding: 7px;
margin: 13px 0 0;
overflow: hidden;
border: 1px solid #ddd;
}
.markdown-body span.frame span img {
display: block;
float: left;
}
.markdown-body span.frame span span {
display: block;
padding: 5px 0 0;
clear: both;
color: #333;
}
.markdown-body span.align-center {
display: block;
overflow: hidden;
clear: both;
}
.markdown-body span.align-center>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: center;
}
.markdown-body span.align-center span img {
margin: 0 auto;
text-align: center;
}
.markdown-body span.align-right {
display: block;
overflow: hidden;
clear: both;
}
.markdown-body span.align-right>span {
display: block;
margin: 13px 0 0;
overflow: hidden;
text-align: right;
}
.markdown-body span.align-right span img {
margin: 0;
text-align: right;
}
.markdown-body span.float-left {
display: block;
float: left;
margin-right: 13px;
overflow: hidden;
}
.markdown-body span.float-left span {
margin: 13px 0 0;
}
.markdown-body span.float-right {
display: block;
float: right;
margin-left: 13px;
overflow: hidden;
}
.markdown-body span.float-right>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: right;
}
/* **************************** for adsense *****************************/
.adsense_post_left {
width: 160px;
height: 600px;
position: absolute;
top: 90px;
margin-left: -221px;
overflow: hidden;
}
.adsense_post_right {
width: 160px;
height: 600px;
position: absolute;
top: 90px;
right: 3.9%;
overflow: hidden;
}
.adsense_tb_horizontal {
text-align: center;
}
.adsense_page_right {
width: 160px;
height: 600px;
position: fixed;
top: 90px;
right: 0.5%;
overflow: hidden;
z-index: -99;
}
/* **************************** for night-mode *****************************/
body.night-mode,
.night-mode #body,
.night-mode .page-title,
.night-mode .fixed-btn {
background-color: #3f3f3f !important;
}
.night-mode .page-title li a:hover {
background-color: #2f2f2f !important;
color: #fff;
}
.night-mode input,
.night-mode textarea {
background-color: #555;
color: #555;
outline: 0;
}
.night-mode input:focus,
.night-mode textarea:focus {
box-shadow: none;
}
body.night-mode,
.night-mode .btn,
body.night-mode a,
.night-mode .nav-user a,
#search .search-form-submit,
.night-mode .post-title,
.night-mode .post-meta,
.night-mode .post-meta a,
.night-mode .post-meta span,
.night-mode .page-number.current {
color: #e2e2e2;
}
.night-mode a:hover {
color: #fff;
}
.night-mode .post-tool a {
color: #e78170;
}
.night-mode .post-desc {
color: #b1b1b1;
}
.night-mode .post-author a,
.night-mode .comment-meta-author {
color: #e78170;
}
.night-mode .post-author a:hover {
color: #fff;
}
.night-mode .btn:hover,
.night-mode .post-title:hover,
.night-mode .comment-meta-reply a:hover,
.night-mode .fixed-btn a:hover {
color: #fff;
}
.night-mode .page-title,
.night-mode .post-author,
.night-mode .comment-list li,
.night-mode .footer,
.night-mode .fixed-btn,
.night-mode input,
.night-mode textarea,
.night-mode blockquote {
border-color: #2f2f2f;
}
.night-mode .footer {
background-color: #373737;
}
.night-mode .btn,
.night-mode .page-number a:hover,
.night-mode .page-number.current {
background-color: #2f2f2f;
}
.night-mode #notice .notice-item {
background-color: #defcd5;
color: #52a954;
}
.night-mode .markdown-body table tr {
background-color: #333;
}
.night-mode .markdown-body h2 {
border-color: #2f2f2f;
}
.night-mode .markdown-body hr {
background-color: #2f2f2f;
}
.night-mode .markdown-body,
.night-mode .markdown-body p {
color: #999;
font-size: 17px;
}
.night-mode .markdown-body a {
color: #e78170 !important;
}
.night-mode .markdown-body a:hover {
color: #fff !important;
}
.night-mode #local-search-result {
background-color: #3a3a3a;
}
/**************************** 适配不同尺寸屏幕 ************************************/
@media (max-width: 1588px) {
body {
padding-left: 60px;
}
#nav {
width: 60px;
}
#nav .nav-menu a {
display: flex;
justify-content: center;
align-items: center;
height: 48px;
line-height: 48px;
}
#nav .nav-menu a.site-index,
#nav .nav-menu a span {
display: none;
}
#nav .nav-menu a.site-name {
display: block;
}
#nav .nav-menu a i {
padding: 0;
}
#cover {
left: 60px;
}
.main,
.footer-inner {
padding-left: 12px;
}
.single .page-title {
left: 60px;
}
}
@media (max-width: 960px) {
body {
padding: 45px 0 0 0;
}
.main,
.footer-inner,
.footer-inner p {
padding-left: 0;
}
#nav {
height: auto;
bottom: auto;
}
#nav .nav-menu {
height: 45px;
overflow: hidden;
}
#nav .nav-menu a.site-index {
display: block;
}
.nav-user a.btn-search {
display: inline-block;
}
#nav .nav-menu:hover {
height: auto;
}
#cover {
display: none !important;
}
.page-search {
position: relative;
}
#search {
position: fixed;
top: -45px;
right: 0;
margin-top: 1px;
padding: 0 0 10px 10px;
}
#search.active {
top: 45px;
}
.single #search {
margin-right: 1px;
}
#body,
.single #body {
width: 100%;
margin-left: 0;
float: none;
}
.main-inner {
padding: 0 10px;
}
.page-title,
.single .page-title {
top: 0;
left: 45px;
right: 0;
width: auto;
}
.footer {
padding: 8px 10px;
}
#notice .notice-item .notice-item-close {
filter: alpha(opacity=100);
-moz-opacity: 1;
-khtml-opacity: 1;
opacity: 1;
}
.markdown-body img {
max-width: 85%;
}
}
@media (max-width: 768px) {
.local-search-popup {
padding: 0;
top: 0;
left: 0;
margin: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
.markdown-body img {
max-width: 75%;
}
}
@media (max-width: 640px) {
.page-title ul li:not(:first-child):not(:last-child) {
display: none;
}
.markdown-body img {
max-width: 90%;
}
}
@media (max-width: 480px) {
.nav-user a {
display: none;
}
.nav-user a.btn-search,
.nav-user a.btn-read-mode {
display: inline-block;
}
.comment-avatar {
display: none;
}
.comment-content {
padding-left: 0;
}
.comment-children .comment-list>li {
border-left: 2px solid #ccc;
padding-left: 10px;
}
#comment-form .comment-fields button {
position: static;
}
/* hidden adsense */
.adsense_post_left {
display: none;
}
.adsense_post_right {
display: none;
}
.adsense_tb_horizontal {
display: none;
}
.adsense_page_right {
display: none;
}
}