pages(darkmode): Follow the system's dark mode
This commit is contained in:
parent
91bab4d153
commit
e5cd83c777
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.vscode
|
||||
|
@ -1,9 +1,9 @@
|
||||
<#macro comment post,type>
|
||||
<#macro comment target,type>
|
||||
<#if !post.disallowComment!false>
|
||||
<div id="comment" class="comment close">
|
||||
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
|
||||
<script src="${theme_base!}/source/plugins/comment/vue.min.js"></script>
|
||||
<script src="${options.comment_internal_plugin_js!'//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js'}"></script>
|
||||
<halo-comment id="${post.id?c}" type="${type}"/>
|
||||
<halo-comment id="${target.id?c}" type="${type}""/>
|
||||
</div>
|
||||
</#if>
|
||||
</#macro>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<#macro layout title>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN" data-font="sans" data-darkmode="light">
|
||||
<html lang="zh-CN" data-font="sans">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
<#-- 自定义样式表 -->
|
||||
<link rel="stylesheet" href="${theme_base!}/source/css/redemption.css"/>
|
||||
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.7wate.com/halo/redemption/heti.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container animate__animated animate__fadeInDown">
|
||||
@ -37,7 +37,7 @@
|
||||
</div>
|
||||
|
||||
<#-- 自定义JS代码 -->
|
||||
<script src="${theme_base!}/source/js/redemption.js"></script>
|
||||
<#-- <script charset="utf-8" src="${theme_base!}/source/plugins/halo-comment.min2.js"></script> -->
|
||||
|
||||
</body>
|
||||
<#include "menu.ftl">
|
||||
|
2
post.ftl
2
post.ftl
@ -60,5 +60,5 @@
|
||||
</div>
|
||||
</main>
|
||||
<#include "module/comment.ftl">
|
||||
<@comment post=post type="post" />
|
||||
<@comment target=post type="post" />
|
||||
</@layout>
|
||||
|
@ -54,5 +54,5 @@
|
||||
</div>
|
||||
</main>
|
||||
<#include "module/comment.ftl">
|
||||
<@comment post=sheet type="sheet" />
|
||||
<@comment target=sheet type="sheet" />
|
||||
</@layout>
|
||||
|
@ -23,22 +23,16 @@ html ::-webkit-scrollbar-thumb {
|
||||
border-radius: 16px;
|
||||
background-color: rgba(0, 0, 0, 0.249);
|
||||
}
|
||||
[data-darkmode=dark] html ::-webkit-scrollbar-thumb {
|
||||
background-color: blue;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] html ::-webkit-scrollbar-thumb {
|
||||
html ::-webkit-scrollbar-thumb {
|
||||
background-color: blue;
|
||||
}
|
||||
}
|
||||
html ::-webkit-scrollbar-thumb:hover {
|
||||
background-color: rgba(0, 0, 0, 0.249);
|
||||
}
|
||||
[data-darkmode=dark] html ::-webkit-scrollbar-thumb:hover {
|
||||
background-color: blue;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] html ::-webkit-scrollbar-thumb:hover {
|
||||
html ::-webkit-scrollbar-thumb:hover {
|
||||
background-color: blue;
|
||||
}
|
||||
}
|
||||
@ -47,12 +41,8 @@ body {
|
||||
background-color: #f7f7f7;
|
||||
color: #333333;
|
||||
}
|
||||
[data-darkmode=dark] body {
|
||||
background-color: #3d3d3d;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] body {
|
||||
body {
|
||||
background-color: #3d3d3d;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
@ -76,12 +66,8 @@ main {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.17);
|
||||
}
|
||||
[data-darkmode=dark] main {
|
||||
background: #292929;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] main {
|
||||
main {
|
||||
background: #292929;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
@ -174,17 +160,11 @@ main > .journals {
|
||||
.header > .title > a > span:hover {
|
||||
color: #26262680;
|
||||
}
|
||||
[data-darkmode=dark] .header > .title > a > span {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .header > .title > a > span:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .header > .title > a > span {
|
||||
.header > .title > a > span {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .header > .title > a > span:hover {
|
||||
.header > .title > a > span:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -195,11 +175,8 @@ main > .journals {
|
||||
font-size: 0.9rem;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .header > .description {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .header > .description {
|
||||
.header > .description {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -216,17 +193,11 @@ main > .journals {
|
||||
.header > .description > .socials > a:hover {
|
||||
color: #8c8c8c80;
|
||||
}
|
||||
[data-darkmode=dark] .header > .description > .socials > a {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
[data-darkmode=dark] .header > .description > .socials > a:hover {
|
||||
color: #7d7d7d80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .header > .description > .socials > a {
|
||||
.header > .description > .socials > a {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
[data-darkmode=auto] .header > .description > .socials > a:hover {
|
||||
.header > .description > .socials > a:hover {
|
||||
color: #7d7d7d80;
|
||||
}
|
||||
}
|
||||
@ -244,17 +215,11 @@ footer .copyright a {
|
||||
footer .copyright a:hover {
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] footer .copyright a {
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] footer .copyright a:hover {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] footer .copyright a {
|
||||
footer .copyright a {
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=auto] footer .copyright a:hover {
|
||||
footer .copyright a:hover {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
}
|
||||
@ -272,37 +237,18 @@ footer .copyright a:hover {
|
||||
.pagenav > a:hover {
|
||||
color: #595959;
|
||||
}
|
||||
[data-darkmode=dark] .pagenav > a {
|
||||
color: #b6b6b6;
|
||||
}
|
||||
[data-darkmode=dark] .pagenav > a:hover {
|
||||
color: #434343;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .pagenav > a {
|
||||
.pagenav > a {
|
||||
color: #b6b6b6;
|
||||
}
|
||||
[data-darkmode=auto] .pagenav > a:hover {
|
||||
.pagenav > a:hover {
|
||||
color: #434343;
|
||||
}
|
||||
}
|
||||
|
||||
.comment {
|
||||
width: 47rem;
|
||||
width: 52rem;
|
||||
margin: 1rem 0rem;
|
||||
padding: 1rem 2.5rem;
|
||||
background: #fafafa;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem #bfbfbf;
|
||||
}
|
||||
[data-darkmode=dark] .comment {
|
||||
background: #292929;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem #262626;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .comment {
|
||||
background: #292929;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem #262626;
|
||||
}
|
||||
}
|
||||
|
||||
.post-bottom-menu {
|
||||
@ -313,11 +259,8 @@ footer .copyright a:hover {
|
||||
width: 40rem;
|
||||
border-top: 1px solid #e7e7e7;
|
||||
}
|
||||
[data-darkmode=dark] .post-bottom-menu {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post-bottom-menu {
|
||||
.post-bottom-menu {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
}
|
||||
}
|
||||
@ -327,17 +270,11 @@ footer .copyright a:hover {
|
||||
.post-bottom-menu > a:hover {
|
||||
color: #595959;
|
||||
}
|
||||
[data-darkmode=dark] .post-bottom-menu > a {
|
||||
color: #b6b6b6;
|
||||
}
|
||||
[data-darkmode=dark] .post-bottom-menu > a:hover {
|
||||
color: #434343;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post-bottom-menu > a {
|
||||
.post-bottom-menu > a {
|
||||
color: #b6b6b6;
|
||||
}
|
||||
[data-darkmode=auto] .post-bottom-menu > a:hover {
|
||||
.post-bottom-menu > a:hover {
|
||||
color: #434343;
|
||||
}
|
||||
}
|
||||
@ -352,11 +289,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .archives > ul > .year {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .archives > ul > .year {
|
||||
.archives > ul > .year {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
@ -373,28 +307,19 @@ footer .copyright a:hover {
|
||||
.archives > ul > li > a:hover {
|
||||
color: #59595980;
|
||||
}
|
||||
[data-darkmode=dark] .archives > ul > li > a {
|
||||
color: #acacac;
|
||||
}
|
||||
[data-darkmode=dark] .archives > ul > li > a:hover {
|
||||
color: #acacac80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .archives > ul > li > a {
|
||||
.archives > ul > li > a {
|
||||
color: #acacac;
|
||||
}
|
||||
[data-darkmode=auto] .archives > ul > li > a:hover {
|
||||
.archives > ul > li > a:hover {
|
||||
color: #acacac80;
|
||||
}
|
||||
}
|
||||
.archives > ul > li > span {
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .archives > ul > li > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .archives > ul > li > span {
|
||||
.archives > ul > li > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -409,11 +334,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .category > ul > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .category > ul > .name {
|
||||
.category > ul > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
@ -430,28 +352,19 @@ footer .copyright a:hover {
|
||||
.category > ul > li > a:hover {
|
||||
color: #59595980;
|
||||
}
|
||||
[data-darkmode=dark] .category > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .category > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .category > ul > li > a {
|
||||
.category > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .category > ul > li > a:hover {
|
||||
.category > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
.category > ul > li > span {
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .category > ul > li > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .category > ul > li > span {
|
||||
.category > ul > li > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -477,17 +390,11 @@ footer .copyright a:hover {
|
||||
.categories > ul > li > a:hover {
|
||||
color: #26262680;
|
||||
}
|
||||
[data-darkmode=dark] .categories > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .categories > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .categories > ul > li > a {
|
||||
.categories > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .categories > ul > li > a:hover {
|
||||
.categories > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -511,17 +418,11 @@ footer .copyright a:hover {
|
||||
.index > h1 > a:hover {
|
||||
color: #26262680;
|
||||
}
|
||||
[data-darkmode=dark] .index > h1 > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .index > h1 > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .index > h1 > a {
|
||||
.index > h1 > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .index > h1 > a:hover {
|
||||
.index > h1 > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -530,11 +431,8 @@ footer .copyright a:hover {
|
||||
text-indent: 2rem;
|
||||
color: #595959;
|
||||
}
|
||||
[data-darkmode=dark] .index > p {
|
||||
color: #acacac;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .index > p {
|
||||
.index > p {
|
||||
color: #acacac;
|
||||
}
|
||||
}
|
||||
@ -546,11 +444,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0 2rem 0;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
[data-darkmode=dark] .index > .info {
|
||||
border-bottom: 1px solid #434343;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .index > .info {
|
||||
.index > .info {
|
||||
border-bottom: 1px solid #434343;
|
||||
}
|
||||
}
|
||||
@ -566,13 +461,9 @@ footer .copyright a:hover {
|
||||
top: 0.1rem;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .index > .info > .date > i,
|
||||
[data-darkmode=dark] .index > .info > .tag > i {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .index > .info > .date > i,
|
||||
[data-darkmode=auto] .index > .info > .tag > i {
|
||||
.index > .info > .date > i,
|
||||
.index > .info > .tag > i {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -585,21 +476,13 @@ footer .copyright a:hover {
|
||||
.index > .info > .tag > a:hover {
|
||||
color: #8c8c8c80;
|
||||
}
|
||||
[data-darkmode=dark] .index > .info > .date > a,
|
||||
[data-darkmode=dark] .index > .info > .tag > a {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
[data-darkmode=dark] .index > .info > .date > a:hover,
|
||||
[data-darkmode=dark] .index > .info > .tag > a:hover {
|
||||
color: #7d7d7d80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .index > .info > .date > a,
|
||||
[data-darkmode=auto] .index > .info > .tag > a {
|
||||
.index > .info > .date > a,
|
||||
.index > .info > .tag > a {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
[data-darkmode=auto] .index > .info > .date > a:hover,
|
||||
[data-darkmode=auto] .index > .info > .tag > a:hover {
|
||||
.index > .info > .date > a:hover,
|
||||
.index > .info > .tag > a:hover {
|
||||
color: #7d7d7d80;
|
||||
}
|
||||
}
|
||||
@ -611,11 +494,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .journals > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .journals > .name {
|
||||
.journals > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
@ -627,11 +507,8 @@ footer .copyright a:hover {
|
||||
font-size: 1rem;
|
||||
color: #595959;
|
||||
}
|
||||
[data-darkmode=dark] .journals > ul > li > .content {
|
||||
color: #acacac;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .journals > ul > li > .content {
|
||||
.journals > ul > li > .content {
|
||||
color: #acacac;
|
||||
}
|
||||
}
|
||||
@ -641,11 +518,8 @@ footer .copyright a:hover {
|
||||
font-size: 0.75rem;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .journals > ul > li > .info {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .journals > ul > li > .info {
|
||||
.journals > ul > li > .info {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -660,11 +534,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .links > ul > .friend {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .links > ul > .friend {
|
||||
.links > ul > .friend {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
@ -681,17 +552,11 @@ footer .copyright a:hover {
|
||||
.links > ul > li > a:hover {
|
||||
color: #59595980;
|
||||
}
|
||||
[data-darkmode=dark] .links > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .links > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .links > ul > li > a {
|
||||
.links > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .links > ul > li > a:hover {
|
||||
.links > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -705,22 +570,16 @@ footer .copyright a:hover {
|
||||
line-height: 2rem;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .post > .title > h1 > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post > .title > h1 > a {
|
||||
.post > .title > h1 > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
.post > .title > h1 > a:hover {
|
||||
color: #26262680;
|
||||
}
|
||||
[data-darkmode=dark] .post > .title > h1 > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post > .title > h1 > a:hover {
|
||||
.post > .title > h1 > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -729,11 +588,8 @@ footer .copyright a:hover {
|
||||
margin-bottom: 1rem;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
[data-darkmode=dark] .post > .title > .info {
|
||||
border-bottom: 1px solid #434343;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post > .title > .info {
|
||||
.post > .title > .info {
|
||||
border-bottom: 1px solid #434343;
|
||||
}
|
||||
}
|
||||
@ -743,11 +599,8 @@ footer .copyright a:hover {
|
||||
font-size: 0.75rem;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .post > .title > .info > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post > .title > .info > span {
|
||||
.post > .title > .info > span {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -756,11 +609,8 @@ footer .copyright a:hover {
|
||||
top: 0.125rem;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
[data-darkmode=dark] .post > .title > .info > span i {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .post > .title > .info > span i {
|
||||
.post > .title > .info > span i {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
}
|
||||
@ -775,11 +625,8 @@ footer .copyright a:hover {
|
||||
padding: 0.5rem 0;
|
||||
color: #262626;
|
||||
}
|
||||
[data-darkmode=dark] .tag > ul > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .tag > ul > .name {
|
||||
.tag > ul > .name {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
@ -796,17 +643,11 @@ footer .copyright a:hover {
|
||||
.tag > ul > li > a:hover {
|
||||
color: #59595980;
|
||||
}
|
||||
[data-darkmode=dark] .tag > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .tag > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .tag > ul > li > a {
|
||||
.tag > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .tag > ul > li > a:hover {
|
||||
.tag > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
@ -832,17 +673,11 @@ footer .copyright a:hover {
|
||||
.tags > ul > li > a:hover {
|
||||
color: #26262680;
|
||||
}
|
||||
[data-darkmode=dark] .tags > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=dark] .tags > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-darkmode=auto] .tags > ul > li > a {
|
||||
.tags > ul > li > a {
|
||||
color: #dbdbdb;
|
||||
}
|
||||
[data-darkmode=auto] .tags > ul > li > a:hover {
|
||||
.tags > ul > li > a:hover {
|
||||
color: #dbdbdb80;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
$darkmode: manual !default; // true | false | 'manual'
|
||||
$darkmode: true !default; // true | false | 'manual'
|
||||
$manualmode-auto-selector: '[data-darkmode="auto"] &' !default;
|
||||
$manualmode-dark-selector: '[data-darkmode="dark"] &' !default;
|
||||
|
||||
|
@ -1,15 +1,7 @@
|
||||
// 评论组件
|
||||
.comment {
|
||||
width: 47rem;
|
||||
width: 52rem;
|
||||
margin: 1rem 0rem;
|
||||
padding: 1rem 2.5rem;
|
||||
background: #fafafa;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem #bfbfbf;
|
||||
|
||||
@include darkmode {
|
||||
background: #292929;
|
||||
box-shadow: 0 0.375rem 1rem -0.5rem #262626;
|
||||
}
|
||||
}
|
||||
|
||||
.post-bottom-menu {
|
||||
@ -41,4 +33,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["base/_font.scss","base/_base.scss","base/_variables.scss","pages/layout/_header.scss","pages/layout/_footer.scss","pages/layout/_pagenav.scss","pages/layout/_comment.scss","pages/_archives.scss","pages/_category.scss","pages/_index.scss","pages/_journals.scss","pages/_links.scss","pages/_post.scss","pages/_tag.scss"],"names":[],"mappings":"AAEA;EACI;EACA;EACA;;;AAGJ;EACI;EAGA;;;AAEJ;EACI;EAGA;;;ACdF;EACE;EACA;;AAGF;EACE;EACA;EAEA;;ACAI;EDIF;;ACAE;EACI;IDDN;;;AAKF;EAEE;;ACXE;EDeA;;ACXA;EACI;IDUJ;;;;AAOR;EAEE;EACA;;ACzBM;ED6BJ;EACA;;AC1BI;EACI;IDwBR;IACA;;;;AAKJ;EACE;EACA;EACA;EACA;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;;ACrDM;EDyD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AAIR;EACI;EACA;EACA;EACA;;ARzBR;EQ4BY;;ARxBZ;EACI;IQuBQ;;;;ACrChB;EACI;;AAEA;EACI;EACA;EACA;EACA;EAGA;;ATDJ;ESKQ;;ATDR;EACI;ISAI;;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EAEI;;AAEA;EACI;;ATrBZ;ES0BY;;AAEA;EACI;;ATzBhB;EACI;ISqBQ;;EAEA;IACI;;;;ACtCpB;EACI;;AAGI;EACI;EACA;EACA;EACA;;AVCR;EUEY;;AVEZ;EACI;IUHQ;;;AAGJ;EACI;;AVNZ;EUSgB;;AVLhB;EACI;IUIY;;;AAMhB;EACI;EACA;EACA;;AVlBJ;EUqBQ;;AVjBR;EACI;IUgBI;;;AAGJ;EACI;EACA;EACA;EACA;;AV5BR;EU+BY;;AV3BZ;EACI;IU0BQ;;;AAGJ;EACI;EACA;EACA;;AVrCZ;EUwCgB;;AVpChB;EACI;IUmCY;;;;ACjDpB;EACI;;AAEA;EACI;EACA;EACA;EACA;EAEA;;AXAJ;EWIQ;;AXAR;EACI;IWDI;;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EAEI;;AAEA;EACI;;AXpBZ;EWyBY;;AAEA;EACI;;AXxBhB;EACI;IWoBQ;;EAEA;IACI;;;;AASxB;EACI;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAEA;EAEI;;AAEA;EACI;;AXzDZ;EW8DY;;AAEA;EACI;;AX7DhB;EACI;IWyDQ;;EAEA;IACI;;;AAIR;EACI;;AAKZ;EACI;EACA;EACA;EACA;EACA","file":"redemption.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["base/_font.scss","base/_base.scss","base/_variables.scss","pages/layout/_header.scss","pages/layout/_footer.scss","pages/layout/_pagenav.scss","pages/layout/_comment.scss","pages/_archives.scss","pages/_category.scss","pages/_index.scss","pages/_journals.scss","pages/_links.scss","pages/_post.scss","pages/_tag.scss"],"names":[],"mappings":"AAEA;E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tCpB;EACI;;AAGI;EACI;EACA;EACA;EACA;;AVaR;EUjBI;IAOQ;;;AAGJ;EACI;;AVMZ;EUPQ;IAIQ;;;AAMhB;EACI;EACA;EACA;;AVNJ;EUGA;IAMQ;;;AAGJ;EACI;EACA;EACA;EACA;;AVhBR;EUYI;IAOQ;;;AAGJ;EACI;EACA;EACA;;AVzBZ;EUsBQ;IAMQ;;;;ACjDpB;EACI;;AAEA;EACI;EACA;EACA;EACA;EAEA;;AXYJ;EWlBA;IAUQ;;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EAEI;;AAEA;EACI;;AXRZ;EWGI;IAUQ;;EAEA;IACI;;;;AASxB;EACI;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;;AAEA;EAEI;;AAEA;EACI;;AX7CZ;EWwCI;IAUQ;;EAEA;IACI;;;AAIR;EACI;;AAKZ;EACI;EACA;EACA;EACA;EACA","file":"redemption.css"}
|
36
source/plugins/comment/halo-comment.min.js
vendored
Normal file
36
source/plugins/comment/halo-comment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
source/plugins/comment/vue.min.js
vendored
Normal file
6
source/plugins/comment/vue.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,653 +0,0 @@
|
||||
@charset "utf-8";
|
||||
|
||||
:root {
|
||||
--active-file-bg-color: #dadada;
|
||||
--active-file-bg-color: rgba(32, 43, 51, 0.63);
|
||||
--active-file-text-color: white;
|
||||
--bg-color: #fff;
|
||||
--text-color: #333;
|
||||
--side-bar-bg-color: #f5f5f5;
|
||||
--control-text-color: #666;
|
||||
}
|
||||
|
||||
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */
|
||||
html {
|
||||
color: #333;
|
||||
background: #fff;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
text-rendering: optimizelegibility;
|
||||
font-size: 14px;
|
||||
-webkit-font-smoothing: initial;
|
||||
}
|
||||
|
||||
#write {
|
||||
max-width: 960px;
|
||||
padding-top: 2em;
|
||||
padding-left: 60px;
|
||||
padding-right: 60px;
|
||||
min-height: calc(100vh - 6em);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.typora-node #write {
|
||||
min-height: calc(100% - 6em);
|
||||
}
|
||||
|
||||
pre.md-meta-block {
|
||||
background: #f5f5f5;
|
||||
padding: 1em;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#write {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1100px) {
|
||||
body, #footer-word-count-info {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
body.pin-outline,
|
||||
.pin-outline #footer-word-count-info,
|
||||
.pin-outline footer {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#write {
|
||||
max-width: 1000px;
|
||||
padding: 40px 60px;
|
||||
background: #fff;
|
||||
margin: 3em auto 3em;
|
||||
border: 1px solid #ddd;
|
||||
border-width: 0 1px;
|
||||
}
|
||||
|
||||
.pin-outline #write {
|
||||
max-width: 1000px;
|
||||
background: #fff;
|
||||
margin: 0 0 0;
|
||||
border: 0;
|
||||
padding-left: 60px;
|
||||
padding-right: 60px;
|
||||
}
|
||||
|
||||
footer {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1300px) {
|
||||
body.pin-outline,
|
||||
.pin-outline #footer-word-count-info,
|
||||
.pin-outline footer {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.pin-outline #write {
|
||||
max-width: 1000px;
|
||||
padding: 40px 60px;
|
||||
background: #fff;
|
||||
margin: 3em auto 3em;
|
||||
border: 1px solid #ddd;
|
||||
border-width: 0 1px;
|
||||
}
|
||||
|
||||
.pin-outline footer {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#footer-word-count-info {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 如果你的项目仅支持 IE9+ | Chrome | Firefox 等,推荐在 <html> 中添加 .borderbox 这个 class */
|
||||
html.borderbox *, html.borderbox *:before, html.borderbox *:after {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 内外边距通常让各个浏览器样式的表现位置不同 */
|
||||
body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
|
||||
article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* HTML5 媒体文件跟 img 保持一致 */
|
||||
audio, canvas, video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* 要注意表单元素并不继承父级 font 的问题 */
|
||||
body, button, input, select, textarea {
|
||||
font: 300 1em/1.8 "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "TimesNewRomanPS-ItalicMT", "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans;
|
||||
/*font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans;*/
|
||||
-webkit-font-smoothing: initial;
|
||||
font-weight: 100;
|
||||
color: var(--text-color);
|
||||
line-height: 1.35;
|
||||
font-variant-numeric: lining-nums;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
em {
|
||||
font-family: Georgia-Italic, STSongti-SC-Light, serif;
|
||||
}
|
||||
|
||||
strong em,
|
||||
em strong {
|
||||
font-family: Georgia-BoldItalic, STSongti-SC-Regular, serif;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* 去掉各Table cell 的边距并让其边重合 */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
/* 去除默认边框 */
|
||||
fieldset, img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* 块/段落引用 */
|
||||
blockquote {
|
||||
position: relative;
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
border-left: 1px solid #1abc9c;
|
||||
padding-left: 1em;
|
||||
margin: 1em 3em 1em 2em;
|
||||
}
|
||||
|
||||
@media only screen and ( max-width: 640px ) {
|
||||
blockquote {
|
||||
margin: 1em 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Firefox 以外,元素没有下划线,需添加 */
|
||||
acronym, abbr {
|
||||
border-bottom: 1px dotted;
|
||||
font-variant: normal;
|
||||
}
|
||||
|
||||
/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
|
||||
abbr {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
address, caption, cite, code, dfn, th, var {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* 去掉列表前的标识, li 会继承,大部分网站通常用列表来很多内容,所以应该当去 */
|
||||
ul, ol {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* 对齐是排版最重要的因素, 别让什么都居中 */
|
||||
caption, th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
/* 统一上标和下标 */
|
||||
sub, sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
:root sub, :root sup {
|
||||
vertical-align: baseline; /* for ie9 and other modern browsers */
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* 让链接在 hover 状态下显示下划线 */
|
||||
a {
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#write a {
|
||||
border-bottom: 1px solid #1abc9c;
|
||||
}
|
||||
|
||||
#write a:hover {
|
||||
border-bottom-color: #555;
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 默认不显示下划线,保持页面简洁 */
|
||||
ins, a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 标记,类似于手写的荧光笔的作用 */
|
||||
mark {
|
||||
background: #fffdd1;
|
||||
border-bottom: 1px solid #ffedce;
|
||||
padding: 2px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
/* 代码片断 */
|
||||
pre, code, pre tt {
|
||||
font-family: Courier, 'Courier New', monospace;
|
||||
}
|
||||
|
||||
#write .md-fences {
|
||||
border: 1px solid #ddd;
|
||||
padding: 1em 0.5em;
|
||||
display: block;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* 一致化 horizontal rule */
|
||||
hr {
|
||||
border: none;
|
||||
border-bottom: 1px solid #cfcfcf;
|
||||
margin-bottom: 0.8em;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
#write strong {
|
||||
font-weight: bolder;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.code-tooltip.md-hover-tip strong {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* 保证块/段落之间的空白隔行 */
|
||||
#write p, #write .md-fences, #write ul, #write ol, #write dl, #write form, #write hr, #write figure,
|
||||
#write-p, #write-pre, #write-ul, #write-ol, #write-dl, #write-form, #write-hr, #write-table, blockquote {
|
||||
margin-bottom: 1.2em
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
||||
}
|
||||
|
||||
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
|
||||
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6,
|
||||
#write-h1, #write-h2, #write-h3, #write-h4, #write-h5, #write-h6 {
|
||||
margin-top: 1.2em;
|
||||
margin-bottom: 0.6em;
|
||||
line-height: 1.35;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#write h1, #write-h1 {
|
||||
font-size: 2.4em;
|
||||
padding-bottom: 1em;
|
||||
border-bottom: 3px double #eee;
|
||||
}
|
||||
|
||||
#write h2, #write-h2 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
#write h3, #write-h3 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
#write h4, #write-h4 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
#write h5, #write h6, #write-h5, #write-h6 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
/* 在文章中,应该还原 ul 和 ol 的样式 */
|
||||
#write ul, #write-ul {
|
||||
margin-left: 1.3em;
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
#write ol, #write-ol {
|
||||
list-style: decimal;
|
||||
margin-left: 1.9em;
|
||||
}
|
||||
|
||||
#write li ul, #write li ol, #write-ul ul, #write-ul ol, #write-ol ul, #write-ol ol {
|
||||
margin-bottom: 0.8em;
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
#write li ul, #write-ul ul, #write-ol ul {
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
|
||||
#write table th, #write table td {
|
||||
border: 1px solid #ddd;
|
||||
padding: 0.5em 1em;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#write table .md-table-edit th {
|
||||
border: none;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#write table th, #write-table th {
|
||||
background: #fbfbfb;
|
||||
}
|
||||
|
||||
#write table thead th, #write-table thead th {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
#write table caption {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#write em {
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
}
|
||||
|
||||
li>p {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/* Responsive images */
|
||||
#write img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a.md-toc-inner {
|
||||
border-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.md-toc-h1:first-of-type:last-of-type{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.md-toc {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.md-toc-h1 .md-toc-inner {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.md-table-edit th {
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.mac-seamless-mode #write {
|
||||
min-height: calc(100vh - 6em - 20px);
|
||||
}
|
||||
|
||||
.typora-quick-open-item.active {
|
||||
color: var(--active-file-text-color);
|
||||
}
|
||||
|
||||
*.in-text-selection, ::selection {
|
||||
background: var(--active-file-bg-color);
|
||||
text-shadow: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #2d2d2d;
|
||||
border-color: #020202;
|
||||
}
|
||||
|
||||
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
|
||||
background-color: #4e4c4e;
|
||||
border: #4e4c4e;
|
||||
}
|
||||
|
||||
#preference-dialog .modal-content{
|
||||
background: #6e757a;
|
||||
--bg-color: #6e757a;
|
||||
--text-color: #f1f1f1;
|
||||
color: #f1f1f1;
|
||||
}
|
||||
|
||||
#typora-source,
|
||||
.typora-sourceview-on {
|
||||
--bg-color: #eee;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-header, .cm-s-typora-default .cm-property {
|
||||
color: #116098;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-link {
|
||||
color: #11987d;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-em {
|
||||
font-family: Georgia-Italic, STSongti-SC-Light, serif;
|
||||
color: #6f6400;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-em{
|
||||
color: rgb(0, 22, 45);
|
||||
}
|
||||
|
||||
.CodeMirror.cm-s-typora-default div.CodeMirror-cursor{
|
||||
border-left: 3px solid #6e757a;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .CodeMirror-selectedtext,
|
||||
.typora-sourceview-on .CodeMirror-focused .CodeMirror-selected {
|
||||
background: #6e757a;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.file-node-icon.fa.fa-folder:before {
|
||||
color: rgba(32, 43, 51, 0.49);
|
||||
}
|
||||
|
||||
#preference-dialog .megamenu-menu-panel h1 {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
display: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/*.file-node-icon.fa.fa-folder:before {
|
||||
content: "\f114";
|
||||
}
|
||||
|
||||
#typora-sidebar {
|
||||
|
||||
}*/
|
||||
|
||||
/*.cm-s-typora-default .cm-header, .cm-s-typora-default .cm-property {
|
||||
color: #fffff1;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-link {
|
||||
color: #86f9e2;
|
||||
color: #e5f7eb;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-comment, .cm-s-typora-default .cm-code {
|
||||
color: rgb(255, 199, 199);
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-atom, .cm-s-typora-default .cm-number {
|
||||
color: #dec4c7;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .cm-em {
|
||||
font-family: Georgia-Italic, STSongti-SC-Light, serif;
|
||||
color: #f3ff7e;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .CodeMirror-cursor {
|
||||
border-left: 3px solid #ffffd6;
|
||||
}
|
||||
|
||||
.typora-sourceview-on #toggle-sourceview-btn {
|
||||
background: #505050;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-variable,
|
||||
.typora-sourceview-on .cm-s-inner .cm-operator,
|
||||
.typora-sourceview-on .cm-s-inner .cm-property {
|
||||
color: #b8bfc6;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-keyword {
|
||||
color: #C88FD0;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-tag {
|
||||
color: #7DF46A;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-attribute {
|
||||
color: #7575E4;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-string {
|
||||
color: #D26B6B;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-comment,
|
||||
.typora-sourceview-on .cm-s-inner.cm-comment {
|
||||
color: #DA924A;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-header,
|
||||
.typora-sourceview-on .cm-s-inner .cm-def,
|
||||
.typora-sourceview-on .cm-s-inner.cm-header,
|
||||
.typora-sourceview-on .cm-s-inner.cm-def {
|
||||
color: #8d8df0;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-quote,
|
||||
.typora-sourceview-on .cm-s-inner.cm-quote {
|
||||
color: #57ac57;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-hr {
|
||||
color: #d8d5d5;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-link {
|
||||
color: #d3d3ef;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-negative {
|
||||
color: #d95050;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-positive {
|
||||
color: #50e650;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-string-2 {
|
||||
color: #f50;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-meta,
|
||||
.typora-sourceview-on .cm-s-inner .cm-qualifier {
|
||||
color: #b7b3b3;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-builtin {
|
||||
color: #f3b3f8;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-bracket {
|
||||
color: #997;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-atom,
|
||||
.typora-sourceview-on .cm-s-inner.cm-atom {
|
||||
color: #84B6CB;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-number {
|
||||
color: #64AB8F;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-variable {
|
||||
color: #b8bfc6;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-variable-2 {
|
||||
color: #9FBAD5;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .cm-s-inner .cm-variable-3 {
|
||||
color: #1cc685;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .CodeMirror div.CodeMirror-cursor {
|
||||
border-left: 1px solid #b8bfc6;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.cm-s-typora-default .CodeMirror-selectedtext,
|
||||
.typora-sourceview-on .CodeMirror-focused .CodeMirror-selected {
|
||||
background: #212324;
|
||||
}
|
||||
|
||||
.typora-sourceview-on .CodeMirror-linenumber {
|
||||
color: rgb(255, 255, 255);
|
||||
}*/
|
@ -1,346 +0,0 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */
|
||||
html {
|
||||
color: #333;
|
||||
background: #fff;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
text-rendering: optimizelegibility;
|
||||
}
|
||||
|
||||
/* 如果你的项目仅支持 IE9+ | Chrome | Firefox 等,推荐在 <html> 中添加 .borderbox 这个 class */
|
||||
html.borderbox *, html.borderbox *:before, html.borderbox *:after {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 内外边距通常让各个浏览器样式的表现位置不同 */
|
||||
body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
|
||||
article, aside, details, figcaption, figure, footer, header, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* HTML5 媒体文件跟 img 保持一致 */
|
||||
audio, canvas, video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* 要注意表单元素并不继承父级 font 的问题 */
|
||||
body, button, input, select, textarea {
|
||||
font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* 去掉各Table cell 的边距并让其边重合 */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
/* 去除默认边框 */
|
||||
fieldset, img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* 块/段落引用 */
|
||||
blockquote {
|
||||
position: relative;
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
border-left: 1px solid #1abc9c;
|
||||
padding-left: 1em;
|
||||
margin: 1em 3em 1em 2em;
|
||||
}
|
||||
|
||||
@media only screen and ( max-width: 640px ) {
|
||||
blockquote {
|
||||
margin: 1em 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Firefox 以外,元素没有下划线,需添加 */
|
||||
acronym, abbr {
|
||||
border-bottom: 1px dotted;
|
||||
font-variant: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
|
||||
abbr {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* 一致的 del 样式 */
|
||||
del {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
address, caption, cite, code, dfn, em, th, var {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* 去掉列表前的标识, li 会继承,大部分网站通常用列表来很多内容,所以应该当去 */
|
||||
ul, ol {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* 对齐是排版最重要的因素, 别让什么都居中 */
|
||||
caption, th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
/* 统一上标和下标 */
|
||||
sub, sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
:root sub, :root sup {
|
||||
vertical-align: baseline; /* for ie9 and other modern browsers */
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* 让链接在 hover 状态下显示下划线 */
|
||||
a {
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.typo a {
|
||||
border-bottom: 1px solid #1abc9c;
|
||||
}
|
||||
|
||||
.typo a:hover {
|
||||
border-bottom-color: #555;
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 默认不显示下划线,保持页面简洁 */
|
||||
ins, a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 专名号:虽然 u 已经重回 html5 Draft,但在所有浏览器中都是可以使用的,
|
||||
* 要做到更好,向后兼容的话,添加 class="typo-u" 来显示专名号
|
||||
* 关于 <u> 标签:http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
|
||||
* 被放弃的是 4,之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
|
||||
* 一篇关于 <u> 标签的很好文章:http://html5doctor.com/u-element/
|
||||
*/
|
||||
u, .typo-u {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* 标记,类似于手写的荧光笔的作用 */
|
||||
mark {
|
||||
background: #fffdd1;
|
||||
border-bottom: 1px solid #ffedce;
|
||||
padding: 2px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
/* 代码片断 */
|
||||
pre, code, pre tt {
|
||||
font-family: Courier, 'Courier New', monospace;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #f8f8f8;
|
||||
border: 1px solid #ddd;
|
||||
padding: 1em 1.5em;
|
||||
display: block;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* 一致化 horizontal rule */
|
||||
hr {
|
||||
border: none;
|
||||
border-bottom: 1px solid #cfcfcf;
|
||||
margin-bottom: 0.8em;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
/* 底部印刷体、版本等标记 */
|
||||
small, .typo-small,
|
||||
/* 图片说明 */
|
||||
figcaption {
|
||||
font-size: 0.9em;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
strong, b {
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* 可拖动文件添加拖动手势 */
|
||||
[draggable] {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.clearfix:before, .clearfix:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
/* 强制文本换行 */
|
||||
.textwrap, .textwrap td, .textwrap th {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.textwrap-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
|
||||
.serif {
|
||||
font-family: Palatino, Optima, Georgia, serif;
|
||||
}
|
||||
|
||||
/* 保证块/段落之间的空白隔行 */
|
||||
.typo p, .typo pre, .typo ul, .typo ol, .typo dl, .typo form, .typo hr, .typo table,
|
||||
.typo-p, .typo-pre, .typo-ul, .typo-ol, .typo-dl, .typo-form, .typo-hr, .typo-table, blockquote {
|
||||
margin-bottom: 1.2em
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
||||
font-weight: 400;
|
||||
color: #000;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
|
||||
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6,
|
||||
.typo-h1, .typo-h2, .typo-h3, .typo-h4, .typo-h5, .typo-h6 {
|
||||
margin-top: 1.2em;
|
||||
margin-bottom: 0.6em;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.typo h1, .typo-h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.typo h2, .typo-h2 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
.typo h3, .typo-h3 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
.typo h4, .typo-h4 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
.typo h5, .typo h6, .typo-h5, .typo-h6 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
/* 在文章中,应该还原 ul 和 ol 的样式 */
|
||||
.typo ul, .typo-ul {
|
||||
margin-left: 1.3em;
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.typo ol, .typo-ol {
|
||||
list-style: decimal;
|
||||
margin-left: 1.9em;
|
||||
}
|
||||
|
||||
.typo li ul, .typo li ol, .typo-ul ul, .typo-ul ol, .typo-ol ul, .typo-ol ol {
|
||||
margin-bottom: 0.8em;
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
.typo li ul, .typo-ul ul, .typo-ol ul {
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
/* 同 ul/ol,在文章中应用 table 基本格式 */
|
||||
.typo table th, .typo table td, .typo-table th, .typo-table td, .typo table caption {
|
||||
border: 1px solid #ddd;
|
||||
padding: 0.5em 1em;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.typo table th, .typo-table th {
|
||||
background: #fbfbfb;
|
||||
}
|
||||
|
||||
.typo table thead th, .typo-table thead th {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.typo table caption {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* 去除 webkit 中 input 和 textarea 的默认样式 */
|
||||
.typo-input, .typo-textarea {
|
||||
-webkit-appearance: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.typo-em, .typo em, legend, caption {
|
||||
color: #000;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/* 着重号,只能在少量(少于100个字符)且全是全角字符的情况下使用 */
|
||||
.typo-em {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.typo-em:after {
|
||||
position: absolute;
|
||||
top: 0.65em;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
content: "・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・";
|
||||
}
|
||||
|
||||
/* Responsive images */
|
||||
.typo img {
|
||||
max-width: 100%;
|
||||
}
|
Reference in New Issue
Block a user