-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
205 lines (180 loc) · 4.4 KB
/
Copy pathstyles.css
File metadata and controls
205 lines (180 loc) · 4.4 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
/* CheatMD Obsidian plugin styles.
Loaded automatically by Obsidian from the plugin folder. */
/* ----- Variable prompt modal ----- */
.cheatmd-modal-desc {
font-style: italic;
color: var(--text-muted);
margin-bottom: 16px;
}
/* Custom autocomplete dropdown overlay for option-backed variables. */
.cheatmd-suggest-wrapper {
position: relative;
width: 100%;
}
.cheatmd-suggest-wrapper > input {
width: 100%;
}
.cheatmd-suggest-dropdown {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: var(--background-secondary);
border: 1px solid var(--border-color);
border-radius: 4px;
box-shadow: var(--shadow-s);
z-index: 2000;
max-height: 150px;
overflow-y: auto;
margin-top: 4px;
display: none;
}
.cheatmd-suggest-item {
padding: 6px 10px;
cursor: pointer;
font-size: 12px;
color: var(--text-normal);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cheatmd-suggest-item:hover {
background: var(--background-modifier-hover);
color: var(--text-accent);
}
/* ----- Play button injected above code blocks ----- */
/* Matches the "Confirm & Execute" modal CTA: same accent fill so the run
action is consistent across plugin surfaces.
!important is needed because the button lives inside <pre>, which sets
its own font/color that would otherwise win via cascade. */
.cheatmd-play-button,
pre > .cheatmd-play-button {
cursor: pointer !important;
display: block !important;
width: fit-content !important;
margin: 0 0 8px 0 !important;
padding: 0 !important;
background: none !important;
color: var(--interactive-accent) !important;
border: none !important;
border-radius: 0 !important;
font-family: var(--font-interface) !important;
font-size: 11px !important;
font-weight: 500 !important;
line-height: 1.2 !important;
transition: opacity 0.1s ease, color 0.1s ease;
opacity: 0.85;
}
.cheatmd-play-button:hover,
pre > .cheatmd-play-button:hover {
background: none !important;
color: var(--interactive-accent) !important;
text-decoration: underline !important;
opacity: 1;
transform: none !important;
}
/* ----- Inline execution output panel ----- */
.cheatmd-output-container {
background: var(--background-secondary);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 12px 16px;
margin-top: 12px;
margin-bottom: 12px;
font-family: var(--font-monospace);
font-size: 12px;
line-height: 1.5;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
position: relative;
}
.cheatmd-output-actions {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}
.cheatmd-close-btn,
.cheatmd-copy-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--background-modifier-border);
border: 1px solid var(--background-modifier-border);
cursor: pointer;
color: var(--text-normal);
font-size: 12px;
font-weight: 500;
padding: 5px 12px;
border-radius: 4px;
line-height: 1;
transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}
.cheatmd-copy-btn:hover {
background: var(--interactive-accent);
color: var(--text-on-accent);
border-color: var(--interactive-accent);
}
.cheatmd-close-btn:hover {
background: #dc2626;
color: #ffffff;
border-color: #dc2626;
}
.cheatmd-btn-icon {
font-size: 13px;
line-height: 1;
}
.cheatmd-status {
color: var(--text-muted);
font-style: italic;
}
/* Status line variants set via setStatus() */
.cheatmd-accent-bold {
color: var(--text-accent);
font-weight: bold;
}
.cheatmd-muted-italic {
color: var(--text-muted);
font-style: italic;
}
.cheatmd-error-label {
color: var(--text-error);
font-weight: bold;
}
/* Completion result rendering */
.cheatmd-result-ok {
font-weight: bold;
color: var(--text-success);
margin-bottom: 4px;
font-style: normal;
}
.cheatmd-result-fail {
font-weight: bold;
color: var(--text-error);
margin-bottom: 4px;
font-style: normal;
}
.cheatmd-result-cmd {
font-size: 11px;
color: var(--text-muted);
margin-bottom: 4px;
font-style: normal;
}
.cheatmd-inline-code {
background: none;
padding: 0;
}
.cheatmd-output-empty {
color: var(--text-muted);
font-style: italic;
margin-top: 4px;
}
.cheatmd-output-block {
margin: 8px 0 0 0;
padding: 8px;
background: rgba(0, 0, 0, 0.15);
border-radius: 4px;
overflow-x: auto;
white-space: pre-wrap;
font-style: normal;
}
/* No output content styling to keep output unstyled */