-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstyles.css
More file actions
107 lines (88 loc) · 2.55 KB
/
styles.css
File metadata and controls
107 lines (88 loc) · 2.55 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
/* styles.css */
/* For UserInputModal and PythonBridgeSettingTab input states */
.python-bridge-input-error {
border-color: red !important;
}
.python-bridge-input-normal {
border-color: var(--background-modifier-border) !important;
}
.python-bridge-value-spacing {
margin-left: 10px;
}
/* For the security warning callout in PythonBridgeSettingTab */
.python-bridge-security-warning-callout {
margin-bottom: 1.5em; /* Example style, adjust as needed */
}
/* RTL Support Styles */
/* Global RTL styles when body.has-rtl class is present (Obsidian's RTL indicator) */
body.is-rtl .python-bridge-security-warning-callout {
direction: rtl;
text-align: right;
}
/* RTL styles for UserInputModal */
body.is-rtl .python-bridge-user-input-modal h2,
body.is-rtl .python-bridge-user-input-modal p {
direction: rtl;
text-align: right;
}
body.is-rtl .python-bridge-user-input-modal input[type='text'],
body.is-rtl .python-bridge-user-input-modal input[type='number'],
body.is-rtl .python-bridge-user-input-modal input[type='date'],
body.is-rtl .python-bridge-user-input-modal input[type='range'] {
direction: rtl;
text-align: right;
}
body.is-rtl .python-bridge-user-input-modal .python-bridge-range-value {
margin-right: 10px;
margin-left: 0;
}
/* RTL styles for ActivationWarningModal */
body.is-rtl .python-bridge-warning-text,
body.is-rtl .python-bridge-security-note {
direction: rtl;
text-align: right;
}
body.is-rtl .python-bridge-warning-text ul {
text-align: right;
padding-right: 20px;
padding-left: 0;
}
body.is-rtl .python-bridge-modal-buttons {
direction: rtl;
display: flex;
flex-direction: row-reverse;
gap: 10px;
justify-content: flex-start;
}
/* RTL styles for ScriptSelectionModal */
body.is-rtl .python-bridge-script-selection .suggestion-item {
direction: rtl;
text-align: right;
}
/* RTL styles for settings tab */
body.is-rtl .python-bridge-setting-item {
direction: rtl;
}
body.is-rtl .python-bridge-setting-item .setting-item-info {
text-align: right;
}
body.is-rtl .python-bridge-setting-item .setting-item-control {
text-align: left;
}
/* RTL styles for folder suggestions */
body.is-rtl .suggestion-container .suggestion-item {
direction: rtl;
text-align: right;
}
/* RTL logical properties for better spacing control */
body.is-rtl .python-bridge-security-warning-callout {
margin-inline-start: 0;
margin-inline-end: 0;
}
body.is-rtl .python-bridge-modal-buttons > * {
margin-inline-start: 10px;
margin-inline-end: 0;
}
body.is-rtl .python-bridge-modal-buttons > *:first-child {
margin-inline-start: 0;
}