* adds RTL support

This commit is contained in:
Ds886 2023-04-08 14:25:32 +03:00
parent e1085e4e54
commit a4053c7dc0
6 changed files with 53 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

View file

@ -0,0 +1,25 @@
Title: דוגמה עברית - Example Hebrew
Date: Sat 08 Apr 2023 11:15:52 IDT
# עברית
## Regular text with mixed english and hebrew
דברי מבוא רבים ושונים שאמורים להראות כך מ-2023 עם קישור [Austrian National Library Vienna Austria Cod. hebr. 122](https://www.nli.org.il/he/manuscripts/NNL_ALEPH990001693810205171/NLI#$FL21884671) וטקסט מעורב באנגלית
## Mixed text regular no link
הנה ציטוט באנגלית "All that is water is water", תראו כמה מרתק הוא[^1]
## קטע טקסט מורכב לקוח מהקישור למעלה - complex formatting taken from the link above
> <center style="font-size: 1.4em">אמר יעקב</center></br>
> <center style="font-size: 1.2em"> המכונה דוקטור גאלדענטהל</center>
><p style="text-align: justify"><span style="font-size: 0.8em">[2]</span>וכעת פרופיסור מלשנות קדם בבית מדרש החכמות הגדול הנקרא אוניפרזיטאס ליטארום של המלכות יר"ה פה עיר המלוכה ווינא כבר בחרף שנת תר"ה כאשר שבתי מרוסיא וגרתי פעם שנית בלפסיא העתקתי מכתב יד שמור בביליאוטיקי של העיר הזאת את מאמר <span style="font-size: 1.3em"> השכל והמושכלות לאל פראבי</span> והיה בדעתי להדפיסו ביחד עם תרגום גרמאני אבל בעת ההיא וגם אחר כך שהלכתי משם לעיר פראג ומפראג לכאן עיר ווינא אפפו עלי עסקים מעסקים שונים הן בעבודת התורה והחכמה והן בשאר עסקי מזנותי עד שלא יכולתי להפיק זממי זה והיה העתק הזה שמור בין כתבי עד היום ויהי כאשר הגיעני החפץ הנכבד והתאוה האהיבה מאת הפקיד של הביליאוטיקא פאלאטינא הלא הוא האדון היקר החכם המשורר הנפלא בארון פון מינך ביללינגהוזין הויפראט ואקאדימקוס של הקיסר יר"ה שאחבר רשימה מספרי לשון הקודש כתובי יד אשר הביבליאוטיקט הנ"ל קנתה ורכשה מחגש מצוא מצאתי בין הספרים ההם קנטריס אחד על קלף ובראשו כתוב ונקוב שמו <span style="font-size: 1.3em">כתב הדעת</span> ואולם כותבי רשימות אין אחד מהם יודע עד מה רק בן חביב בהקדמתו לס" בחינת עולם מעיד שהוא לר" ידעי" הפניני המליץ הידוע בדרשי ואבל כאשר שמתי עיני עליו וקראתי הו שתים ושלש שורות הכרתי הענין ונזכרתי במאמר השכל לאל פראבי ולקחתי שניהם וקראתים זה מול זה ומצאתי וראיתי ששניהם אחד היינו מאמר השכל לאל פראבי ושהוא הועתק משני אנשים שונים ובזמנים שונים ומה שיקרא האחד שכל יקראהו האחר דעת ועוד דברים אשר אאריך אודותם ברשימה לכתבי יד אי"ה ואמור אמרתי טוב המציאה אשר מצאתי והחדוש אשר חדשתי ואין נכון למנוע טוב מרודפי טוב לזה חצני <span style="font-size: 0.8em">[2v]</span>נערתי וצויתי על איש סופר מהיר לכתוב את מאמר השכל בכתב מרובע צח ומהודר כאשר ירא" הרואה בעיניו ונתתיו במתנה לביבליאוטיקא פאלאינא הנ"ל להיות שני העתקות מצוים יחד והרוצה להדפיס את שתיהם ותבא האחת ותעיד על חברתה והוספתי הדברים האלה בראש המאמר לזכר עולם</p>
<center>נכתב פה עיר מלוכה ווינא</br>יום ה" כ"ז לחדש תשרי</br> שנת חמשת אלפים</br><span style="font-size: 1.5em">תרי"א</span></br>לבריאת</br>עולם</center>
[^1]: הערה בעברית מכיוון שהאתר מיוצר אוטומטית לא ניתן לעשות שהמספור יהיה בצד - Hebrew annotation, since the list is not overridable it is not possible to move it to the right

View file

@ -36,6 +36,15 @@ main {
} }
article { article {
h1,
h2,
h3,
h4,
h5,
h6 {
unicode-bidi:plaintext;
text-align:start;
}
kbd { kbd {
background-color: #080808; background-color: #080808;
color: @light-grey; color: @light-grey;
@ -56,6 +65,11 @@ main {
} }
} }
p{
unicode-bidi:plaintext;
text-align:start;
}
section#isso-thread { section#isso-thread {
div.textarea, div.textarea,
.auth-section p.input-wrapper input, .auth-section p.input-wrapper input,
@ -102,6 +116,11 @@ main {
footer { footer {
border-top-color: @footer-border-color-dark-theme; border-top-color: @footer-border-color-dark-theme;
li{
unicode-bidi:plaintext;
text-align:start;
}
} }
} }

