update at 2025-10-16 14:24:10

This commit is contained in:
douboer
2025-10-16 14:24:10 +08:00
parent 5e1351408e
commit 9f3a4e8812
41 changed files with 2377 additions and 2363 deletions

View File

@@ -17,10 +17,10 @@
* 各个属性的默认值为 chrome 的默认样式,见 variables/default.scss。
*/
/**
* MWeb 包裹 markdown 的容器是 .note-to-mp
* MWeb 包裹 markdown 的容器是 .note2any
* Typora 中是 #write
*/
.note-to-mp {
.note2any {
line-height: 1.6em;
-webkit-text-size-adjust: 100%;
margin: 0 0;
@@ -36,11 +36,11 @@
/* table */
/* svg */
}
.note-to-mp p, .note-to-mp details, .note-to-mp dl, .note-to-mp ol, .note-to-mp ul, .note-to-mp pre, .note-to-mp xmp, .note-to-mp plaintext, .note-to-mp listing, .note-to-mp blockquote, .note-to-mp table, .note-to-mp figure, .note-to-mp hr {
.note2any p, .note2any details, .note2any dl, .note2any ol, .note2any ul, .note2any pre, .note2any xmp, .note2any plaintext, .note2any listing, .note2any blockquote, .note2any table, .note2any figure, .note2any hr {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.note-to-mp h1 {
.note2any h1 {
font-size: 2em;
font-weight: bold;
margin-top: 1.5em;
@@ -48,7 +48,7 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp h2 {
.note2any h2 {
font-size: 1.5em;
font-weight: bold;
margin-top: 1.5em;
@@ -56,7 +56,7 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp h3 {
.note2any h3 {
font-size: 1.17em;
font-weight: bold;
margin-top: 1.5em;
@@ -64,7 +64,7 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp h4 {
.note2any h4 {
font-size: 1em;
font-weight: bold;
margin-top: 1.5em;
@@ -72,7 +72,7 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp h5 {
.note2any h5 {
font-size: 0.83em;
font-weight: bold;
margin-top: 1.5em;
@@ -80,7 +80,7 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp h6 {
.note2any h6 {
font-size: 0.67em;
font-weight: bold;
margin-top: 1.5em;
@@ -88,91 +88,91 @@
margin-left: 0;
margin-right: 0;
}
.note-to-mp p {
.note2any p {
margin-left: 0;
margin-right: 0;
}
.note-to-mp pre, .note-to-mp xmp, .note-to-mp plaintext, .note-to-mp listing {
.note2any pre, .note2any xmp, .note2any plaintext, .note2any listing {
font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, "Courier New";
}
.note-to-mp blockquote > :first-child {
.note2any blockquote > :first-child {
margin-top: 0;
}
.note-to-mp blockquote > :last-child {
.note2any blockquote > :last-child {
margin-bottom: 0;
}
.note-to-mp hr {
.note2any hr {
border-style: inset;
border-width: 1px;
}
.note-to-mp img {
.note2any img {
max-width: 100%;
height: auto;
}
.note-to-mp li {
.note2any li {
word-wrap: break-all;
}
.note-to-mp li + li {
.note2any li + li {
margin-top: 0.25em;
}
.note-to-mp ul ul, .note-to-mp ol ul, .note-to-mp ul ol, .note-to-mp ol ol {
.note2any ul ul, .note2any ol ul, .note2any ul ol, .note2any ol ol {
margin-top: 0;
margin-bottom: 0;
}
.note-to-mp .task-list-item {
.note2any .task-list-item {
list-style-type: none;
}
.note-to-mp a {
.note2any a {
color: -webkit-link;
text-decoration: underline;
}
.note-to-mp a img {
.note2any a img {
border: none;
}
.note-to-mp b, .note-to-mp strong {
.note2any b, .note2any strong {
font-weight: bold;
}
.note-to-mp i, .note-to-mp cite, .note-to-mp em, .note-to-mp var, .note-to-mp address, .note-to-mp dfn {
.note2any i, .note2any cite, .note2any em, .note2any var, .note2any address, .note2any dfn {
font-style: italic;
}
.note-to-mp code, .note-to-mp kbd, .note-to-mp tt, .note-to-mp samp {
.note2any code, .note2any kbd, .note2any tt, .note2any samp {
font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, "Courier New";
}
.note-to-mp mark {
.note2any mark {
padding: 0.2em 0;
background-color: yellow;
}
.note-to-mp del, .note-to-mp s {
.note2any del, .note2any s {
color: inherit;
}
.note-to-mp table {
.note2any table {
color: black;
border-collapse: collapse;
background-color: white;
border-spacing: 2px;
font-size: 1em;
}
.note-to-mp th, .note-to-mp td {
.note2any th, .note2any td {
border-color: gray;
border-width: 1px;
border-style: solid;
}
.note-to-mp th {
.note2any th {
padding: 4px 8px;
font-size: 1em;
font-weight: bold;
}
.note-to-mp td {
.note2any td {
padding: 4px 8px;
font-size: 1em;
font-weight: normal;
}
.note-to-mp div[id^=mweb-chart-ele] svg {
.note2any div[id^=mweb-chart-ele] svg {
background-color: white;
}
/* 代码块 */
.note-to-mp .code-section {
.note2any .code-section {
display: flex;
border: solid 1px gray;
margin: 1.5em 0;
@@ -180,7 +180,7 @@
padding: 0.5em;
font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, "Courier New";
}
.note-to-mp .code-section pre {
.note2any .code-section pre {
margin: 0;
margin-block-start: 0;
margin-block-end: 0;
@@ -188,12 +188,12 @@
overflow-x: auto;
padding: 0 0 0 1em;
}
.note-to-mp .code-section code {
.note2any .code-section code {
display: flex;
text-wrap: nowrap;
font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, "Courier New";
}
.note-to-mp .code-section ul {
.note2any .code-section ul {
margin: 0;
padding: 0;
margin-block-start: 0;
@@ -204,10 +204,10 @@
line-height: 26px;
list-style-type: none;
}
.note-to-mp .code-section ul > li {
.note2any .code-section ul > li {
text-align: right;
}
.note-to-mp .code-section ul li {
.note2any .code-section ul li {
margin: 0;
}