@@ -17,6 +17,7 @@ body.guide {
17
17
18
18
-webkit-tap-highlight-color :rgba (38 , 27 , 35 , 0 );
19
19
20
+
20
21
// ----------------------------------------------------------------------------
21
22
// Typographic Baseline
22
23
// ----------------------------------------------------------------------------
@@ -57,7 +58,6 @@ body.guide {
57
58
58
59
margin : 0 0 0.75em 0 ; // Space after paragraph
59
60
text-align : left ;
60
-
61
61
} // p
62
62
63
63
// Links
@@ -259,12 +259,6 @@ body.guide {
259
259
}
260
260
} // dd
261
261
} // dl
262
-
263
- // :where(&[dir="ltr"]) dd { margin-left: 1.5em; }
264
- // :where(&[dir="rtl"]) dd { margin-right: 1.5em; }
265
-
266
- // :where(&[dir="ltr"]) :is(dd) { margin-left: 0; padding-left: 0; }
267
- // :where(&[dir="rtl"]) :is(dd) { margin-right: 0; padding-right: 0; }
268
262
269
263
li {
270
264
margin-bottom : 0.5em ;
@@ -274,7 +268,7 @@ body.guide {
274
268
275
269
pre , code {
276
270
font-size : 1rem ;
277
- font-family : " IBM Plex Mono" , " Anonymous Pro" , " Inconsolata" , " Menlo" , " Consolas" , " Bitstream Vera Sans Mono" , " Courier New" , monospace ;
271
+ font-family : " IBM Plex Mono" , " Anonymous Pro" , " Inconsolata" , " Menlo" , " Consolas" , " Bitstream Vera Sans Mono" , " Courier New" , monospace !important ;
278
272
line-height : 1.5 ;
279
273
margin : 1em 0 ;
280
274
overflow : auto ;
@@ -322,14 +316,17 @@ body.guide {
322
316
323
317
.wrapper {
324
318
padding : 1em ;
325
-
326
- :where (body[dir= " ltr" ] ) & { text-align : left ; }
327
- :where (body[dir= " rtl" ] ) & { text-align : right ; }
319
+ text-align : left ;
328
320
329
321
@include media (' >desktop' ) { // 1024
330
322
max-width : calc (55rem + 420px );
331
323
margin : 0 auto ;
332
324
padding-right : 470px ;
325
+
326
+ :where (html[dir= " rtl" ] ) & {
327
+ padding-right : 1.5em ;
328
+ padding-left : 470px ;
329
+ }
333
330
}
334
331
} // .wrapper
335
332
@@ -584,8 +581,8 @@ body.guide {
584
581
z-index : 15 ;
585
582
padding-bottom : 0.125em ;
586
583
587
- :where (body [dir=" ltr" ] ) & { background-position : right top ; padding-right : 1em ; }
588
- :where(body [dir = " rtl" ]) & { background-position : left top ; padding-left : 1em ; }
584
+ :where (html [dir=" ltr" ] ) & { background-position : right top ; padding-right : 1em ; }
585
+ :where(html [dir = " rtl" ]) & { background-position : left top ; padding-left : 1em ; }
589
586
}
590
587
591
588
@@ -604,8 +601,8 @@ body.guide {
604
601
max-width : 1000px ;
605
602
z-index : 10 ;
606
603
607
- :where (body [dir=" ltr" ] ) & { left : auto ; right : 50px ; }
608
- :where(body [dir = " rtl" ]) & { left : 50px ; right : auto ; }
604
+ :where (html [dir=" ltr" ] ) & { left : auto ; right : 50px ; }
605
+ :where(html [dir = " rtl" ]) & { left : 50px ; right : auto ; }
609
606
610
607
& .visible {
611
608
display : block !important ;
@@ -706,6 +703,11 @@ body.guide {
706
703
right : 50px ;
707
704
max-height : calc (100vh - 200px );
708
705
width : 400px ;
706
+
707
+ :where (html[dir= " rtl" ] ) & {
708
+ right : auto ;
709
+ left : 50px ;
710
+ }
709
711
}
710
712
711
713
& .guide-index {
@@ -714,11 +716,20 @@ body.guide {
714
716
715
717
@include media (' >desktop-ultra-wide' ) {
716
718
right : calc (30vw - 400px );
719
+
720
+ :where (html[dir= " rtl" ] ) & {
721
+ right : auto ;
722
+ left : calc (30vw - 400px );
723
+ }
717
724
}
718
725
719
726
@include media (' >desktop-hd' ) { // 1920
720
-
721
727
right : calc (40vw - 400px );
728
+
729
+ :where (html[dir= " rtl" ] ) & {
730
+ right : auto ;
731
+ left : calc (40vw - 400px );
732
+ }
722
733
}
723
734
724
735
h3 .chapter img {
@@ -820,6 +831,11 @@ body.guide {
820
831
background-color : $stop-bkgnd ;
821
832
opacity : 0 ;
822
833
transition : opacity 0.2s ease-in-out ;
834
+
835
+ :where (html[dir= " rtl" ] ) & {
836
+ right : -3.5em ;
837
+ left : unset ;
838
+ }
823
839
}
824
840
825
841
a .active ::after {
@@ -838,6 +854,11 @@ body.guide {
838
854
background-color : $rf-brand ;
839
855
opacity : 0 ;
840
856
transition : opacity 0.2s ease-in-out ;
857
+
858
+ :where (html[dir= " rtl" ] ) & {
859
+ right : -3em ;
860
+ left : unset ;
861
+ }
841
862
}
842
863
843
864
a .active ::before {
@@ -852,4 +873,40 @@ body.guide {
852
873
}
853
874
}
854
875
855
- } // body.guide
876
+ } // body.guide
877
+
878
+ html [dir = " rtl" ] {
879
+ body .guide {
880
+ direction : rtl ;
881
+
882
+ p , table th , .wrapper ,
883
+ #guides .guides-section-container .guides-section {
884
+ text-align : right ;
885
+ }
886
+ } // body.guide
887
+
888
+ & :lang (ar ), & :lang (fa ) {
889
+ body .guide {
890
+ h1 , h2 , h3 , h4 , h5 , h6 , p , dl , dd , dt , ul , ol , li ,
891
+ header #page_header nav #feature_nav .header-logo a {
892
+ font-family : " Noto Sans Arabic" , sans-serif !important ;
893
+ font-optical-sizing : auto ;
894
+ font-weight : 400 ;
895
+ font-style : normal ;
896
+ font-variation-settings : " wdth" 100 ;
897
+ }
898
+ } // body.guide
899
+ } // &:lang(ar), &:lang(fa)
900
+
901
+ & :lang (he ), & :lang (iw ) {
902
+ body .guide {
903
+ h1 , h2 , h3 , h4 , h5 , h6 , p , dl , dd , dt , ul , ol , li ,
904
+ header #page_header nav #feature_nav .header-logo a {
905
+ font-family : " Heebo" , sans-serif !important ;
906
+ font-optical-sizing : auto ;
907
+ font-weight : 400 ;
908
+ font-style : normal ;
909
+ }
910
+ } // body.guide
911
+ } // &:lang(he), &:lang(iw)
912
+ } // html[dir="rtl"]
0 commit comments