| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- .ProseMirror, .ProseMirror-static {
- outline: 0;
- border: 0;
- font-size: 16px;
- white-space: break-spaces;
- &:not(.ProseMirror-static) {
- user-select: text;
- }
- ::selection {
- background-color: rgba($themeColor, 0.25);
- color: inherit;
- }
- p {
- margin: 0;
- }
- .empty {
- margin: 0;
- font-size: 0;
- padding: 0;
- }
- p:first-child {
- margin-top: 0;
- // font-size: 0;
- }
- ul, ol, li {
- margin: 0;
- }
- ul {
-
- list-style-type: none;
- padding-left: 1.5em; /* 为伪元素留出空间 */
- li::before {
- content: "•";
- list-style-type: none;
- padding: 0.125em 0;
- float: left;
- margin-right: 0.4em;
- }
- li.empty-li::before {
- font-size: 0;
- content: none !important;
- }
- }
- ol {
- list-style-type: decimal;
- padding-inline-start: 1.25em;
- li {
- list-style-type: inherit;
- padding: 0.125em 0;
- float: left;
- margin-right: 0.4em;
- }
- li.empty-li::before {
- content: none !important;
- }
- }
- code {
- background-color: #f1f1f1;
- padding: 2px 6px;
- margin: 0 1px;
- border-radius: 4px;
- font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
- }
- sup {
- vertical-align: super;
- font-size: smaller;
- }
- sub {
- vertical-align: baseline;
- }
- blockquote {
- overflow: hidden;
- padding: 0 1.2em;
- margin: 0.6em 0;
- font-style: italic;
- border-left: 4px solid #e0e0e0;
- }
- [data-indent='1'] {
- padding-left: 1em;
- }
- [data-indent='2'] {
- padding-left: 2em;
- }
- [data-indent='3'] {
- padding-left: 3em;
- }
- [data-indent='4'] {
- padding-left: 4em;
- }
- [data-indent='5'] {
- padding-left: 5em;
- }
- [data-indent='6'] {
- padding-left: 6em;
- }
- [data-indent='7'] {
- padding-left: 7em;
- }
- [data-indent='8'] {
- padding-left: 8em;
- }
- }
- .ProseMirror-selectednode {
- outline: none !important;
- }
|