242 lines
4.5 KiB
CSS
242 lines
4.5 KiB
CSS
.note2any {
|
|
word-break: break-word;
|
|
line-height: 1.75;
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
overflow-x: hidden;
|
|
color: #333;
|
|
}
|
|
.note2any h1,
|
|
.note2any h2,
|
|
.note2any h3,
|
|
.note2any h4,
|
|
.note2any h5,
|
|
.note2any h6 {
|
|
line-height: 1.5;
|
|
margin-top: 35px;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 5px;
|
|
}
|
|
.note2any h1:first-child,
|
|
.note2any h2:first-child,
|
|
.note2any h3:first-child,
|
|
.note2any h4:first-child,
|
|
.note2any h5:first-child,
|
|
.note2any h6:first-child {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.note2any h1::before,
|
|
.note2any h2::before,
|
|
.note2any h3::before,
|
|
.note2any h4::before,
|
|
.note2any h5::before,
|
|
.note2any h6::before {
|
|
content: "#";
|
|
display: inline-block;
|
|
color: #3eaf7c;
|
|
padding-right: 0.23em;
|
|
}
|
|
.note2any h1 {
|
|
position: relative;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 5px;
|
|
}
|
|
.note2any h1::before {
|
|
font-size: 2.5rem;
|
|
}
|
|
.note2any h2 {
|
|
padding-bottom: 0.5rem;
|
|
font-size: 2.2rem;
|
|
border-bottom: 1px solid #ececec;
|
|
}
|
|
.note2any h3 {
|
|
font-size: 1.5rem;
|
|
padding-bottom: 0;
|
|
}
|
|
.note2any h4 {
|
|
font-size: 1.25rem;
|
|
}
|
|
.note2any h5 {
|
|
font-size: 1rem;
|
|
}
|
|
.note2any h6 {
|
|
margin-top: 5px;
|
|
}
|
|
.note2any p {
|
|
line-height: inherit;
|
|
margin-top: 22px;
|
|
margin-bottom: 22px;
|
|
}
|
|
.note2any strong {
|
|
color: #3eaf7c;
|
|
}
|
|
.note2any img {
|
|
max-width: 100%;
|
|
border-radius: 2px;
|
|
display: block;
|
|
margin: auto;
|
|
border: 3px solid rgba(62, 175, 124, 0.2);
|
|
}
|
|
.note2any hr {
|
|
border-top: 1px solid #3eaf7c;
|
|
border-bottom: none;
|
|
border-left: none;
|
|
border-right: none;
|
|
margin-top: 32px;
|
|
margin-bottom: 32px;
|
|
}
|
|
.note2any a {
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
color: #3eaf7c;
|
|
}
|
|
.note2any table {
|
|
display: inline-block !important;
|
|
font-size: 12px;
|
|
width: auto;
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
border: solid 1px #3eaf7c;
|
|
}
|
|
.note2any thead {
|
|
background: #3eaf7c;
|
|
color: #fff;
|
|
text-align: left;
|
|
}
|
|
.note2any tr:nth-child(2n) {
|
|
background-color: rgba(62, 175, 124, 0.2);
|
|
}
|
|
.note2any th,
|
|
.note2any td {
|
|
padding: 12px 7px;
|
|
line-height: 24px;
|
|
}
|
|
.note2any td {
|
|
min-width: 120px;
|
|
}
|
|
.note2any blockquote {
|
|
color: #666;
|
|
padding: 1px 23px;
|
|
margin: 22px 0;
|
|
border-left: 0.5rem solid rgba(62, 175, 124, 0.6);
|
|
border-color: #42b983;
|
|
background-color: #f8f8f8;
|
|
}
|
|
.note2any blockquote > p {
|
|
margin: 10px 0;
|
|
}
|
|
.note2any details {
|
|
border: none;
|
|
outline: none;
|
|
border-left: 4px solid #3eaf7c;
|
|
padding-left: 10px;
|
|
margin-left: 4px;
|
|
}
|
|
.note2any details summary {
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: none;
|
|
background: white;
|
|
margin: 0px -17px;
|
|
}
|
|
.note2any details summary::-webkit-details-marker {
|
|
color: #3eaf7c;
|
|
}
|
|
.note2any ol,
|
|
.note2any ul {
|
|
padding-left: 28px;
|
|
}
|
|
.note2any ol li,
|
|
.note2any ul li {
|
|
margin-bottom: 0;
|
|
list-style: inherit;
|
|
}
|
|
.note2any ol li .task-list-item,
|
|
.note2any ul li .task-list-item {
|
|
list-style: none;
|
|
}
|
|
.note2any ol li .task-list-item ul,
|
|
.note2any ul li .task-list-item ul,
|
|
.note2any ol li .task-list-item ol,
|
|
.note2any ul li .task-list-item ol {
|
|
margin-top: 0;
|
|
}
|
|
.note2any ol ul,
|
|
.note2any ul ul,
|
|
.note2any ol ol,
|
|
.note2any ul ol {
|
|
margin-top: 3px;
|
|
}
|
|
.note2any ol li {
|
|
padding-left: 6px;
|
|
}
|
|
.note2any ol li::marker {
|
|
color: #3eaf7c;
|
|
}
|
|
.note2any ul li::marker {
|
|
color: #3eaf7c;
|
|
}
|
|
.note2any .footnotes hr {
|
|
margin-top: 4em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
.note2any code {
|
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
word-break: break-word;
|
|
padding: 0.2rem 0.5rem;
|
|
margin: 0;
|
|
color: #3eaf7c;
|
|
font-size: 0.85em;
|
|
background-color: rgba(27, 31, 35, 0.05);
|
|
border-radius: 3px;
|
|
}
|
|
.note2any .code-section {
|
|
border-radius: 6px;
|
|
}
|
|
.note2any .code-section pre code {
|
|
border: none;
|
|
background-color: transparent;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
text-wrap: nowrap;
|
|
}
|
|
|
|
/* 代码块 */
|
|
.note2any .code-section {
|
|
display: flex;
|
|
border: solid 1px #3eaf7c;
|
|
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;
|
|
} |