]>
git.gir.st - VimFx.git/blob - extension/skin/style.css
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
) {
123 #VimFxHelpDialogContainer .header
{
125 margin-left: var
(--gutter
);
126 margin-bottom: calc
(var
(--page-padding
) / 4);
129 #VimFxHelpDialogContainer .heading-main
{
131 /* Add space for the close button. */
135 #VimFxHelpDialogContainer .logo
{
140 letter-spacing: -0.06em;
141 text-shadow: 0.04em 0.02em black
;
144 #VimFxHelpDialogContainer .logo::before
{
146 margin-left: -0.15em;
147 padding-left: 1.34ch;
148 background: url
(icon128.png) no-repeat
;
149 background-size: contain
;
152 #VimFxHelpDialogContainer .logo::after
{
157 #VimFxHelpDialogContainer .title
{
158 display: inline-block
;
163 #VimFxHelpDialogContainer .close-button
{
168 -moz-user-select: none
;
171 #VimFxHelpDialogContainer .close-button:hover
{
175 #VimFxHelpDialogContainer .content
{
180 #VimFxHelpDialogContainer .category
{
182 margin-left: var
(--gutter
);
183 margin-bottom: calc
(var
(--page-padding
) / 2);
186 #VimFxHelpDialogContainer .heading-mode
,
187 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
191 #VimFxHelpDialogContainer .category:not
(.first
)::before
{
192 /* Insert newline the same size as a `.heading-mode` to vertically align all
193 * `.heading-category`s. */
198 #VimFxHelpDialogContainer .heading-category
{
202 #VimFxHelpDialogContainer .command
{
209 #VimFxHelpDialogContainer .key-sequence
{
214 #VimFxHelpDialogContainer .key-sequence:last-of-type
{
218 #VimFxHelpDialogContainer .description
{
220 /* The space to the left should be wide enough to fit `<c-w>`. */
221 width: calc
(100% - 3.5em);