1 /* Allow file:/// prefix for testing using `gulp {help,hints}.html`. */
2 @-moz-document url
(chrome://browser
/content
/browser
.xul
), url-prefix
(file:///)
8 list-style-image: url
(icon16.png);
11 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
12 list-style-image: url
(icon16-red
.png
);
15 #VimFxButton[cui-areatype
="menu-panel"],
16 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
17 list-style-image: url
(icon32.png);
20 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
21 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
22 list-style-image: url
(icon32-red
.png
);
25 @media (min-resolution: 2dppx) {
27 list-style-image: url
(icon32.png);
30 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
31 list-style-image: url
(icon32-red
.png
);
34 #VimFxButton[cui-areatype
="menu-panel"],
35 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
36 list-style-image: url
(icon64.png);
39 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
40 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
41 list-style-image: url
(icon64-red
.png
);
45 #main-window:-moz-any
(
46 [vimfx-mode
="normal"][vimfx-focus-type
="editable"],
47 [vimfx-mode
="find"][vimfx-focus-type
="findbar"]
48 ) #VimFxButton image
{
49 filter: grayscale
(100%) brightness
(150%);
54 /* All styles below are intentionally very generic to fit with the user’s system
61 #VimFxMarkersContainer {
67 #VimFxMarkersContainer.ui
{
76 /* Marker styles should be kept simple for performance. */
77 #VimFxMarkersContainer .marker
{
80 padding: var
(--padding
);
81 --border-color: rgba
(0, 0, 0, 0.4);
83 border: solid var
(--border-width
) var
(--border-color
);
84 background-color: #ffd76e;
90 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
91 * making them almost unreadable. */
95 #VimFxMarkersContainer:not
(.has-mixedcase
) .marker
{
96 text-transform: uppercase
;
99 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
101 #VimFxMarkersContainer .marker--matched
,
102 #VimFxMarkersContainer .marker-char--matched
{
103 color: rgba
(0, 0, 0, 0.3);
106 #VimFxMarkersContainer .marker--highlighted
{
107 background-color: lime
;
110 #VimFxMarkersContainer .marker--hidden
{
114 /* alt, ctrl, meta and shift can be targeted. */
115 #main-window[vimfx-held-modifiers
~="ctrl"][vimfx-held-modifiers
~="shift"]
116 #VimFxMarkersContainer {
120 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
122 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
125 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
132 border-left: inherit
;
133 background-image: linear-gradient
(
136 var
(--border-color
) 0,
137 var
(--border-color
) 75%,
144 /***** Help Dialog *****/
146 #VimFxHelpDialogContainer {
150 background-color: Window
;
153 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
154 * making them almost unreadable. */
162 #VimFxHelpDialogContainer .wrapper
{
170 padding-top: calc
(var
(--page-padding
) / 2);
171 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
172 padding-right: var
(--page-padding
);
175 #VimFxHelpDialogContainer .vimfx-box
{
179 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
185 #VimFxHelpDialogContainer .header
{
187 margin-left: var
(--gutter
);
188 margin-bottom: calc
(var
(--page-padding
) / 4);
192 #VimFxHelpDialogContainer .heading-main
{
194 /* Add space for the close button. */
198 #VimFxHelpDialogContainer .logo
{
202 font-family: Helvetica
, Arial
, Verdana
, sans-serif
;
204 letter-spacing: -0.035em;
205 text-shadow: 0.04em 0.02em black
;
208 #VimFxHelpDialogContainer .logo::before
{
210 margin-left: -0.15em;
211 padding-left: 1.67ch;
212 background: url
(icon128.png) no-repeat
;
213 background-size: contain
;
216 #VimFxHelpDialogContainer .logo::after
{
221 #VimFxHelpDialogContainer .title
{
222 display: inline-block
;
227 #VimFxHelpDialogContainer .close-button
{
232 -moz-user-select: none
;
235 #VimFxHelpDialogContainer .close-button:hover
{
239 #VimFxHelpDialogContainer .content
{
244 #VimFxHelpDialogContainer .category
{
246 margin-left: var
(--gutter
);
247 margin-bottom: calc
(var
(--page-padding
) / 2);
250 #VimFxHelpDialogContainer :-moz-any
([data-mode
="find"], [data-mode
="marks"]) {
254 #VimFxHelpDialogContainer .heading-mode
,
255 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
259 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
260 /* Insert newline the same size as a `.heading-mode` to vertically align all
261 * `.heading-category`s. */
266 #VimFxHelpDialogContainer .heading-category
{
270 #VimFxHelpDialogContainer .command
{
277 #VimFxHelpDialogContainer .command
.has-click
{
281 #VimFxHelpDialogContainer .command
.has-click:hover
* {
282 text-decoration: underline
;
285 #VimFxHelpDialogContainer .key-sequence
{
290 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
294 #VimFxHelpDialogContainer .key-sequence-special-keys
{
295 /* The special keys are not helpful in the help dialog. If somebody
296 * disagrees, they can simply re-show them with custom CSS. */
300 #VimFxHelpDialogContainer .key-sequence-rest
{
304 #VimFxHelpDialogContainer .description
{
306 width: calc
(100% - 3.7em);
309 #VimFxHelpDialogContainer .search-input
{
315 #VimFxHelpDialogContainer .search-input:not
([focused
="true"]) {
317 pointer-events: none
;
320 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
322 #VimFxHelpDialogContainer .search-non-match
{
326 #VimFxHelpDialogContainer .search-highlight
{
328 background-color: Highlight
;
329 color: HighlightText
;