@@ -301,36 +301,62 @@ dd {
301
301
.list--toc {
302
302
padding : 0 ;
303
303
list-style : none ;
304
- counter-reset : toc- counter;
304
+ counter-reset : toc- h2- counter;
305
+
306
+ ul {
307
+ list-style : none ;
308
+ }
305
309
306
310
> li {
307
- counter-increment : toc- counter;
311
+ counter-increment : toc- h2 - counter;
308
312
309
313
& ::before {
310
- content : counter (toc-counter ) " \00A0 " " \00A0 " ;
314
+ content : counter (toc-h2- counter ) " \00A0 " " \00A0 " ;
311
315
}
312
316
313
317
> ul {
314
- list-style : none ;
315
- counter-reset : toc- sub- counter;
318
+ counter-reset : toc- h3- counter;
316
319
317
320
> li {
318
- counter-increment : toc- sub - counter;
321
+ counter-increment : toc- h3 - counter;
319
322
320
323
& ::before {
321
- content : counter (toc-counter ) " \002E " counter (toc-sub -counter ) " \00A0 " " \00A0 " ;
324
+ content : counter (toc-h2- counter ) " \002E " counter (toc-h3 -counter ) " \00A0 " " \00A0 " ;
322
325
}
323
- }
324
326
325
- > ul {
326
- list-style : none ;
327
- counter-reset : toc- sub- sub- counter;
327
+ > ul {
328
+ counter-reset : toc- h4- counter;
329
+
330
+ > li {
331
+ counter-increment : toc- h4- counter;
332
+
333
+ & ::before {
334
+ content : counter (toc-h2-counter ) " \002E " counter (toc-h3-counter ) " \002E " counter (toc-h4-counter ) " \00A0 " " \00A0 " ;
335
+ }
336
+
337
+ > ul {
338
+ counter-reset : toc- h5- counter;
339
+
340
+ > li {
341
+ counter-increment : toc- h5- counter;
342
+
343
+ & ::before {
344
+ content : counter (toc-h2-counter ) " \002E " counter (toc-h3-counter ) " \002E " counter (toc-h4-counter ) " \002E " counter (toc-h5-counter ) " \00A0 " " \00A0 " ;
345
+ }
346
+ }
347
+
348
+ ul {
349
+ counter-reset : toc- h6- counter;
328
350
329
- > li {
330
- counter-increment : toc- sub - sub - counter;
351
+ li {
352
+ counter-increment : toc- h6 - counter;
331
353
332
- & ::before {
333
- content : counter (toc-counter ) " \002E " counter (toc-sub-counter ) " \002E " counter (toc-sub-sub-counter ) " \00A0 " " \00A0 " ;
354
+ & ::before {
355
+ content : counter (toc-h2-counter ) " \002E " counter (toc-h3-counter ) " \002E " counter (toc-h4-counter ) " \002E " counter (toc-h5-counter ) " \002E " counter (toc-h6-counter ) " \00A0 " " \00A0 " ;
356
+ }
357
+ }
358
+ }
359
+ }
334
360
}
335
361
}
336
362
}
@@ -348,31 +374,51 @@ dd {
348
374
*/
349
375
350
376
.article--with-toc {
351
- counter-reset : heading- counter;
377
+ counter-reset : heading- h2 - counter;
352
378
353
379
h2 {
354
- counter-reset : heading- sub - counter;
380
+ counter-reset : heading- h3 - counter;
355
381
}
356
382
357
383
h2 ::before {
358
- content : counter (heading-counter ) " \00A0 " " \00A0 " ;
384
+ content : counter (heading-h2- counter ) " \00A0 " " \00A0 " ;
359
385
opacity : 0.66 ;
360
- counter-increment : heading- counter;
386
+ counter-increment : heading- h2 - counter;
361
387
}
362
388
363
389
h3 {
364
- counter-reset : heading- sub - sub - counter;
390
+ counter-reset : heading- h4 - counter;
365
391
}
366
392
367
393
h3 ::before {
368
- content : counter (heading-counter ) " \002E " counter (heading-sub -counter ) " \00A0 " " \00A0 " ;
394
+ content : counter (heading-h2- counter ) " \002E " counter (heading-h3 -counter ) " \00A0 " " \00A0 " ;
369
395
opacity : 0.66 ;
370
- counter-increment : heading- sub- counter;
396
+ counter-increment : heading- h3- counter;
397
+ }
398
+
399
+ h4 {
400
+ counter-reset : heading- h5- counter;
371
401
}
372
402
373
403
h4 ::before {
374
- content : counter (heading-counter ) " \002E " counter (heading-sub-counter ) " \002E " counter (heading-sub-sub-counter ) " \00A0 " " \00A0 " ;
404
+ content : counter (heading-h2-counter ) " \002E " counter (heading-h3-counter ) " \002E " counter (heading-h4-counter ) " \00A0 " " \00A0 " ;
405
+ opacity : 0.66 ;
406
+ counter-increment : heading- h4- counter;
407
+ }
408
+
409
+ h5 {
410
+ counter-reset : heading- h6- counter;
411
+ }
412
+
413
+ h5 ::before {
414
+ content : counter (heading-h2-counter ) " \002E " counter (heading-h3-counter ) " \002E " counter (heading-h4-counter ) " \002E " counter (heading-h5-counter ) " \00A0 " " \00A0 " ;
415
+ opacity : 0.66 ;
416
+ counter-increment : heading- h5- counter;
417
+ }
418
+
419
+ h6 ::before {
420
+ content : counter (heading-h2-counter ) " \002E " counter (heading-h3-counter ) " \002E " counter (heading-h4-counter ) " \002E " counter (heading-h5-counter ) " \002E " counter (heading-h6-counter ) " \00A0 " " \00A0 " ;
375
421
opacity : 0.66 ;
376
- counter-increment : heading- sub - sub - counter;
422
+ counter-increment : heading- h6 - counter;
377
423
}
378
424
}
0 commit comments