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) {
46 list-style-image: url
(icon32.png);
49 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
50 list-style-image: url
(icon32-red
.png
);
53 #VimFxButton[cui-areatype
="menu-panel"],
54 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
55 list-style-image: url
(icon64.png);
58 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
59 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
60 list-style-image: url
(icon64-red
.png
);
66 /* All styles below are intentionally very generic to fit with the user’s system
73 #VimFxMarkersContainer {
77 /* Marker styles should be kept simple for performance. */
78 #VimFxMarkersContainer .marker
{
81 border: solid
1px #ad810c;
82 background-color: #ffd76e;
87 text-transform: uppercase
;
89 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
90 * making them almost unreadable. */
94 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
96 #VimFxMarkersContainer .marker--matched
,
97 #VimFxMarkersContainer .marker-char--matched
{
101 #VimFxMarkersContainer .marker--hidden
{
105 /* alt, ctrl and meta can also be targeted. */
106 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
112 /***** Help Dialog *****/
114 #VimFxHelpDialogContainer {
120 background-color: Window
;
123 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
124 * making them almost unreadable. */
129 padding-top: calc
(var
(--page-padding
) / 2);
130 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
131 padding-right: var
(--page-padding
);
134 #VimFxHelpDialogContainer * {
138 #VimFxHelpDialogContainer :-moz-any
([class^
="heading"], .key-sequence
) {
144 #VimFxHelpDialogContainer .header
{
146 margin-left: var
(--gutter
);
147 margin-bottom: calc
(var
(--page-padding
) / 4);
150 #VimFxHelpDialogContainer .heading-main
{
152 /* Add space for the close button. */
156 #VimFxHelpDialogContainer .logo
{
161 letter-spacing: -0.06em;
162 text-shadow: 0.04em 0.02em black
;
165 #VimFxHelpDialogContainer .logo::before
{
167 margin-left: -0.15em;
168 padding-left: 1.34ch;
169 background: url
(icon128.png) no-repeat
;
170 background-size: contain
;
173 #VimFxHelpDialogContainer .logo::after
{
178 #VimFxHelpDialogContainer .title
{
179 display: inline-block
;
184 #VimFxHelpDialogContainer .close-button
{
189 -moz-user-select: none
;
192 #VimFxHelpDialogContainer .close-button:hover
{
196 #VimFxHelpDialogContainer .content
{
201 #VimFxHelpDialogContainer .category
{
203 margin-left: var
(--gutter
);
204 margin-bottom: calc
(var
(--page-padding
) / 2);
207 #VimFxHelpDialogContainer .heading-mode
,
208 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
212 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
213 /* Insert newline the same size as a `.heading-mode` to vertically align all
214 * `.heading-category`s. */
219 #VimFxHelpDialogContainer .heading-category
{
223 #VimFxHelpDialogContainer .command
{
230 #VimFxHelpDialogContainer .key-sequence
{
235 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
239 #VimFxHelpDialogContainer .key-sequence-special-keys
{
240 /* The special keys are not helpful in the help dialog. If somebody
241 * disagrees, they can simply re-show them with custom CSS. */
245 #VimFxHelpDialogContainer .key-sequence-rest
{
249 #VimFxHelpDialogContainer .description
{
251 /* The space to the left should be wide enough to fit `<c-w>`. */
252 width: calc
(100% - 3.5em);