fix:rtl display in Arabic/Persian language

fix goldendict#1565
This commit is contained in:
Xiao YiFang 2022-10-27 21:30:06 +08:00
parent 408f994779
commit b23e57d08c
3 changed files with 7 additions and 2 deletions

View file

@ -141,7 +141,7 @@ h3 {
/* The first headword in a (possibly) multi-headword DSL article */ /* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > div:first-child .dsl_headwords, .gdarticlebody > div:first-child .dsl_headwords,
.gdarticlebody > h3:first-child { {
margin-top: -3px; margin-top: -3px;
display: inline-block; display: inline-block;
} }

View file

@ -155,7 +155,6 @@ a:hover
/* The first headword in a (possibly) multi-headword DSL article */ /* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > div:first-child .dsl_headwords, .gdarticlebody > div:first-child .dsl_headwords,
.gdarticlebody > h3:first-child
{ {
margin-top: -3px; margin-top: -3px;
display: inline-block; display: inline-block;

View file

@ -9,6 +9,10 @@ body
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
} }
h1,h2,h3,h4,h5,h6 {
unicode-bidi: plaintext;
text-align: start;
}
/* This stylesheet is used to highligh current selection when doing a search. /* This stylesheet is used to highligh current selection when doing a search.
It changes the default selection color (e.g. blue under Windows, orange under Ubuntu) */ It changes the default selection color (e.g. blue under Windows, orange under Ubuntu) */
@ -132,6 +136,8 @@ pre
/* StarDict type 'h' -- Html content. We don't normally do anything here. */ /* StarDict type 'h' -- Html content. We don't normally do anything here. */
div.sdct_h div.sdct_h
{ {
unicode-bidi: plaintext;
text-align: start;
} }
.sdict_h_wav img .sdict_h_wav img