Skip to content

Commit

Permalink
修改模糊主题下打印机模式的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Soanguy committed Apr 9, 2021
1 parent 474e5e1 commit 072f563
Show file tree
Hide file tree
Showing 10 changed files with 301 additions and 64 deletions.
4 changes: 4 additions & 0 deletions Autumnus-Less/assets-less/fluent.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.ty-on-typewriter-mode #write>[cid]:not(.md-meta-block):last-child {
margin-bottom: 15rem!important;
padding-bottom: 5rem;
}
15 changes: 11 additions & 4 deletions Autumnus-Less/less-dark-fluent.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "less-dark.css";
@import "./assets-less/fluent.css";

:root {
--side-bar-bg-color: transparent !important;
Expand Down Expand Up @@ -126,24 +127,30 @@ input[type=search] {
}

@media (min-width:1101px) {
content {
background-size: 40%;
}

#write {
margin-top: 25rem;
}

.typora-node #write {
min-height: 2%;
}
content {
background-size: 40%;

.ty-on-typewriter-mode #write {
margin-top: 2rem;
min-height: calc(100vh - 6rem);
}
}

@media (max-width:1100px){
@media (max-width:1100px) {
#write {
margin-top: 0rem;
}

.typora-node #write {
min-height: 100%;
}
}
}
15 changes: 12 additions & 3 deletions Autumnus-Less/less-light-fluent.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "less-light.css";
@import "./assets-less/fluent.css";

:root {
--side-bar-bg-color: transparent !important;
Expand Down Expand Up @@ -120,19 +121,27 @@ input[type=search] {
}

@media (min-width:1101px) {

content {
background-size: 40%;
}

#write {
margin-top: 25rem;
}

.typora-node #write {
min-height: 2%;
}
content {
background-size: 40%;

.ty-on-typewriter-mode #write {
margin-top: 2rem;
min-height: calc(100vh - 6rem);
}

}

@media (max-width:1100px){
@media (max-width:1100px) {
#write {
margin-top: 0rem;
}
Expand Down
57 changes: 35 additions & 22 deletions Autumnus-Less/less-light-print.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@
--base-padding: 1px 4px;
--opt-padding: 1rem;
--lineheight: 1.75rem;
--base-font: "noto serif cjk sc";
--em-font: "noto serif cjk jp";
--quota-font: "悠哉字体", serif;
--base-font: Lora, Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
--base-jp-font: Lora, Georgia, "Times New Roman", "Noto Serif CJK JP", serif;
--min-title-font: Lato, "Helvetica Neue", Helvetica, Arial, "Noto Sans CJK SC", sans-serif;
--ol-font: "Josefin Sans", "Helvetica Neue", Helvetica, "Segoe Print", "TW-Kai", "STKaiti,", "Kaiti";
--ol-jp-font: "Josefin Sans", "Helvetica Neue", Helvetica, "Segoe Print", "A-OTF Kyoukasho ICA Pro", "UD Digi Kyokasho N-R", "TW-Kai";
--ul-font: Lora, Georgia, "Times New Roman", "Noto Serif CJK JP", serif;
--ul-cn-font: Lora, Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
--quota-font: "悠哉字体", "A-OTF Kyoukasho ICA Pro", "TW-Kai";
--mono-font: var(--ol-font);
--mono-jp-font: var(--ol-jp-font);
--monospace: "Cascadia code", Monaco, "Deja Vu Sans Mono", Consolas, "Lucida Console", "Andale Mono", Courier;
--mermaid-alt-font-family: var(--base-font) !important;
--mermaid-font-family: var(--base-font) !important;
Expand Down Expand Up @@ -190,7 +197,7 @@ content {

h1,
h2 {
font-family: var(--title-font);
font-family: var(--base-font);
font-weight: 800;
line-height: 3rem;
text-transform: uppercase;
Expand All @@ -211,7 +218,7 @@ h2 {
}

h2 {
font-size: 2rem;
font-size: 2.2rem;
margin: 2rem auto 1rem;
}

Expand All @@ -224,8 +231,8 @@ h4,
h5,
h6 {
font-family: var(--base-font);
font-weight: 600;
margin: 2rem auto 1rem;
font-weight: 800;
margin: 1.5rem auto 1rem;
position: relative;
}

Expand Down Expand Up @@ -272,8 +279,9 @@ h5:hover::before {
content: "H5";
}

h5 {
font-family: "noto sans cjk sc";
h5,
h6 {
font-family: var(--min-title-font);
}

h6:hover::before {
Expand Down Expand Up @@ -369,46 +377,50 @@ ins {

strong,
em {
font-family: var(--em-font);
font-family: inherit;
font-weight: 800;
color: var(--title-color);
font-size: inherit;
}

ol strong{
font-family: "tw-kai";
font-size: inherit;
em {
font-weight: 400;
font-style: normal;
}

p em {
font-family: var(--base-jp-font);
}

ol em{
ol em {
font-family: var(--ol-jp-font);
font-size: 1rem;
}

em {
font-weight: 400;
font-style: normal;
ul em {
font-family: var(--ul-cn-font);
}

del {
color: var(--footer-color);
}

ul li {
font-family: "noto serif cjk jp";
font-family: var(--ul-font);
font-size: 1rem !important;
}

ol li {
font-family: "Josefin Sans", "TW-Kai";
font-size: 1.2rem;
font-family: var(--ol-font);
font-size: 1.2rem !important;
}

blockquote ol li {
font-size: 1rem !important;
}

ol ul li {
font-family: "noto serif cjk jp";
font-family: var(--ul-font);
font-size: 1rem !important;

}
Expand Down Expand Up @@ -456,6 +468,7 @@ blockquote * {
blockquote blockquote {
padding: 0;
padding-left: 1rem;
border: none;
border-left: var(--base-borderl);
border-radius: 0;
box-shadow: none;
Expand Down Expand Up @@ -503,7 +516,7 @@ blockquote h6 span:first-child:before {
background-color: red;
display: block;
text-align: center;
font-family: Poppins, sans-serif;
font-family: var(--quota-font);
color: white;
font-size: large;
font-weight: 600;
Expand Down
Loading

0 comments on commit 072f563

Please sign in to comment.