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
);
68 #main-window[vimfx-mode
="normal"][vimfx-focus-type
="editable"] #VimFxButton image
{
69 filter: grayscale
(100%) brightness
(150%);
74 /* All styles below are intentionally very generic to fit with the user’s system
81 #VimFxMarkersContainer {
85 /* Marker styles should be kept simple for performance. */
86 #VimFxMarkersContainer .marker
{
89 padding: var
(--padding
);
90 --border-color: #ad810c;
92 border: solid var
(--border-width
) var
(--border-color
);
93 background-color: #ffd76e;
98 text-transform: uppercase
;
100 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
101 * making them almost unreadable. */
105 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
107 #VimFxMarkersContainer .marker--matched
,
108 #VimFxMarkersContainer .marker-char--matched
{
112 #VimFxMarkersContainer .marker--hidden
{
116 /* alt, ctrl and meta can also be targeted. */
117 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
121 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
123 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
126 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
133 border-left: inherit
;
134 background-image: linear-gradient
(
137 var
(--border-color
) 0,
138 var
(--border-color
) 75%,
145 /***** Help Dialog *****/
147 #VimFxHelpDialogContainer {
153 background-color: Window
;
156 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
157 * making them almost unreadable. */
162 padding-top: calc
(var
(--page-padding
) / 2);
163 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
164 padding-right: var
(--page-padding
);
167 #VimFxHelpDialogContainer .vimfx-box
{
171 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
177 #VimFxHelpDialogContainer .header
{
179 margin-left: var
(--gutter
);
180 margin-bottom: calc
(var
(--page-padding
) / 4);
184 #VimFxHelpDialogContainer .heading-main
{
186 /* Add space for the close button. */
190 #VimFxHelpDialogContainer .logo
{
195 letter-spacing: -0.06em;
196 text-shadow: 0.04em 0.02em black
;
199 #VimFxHelpDialogContainer .logo::before
{
201 margin-left: -0.15em;
202 padding-left: 1.34ch;
203 background: url
(icon128.png) no-repeat
;
204 background-size: contain
;
207 #VimFxHelpDialogContainer .logo::after
{
212 #VimFxHelpDialogContainer .title
{
213 display: inline-block
;
218 #VimFxHelpDialogContainer .close-button
{
223 -moz-user-select: none
;
226 #VimFxHelpDialogContainer .close-button:hover
{
230 #VimFxHelpDialogContainer .content
{
235 #VimFxHelpDialogContainer .category
{
237 margin-left: var
(--gutter
);
238 margin-bottom: calc
(var
(--page-padding
) / 2);
241 #VimFxHelpDialogContainer .heading-mode
,
242 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
246 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
247 /* Insert newline the same size as a `.heading-mode` to vertically align all
248 * `.heading-category`s. */
253 #VimFxHelpDialogContainer .heading-category
{
257 #VimFxHelpDialogContainer .command
{
264 #VimFxHelpDialogContainer .key-sequence
{
269 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
273 #VimFxHelpDialogContainer .key-sequence-special-keys
{
274 /* The special keys are not helpful in the help dialog. If somebody
275 * disagrees, they can simply re-show them with custom CSS. */
279 #VimFxHelpDialogContainer .key-sequence-rest
{
283 #VimFxHelpDialogContainer .description
{
285 /* The space to the left should be wide enough to fit `<c-w>`. */
286 width: calc
(100% - 3.5em);
289 #VimFxHelpDialogContainer .search-input
{
295 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
297 #VimFxHelpDialogContainer .search-non-match
{
301 #VimFxHelpDialogContainer .search-highlight
{
303 background-color: Highlight
;
304 color: HighlightText
;