Files
note2any/assets/themes/mweb-vue.css
2025-10-16 14:24:10 +08:00

240 lines
4.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.note2any {
font-size: 16px;
color: #34495e;
line-height: 1.6rem;
letter-spacing: 0;
margin: 0;
overflow-x: hidden;
/* MWeb代码块高亮 */
}
.note2any img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.note2any a {
color: #42b983;
font-weight: 600;
padding: 0 2px;
text-decoration: none;
}
.note2any h1,
.note2any h2,
.note2any h3,
.note2any h4,
.note2any h5,
.note2any h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
font-weight: bold;
line-height: 1.4;
cursor: text;
}
.note2any h1 tt,
.note2any h1 code {
font-size: inherit !important;
}
.note2any h2 tt,
.note2any h2 code {
font-size: inherit !important;
}
.note2any h3 tt,
.note2any h3 code {
font-size: inherit !important;
}
.note2any h4 tt,
.note2any h4 code {
font-size: inherit !important;
}
.note2any h5 tt,
.note2any h5 code {
font-size: inherit !important;
}
.note2any h6 tt,
.note2any h6 code {
font-size: inherit !important;
}
.note2any h2 a,
.note2any h3 a {
color: #34495e;
}
.note2any h1 {
padding-bottom: 0.4rem;
font-size: 2.2rem;
line-height: 1.3;
}
.note2any h2 {
font-size: 1.75rem;
line-height: 1.225;
margin: 35px 0 15px;
padding-bottom: 0.5em;
border-bottom: 1px solid #ddd;
}
.note2any h3 {
font-size: 1.4rem;
line-height: 1.43;
margin: 20px 0 7px;
}
.note2any h4 {
font-size: 1.2rem;
}
.note2any h5 {
font-size: 1rem;
}
.note2any h6 {
font-size: 1rem;
color: #777;
}
.note2any p,
.note2any blockquote,
.note2any ul,
.note2any ol,
.note2any dl,
.note2any table {
margin: 0.8em 0;
}
.note2any li > ol,
.note2any li > ul {
margin: 0 0;
}
.note2any hr {
height: 2px;
padding: 0;
margin: 16px 0;
background-color: #e7e7e7;
border: 0 none;
overflow: hidden;
box-sizing: content-box;
}
.note2any h1 p,
.note2any h2 p,
.note2any h3 p,
.note2any h4 p,
.note2any h5 p,
.note2any h6 p {
margin-top: 0;
}
.note2any li p.first {
display: inline-block;
}
.note2any ul,
.note2any ol {
padding-left: 30px;
}
.note2any ul:first-child,
.note2any ol:first-child {
margin-top: 0;
}
.note2any ul:last-child,
.note2any ol:last-child {
margin-bottom: 0;
}
.note2any blockquote {
border-left: 4px solid #42b983;
padding: 10px 15px;
color: #777;
background-color: rgba(66, 185, 131, 0.1);
}
.note2any table {
padding: 0;
word-break: initial;
border-collapse: collapse;
}
.note2any table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}
.note2any table tr:nth-child(2n),
.note2any thead {
background-color: #fafafa;
}
.note2any table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
}
.note2any table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}
.note2any table tr th:first-child,
.note2any table tr td:first-child {
margin-top: 0;
}
.note2any table tr th:last-child,
.note2any table tr td:last-child {
margin-bottom: 0;
}
.note2any .footnotes hr {
margin-top: 4em;
margin-bottom: 0.5em;
}
.note2any code,
.note2any tt {
border-radius: 2px;
font-family: Roboto Mono, Source Sans Pro, Monaco, courier, monospace !important;
font-size: 0.92rem;
color: #e96900;
background-color: #f8f8f8;
}
.note2any code {
margin: 0 2px;
padding: 2px 4px;
}
.note2any .code-section {
border-radius: 2px;
}
.note2any .code-section pre code {
border: none;
background-color: transparent;
font-size: inherit;
line-height: inherit;
padding: 0;
margin: 0;
text-wrap: nowrap;
color: inherit;
}
/* 代码块 */
.note2any .code-section {
display: flex;
border: solid 1px #e96900;
margin: 1.5em 0;
line-height: 26px;
padding: 0.5em;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
.note2any .code-section pre {
margin: 0;
margin-block-start: 0;
margin-block-end: 0;
white-space: normal;
overflow-x: auto;
padding: 0 0 0 1em;
}
.note2any .code-section code {
display: flex;
text-wrap: nowrap;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
.note2any .code-section ul {
margin: 0;
padding: 0;
margin-block-start: 0;
margin-block-end: 0;
width: fit-content;
flex-shrink: 0;
height: 100%;
line-height: 26px;
list-style-type: none;
}
.note2any .code-section ul > li {
text-align: right;
}