-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstyles.css
More file actions
46 lines (42 loc) · 1.54 KB
/
Copy pathstyles.css
File metadata and controls
46 lines (42 loc) · 1.54 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
/* styles.css — the only CSS that touches the host page.
*
* The extension's own UI (toolbar, menus, preview card) lives inside a Shadow
* DOM and is styled in content.js, so nothing here can leak into it and nothing
* on the page can leak in. What remains is the RTL text fix.
*/
/* Persian / Arabic blocks detected by the observer. dir="auto" is set on the
element itself; these rules only supply typography and alignment. */
.pe-rtl {
text-align: start;
font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
line-height: 1.85;
}
/* Fields you type into: keeps the caret, placeholder and text on the right. */
.pe-rtl-input {
font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
text-align: right;
line-height: 1.8;
}
/* Never let the fix flip UI chrome that happens to contain Persian labels. */
nav .pe-rtl,
header .pe-rtl,
[role='tablist'] .pe-rtl,
[role='toolbar'] .pe-rtl {
line-height: inherit;
}
/* The shadow hosts are positioned by script; make sure no page stylesheet
collapses or repositions them. */
[data-prompt-enhancer] {
all: initial;
position: fixed !important;
inset: 0 auto auto 0 !important;
width: 0 !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
z-index: 2147483646 !important;
pointer-events: none !important;
}
/* No `contain` here on purpose: `contain: layout` would make this 0x0 host a
containing block for the fixed-position toolbar inside its shadow root. */