View file

@ -1 +1 @@
body{background-color:#333;color:#eee}hr{color:#222}aside,hr{background-color:#222}aside{color:#fff}aside form.navbar-search input#tipue_search_input{background-color:#1a1a1a;color:#eee}main nav{border-bottom-color:#222}main .translations a,main nav a{border-color:#222}main article kbd{background-color:#080808;color:#eee}main article blockquote,main article pre{border-left:8px solid #ffffff33}main article :not(pre)>code{background-color:#080808;border-color:#000}main article div#tipue_search_content .tipue_search_result span.tipue_search_content_bold{color:#fff}main article section#isso-thread .auth-section p.input-wrapper input,main article section#isso-thread .notification-section input,main article section#isso-thread div.textarea{background:#1a1a1a;color:#eee}main article section#isso-thread>h4{color:#eee}main article section#isso-thread .isso-postbox>.form-wrapper .preview{background:repeating-linear-gradient(-45deg,#222,#222 10px,#1a1a1a 0,#1a1a1a 20px)}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .author{color:#eee}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .note,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .spacer,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.parent,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.permalink{color:#999}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .note:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .spacer:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.parent:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.permalink:hover{color:#eee}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-footer a:hover{text-shadow:#242121 0 0 1px!important}main footer{border-top-color:#222}div.related-posts{border-color:#222}div.admonition{color:#eee;background-color:#404040}div.admonition.attention,div.admonition.caution{color:#fbda7a;background-color:#4a3900}div.admonition.danger,div.admonition.error{color:#ebadb3;background-color:#28070a}div.admonition.hint{color:#7abaff;background-color:#001933}div.admonition.important,div.admonition.note{color:#a8eab7;background-color:#122b18}div.admonition.tip{color:#7abaff;background-color:#001933}div.admonition.warning{color:#fbda7a;background-color:#4a3900}div.figure,figure{color:#bfbfbf}div.figure figcaption,figure figcaption{color:#eee} body{background-color:#333;color:#eee}hr{color:#222}aside,hr{background-color:#222}aside{color:#fff}aside form.navbar-search input#tipue_search_input{background-color:#1a1a1a;color:#eee}main nav{border-bottom-color:#222}main .translations a,main nav a{border-color:#222}main article h1,main article h2,main article h3,main article h4,main article h5,main article h6{unicode-bidi:plaintext;text-align:start}main article kbd{background-color:#080808;color:#eee}main article blockquote,main article pre{border-left:8px solid #ffffff33}main article :not(pre)>code{background-color:#080808;border-color:#000}main article div#tipue_search_content .tipue_search_result span.tipue_search_content_bold{color:#fff}main article p{unicode-bidi:plaintext;text-align:start}main article section#isso-thread .auth-section p.input-wrapper input,main article section#isso-thread .notification-section input,main article section#isso-thread div.textarea{background:#1a1a1a;color:#eee}main article section#isso-thread>h4{color:#eee}main article section#isso-thread .isso-postbox>.form-wrapper .preview{background:repeating-linear-gradient(-45deg,#222,#222 10px,#1a1a1a 0,#1a1a1a 20px)}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .author{color:#eee}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .note,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .spacer,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.parent,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.permalink{color:#999}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .note:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header .spacer:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.parent:hover,main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-header a.permalink:hover{color:#eee}main article section#isso-thread .isso-comment>div.text-wrapper>.isso-comment-footer a:hover{text-shadow:#242121 0 0 1px!important}main footer{border-top-color:#222}main footer li{unicode-bidi:plaintext;text-align:start}div.related-posts{border-color:#222}div.admonition{color:#eee;background-color:#404040}div.admonition.attention,div.admonition.caution{color:#fbda7a;background-color:#4a3900}div.admonition.danger,div.admonition.error{color:#ebadb3;background-color:#28070a}div.admonition.hint{color:#7abaff;background-color:#001933}div.admonition.important,div.admonition.note{color:#a8eab7;background-color:#122b18}div.admonition.tip{color:#7abaff;background-color:#001933}div.admonition.warning{color:#fbda7a;background-color:#4a3900}div.figure,figure{color:#bfbfbf}div.figure figcaption,figure figcaption{color:#eee}

View file

@ -13,6 +13,8 @@ h5,
h6 { h6 {
font-weight: 300; font-weight: 300;
line-height: 1.1; line-height: 1.1;
unicode-bidi:plaintext;
text-align:start;
} }
h1{ h1{
@ -54,6 +56,11 @@ a {
text-decoration: none; text-decoration: none;
} }
p{
unicode-bidi:plaintext;
text-align:start;
}
a:hover { a:hover {
color: @link-hover-color; color: @link-hover-color;
} }

File diff suppressed because one or more lines are too long