Skip to content

Commit 6cef0f6

Browse files
committed
fix(admin): 修复文章图片预览样式
1 parent e445010 commit 6cef0f6

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

apps/admin/src/style.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,19 +1690,64 @@ code {
16901690
border: 1px solid var(--line);
16911691
border-radius: 14px;
16921692
background: rgba(255, 255, 255, 0.8);
1693+
color: var(--text);
1694+
line-height: 1.72;
1695+
overflow-wrap: anywhere;
16931696
}
16941697

16951698
.markdown-preview :is(h1, h2, h3, h4, p, ul, ol, blockquote) {
16961699
margin-top: 0;
16971700
}
16981701

1702+
.markdown-preview :is(ul, ol) {
1703+
padding-left: 1.2rem;
1704+
}
1705+
1706+
.markdown-preview :is(li + li, p + p) {
1707+
margin-top: 0.6rem;
1708+
}
1709+
1710+
.markdown-preview img {
1711+
display: block;
1712+
width: 100%;
1713+
max-width: 100%;
1714+
height: auto;
1715+
margin: 1rem 0;
1716+
border: 1px solid rgba(15, 109, 100, 0.12);
1717+
border-radius: 12px;
1718+
background: rgba(255, 255, 255, 0.82);
1719+
box-shadow: 0 12px 28px rgba(33, 41, 35, 0.08);
1720+
}
1721+
1722+
.markdown-preview a {
1723+
color: var(--accent-strong);
1724+
font-weight: 700;
1725+
text-decoration: underline;
1726+
text-underline-offset: 0.16em;
1727+
}
1728+
16991729
.markdown-preview blockquote {
17001730
margin-left: 0;
17011731
padding-left: 1rem;
17021732
border-left: 3px solid rgba(15, 109, 100, 0.24);
17031733
color: var(--muted);
17041734
}
17051735

1736+
.markdown-preview pre {
1737+
margin: 1rem 0;
1738+
padding: 0.9rem 1rem;
1739+
overflow-x: auto;
1740+
border-radius: 12px;
1741+
background: rgba(17, 24, 39, 0.95);
1742+
color: rgba(240, 245, 244, 0.96);
1743+
}
1744+
1745+
.markdown-preview pre code {
1746+
padding: 0;
1747+
background: transparent;
1748+
color: inherit;
1749+
}
1750+
17061751
.field-inline-meta-row {
17071752
display: flex;
17081753
align-items: center;

0 commit comments

Comments
 (0)