feat: improve img style

pull/25/head
fantasticit 2022-04-03 20:21:48 +08:00
parent c5adad8b37
commit a3f07e05a8
2 changed files with 14 additions and 20 deletions

View File

@ -1,18 +1,8 @@
.ProseMirror {
font-family:
'Chinese Quote',
'Segoe UI',
Roboto,
RobotoNum,
'PingFang SC',
'Hiragino Sans GB',
'Microsoft YaHei',
'Helvetica Neue',
Helvetica,
Arial,
sans-serif;
font-family: 'Chinese Quote', 'Segoe UI', Roboto, RobotoNum, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.74;
letter-spacing: .008em;
letter-spacing: 0.008em;
color: var(--semi-color-text-0);
word-break: break-word;
word-wrap: break-word;
@ -34,19 +24,19 @@
}
p {
margin-top: .75rem;
margin-top: 0.75rem;
margin-bottom: 0;
font-size: 1em;
font-weight: normal;
line-height: 1.714;
letter-spacing: -.005em;
letter-spacing: -0.005em;
}
blockquote {
box-sizing: border-box;
padding-left: 10px;
border-left: 2px solid var(--semi-color-fill-2);
margin: .75rem 0;
margin: 0.75rem 0;
}
hr {
@ -80,3 +70,11 @@
/* stylelint-disable-next-line declaration-block-no-duplicate-properties */
cursor: col-resize;
}
body[theme-mode='dark'] {
.ProseMirror {
img {
opacity: 0.75;
}
}
}

View File

@ -280,8 +280,4 @@ body[theme-mode='dark'] {
color: #ffdcd7;
background-color: #67060c;
}
img {
opacity: 0.75;
}
}