Files
note2any/assets/themes/mweb-indigo.css
2025-10-16 14:03:45 +08:00

184 lines
3.6 KiB
CSS

.note2any {
padding: 0 1em;
color: #595959;
font-size: 16px;
line-height: 1.8em;
background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0);
background-size: 20px 20px;
background-position: 50%;
word-break: break-all;
/* 主题自定义 */
/* 主题自定义 end */
/* 布局,一般不需要改动 */
}
.note-to-mp blockquote {
margin-left: 0;
background-color: #ebf4ff;
border-color: #7f9cf5;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
color: #667eea;
}
.note-to-mp strong {
color: #5a67d8;
}
.note-to-mp a {
border-color: #667eea;
}
.note-to-mp blockquote,
.note-to-mp details,
.note-to-mp dl,
.note-to-mp ol,
.note-to-mp p,
.note-to-mp pre,
.note-to-mp table,
.note-to-mp ul {
margin-bottom: 1rem;
}
.note-to-mp ol {
list-style: decimal;
}
.note-to-mp ul {
list-style: disc;
}
.note-to-mp ol,
.note-to-mp ul {
padding-left: 2em;
}
.note-to-mp h1,
.note-to-mp h2 {
border-color: #5a67d8;
border-style: solid;
border-top-width: 0px;
border-right-width: 0px;
font-weight: 600;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
padding-left: 0.75rem;
}
.note-to-mp h1,
.note-to-mp h2 {
border-bottom: 1px solid #eaecef !important;
border-left-width: 6px;
}
.note-to-mp h1,
.note-to-mp h2,
.note-to-mp h3,
.note-to-mp h4,
.note-to-mp h5,
.note-to-mp h6 {
margin-bottom: 16px;
line-height: 1.25;
}
.note-to-mp blockquote {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
padding-right: 1rem;
border-left: 0.25em solid;
}
.note-to-mp blockquote > :last-child {
margin-bottom: 0;
}
.note-to-mp blockquote > :first-child {
margin-top: 0;
}
.note-to-mp strong {
font-weight: bold;
}
.note-to-mp strong::before {
content: "「";
}
.note-to-mp strong::after {
content: "」";
}
.note-to-mp a {
text-decoration: none;
border-bottom: 1px solid;
}
.note-to-mp .footnote-ref {
border-width: 0px;
}
.note-to-mp picture img {
border-radius: 6px;
display: block;
margin: 10px auto;
-o-object-fit: contain;
object-fit: contain;
box-shadow: 2px 4px 7px #999;
}
.note-to-mp img {
max-width: 100%;
display: block;
margin: 10px auto;
object-fit: contain;
border-radius: 6px;
box-shadow: 2px 4px 7px #999;
}
.note-to-mp picture {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 6px;
margin-bottom: 6px;
}
.note-to-mp .footnotes {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.note-to-mp .footnotes hr {
margin-top: 4em;
margin-bottom: 0.5em;
}
.note-to-mp code,
.note-to-mp a {
color: #5a67d8;
}
.note-to-mp a {
border-color: #667eea;
}
.note-to-mp code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
background-color: #ebf4ff;
}
.note-to-mp pre > code {
background-color: transparent;
}
/* 代码块 */
.note-to-mp .code-section {
display: flex;
border: solid 1px #5a67d8;
margin: 1.5em 0;
line-height: 26px;
padding: 0.5em;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
.note-to-mp .code-section pre {
margin: 0;
margin-block-start: 0;
margin-block-end: 0;
white-space: normal;
overflow-x: auto;
padding: 0 0 0 1em;
}
.note-to-mp .code-section code {
display: flex;
text-wrap: nowrap;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
.note-to-mp .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;
}
.note-to-mp .code-section ul > li {
text-align: right;
}