Skip to content

Commit cb578b9

Browse files
cscheidjjallaire
authored andcommitted
add scss for style types in reveal, including partial workaround for chrome and safari bugs. Closes #1902
1 parent 0394b0a commit cb578b9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

src/resources/formats/revealjs/quarto.scss

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,3 +523,40 @@ $panel-sidebar-padding: 0.5em;
523523
} @else {
524524
/*! light */
525525
}
526+
527+
/* override theme.scss style for the default styles
528+
529+
Note the need for both the case sensitive flag and the
530+
case-oblivious selectors. This is a workaround for what's
531+
apparently a Chrome and Safari bug:
532+
533+
https://github.com/quarto-dev/quarto-cli/issues/1902#issuecomment-1219783059
534+
*/
535+
536+
.reveal ol[type="a"] {
537+
list-style-type: lower-alpha;
538+
}
539+
540+
.reveal ol[type="a" s] {
541+
list-style-type: lower-alpha;
542+
}
543+
544+
.reveal ol[type="A" s] {
545+
list-style-type: upper-alpha;
546+
}
547+
548+
.reveal ol[type="i"] {
549+
list-style-type: lower-roman;
550+
}
551+
552+
.reveal ol[type="i" s] {
553+
list-style-type: lower-roman;
554+
}
555+
556+
.reveal ol[type="I" s] {
557+
list-style-type: upper-roman;
558+
}
559+
560+
.reveal ol[type="1"] {
561+
list-style-type: decimal;
562+
}

0 commit comments

Comments
 (0)