-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathstyles.css
More file actions
245 lines (215 loc) · 9.12 KB
/
styles.css
File metadata and controls
245 lines (215 loc) · 9.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
@media print {
/* span.cm-tab { */
/* width: 50px !important; */
/* display: inline-block; */
/* } */
/* .is-ltr { */
/* direction: ltr; */
/* text-align-last: left; */
/* } */
/* .is-rtl { */
/* direction: rtl; */
/* text-align: right; */
/* } */
}
/* /1* List indent fix *1/ */
/* .is-mobile .is-rtl .HyperMD-list-line, */
/* .is-mobile .HyperMD-list-line[dir="rtl"] { */
/* text-indent: 0px !important; */
/* padding-left: 0 !important; */
/* } */
/* .CodeMirror-rtl pre { */
/* text-indent: 0px !important; */
/* } */
/* /1* Embedded links always LTR *1/ */
/* .embedded-backlinks { */
/* direction: ltr; */
/* } */
/* /1* Patch YAML RTL *1/ */
/* /1* In a preview that is strictly RTL (is-rtl) and the settings ask to right-aline YAML (rtl-yaml), set a YAML block to RTL. *1/ */
/* .is-rtl.rtl-yaml code.language-yaml { */
/* text-align: right; */
/* } */
/* /1* Then move the 'copy' button to the left *1/ */
/* .is-rtl.rtl-yaml code.language-yaml + button.copy-code-button { */
/* right: unset; */
/* left: 0; */
/* } */
/* /1* In a preview that is auto (is-auto), and the YAML was detected as RTL (esm-rtl), set the 'copy' button to the left *1/ */
/* .is-auto .esm-rtl.language-yaml + button.copy-code-button { */
/* right: unset; */
/* left: 0; */
/* } */
/* /1* In RTL, or in Auto with a first line that is RTL, set the flair (where it says e.g. 'yaml' in Edit mode) to the left *1/ */
/* .is-rtl div:has(.HyperMD-codeblock-begin) .code-block-flair, */
/* .is-auto div:has(.HyperMD-codeblock-begin + .HyperMD-codeblock[dir="rtl"]) .code-block-flair { */
/* right: unset; */
/* left: 6px; */
/* } */
.is-ltr div,
.is-ltr li,
.is-ltr p {
direction: ltr;
unicode-bidi: unset;
}
.is-rtl div,
.is-rtl li,
.is-rtl p {
direction: rtl;
unicode-bidi: unset;
}
/* Use to force frontmatter to be LTR-directioned when "Prevent Frontmatter to be RTL-directioned" was enabled. */
.cm-content>.cm-line:has(>.cm-hmd-frontmatter):not([dir]) {
direction: ltr;
}
/* /1* RTL and Auto callout titles that are detected as RTL - set to the right *1/ */
/* .is-rtl .callout-title:has(.esm-rtl), */
/* .is-auto .callout-title:has(.esm-rtl) { */
/* direction: rtl; */
/* } */
/* .is-auto .callout-content .esm-rtl { */
/* direction: rtl; */
/* } */
/* /1* When an RTL callout title was set to the right, left-justify its edit block button *1/ */
/* .is-rtl div.cm-callout:has(.callout-title .esm-rtl) .edit-block-button, */
/* .is-auto div.cm-callout:has(.callout-title .esm-rtl) .edit-block-button { */
/* right: unset; */
/* left: var(--size-2-2); */
/* } */
/* .markdown-source-view .cm-line[dir="rtl"] .task-list-label { */
/* margin-left: 0; */
/* margin-right: -3px; */
/* } */
/* /1* Better spacing between bullet and text *1/ */
/* .outliner-plugin-better-bullets .markdown-source-view.is-rtl .cm-formatting-list-ul, */
/* .outliner-plugin-better-bullets .markdown-source-view .cm-line[dir="rtl"] .cm-formatting-list-ul { */
/* margin-right: 0; */
/* margin-left: 0.3em; */
/* } */
/* .markdown-source-view.is-rtl .is-collapsed .collapse-indicator svg.svg-icon, */
/* .markdown-source-view .cm-line[dir="rtl"] .is-collapsed .collapse-indicator svg.svg-icon { */
/* transform: rotate(90deg); */
/* } */
/* /1* Styling for collapse indicator on the headings *1/ */
/* .markdown-source-view.is-rtl .cm-line .cm-fold-indicator .collapse-indicator, */
/* .markdown-source-view .cm-line[dir="rtl"] .cm-fold-indicator .collapse-indicator { */
/* padding-right: 0; */
/* padding-left: 6px; */
/* right: -16px; */
/* } */
/* /1* Styling for collapse indicator on the lists *1/ */
/* .markdown-source-view.is-rtl .cm-line:not(.cm-active):not(.HyperMD-header):not(.HyperMD-task-line) .cm-fold-indicator .collapse-indicator, */
/* .markdown-source-view .cm-line[dir="rtl"]:not(.cm-active):not(.HyperMD-header):not(.HyperMD-task-line) .cm-fold-indicator .collapse-indicator { */
/* padding-right: 0; */
/* padding-left: 18px; */
/* right: -16px; */
/* } */
/* /1* Styling for tags in RTL *1/ */
/* .markdown-source-view.is-rtl .cm-line .cm-hashtag.cm-hashtag-begin, */
/* .markdown-source-view .cm-line[dir="rtl"] .cm-hashtag.cm-hashtag-begin { */
/* border-top-right-radius: var(--tag-radius); */
/* border-bottom-right-radius: var(--tag-radius); */
/* border-top-left-radius: 0; */
/* border-bottom-left-radius: 0; */
/* border-left: none; */
/* border-right: var(--tag-border-width) solid var(--tag-border-color); */
/* padding-right: var(--tag-padding-x); */
/* padding-left: 0; */
/* } */
/* .markdown-source-view.is-rtl .cm-line .cm-hashtag.cm-hashtag-end, */
/* .markdown-source-view .cm-line[dir="rtl"] .cm-hashtag.cm-hashtag-end { */
/* border-top-left-radius: var(--tag-radius); */
/* border-bottom-left-radius: var(--tag-radius); */
/* border-top-right-radius: 0; */
/* border-bottom-right-radius: 0; */
/* border-right: none; */
/* border-left: var(--tag-border-width) solid var(--tag-border-color); */
/* padding-left: var(--tag-padding-x); */
/* padding-right: 0; */
/* } */
/* .markdown-preview-view.is-auto .esm-rtl, */
/* .kanban-plugin__board .esm-rtl, */
/* .kanban-plugin__drag-container .esm-rtl, */
/* .markdown-source-view.is-auto .table-cell-wrapper.esm-rtl { */
/* direction: rtl; */
/* text-align: right; */
/* } */
/* /1* Moving bullets to right side of the page and adding enough space between the bullet and the text *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .list-bullet, */
/* .markdown-preview-view.is-rtl .list-bullet { */
/* float: right; */
/* margin-right: -12px; */
/* } */
/* /1* Fixing indentation guides in nested lists *1/ */
/* .markdown-preview-view.is-auto.show-indentation-guide li.esm-rtl > ul::before, */
/* .markdown-preview-view.is-auto.show-indentation-guide li.esm-rtl > ol::before { */
/* left: auto; */
/* right: -15px; */
/* } */
/* /1* Moving the collapse indicator to right side of the page *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .collapse-indicator, */
/* .markdown-preview-view.is-rtl .collapse-indicator { */
/* float: right; */
/* } */
/* /1* Moving the collapse indicator icon on the right of the text with enough space between *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .list-collapse-indicator, */
/* .markdown-preview-view.is-rtl .list-collapse-indicator { */
/* margin-right: -48px; */
/* padding-left: 18px; */
/* } */
/* /1* Moving the heading collapse indicator on the right of the text. Without */
/* This the collapse indicator will be over the heading text *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .heading-collapse-indicator, */
/* .markdown-preview-view.is-rtl .heading-collapse-indicator { */
/* margin-right: -22px; */
/* } */
/* /1* Mirroring collapse icon for nested lists so it points to rtl text not outside of page *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .collapse-icon .is-collapsed svg.svg-icon, */
/* .markdown-preview-view.is-auto .esm-rtl.is-collapsed > .collapse-icon svg.svg-icon, */
/* .markdown-preview-view.is-rtl .collapse-icon .is-collapsed svg.svg-icon { */
/* transform: rotate(90deg); */
/* } */
/* /1* Mirroring collapse icon for headings so it points to rtl text not outside of page *1/ */
/* .markdown-preview-view .is-collapsed .esm-rtl > .collapse-icon svg.svg-icon, */
/* .markdown-preview-view.is-rtl .collapse-icon svg.svg-icon { */
/* transform: rotate(90deg); */
/* } */
/* /1* Reverting the margin so the text won't stick to the checkbox *1/ */
/* .markdown-preview-view.is-auto .esm-rtl > .task-list-item-checkbox, */
/* .markdown-preview-view.is-rtl .task-list-item-checkbox { */
/* margin-left: 6px; */
/* margin-right: 0; */
/* } */
/* .markdown-preview-view.is-auto .esm-ltr { */
/* direction: ltr; */
/* text-align-last: left; */
/* } */
/* /1* If the table first header cell is RTL render the table on the right side of page but dont make every cell RTL *1/ */
/* .is-auto .cm-table-widget:has(thead tr:first-of-type th:first-of-type .table-cell-wrapper.esm-rtl), */
/* .is-auto .cm-table-widget:has(thead tr:first-of-type th:first-of-type .table-cell-wrapper .cm-line[dir="rtl"]) { */
/* direction: rtl; */
/* } */
/* .is-auto .cm-table-widget .table-cell-wrapper.esm-ltr { */
/* direction: ltr; */
/* } */
/* .is-auto .cm-table-widget:has(thead tr:first-of-type th:first-of-type .table-cell-wrapper.esm-rtl) .table-col-btn { */
/* left: -16px; */
/* border-left: inherit; */
/* cursor: w-resize; */
/* } */
/* /1* Similarly to the above, decide on the table direction for Reading View based on the first header cell *1/ */
/* .markdown-preview-view.is-auto div:has(table thead tr:first-of-type th:first-of-type.esm-rtl) { */
/* direction: rtl; */
/* } */
/* .markdown-preview-view.is-auto div:has(table thead tr:first-of-type th:first-of-type.esm-ltr) { */
/* direction: ltr; */
/* } */
/* Helper styles for debugging */
/* .cm-line[dir="rtl"] { */
/* border-right: dashed; */
/* border-right-color: blue; */
/* } */
/* .cm-line[dir="ltr"] { */
/* border-right: dashed; */
/* border-right-color: red; */
/* } */