forked from cloverhearts/quilljs-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quilljs-markdown-common-style.scss
72 lines (69 loc) · 1.42 KB
/
quilljs-markdown-common-style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.ql-container .ql-editor {
ul[data-checked] {
padding-left: 0.4rem;
li {
&:before {
margin-right: 0.6rem;
}
@for $index from 1 through 100 {
&.ql-indent-#{$index} {
padding-left: #{ 1.2 + $index }rem;
}
}
}
}
ul:not([data-checked]) {
padding-left: 1rem;
li:not(.ql-direction-rtl) {
position: relative;
margin: 0;
padding-left: 0.8rem;
&:before {
display: list-item;
position: absolute;
list-style: disc;
width: 0;
top: -0.25em;
left: 1rem;
content: '';
margin-left: 0;
font-size: 1.5em;
}
@for $index from 1 through 100 {
&.ql-indent-#{$index} {
padding-left: #{ 1 + $index }rem;
&:before {
left: #{($index * 1.05) + 1}rem;
list-style: square;
}
}
}
&.ql-indent-1 {
&:before {
list-style: circle;
}
}
}
}
ol {
padding-left: 1rem;
li:not(.ql-direction-rtl) {
position: relative;
margin: 0;
padding-left: 0.8rem;
&:before {
width: 0;
top: -0.25em;
margin-right: 1.1em;
}
@for $index from 1 through 100 {
&.ql-indent-#{$index} {
padding-left: #{ 1 + $index }rem;
&:before {
margin-right: 1.1em;
}
}
}
}
}
}