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 {
63 #VimFxMarkersContainer.ui
{
72 /* Marker styles should be kept simple for performance. */
73 #VimFxMarkersContainer .marker
{
76 padding: var
(--padding
);
77 --border-color: rgba
(0, 0, 0, 0.4);
79 border: solid var
(--border-width
) var
(--border-color
);
80 background-color: #ffd76e;
86 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
87 * making them almost unreadable. */
91 #VimFxMarkersContainer:not
(.has-mixedcase
) .marker
{
92 text-transform: uppercase
;
95 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
97 #VimFxMarkersContainer .marker--matched
,
98 #VimFxMarkersContainer .marker-char--matched
{
99 color: rgba
(0, 0, 0, 0.3);
102 #VimFxMarkersContainer .marker--highlighted
{
103 background-color: lime
;
106 #VimFxMarkersContainer .marker--hidden
{
110 /* alt, ctrl, meta and shift can be targeted. */
111 #main-window[vimfx-held-modifiers
~="ctrl"][vimfx-held-modifiers
~="shift"]
112 #VimFxMarkersContainer {
116 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
118 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
121 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
128 border-left: inherit
;
129 background-image: linear-gradient
(
132 var
(--border-color
) 0,
133 var
(--border-color
) 75%,
140 /***** Help Dialog *****/
142 #VimFxHelpDialogContainer {
146 background-color: Window
;
149 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
150 * making them almost unreadable. */
158 #VimFxHelpDialogContainer .wrapper
{
166 padding-top: calc
(var
(--page-padding
) / 2);
167 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
168 padding-right: var
(--page-padding
);
171 #VimFxHelpDialogContainer .vimfx-box
{
175 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
181 #VimFxHelpDialogContainer .header
{
183 margin-left: var
(--gutter
);
184 margin-bottom: calc
(var
(--page-padding
) / 4);
188 #VimFxHelpDialogContainer .heading-main
{
190 /* Add space for the close button. */
194 #VimFxHelpDialogContainer .logo
{
198 font-family: Helvetica
, Arial
, Verdana
, sans-serif
;
200 letter-spacing: -0.035em;
201 text-shadow: 0.04em 0.02em black
;
204 #VimFxHelpDialogContainer .logo::before
{
206 margin-left: -0.15em;
207 padding-left: 1.67ch;
208 background: url
(icon128.png) no-repeat
;
209 background-size: contain
;
212 #VimFxHelpDialogContainer .logo::after
{
217 #VimFxHelpDialogContainer .title
{
218 display: inline-block
;
223 #VimFxHelpDialogContainer .close-button
{
228 -moz-user-select: none
;
231 #VimFxHelpDialogContainer .close-button:hover
{
235 #VimFxHelpDialogContainer .content
{
240 #VimFxHelpDialogContainer .category
{
242 margin-left: var
(--gutter
);
243 margin-bottom: calc
(var
(--page-padding
) / 2);
246 #VimFxHelpDialogContainer :-moz-any
([data-mode
="find"], [data-mode
="marks"]) {
250 #VimFxHelpDialogContainer .heading-mode
,
251 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
255 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
256 /* Insert newline the same size as a `.heading-mode` to vertically align all
257 * `.heading-category`s. */
262 #VimFxHelpDialogContainer .heading-category
{
266 #VimFxHelpDialogContainer .command
{
273 #VimFxHelpDialogContainer .command
.has-click
{
277 #VimFxHelpDialogContainer .command
.has-click:hover
* {
278 text-decoration: underline
;
281 #VimFxHelpDialogContainer .key-sequence
{
286 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
290 #VimFxHelpDialogContainer .key-sequence-special-keys
{
291 /* The special keys are not helpful in the help dialog. If somebody
292 * disagrees, they can simply re-show them with custom CSS. */
296 #VimFxHelpDialogContainer .key-sequence-rest
{
300 #VimFxHelpDialogContainer .description
{
302 width: calc
(100% - 3.7em);
305 #VimFxHelpDialogContainer .search-input
{
311 #VimFxHelpDialogContainer .search-input:not
([focused
="true"]) {
313 pointer-events: none
;
316 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
318 #VimFxHelpDialogContainer .search-non-match
{
322 #VimFxHelpDialogContainer .search-highlight
{
324 background-color: Highlight
;
325 color: HighlightText
;