Notes2/static/css/markdown.css
2026-06-08 22:24:28 +02:00

105 lines
1.4 KiB
CSS

.el-node-markdown {
padding-top: 16px;
.heading-container {
display: grid;
grid-template-columns: min-content 1fr;
grid-gap: 16px;
white-space: nowrap;
align-items: center;
margin-top: 32px;
margin-bottom: 8px;
&:first-child {
margin-top: 32px;
}
.line {
border-bottom: 1px solid var(--line-color);
}
}
h1 {
border-bottom: 1px solid #ccc;
display: inline-block;
font-size: 1.25em;
border-radius: 8px;
color: #fff;
background-color: var(--color1);
padding: 4px 12px;
margin-top: 0px;
margin-bottom: 0px;
}
h2 {
font-size: 1.25em;
margin-top: 0px;
margin-bottom: 0px;
color: var(--color1);
}
h2+.line,
h3+.line {
border-bottom: none !important;
}
h3:before {
font-size: 1.0em;
content: "> ";
color: var(--color1);
}
a {
color: var(--color1);
}
p {
line-height: 150%;
}
img {
max-width: var(--thumbnail-width);
max-height: var(--thumbnail-height);
}
table {
border: 1px solid #ccc;
border-collapse: collapse;
margin-top: 14px;
th {
text-align: left;
padding: 8px;
}
th,
td {
border: 1px solid #ccc;
padding: 8px;
}
}
code {
background-color: #f8f8f8;
border: 1px solid #ccc;
padding: 2px 4px;
border-radius: 4px;
}
pre {
background-color: #f8f8f8;
border: 1px solid #ccc;
padding: 8px;
border-radius: 4px;
white-space: pre-wrap;
code {
border: unset;
padding: unset;
}
}
}