File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- applyTo : ' **/*.css '
2+ applyTo : ' **/*'
33---
44- 这是一个typora主题项目,项目地址为 https://github.com/caolib/typora-onelight-theme
55- onelight.css 是主题的主样式文件,其中导入了其他样式文件,onelight-dark.css 是暗黑主题的样式文件
Original file line number Diff line number Diff line change 1- @import './onelight/style/list.css' ;
21@import './onelight/style/blockquote.css' ;
32@import './onelight/style/editor.css' ;
43@import './onelight/style/code.css' ;
54@import './onelight/style/table.css' ;
65@import './onelight/style/font.css' ;
76@import './onelight/style/mermaid.css' ;
7+
8+ /* 标题 */
89@import './onelight/style/title/title.css' ;
910/* @import './onelight/style/title/title-colorful.css'; */
11+ /* @import './onelight/style/title/title-colorful-dark.css'; */
12+
13+ /* 列表 */
14+ @import './onelight/style/list/list.css' ;
15+ /* @import './onelight/style/list/list-simple.css'; */
1016
1117
1218/* -------------------------------------------------------- */
Original file line number Diff line number Diff line change 1+ /* 使用原生marker */
2+
3+ # write ul li {
4+ list-style-type : initial;
5+ }
6+
7+ # write ol li {
8+ list-style-type : decimal;
9+ }
10+
11+ /* 删除before样式 */
12+ li ::before {
13+ content : unset !important ;
14+ }
15+
16+
17+ ul li ::marker {
18+ font-size : 25px ;
19+ }
20+
21+ li ::marker {
22+ color : var (--theme-color );
23+ transition : color 0.3s ease;
24+ }
25+
26+ li : hover ::marker {
27+ color : var (--main-red );
28+ }
29+
30+ # write ul li {
31+ list-style-type : initial;
32+ }
33+
34+ # write ul ul li {
35+ list-style-type : square;
36+ }
37+
38+ # write ul ul ul li {
39+ list-style-type : circle;
40+ }
41+
42+ # write ul ul ul ul li {
43+ list-style-type : disclosure-closed;
44+ }
45+
46+ ul > li > ul > li > ul > li > ul > li ::marker {
47+ font-size : 1.2rem ;
48+ }
Original file line number Diff line number Diff line change 66 padding-left : 40px !important ;
77}
88
9- # write ul {
10- list-style-type : disclosure-closed
11- }
12-
13- # write ul ul {
14- list-style-type : square
15- }
16-
17- # write ol {
18- list-style-type : decimal
19- }
20-
219# write li section {
2210 font-size : .9rem ;
2311 font-size : .9rem ;
2412}
2513
26- # write .ol .li ,
27- # write .ul .li ,
2814# write ol li ,
2915# write ul li {
3016 list-style-type : none;
137123 margin-left : -1.8em ;
138124}
139125
126+ li .md-list-item .task-list-item .md-task-list-item ::marker {
127+ content : none;
128+ font-size : inherit;
129+ }
130+
140131/* ---------------->> 删除线 <<---------------- */
141132del {
142133 color : grey;
You can’t perform that action at this time.
0 commit comments