2 * Copyright Simon Lydell 2015.
4 * This file is part of VimFx.
6 * VimFx is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * VimFx is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with VimFx. If not, see <http://www.gnu.org/licenses/>.
20 /* Allow file:/// prefix for testing using `gulp help.html`. */
21 @-moz-document url
(chrome://browser
/content
/browser
.xul
), url-prefix
(file:///)
27 list-style-image: url
(icon16.png);
30 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
31 list-style-image: url
(icon16-red
.png
);
34 #VimFxButton[cui-areatype
="menu-panel"],
35 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
36 list-style-image: url
(icon32.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
(icon32-red
.png
);
44 @media (min-resolution: 2dppx) {
50 list-style-image: url
(icon32.png);
53 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
54 list-style-image: url
(icon32-red
.png
);
57 #VimFxButton[cui-areatype
="menu-panel"],
58 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
59 list-style-image: url
(icon64.png);
62 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
63 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
64 list-style-image: url
(icon64-red
.png
);
70 /* All styles below are intentionally very generic to fit with the user’s system
77 #VimFxMarkersContainer {
81 /* Marker styles should be kept simple for performance. */
82 #VimFxMarkersContainer .marker
{
85 padding: var
(--padding
);
86 --border-color: #ad810c;
88 border: solid var
(--border-width
) var
(--border-color
);
89 background-color: #ffd76e;
94 text-transform: uppercase
;
96 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
97 * making them almost unreadable. */
101 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
103 #VimFxMarkersContainer .marker--matched
,
104 #VimFxMarkersContainer .marker-char--matched
{
108 #VimFxMarkersContainer .marker--hidden
{
112 /* alt, ctrl and meta can also be targeted. */
113 #main-window[vimfx-held-modifiers
~="shift"] #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 {
149 background-color: Window
;
152 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
153 * making them almost unreadable. */
158 padding-top: calc
(var
(--page-padding
) / 2);
159 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
160 padding-right: var
(--page-padding
);
163 #VimFxHelpDialogContainer * {
167 #VimFxHelpDialogContainer :-moz-any
([class^
="heading"], .key-sequence
) {
173 #VimFxHelpDialogContainer .header
{
175 margin-left: var
(--gutter
);
176 margin-bottom: calc
(var
(--page-padding
) / 4);
179 #VimFxHelpDialogContainer .heading-main
{
181 /* Add space for the close button. */
185 #VimFxHelpDialogContainer .logo
{
190 letter-spacing: -0.06em;
191 text-shadow: 0.04em 0.02em black
;
194 #VimFxHelpDialogContainer .logo::before
{
196 margin-left: -0.15em;
197 padding-left: 1.34ch;
198 background: url
(icon128.png) no-repeat
;
199 background-size: contain
;
202 #VimFxHelpDialogContainer .logo::after
{
207 #VimFxHelpDialogContainer .title
{
208 display: inline-block
;
213 #VimFxHelpDialogContainer .close-button
{
218 -moz-user-select: none
;
221 #VimFxHelpDialogContainer .close-button:hover
{
225 #VimFxHelpDialogContainer .content
{
230 #VimFxHelpDialogContainer .category
{
232 margin-left: var
(--gutter
);
233 margin-bottom: calc
(var
(--page-padding
) / 2);
236 #VimFxHelpDialogContainer .heading-mode
,
237 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
241 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
242 /* Insert newline the same size as a `.heading-mode` to vertically align all
243 * `.heading-category`s. */
248 #VimFxHelpDialogContainer .heading-category
{
252 #VimFxHelpDialogContainer .command
{
259 #VimFxHelpDialogContainer .key-sequence
{
264 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
268 #VimFxHelpDialogContainer .key-sequence-special-keys
{
269 /* The special keys are not helpful in the help dialog. If somebody
270 * disagrees, they can simply re-show them with custom CSS. */
274 #VimFxHelpDialogContainer .key-sequence-rest
{
278 #VimFxHelpDialogContainer .description
{
280 /* The space to the left should be wide enough to fit `<c-w>`. */
281 width: calc
(100% - 3.5em);