-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
184 lines (165 loc) · 4.44 KB
/
styles.css
File metadata and controls
184 lines (165 loc) · 4.44 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
/* Flash CSS Custom Properties */
:root {
--flash-label-bg: #F47D1A;
--flash-label-color: #000000;
--flash-highlight-color: #F47D1A;
--flash-dim-opacity: 0.4;
}
/* Hint label for Jump to Link / Jump to Anywhere (inline after target) */
.flash-hint-label {
display: inline-block;
background: var(--flash-label-bg);
color: var(--flash-label-color);
padding: 0 2px;
margin-left: 1px;
border-radius: 2px;
font-weight: normal;
font-size: 0.85em;
line-height: 1.2;
vertical-align: baseline;
position: relative;
z-index: 10;
}
/* First letter dimmed when prefix matched */
.flash-hint-label.matched::first-letter {
opacity: 0.5;
}
/* Preview mode hint positioning */
.flash-preview-hint-anchor {
position: relative;
}
.flash-preview-hint-offset {
top: 0;
left: 0;
}
/* Legacy popover styling for Preview mode (DOM-based hints, not CM6 widgets) */
.jl.popover {
position: absolute;
display: block;
z-index: 10000;
background: var(--flash-label-bg);
border-width: 1px;
border-style: solid;
border-color: rgb(227, 157, 35);
font-size: 11px;
font-weight: normal;
line-height: 12px;
color: var(--flash-label-color);
padding: 1px 2px;
border-radius: 2px;
}
.jl.popover.matched::first-letter {
opacity: 0.5;
}
.theme-dark, .theme-light {
--flash-color: var(--text-muted);
}
/* Flash mode - gray out ALL text while preserving font sizes/styles */
.flash-active,
.flash-active * {
color: var(--flash-color) !important;
}
/* Ensure specific elements are also grayed out */
.flash-active .cm-header,
.flash-active .cm-link,
.flash-active .cm-url,
.flash-active .cm-hmd-internal-link,
.flash-active .cm-formatting,
.flash-active .cm-strong,
.flash-active .cm-em,
.flash-active .cm-strikethrough,
.flash-active .cm-inline-code,
.flash-active .cm-math,
.flash-active .cm-hashtag,
.flash-active .cm-tag,
.flash-active .cm-highlight,
.flash-active .cm-list-1,
.flash-active .cm-list-2,
.flash-active .cm-list-3,
.flash-active .HyperMD-codeblock,
.flash-active .HyperMD-quote,
.flash-active .HyperMD-header,
.flash-active .HyperMD-list-line,
.flash-active .HyperMD-task-line,
.flash-active a,
.flash-active strong,
.flash-active em,
.flash-active code,
.flash-active mark {
color: var(--flash-color) !important;
}
/* Keep hint labels visible and prominent */
.flash-active .jl.popover,
.flash-active .flash-hint-label {
color: var(--flash-label-color) !important;
}
/* Flash highlight for matched characters */
.flash-highlight {
color: var(--flash-highlight-color) !important;
}
/* Flash label (positioned after match) */
.flash-label {
display: inline-block;
background: var(--flash-label-bg);
color: var(--flash-label-color);
padding: 0 2px;
margin-left: 1px;
border-radius: 2px;
font-weight: normal;
font-size: 0.85em;
line-height: 1.2;
vertical-align: baseline;
position: relative;
z-index: 10;
}
/* First letter dimmed when prefix matched */
.flash-label.matched::first-letter {
opacity: 0.5;
}
/* Ensure highlighted matches NOT dimmed and labels use correct color */
/* High specificity to override URL, link, and other element styling */
.flash-active .flash-highlight,
.flash-active .cm-url .flash-highlight,
.flash-active .cm-link .flash-highlight,
.flash-active .cm-hmd-internal-link .flash-highlight,
.flash-active a .flash-highlight,
.flash-active .cm-string .flash-highlight,
.flash-active .cm-header .flash-highlight,
.flash-active .cm-strong .flash-highlight,
.flash-active .cm-em .flash-highlight,
.flash-active code .flash-highlight {
color: var(--flash-highlight-color) !important;
opacity: 1 !important;
}
.flash-active .flash-label {
opacity: 1 !important;
color: var(--flash-label-color) !important;
}
/* Flash Search Panel */
.flash-search-panel {
position: fixed;
top: 50px;
right: 20px;
min-width: 60px;
max-width: 15%;
padding: 6px 12px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
font-family: var(--font-monospace);
font-size: 14px;
color: var(--text-normal);
z-index: 1000;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.flash-search-text {
color: var(--text-accent);
}
.flash-search-cursor {
color: var(--text-accent);
animation: flash-cursor-blink 1s step-end infinite;
}
@keyframes flash-cursor-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}