4 list-style-image: url
(icon16.png);
7 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
8 list-style-image: url
(icon16-red
.png
);
11 #VimFxButton[cui-areatype
="menu-panel"],
12 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
13 list-style-image: url
(icon32.png);
16 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
17 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
18 list-style-image: url
(icon32-red
.png
);
21 @media (min-resolution: 2dppx) {
23 list-style-image: url
(icon32.png);
26 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
27 list-style-image: url
(icon32-red
.png
);
30 #VimFxButton[cui-areatype
="menu-panel"],
31 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
32 list-style-image: url
(icon64.png);
35 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
36 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
37 list-style-image: url
(icon64-red
.png
);
41 #main-window:-moz-any
(
42 [vimfx-mode
="normal"][vimfx-focus-type
="editable"],
43 [vimfx-mode
="find"][vimfx-focus-type
="findbar"]
44 ) #VimFxButton image
{
45 filter: grayscale
(100%) brightness
(150%);
50 /* All styles below are intentionally very generic to fit with the user’s system
57 #VimFxMarkersContainer {
64 #VimFxMarkersContainer.ui
{
73 /* Marker styles should be kept simple for performance. */
74 #VimFxMarkersContainer .marker
{
77 padding: var
(--padding
);
78 --border-color: rgba
(0, 0, 0, 0.4);
80 border: solid var
(--border-width
) var
(--border-color
);
81 background-color: #ffd76e;
87 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
88 * making them almost unreadable. */
92 #VimFxMarkersContainer:not
(.has-mixedcase
) .marker
{
93 text-transform: uppercase
;
96 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
98 #VimFxMarkersContainer .marker--matched
,
99 #VimFxMarkersContainer .marker-char--matched
{
100 color: rgba
(0, 0, 0, 0.3);
103 #VimFxMarkersContainer .marker--highlighted
{
104 background-color: lime
;
107 #VimFxMarkersContainer .marker--hidden
{
111 /* alt, ctrl, meta and shift can be targeted. */
112 #main-window[vimfx-held-modifiers
~="ctrl"][vimfx-held-modifiers
~="shift"]
113 #VimFxMarkersContainer {
117 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
119 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
122 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
129 border-left: inherit
;
130 background-image: linear-gradient
(
133 var
(--border-color
) 0,
134 var
(--border-color
) 75%,
141 /***** Help Dialog *****/
143 #VimFxHelpDialogContainer {
148 background-color: Window
;
151 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
152 * making them almost unreadable. */
160 #VimFxHelpDialogContainer .wrapper
{
168 padding-top: calc
(var
(--page-padding
) / 2);
169 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
170 padding-right: var
(--page-padding
);
173 #VimFxHelpDialogContainer .vimfx-box
{
177 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
183 #VimFxHelpDialogContainer .header
{
185 margin-left: var
(--gutter
);
186 margin-bottom: calc
(var
(--page-padding
) / 4);
190 #VimFxHelpDialogContainer .heading-main
{
192 /* Add space for the close button. */
196 #VimFxHelpDialogContainer .logo
{
200 font-family: Helvetica
, Arial
, Verdana
, sans-serif
;
202 letter-spacing: -0.035em;
203 text-shadow: 0.04em 0.02em black
;
206 #VimFxHelpDialogContainer .logo::before
{
208 margin-left: -0.15em;
209 padding-left: 1.67ch;
210 background: url
(icon128.png) no-repeat
;
211 background-size: contain
;
214 #VimFxHelpDialogContainer .logo::after
{
219 #VimFxHelpDialogContainer .title
{
220 display: inline-block
;
225 #VimFxHelpDialogContainer .close-button
{
230 -moz-user-select: none
;
233 #VimFxHelpDialogContainer .close-button:hover
{
237 #VimFxHelpDialogContainer .content
{
242 #VimFxHelpDialogContainer .category
{
244 margin-left: var
(--gutter
);
245 margin-bottom: calc
(var
(--page-padding
) / 2);
248 #VimFxHelpDialogContainer :-moz-any
([data-mode
="find"], [data-mode
="marks"]) {
252 #VimFxHelpDialogContainer .heading-mode
,
253 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
257 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
258 /* Insert newline the same size as a `.heading-mode` to vertically align all
259 * `.heading-category`s. */
264 #VimFxHelpDialogContainer .heading-category
{
268 #VimFxHelpDialogContainer .command
{
275 #VimFxHelpDialogContainer .command
.has-click
{
279 #VimFxHelpDialogContainer .command
.has-click:hover
* {
280 text-decoration: underline
;
283 #VimFxHelpDialogContainer .key-sequence
{
288 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
292 #VimFxHelpDialogContainer .key-sequence-special-keys
{
293 /* The special keys are not helpful in the help dialog. If somebody
294 * disagrees, they can simply re-show them with custom CSS. */
298 #VimFxHelpDialogContainer .key-sequence-rest
{
302 #VimFxHelpDialogContainer .description
{
304 width: calc
(100% - 3.7em);
307 #VimFxHelpDialogContainer .search-input
{
313 #VimFxHelpDialogContainer .search-input:not
([focused
="true"]) {
315 pointer-events: none
;
318 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
320 #VimFxHelpDialogContainer .search-non-match
{
324 #VimFxHelpDialogContainer .search-highlight
{
326 background-color: Highlight
;
327 color: HighlightText
;