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);
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 {
86 #VimFxMarkersContainer.ui
{
95 /* Marker styles should be kept simple for performance. */
96 #VimFxMarkersContainer .marker
{
99 padding: var
(--padding
);
100 --border-color: #ad810c;
102 border: solid var
(--border-width
) var
(--border-color
);
103 background-color: #ffd76e;
108 text-transform: uppercase
;
110 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
111 * making them almost unreadable. */
115 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
117 #VimFxMarkersContainer .marker--matched
,
118 #VimFxMarkersContainer .marker-char--matched
{
122 #VimFxMarkersContainer .marker--hidden
{
126 /* alt, ctrl and meta can also be targeted. */
127 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
131 #VimFxMarkersContainer .marker
[data-type
="scrollable"] {
133 padding-right: calc
(var
(--padding
) + var
(--border-width
) + var
(--width
));
136 #VimFxMarkersContainer .marker
[data-type
="scrollable"]::after
{
143 border-left: inherit
;
144 background-image: linear-gradient
(
147 var
(--border-color
) 0,
148 var
(--border-color
) 75%,
155 /***** Help Dialog *****/
157 #VimFxHelpDialogContainer {
161 background-color: Window
;
164 /* Some light-weight themes set a `text-shadow` that the hint markers inherit,
165 * making them almost unreadable. */
173 #VimFxHelpDialogContainer .wrapper
{
181 padding-top: calc
(var
(--page-padding
) / 2);
182 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
183 padding-right: var
(--page-padding
);
186 #VimFxHelpDialogContainer .vimfx-box
{
190 #VimFxHelpDialogContainer :-moz-any
(.heading-mode
, .heading-category
, .key-sequence
) {
196 #VimFxHelpDialogContainer .header
{
198 margin-left: var
(--gutter
);
199 margin-bottom: calc
(var
(--page-padding
) / 4);
203 #VimFxHelpDialogContainer .heading-main
{
205 /* Add space for the close button. */
209 #VimFxHelpDialogContainer .logo
{
214 letter-spacing: -0.06em;
215 text-shadow: 0.04em 0.02em black
;
218 #VimFxHelpDialogContainer .logo::before
{
220 margin-left: -0.15em;
221 padding-left: 1.34ch;
222 background: url
(icon128.png) no-repeat
;
223 background-size: contain
;
226 #VimFxHelpDialogContainer .logo::after
{
231 #VimFxHelpDialogContainer .title
{
232 display: inline-block
;
237 #VimFxHelpDialogContainer .close-button
{
242 -moz-user-select: none
;
245 #VimFxHelpDialogContainer .close-button:hover
{
249 #VimFxHelpDialogContainer .content
{
254 #VimFxHelpDialogContainer .category
{
256 margin-left: var
(--gutter
);
257 margin-bottom: calc
(var
(--page-padding
) / 2);
260 #VimFxHelpDialogContainer .heading-mode
,
261 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
265 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
266 /* Insert newline the same size as a `.heading-mode` to vertically align all
267 * `.heading-category`s. */
272 #VimFxHelpDialogContainer .heading-category
{
276 #VimFxHelpDialogContainer .command
{
284 #VimFxHelpDialogContainer .command:hover
* {
285 text-decoration: underline
;
288 #VimFxHelpDialogContainer .key-sequence
{
293 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
297 #VimFxHelpDialogContainer .key-sequence-special-keys
{
298 /* The special keys are not helpful in the help dialog. If somebody
299 * disagrees, they can simply re-show them with custom CSS. */
303 #VimFxHelpDialogContainer .key-sequence-rest
{
307 #VimFxHelpDialogContainer .description
{
309 /* The space to the left should be wide enough to fit `<c-w>`. */
310 width: calc
(100% - 3.5em);
313 #VimFxHelpDialogContainer .search-input
{
319 #VimFxHelpDialogContainer .search-input:not
([focused
="true"]) {
321 pointer-events: none
;
324 #VimFxHelpDialogContainer .search-match
{} /* Keep as documentation. */
326 #VimFxHelpDialogContainer .search-non-match
{
330 #VimFxHelpDialogContainer .search-highlight
{
332 background-color: Highlight
;
333 color: HighlightText
;