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 border: solid
1px #ad810c;
86 background-color: #ffd76e;
91 text-transform: uppercase
;
93 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
94 * making them almost unreadable. */
98 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
100 #VimFxMarkersContainer .marker--matched
,
101 #VimFxMarkersContainer .marker-char--matched
{
105 #VimFxMarkersContainer .marker--hidden
{
109 /* alt, ctrl and meta can also be targeted. */
110 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
116 /***** Help Dialog *****/
118 #VimFxHelpDialogContainer {
124 background-color: Window
;
127 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
128 * making them almost unreadable. */
133 padding-top: calc
(var
(--page-padding
) / 2);
134 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
135 padding-right: var
(--page-padding
);
138 #VimFxHelpDialogContainer * {
142 #VimFxHelpDialogContainer :-moz-any
([class^
="heading"], .key-sequence
) {
148 #VimFxHelpDialogContainer .header
{
150 margin-left: var
(--gutter
);
151 margin-bottom: calc
(var
(--page-padding
) / 4);
154 #VimFxHelpDialogContainer .heading-main
{
156 /* Add space for the close button. */
160 #VimFxHelpDialogContainer .logo
{
165 letter-spacing: -0.06em;
166 text-shadow: 0.04em 0.02em black
;
169 #VimFxHelpDialogContainer .logo::before
{
171 margin-left: -0.15em;
172 padding-left: 1.34ch;
173 background: url
(icon128.png) no-repeat
;
174 background-size: contain
;
177 #VimFxHelpDialogContainer .logo::after
{
182 #VimFxHelpDialogContainer .title
{
183 display: inline-block
;
188 #VimFxHelpDialogContainer .close-button
{
193 -moz-user-select: none
;
196 #VimFxHelpDialogContainer .close-button:hover
{
200 #VimFxHelpDialogContainer .content
{
205 #VimFxHelpDialogContainer .category
{
207 margin-left: var
(--gutter
);
208 margin-bottom: calc
(var
(--page-padding
) / 2);
211 #VimFxHelpDialogContainer .heading-mode
,
212 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
216 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
217 /* Insert newline the same size as a `.heading-mode` to vertically align all
218 * `.heading-category`s. */
223 #VimFxHelpDialogContainer .heading-category
{
227 #VimFxHelpDialogContainer .command
{
234 #VimFxHelpDialogContainer .key-sequence
{
239 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
243 #VimFxHelpDialogContainer .key-sequence-special-keys
{
244 /* The special keys are not helpful in the help dialog. If somebody
245 * disagrees, they can simply re-show them with custom CSS. */
249 #VimFxHelpDialogContainer .key-sequence-rest
{
253 #VimFxHelpDialogContainer .description
{
255 /* The space to the left should be wide enough to fit `<c-w>`. */
256 width: calc
(100% - 3.5em);