Initial setup: official notes and obsidian settings
This commit is contained in:
55
.obsidian/snippets/alignment.css
vendored
Normal file
55
.obsidian/snippets/alignment.css
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/* --- Improved RTL/LTR control for Obsidian --- */
|
||||
|
||||
/* Block-level RTL (for standard paragraphs) */
|
||||
.markdown-preview-view div.rtl,
|
||||
.markdown-source-view div.rtl,
|
||||
.markdown-preview-view p.rtl,
|
||||
.markdown-source-view p.rtl {
|
||||
direction: rtl !important;
|
||||
unicode-bidi: isolate !important;
|
||||
text-align: right !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Inline RTL (for headers, bullets, and inline text) */
|
||||
span.rtl {
|
||||
direction: rtl !important;
|
||||
unicode-bidi: isolate !important;
|
||||
/* We don't force display: block here so it stays on the same line */
|
||||
}
|
||||
|
||||
/* Block-level LTR */
|
||||
.markdown-preview-view div.ltr,
|
||||
.markdown-source-view div.ltr,
|
||||
.markdown-preview-view p.ltr,
|
||||
.markdown-source-view p.ltr {
|
||||
direction: ltr !important;
|
||||
unicode-bidi: isolate !important;
|
||||
text-align: left !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* --- Fix for LaTeX / Math blocks --- */
|
||||
/* Completely reset the bidi and direction for math containers */
|
||||
.rtl .math-block,
|
||||
.rtl mjx-container,
|
||||
.math-block.rtl {
|
||||
direction: ltr !important;
|
||||
unicode-bidi: normal !important; /* Fixes rendering corruption in MathJax */
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
/* Force right-alignment for English text inside .rtl blocks */
|
||||
.rtl p,
|
||||
.rtl span {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
/* Force inner paragraphs and elements to respect RTL in Reading Mode */
|
||||
.markdown-preview-view .rtl p,
|
||||
.markdown-preview-view .rtl span,
|
||||
.markdown-preview-view .rtl div {
|
||||
direction: rtl !important;
|
||||
text-align: right !important;
|
||||
unicode-bidi: isolate !important;
|
||||
}
|
||||
Reference in New Issue
Block a user