@@ -455,3 +455,157 @@ div.h5p-fullscreen {
455
455
.h5p-dialog-ok-button : active {
456
456
background : # eeffee ;
457
457
}
458
+
459
+ /* General (major) h5p packages/libraries RTL support
460
+
461
+ TODO: Split into each h5p package
462
+ */
463
+ .h5p-dir-rtl ,
464
+ .h5peditor-dir-rtl {
465
+ direction : rtl;
466
+ }
467
+ /* h5p-multichoice */
468
+ .h5p-dir-rtl .h5p-multichoice .h5p-alternative-container {
469
+ text-align : right;
470
+ padding : 0.25em 2.1em 0.25em 0.75em ;
471
+ }
472
+
473
+ .h5p-dir-rtl .h5p-multichoice .h5p-alternative-inner {
474
+ margin : 0 2em 0 0.75em ;
475
+ }
476
+ .h5p-dir-rtl .h5p-multichoice .h5p-answer .h5p-alternative-container : before {
477
+ right : 2.5em ;
478
+ left : auto;
479
+ }
480
+ .h5p-dir-rtl .h5p-multichoice .h5p-question-image {
481
+ text-align : right;
482
+ padding-right : 2em ;
483
+ }
484
+ .h5p-dir-rtl .h5p-multichoice .h5p-question-image-scalable : before {
485
+ left : 0.7em ;
486
+ right : auto;
487
+ }
488
+
489
+ /* Quiz */
490
+ .h5p-dir-rtl .h5p-multichoice .h5p-alternative-container {
491
+ text-align : right;
492
+ padding : 0.25em 2.1em 0.25em 0.75em ;
493
+ }
494
+ .h5p-dir-rtl .h5p-multichoice .h5p-alternative-inner {
495
+ margin : 0 2em 0 0.75em ;
496
+ }
497
+ .h5p-dir-rtl .h5p-multichoice .h5p-answer .h5p-alternative-container : before {
498
+ right : 2.5em ;
499
+ left : auto;
500
+ }
501
+ .h5p-dir-rtl .h5p-blanks .h5p-wrong : after {
502
+ left : 0.5em ;
503
+ right : auto;
504
+ }
505
+ .h5p-dir-rtl .h5p-blanks .h5p-correct : after {
506
+ left : 0.5em ;
507
+ right : auto;
508
+ }
509
+ .h5p-dir-rtl .h5p-blanks .has-tip .h5p-correct : after ,
510
+ .h5p-dir-rtl .h5p-blanks .has-tip .h5p-wrong : after {
511
+ left : 0.5em ;
512
+ right : auto;
513
+ }
514
+ .h5p-dir-rtl .h5p-question .h5p-question-prev ,
515
+ .h5p-dir-rtl .h5p-question .h5p-question-finish ,
516
+ .h5p-dir-rtl .h5p-question .h5p-question-next {
517
+ float : left;
518
+ }
519
+ .h5p-dir-rtl .h5p-question .h5p-question-prev : before {
520
+ content : "\f054" ;
521
+ }
522
+ .h5p-dir-rtl .h5p-question .h5p-question-next : before {
523
+ content : "\f053" ;
524
+ }
525
+ .h5p-dir-rtl .h5p-joubelui-button : first-child {
526
+ margin : 0 0 1em 0.5em ;
527
+ }
528
+
529
+ /* Memory game */
530
+ .h5p-dir-rtl .h5p-memory-game .h5p-status > dt {
531
+ float : right;
532
+ margin : 0 0 0 1em ;
533
+ }
534
+ .h5p-dir-rtl .h5p-memory-game .h5p-status {
535
+ clear : right;
536
+ }
537
+ /* summary */
538
+ .h5p-dir-rtl .h5p-summary .summary-evaluation-content {
539
+ float : right;
540
+ padding : 0.1em 0 0.1em 2em ;
541
+ }
542
+
543
+ /* Presentation */
544
+ .h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-next-slide : after {
545
+ content : "\F0D9" ;
546
+ }
547
+ .h5p-dir-rtl .h5p-course-presentation .h5p-footer .h5p-footer-previous-slide : before {
548
+ font-family : H5PFontAwesome4;
549
+ content : "\F0DA" ;
550
+ }
551
+ .h5p-dir-rtl .h5p-course-presentation ol .list-unstyled , .h5p-course-presentation ul .list-unstyled {
552
+ padding-right : 0 ;
553
+ }
554
+
555
+ /* accordion */
556
+ .h5p-dir-rtl .h5p-accordion .h5p-panel-title {
557
+ padding : 0.8em 2.25em 0.8em 0.8em ;
558
+ }
559
+ .h5p-dir-rtl .h5p-accordion .h5p-panel-title : before {
560
+ content : "\f104" ;
561
+ right : 0.95em ;
562
+ left : auto;
563
+ }
564
+
565
+ .h5p-dir-rtl li .h5p-sc-alternative .h5p-sc-status {
566
+ left : 0 ;
567
+ right : auto;
568
+ }
569
+
570
+ /* course presentation (and in general) */
571
+ .h5p-dir-rtl p [dir = rtl ] {
572
+ direction : rtl;
573
+ text-align : right;
574
+ }
575
+ .h5p-dir-rtl .h5p-course-presentation .h5p-footer {
576
+ direction : ltr;
577
+ flex-direction : inherit;
578
+ }
579
+
580
+ .h5p-dir-rtl .h5p-advanced-text ul li ,
581
+ .h5p-dir-rtl .h5p-advanced-text ol li {
582
+ margin : 0 1.5em 1em 0 ;
583
+ }
584
+
585
+ /* timeline */
586
+ .h5p-dir-rtl .h5p-timeline .vco-slider .nav-next {
587
+ float : left;
588
+ text-align : left;
589
+ }
590
+ .h5p-dir-rtl .h5p-timeline .vco-slider .nav-previous {
591
+ float : right;
592
+ text-align : right;
593
+ }
594
+ .h5p-dir-rtl .h5p-timeline .vco-slider .nav-previous {
595
+ left : 0 ;
596
+ }
597
+ /* not really affective :-( */
598
+ .h5p-dir-rtl .h5p-timeline .vco-timeline : not (.vco-skinny ) .vco-slider .slider-item .content .content-container .media {
599
+ float : left !important ;
600
+ }
601
+ .h5p-dir-rtl .h5p-timeline .vco-timeline : not (.vco-skinny ) .vco-slider .slider-item .content .content-container .text {
602
+ float : right;
603
+ }
604
+
605
+ /* h5p-interactive-video */
606
+ .h5p-dir-rtl .h5p-interactive-video : not ([aria-disabled = true ]).h5p-slider .ui-slider-handle : before {
607
+ margin : -5px -20px 0 0 ;
608
+ }
609
+ .h5p-dir-rtl .h5p-interactive-video .h5p-controls {
610
+ flex-direction : row-reverse;
611
+ }
0 commit comments