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 #VimFxButton[cui-areatype
="menu-panel"],
31 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
32 list-style-image: url
(icon32.png);
35 @media (min-resolution: 2dppx) {
37 list-style-image: url
(icon32.png);
40 #VimFxButton[cui-areatype
="menu-panel"],
41 toolbarpaletteitem
[place
="palette"] > #VimFxButton
{
42 list-style-image: url
(icon64.png);
46 #VimFxButton[vimfx-mode
="ignore"] {
47 filter: grayscale
(100%);
52 /* All styles below are intentionally very generic to fit with the user’s system
59 #VimFxMarkersContainer {
63 /* Marker styles should be kept simple for performance. */
64 #VimFxMarkersContainer .marker
{
67 border: solid
1px #ad810c;
68 background-color: #ffd76e;
73 text-transform: uppercase
;
77 #VimFxMarkersContainer .marker-char
{} /* Keep as documentation. */
79 #VimFxMarkersContainer .marker--matched
,
80 #VimFxMarkersContainer .marker-char--matched
{
84 #VimFxMarkersContainer .marker--hidden
{
88 /* alt, ctrl and meta can also be targeted. */
89 #main-window[vimfx-held-modifiers
~="shift"] #VimFxMarkersContainer
{
95 /***** Help Dialog *****/
97 #VimFxHelpDialogContainer {
103 background-color: Window
;
109 padding-top: calc
(var
(--page-padding
) / 2);
110 padding-left: calc
(var
(--page-padding
) - var
(--gutter
));
111 padding-right: var
(--page-padding
);
114 #VimFxHelpDialogContainer * {
118 #VimFxHelpDialogContainer :-moz-any
([class^
="heading"], .key-sequence
) {
124 #VimFxHelpDialogContainer .header
{
126 margin-left: var
(--gutter
);
127 margin-bottom: calc
(var
(--page-padding
) / 4);
130 #VimFxHelpDialogContainer .heading-main
{
132 /* Add space for the close button. */
136 #VimFxHelpDialogContainer .logo
{
141 letter-spacing: -0.06em;
142 text-shadow: 0.04em 0.02em black
;
145 #VimFxHelpDialogContainer .logo::before
{
147 margin-left: -0.15em;
148 padding-left: 1.34ch;
149 background: url
(icon128.png) no-repeat
;
150 background-size: contain
;
153 #VimFxHelpDialogContainer .logo::after
{
158 #VimFxHelpDialogContainer .title
{
159 display: inline-block
;
164 #VimFxHelpDialogContainer .close-button
{
169 -moz-user-select: none
;
172 #VimFxHelpDialogContainer .close-button:hover
{
176 #VimFxHelpDialogContainer .content
{
181 #VimFxHelpDialogContainer .category
{
183 margin-left: var
(--gutter
);
184 margin-bottom: calc
(var
(--page-padding
) / 2);
187 #VimFxHelpDialogContainer .heading-mode
,
188 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
192 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
193 /* Insert newline the same size as a `.heading-mode` to vertically align all
194 * `.heading-category`s. */
199 #VimFxHelpDialogContainer .heading-category
{
203 #VimFxHelpDialogContainer .command
{
210 #VimFxHelpDialogContainer .key-sequence
{
215 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
219 #VimFxHelpDialogContainer .key-sequence-special-keys
{
220 /* The special keys are not helpful in the help dialog. If somebody
221 * disagrees, they can simply re-show them with custom CSS. */
225 #VimFxHelpDialogContainer .key-sequence-rest
{
229 #VimFxHelpDialogContainer .description
{
231 /* The space to the left should be wide enough to fit `<c-w>`. */
232 width: calc
(100% - 3.5em);