2 * Copyright Simon Lydell 2015, 2016.
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);
34 #main-window[vimfx-mode
="ignore"] #VimFxButton
{
35 list-style-image: url
(icon16-red
.png
);
38 #VimFxButton[cui-areatype
="menu-panel"],
39 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
40 list-style-image: url
(icon32.png);
43 #main-window[vimfx-mode
="ignore"] #VimFxButton
[cui-areatype
="menu-panel"],
44 #main-window[vimfx-mode
="ignore"] toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
45 list-style-image: url
(icon32-red
.png
);
48 @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:-moz-any
(
69 [vimfx-mode
="normal"],
71 )[vimfx-focus-type
="editable"] #VimFxButton image
{
72 filter: grayscale
(100%) brightness
(150%);
77 /* All styles below are intentionally very generic to fit with the user’s system
84 #VimFxMarkersContainer {
89 #VimFxMarkersContainer.ui
{
98 /* Marker styles should be kept simple for performance. */
99 #VimFxMarkersContainer .marker
{
102 padding: var
(--padding
);
103 --border-color: #ad810c;
105 border: solid var
(--border-width
) var
(--border-color
);
106 background-color: #ffd76e;
111 text-transform: uppercase
;
113 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
114 * making them almost unreadable. */
118 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
120 #VimFxMarkersContainer .marker--matched
,
121 #VimFxMarkersContainer .marker-char--matched
{
125 #VimFxMarkersContainer .marker--hidden
{
129 /* alt, ctrl and meta can also be targeted. */
130 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
134 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
136 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
139 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
146 border-left: inherit
;
147 background-image: linear-gradient
(
150 var
(--border-color
) 0,
151 var
(--border-color
) 75%,
158 /***** Help Dialog *****/
160 #VimFxHelpDialogContainer {
164 background-color: Window
;
167 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
168 * making them almost unreadable. */
176 #VimFxHelpDialogContainer .wrapper
{
184 padding-top: calc
(var
(--page-padding
) / 2);
185 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
186 padding-right: var
(--page-padding
);
189 #VimFxHelpDialogContainer .vimfx-box
{
193 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
199 #VimFxHelpDialogContainer .header
{
201 margin-left: var
(--gutter
);
202 margin-bottom: calc
(var
(--page-padding
) / 4);
206 #VimFxHelpDialogContainer .heading-main
{
208 /* Add space for the close button. */
212 #VimFxHelpDialogContainer .logo
{
217 letter-spacing: -0.06em;
218 text-shadow: 0.04em 0.02em black
;
221 #VimFxHelpDialogContainer .logo::before
{
223 margin-left: -0.15em;
224 padding-left: 1.34ch;
225 background: url
(icon128.png) no-repeat
;
226 background-size: contain
;
229 #VimFxHelpDialogContainer .logo::after
{
234 #VimFxHelpDialogContainer .title
{
235 display: inline-block
;
240 #VimFxHelpDialogContainer .close-button
{
245 -moz-user-select: none
;
248 #VimFxHelpDialogContainer .close-button:hover
{
252 #VimFxHelpDialogContainer .content
{
257 #VimFxHelpDialogContainer .category
{
259 margin-left: var
(--gutter
);
260 margin-bottom: calc
(var
(--page-padding
) / 2);
263 #VimFxHelpDialogContainer .heading-mode
,
264 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
268 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
269 /* Insert newline the same size as a `.heading-mode` to vertically align all
270 * `.heading-category`s. */
275 #VimFxHelpDialogContainer .heading-category
{
279 #VimFxHelpDialogContainer .command
{
287 #VimFxHelpDialogContainer .command:hover
* {
288 text-decoration: underline
;
291 #VimFxHelpDialogContainer .key-sequence
{
296 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
300 #VimFxHelpDialogContainer .key-sequence-special-keys
{
301 /* The special keys are not helpful in the help dialog. If somebody
302 * disagrees, they can simply re-show them with custom CSS. */
306 #VimFxHelpDialogContainer .key-sequence-rest
{
310 #VimFxHelpDialogContainer .description
{
312 /* The space to the left should be wide enough to fit `<c-w>`. */
313 width: calc
(100% - 3.5em);
316 #VimFxHelpDialogContainer .search-input
{
322 #VimFxHelpDialogContainer .search-input:not
([focused
="true"]) {
324 pointer-events: none
;
327 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
329 #VimFxHelpDialogContainer .search-non-match
{
333 #VimFxHelpDialogContainer .search-highlight
{
335 background-color: Highlight
;
336 color: HighlightText
;