forked from Eninix/sigil-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
duokanstyle.css
666 lines (666 loc) · 14.4 KB
/
duokanstyle.css
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
/* 西文字体 */
span.duokan-western {
font-family: "DK-SERIF", "Palatino";
}
/* 符号字体 */
span.duokan-symbol {
font-family: "DK-SYMBOL", "Symbol";
}
/* 文字不换行(古诗) */
span.duokan-text-nowrap {
white-space: nowrap;
}
/* 段首大字2行高 */
span.duokan-dropcaps-two {
float: left;
font-size: 2em;
duokan-drop-caps-style: duokan-two-line-caps;
margin-bottom: -0.25em;
}
/* 段首大字3行高 */
span.duokan-dropcaps-three {
float: left;
font-size: 3em;
duokan-drop-caps-style: duokan-three-line-caps;
margin-bottom: -0.15em;
}
/* 代码中文样式 */
span.duokan-code-cn {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
}
/* 超链接 */
a.duokan-hyperlink {
color: blue;
font-style: italic;
text-decoration: underline;
}
/* 多看注 */
img.duokan-footnote {
width: 0.8em;
}
/* 默认有序列表 */
ol.duokan-olist {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
}
/* 无序号有序列表 */
ol.duokan-olist-noindex {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
list-style-type: none;
}
/* 默认无序列表 */
ul.duokan-ulist {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
list-style-type: disc;
}
/* 无序号无序列表 */
ul.duokan-ulist-noindex {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
list-style-type: none;
}
/* 二级列表 */
ul.list-sub2 {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
list-style-type: circle;
margin-left: 1em;
margin-top: 1em;
}
/* 三级列表 */
ul.list-sub3 {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
list-style-type: square;
margin-left: 2em;
margin-top: 1em;
}
/* 图片左绕排50%宽度 */
div.duokan-float-left {
width: 50%;
float: left;
margin-right: 0.5em;
margin-bottom: 0.5em;
text-align: center;
}
/* 图片左绕排30%宽度-细高图 */
div.duokan-float-left30 {
width: 30%;
float: left;
margin-right: 0.5em;
margin-bottom: 0.5em;
text-align: center;
}
/* 图片右绕排50%宽度 */
div.duokan-float-right {
width: 50%;
float: right;
margin-left: 0.5em;
margin-bottom: 0.5em;
text-align: center;
}
/* 图片右绕排30%宽度-细高图 */
div.duokan-float-right30 {
width: 30%;
float: right;
margin-left: 0.5em;
margin-bottom: 0.5em;
text-align: center;
}
/* 图片居中80%宽度 */
div.duokan-center {
width: 80%;
margin: 1em auto 1em auto;
text-align: center;
}
/* 图片居中60%宽度 */
div.duokan-center60 {
width: 60%;
margin: 1em auto 1em auto;
text-align: center;
}
/* 图片居中30%宽度 */
div.duokan-center30 {
width: 30%;
margin: 1em auto 1em auto;
text-align: center;
}
/* 图片-无图说 */
img.duokan-image {
width: 100%;
}
/* 图片-有图说 */
img.duokan-image-note {
width: 100%;
font-size: 16px;
margin-bottom: 0.5em;
}
/* 图说楷体居左顶格 */
p.duokan-note {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 14px;
text-indent: 0em;
duokan-text-indent: 0em;
text-align: justify;
}
/* 图说楷体居中 */
p.duokan-note-center {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 14px;
text-align: center;
}
/* 图说楷体居右 */
p.duokan-note-right {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 14px;
text-align: right;
}
/* 表格 */
table.duokan-tablebody {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-weight: normal;
font-size: 14px;
margin-top: 1em;
margin-bottom: 2em;
margin-left: auto;
margin-right: auto;
}
/* 并列图表格样式 */
table.duokan-gallery-image {
font-size: 1em;
width: 100%;
margin: 1em auto 1em auto;
border-spacing: 0.3em 0.3em;
}
/* 并列图单元格样式 */
td.duokan-gallery-cell {
text-indent: 0em;
duokan-text-indent: 0em;
}
/* 格内图样式 */
div.duokan-in-cell {
width: 100%;
}
/* 代码样式 */
pre.duokan-code {
font-family: "DK-CODE", "Inconsolata";
font-size: 14px;
}
/* 文段内-部分代码字体 */
span.duokan-nowestern-code-span {
font-family: "DK-CODE", "Inconsolata";
color: #91531d;
}
/* 文段内-部分代码字体-加粗 */
span.duokan-nowestern-code-span-b {
font-family: "DK-CODE", "Inconsolata";
color: #91531d;
font-weight: bold;
}
/* 文段内-部分代码字体-斜体 */
span.duokan-nowestern-code-span-i {
font-family: "DK-CODE", "Inconsolata";
color: #91531d;
font-style: italic;
}
/* 文段内-部分代码字体-粗体斜体 */
span.duokan-nowestern-code-span-b-i {
font-family: "DK-CODE", "Inconsolata";
color: #91531d;
font-weight: bold;
font-style: italic;
}
/* 代码块-部分加粗 */
span.code-b {
font-weight: bold;
color: #91531d;
}
/* 代码块-部分斜体加粗 */
span.code-italic-b {
font-style: italic;
font-weight: bold;
color: #91531d;
}
/* 代码块-部分注释色 */
span.note {
color: #008000;
}
/* 代码块-部分注释色加粗 */
span.note-b {
color: #008000;
font-weight: bold;
}
/* 版权信息页标题 */
h4.duokan-copyright-title {
font-size: 24px;
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-weight: normal;
text-align: center;
}
/* 版权信息页正文 */
p.duokan-copyright-bodytext {
font-family: "DK-SONGTI", "方正宋三简体","方正书宋","宋体";
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
}
/* 拼音样式 */
ruby {
ruby-align: center;
margin-right: 0.5em;
}
/* 拼音尾字样式 */
ruby.duokan-rubylast {
margin-right: 0em;
}
/* 拼音文字样式 */
ruby > rt {
font-family: "DK-SYMBOL", "Symbol";
font-size: 0.5em;
}
/* 一级标题小标宋居中 */
h1.auxiliary-title1 {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-size: 28px;
text-align: center;
color: #91531d;
font-weight: normal;
margin-top: 2.5em;
margin-bottom: 2.5em;
}
/* 二级标题 */
h2.chapter-title2 {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-size: 26px;
text-indent: 0em;
duokan-text-indent: 0em;
color: #91531d;
font-weight: normal;
margin-top: 2em;
margin-bottom: 1.8em;
}
/* 三级标题 */
h3.chapter-title3 {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-size: 22px;
text-indent: 0em;
duokan-text-indent: 0em;
color: #91531d;
font-weight: normal;
margin-top: 2em;
margin-bottom: 1.8em;
}
/* 内文四级标题 */
h4.chapter-title4 {
font-size: 20px;
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-weight: normal;
duokan-text-indent: 0em;
text-indent: 0em;
margin-top: 2em;
margin-bottom: 1.8em;
color: #91531d;
}
/* 内文五级标题 */
h5.chapter-title5 {
font-size: 18px;
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-weight: normal;
duokan-text-indent: 0em;
text-indent: 0em;
border-left: solid 5px #d9d9d9;
padding-left: 0.7em;
margin-top: 2em;
margin-bottom: 1.8em;
color: #91531d;
}
/* 内文六级标题 */
h6.chapter-title6 {
font-size: 16px;
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-weight: normal;
duokan-text-indent: 0em;
text-indent: 0em;
margin-top: 2em;
margin-bottom: 1.8em;
margin-left: 2em;
color: #91531d;
}
/* 章前语区域 */
div.chapter-pre-div {
font-size: 16px;
padding: 1em;
margin: 3em 0em 1em 0em;
border-left: solid 1px #e0e0e0;
}
/* 章前语楷体 */
p.chapter-pre-text {
font-family: "DK-KAITI", "方正楷体","华文楷体","楷体";
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
}
/* 正文宋体 */
p.bodycontent-text {
font-family: "DK-SONGTI", "方正宋三简体", "方正书宋", "宋体";
font-size: 16px;
duokan-text-indent: 2em;
text-indent: 2em;
}
/* 正文宋体-强制左对齐 */
p.bodycontent-text-left {
font-family: "DK-SONGTI", "方正宋三简体", "方正书宋", "宋体";
font-size: 16px;
text-align: left;
duokan-text-indent: 2em;
text-indent: 2em;
}
/* 正文宋体-强制左对齐顶格 */
p.bodycontent-text-left0 {
font-family: "DK-SONGTI", "方正宋三简体", "方正书宋", "宋体";
font-size: 16px;
text-align: left;
duokan-text-indent: 0em;
text-indent: 0em;
}
/* 引文黑体标题居中 */
p.reference-title {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-size: 16px;
text-align: center;
}
/* 引文楷体 */
p.reference-text {
font-family: "DK-KAITI", "方正楷体","华文楷体","楷体";
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
}
/* 引文楷体顶格 */
p.letter-head {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
duokan-text-indent: 0em;
text-indent: 0em;
}
/* 署名楷体居右 */
p.signature {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
text-align: right;
}
/* 诗集编号小标宋居中 */
h4.num-tilte {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-weight: normal;
font-size: 18px;
margin-bottom: 5em;
color: #91531d;
text-align: center;
margin-top: 2em;
}
/* 部分斜体 */
span.xieti {
font-style: italic;
}
/* 部分斜体加粗 */
span.italic-b {
font-style: italic;
font-weight: bold;
}
/* 部分加粗 */
span.bold {
font-weight: bold;
}
/* 部分楷体 */
span.kaiti {
font-family: "DK-KAITI","方正楷体","华文楷体","楷体";
}
/* 部分楷体加粗 */
span.kaiti-jiacu {
font-family: "DK-KAITI","方正楷体","华文楷体","楷体";
font-weight: bold;
}
/* 部分黑体加粗 */
span.heiti {
font-family: "DK-DENGXIAN";
font-weight: bold;
}
/* 楷体自然段 */
p.kaiti-duan {
font-family: "DK-KAITI", "方正楷体","华文楷体","楷体";
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
}
/* 楷体加粗自然段 */
p.kaiti-duan-jiacu {
font-family: "DK-KAITI", "方正楷体","华文楷体","楷体";
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
font-weight: bold;
}
/* 黑体加粗自然段 */
p.heiti-duan {
font-family: "DK-DENGXIAN";
font-weight: bold;
font-size: 16px;
text-indent: 2em;
duokan-text-indent: 2em;
}
/* 下划线 */
span.xiahuaxian {
text-decoration: underline;
}
/* 音频 */
audio.yinpin {
height: 1.2em;
vertical-align: duokan-middle-line;
}
/* 视频 */
video.shipin {
width: 100%;
margin: 1em auto 1em auto;
text-align: center;
}
/* 1字高图标 */
img.formula-1em {
height: 1em;
vertical-align: duokan-middle-line;
}
/* 1.5字高图标 */
img.formula-1-5em {
height: 1.5em;
vertical-align: duokan-middle-line;
}
/* 2字高图标 */
img.formula-2em {
height: 2em;
vertical-align: duokan-middle-line;
}
/* 2.5字高图标 */
img.formula-2-5em {
height: 2.5em;
vertical-align: duokan-middle-line;
}
/* 填充的点着重号 */
span.emphasis-filled-dot {
text-emphasis: filled dot;
}
/* 上标字体 */
span.math-super {
font-size: 0.7em;
vertical-align: super;
}
/* 下标字体 */
span.math-sub {
font-size: 0.7em;
vertical-align: sub;
}
/* 上标倾斜字体 */
span.math-super-italic {
font-size: 0.7em;
font-style: italic;
vertical-align: super;
}
/* 下标倾斜字体 */
span.math-sub-italic {
font-size: 0.7em;
font-style: italic;
vertical-align: sub;
}
/* 图片-有图注 */
img.duokan-image2 {
width: 100%;
font-size: 16px;
margin-bottom: 0.5em;
}
/* 图注居中 */
p.duokan-note2 {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 14px;
text-align: center;
}
/* 图注居右 */
p.duokan-note3 {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 14px;
text-align: right;
}
/* 扉页章标题居右 */
h2.feiye-zi {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
text-align: right;
font-size: 16px;
color: #2F4F4F;
margin-top: 30%;
padding-right: 0.5em;
border-right: solid 2px #2F4F4F;
padding-bottom: 0.3em;
font-weight: normal;
}
/* 扉页文字居右 */
p.feiye-zi-2 {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
text-align: right;
font-size: 15px;
color: #2F4F4F;
margin-top: 5%;
padding-bottom: 0.1em;
}
/* 章标题居左带细线 */
h2.bodycontent-title-2 {
color: #1f4a92;
font-size: 22px;
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-weight: normal;
border-bottom: solid 1px #1f4a92;
padding: 0.2em 0em 0.5em 0em;
duokan-text-indent: 0em;
text-indent: 0em;
}
/* 章标题居左带粗线 */
h2.bodycontent-prefix-text-top {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-size: 22px;
color: #91531d;
font-weight: normal;
margin-top: 2%;
duokan-text-indent: 0em;
text-indent: 0em;
padding-bottom: 1em;
border-bottom: solid 4px #e8c696;
}
/* 章标题居右 */
h2.preface-title-two {
font-size: 22px;
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
text-align: right;
font-weight: normal;
color: #cf181a;
margin-bottom: 3em;
}
/* 章标题居中带虚线 */
h2.chapter-title-center {
font-family: "DK-XIAOBIAOSONG", "方正小标宋简体";
font-weight: normal;
font-size: 22px;
color: #478686;
text-align: center;
border-bottom: dashed 1px #478686;
margin-bottom: 2em;
padding: 0.3em 0em 0.3em 0em;
}
/* 二级标题 */
h3.title2 {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-size: 18px;
duokan-text-indent: 0em;
text-indent: 0em;
font-weight: normal;
color: #91531d;
margin-top: 2.2em;
margin-bottom: 1.4em;
}
/* 三级标题 */
h4.title3 {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-size: 16px;
duokan-text-indent: 0em;
text-indent: 0em;
font-weight: normal;
color: #91531d;
margin-left: 2em;
margin-top: 2.2em;
margin-bottom: 1.4em;
}
/* 正文等线体 */
p.bodycontent-text-ds {
font-family: "DK-DENGXIAN";
font-size: 16px;
duokan-text-indent: 2em;
text-indent: 2em;
}
/* 正文黑体 */
p.bodycontent-text-ht {
font-family: "DK-HEITI", "方正兰亭黑简体", "黑体";
font-size: 16px;
duokan-text-indent: 2em;
text-indent: 2em;
}
/* 引文 */
p.bodycontent-reference-text {
font-family: "DK-KAITI", "方正楷体", "华文楷体", "楷体";
font-size: 16px;
duokan-text-indent: 2em;
text-indent: 2em;
}
/* 文字区域直角块紫色填充 */
div.body-quotation-background {
background-color:#ecf1f8;
font-size: 16px;
padding: 0.8em 0.5em 0.8em 0.5em;
margin-left: 0.5em;
margin-right:0.5em;
}
/* 文字区域圆角块蓝灰色填充 */
div.body-quotation-background2 {
background-color:#D6E0E8;
font-size: 16px;
padding: 0.8em 0.5em 0.8em 0.5em;
margin-left: 0.5em;
margin-right:0.5em;
border-radius: 0.5em 0.5em 0.5em 0.5em;
}
/* 文字区域圆角块灰绿色填充 */
div.body-quotation-background3 {
background-color: #E2EDE3;
font-size: 16px;
padding: 0.8em 0.5em 0.8em 0.5em;
margin-left: 0.5em;
margin-right:0.5em;
border-radius: 0.5em 0.5em 0.5em 0.5em;
}