97
97
display : block;
98
98
background-color : rgb (255 , 255 , 255 );
99
99
color : rgb (0 , 0 , 0 );
100
- font-family : arial, verdana, sans-serif;
101
100
line-height : 1.5em ;
102
101
margin-top : 4em ;
103
102
margin-bottom : 2em ;
@@ -384,7 +383,7 @@ dfn {
384
383
385
384
code {
386
385
display : inline;
387
- font-family : courier , verdana , arial , sans-serif ;
386
+ font-family : monospace ;
388
387
}
389
388
390
389
samp {
@@ -472,15 +471,15 @@ list[type="ol"][enum="a"] {
472
471
list-style-type : lower-alpha;
473
472
}
474
473
475
- list [type = "ol" ][enum = "U " ] {
474
+ list [type = "ol" ][enum = "A " ] {
476
475
list-style-type : upper-alpha;
477
476
}
478
477
479
478
list [type = "ol" ][enum = "i" ] {
480
479
list-style-type : lower-roman;
481
480
}
482
481
483
- list [type = "ol" ][enum = "X " ] {
482
+ list [type = "ol" ][enum = "I " ] {
484
483
list-style-type : upper-roman;
485
484
}
486
485
@@ -505,6 +504,35 @@ list > li > list, list li list {
505
504
margin-bottom : 0em ;
506
505
}
507
506
507
+ /*
508
+ Take into account the @start attribute, use manual counters.
509
+ Use list-item::marker to keep lists aligned.
510
+ */
511
+ list [start ]{
512
+ counter-reset : item-count oxy_subtract (attr (start), 1 , integer);
513
+ }
514
+
515
+ list [start ] > li ::marker {
516
+ counter-increment : item-count;
517
+ content : counters (item-count, "." , decimal) ". " ;
518
+ }
519
+
520
+ list [start ][enum = a ] > li ::marker {
521
+ content : counters (item-count, "." , lower-alpha) ". " ;
522
+ }
523
+
524
+ list [start ][enum = A ] > li ::marker {
525
+ content : counters (item-count, "." , upper-alpha) ". " ;
526
+ }
527
+
528
+ list [start ][enum = i ] > li ::marker {
529
+ content : counters (item-count, "." , lower-roman) ". " ;
530
+ }
531
+
532
+ list [start ][enum = I ] > li ::marker {
533
+ content : counters (item-count, "." , upper-roman) ". " ;
534
+ }
535
+
508
536
/* ------------------------------------------------------------- */
509
537
/* definition list */
510
538
/* ------------------------------------------------------------- */
@@ -608,4 +636,4 @@ imggroup > caption {
608
636
font-size : 80% ;
609
637
}
610
638
611
-
639
+
0 commit comments