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
;
91 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
93 #VimFxMarkersContainer .marker--matched
,
94 #VimFxMarkersContainer .marker-char--matched
{
98 #VimFxMarkersContainer .marker--hidden
{
102 /* alt, ctrl and meta can also be targeted. */
103 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
109 /***** Help Dialog *****/
111 #VimFxHelpDialogContainer {
117 background-color: Window
;
123 padding-top: calc
(var
(--page-padding
) / 2);
124 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
125 padding-right: var
(--page-padding
);
128 #VimFxHelpDialogContainer * {
132 #VimFxHelpDialogContainer :-moz-any
([class^
="heading"], .key-sequence
) {
138 #VimFxHelpDialogContainer .header
{
140 margin-left: var
(--gutter
);
141 margin-bottom: calc
(var
(--page-padding
) / 4);
144 #VimFxHelpDialogContainer .heading-main
{
146 /* Add space for the close button. */
150 #VimFxHelpDialogContainer .logo
{
155 letter-spacing: -0.06em;
156 text-shadow: 0.04em 0.02em black
;
159 #VimFxHelpDialogContainer .logo::before
{
161 margin-left: -0.15em;
162 padding-left: 1.34ch;
163 background: url
(icon128.png) no-repeat
;
164 background-size: contain
;
167 #VimFxHelpDialogContainer .logo::after
{
172 #VimFxHelpDialogContainer .title
{
173 display: inline-block
;
178 #VimFxHelpDialogContainer .close-button
{
183 -moz-user-select: none
;
186 #VimFxHelpDialogContainer .close-button:hover
{
190 #VimFxHelpDialogContainer .content
{
195 #VimFxHelpDialogContainer .category
{
197 margin-left: var
(--gutter
);
198 margin-bottom: calc
(var
(--page-padding
) / 2);
201 #VimFxHelpDialogContainer .heading-mode
,
202 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
206 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
207 /* Insert newline the same size as a `.heading-mode` to vertically align all
208 * `.heading-category`s. */
213 #VimFxHelpDialogContainer .heading-category
{
217 #VimFxHelpDialogContainer .command
{
224 #VimFxHelpDialogContainer .key-sequence
{
229 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
233 #VimFxHelpDialogContainer .key-sequence-special-keys
{
234 /* The special keys are not helpful in the help dialog. If somebody
235 * disagrees, they can simply re-show them with custom CSS. */
239 #VimFxHelpDialogContainer .key-sequence-rest
{
243 #VimFxHelpDialogContainer .description
{
245 /* The space to the left should be wide enough to fit `<c-w>`. */
246 width: calc
(100% - 3.5em);