]> git.gir.st - VimFx.git/blob - extension/resources/style.css
Make sure hint markers cannot be line-wrapped
[VimFx.git] / extension / resources / style.css
1 /*
2 * Copyright Anton Khodakivskiy 2012, 2013.
3 * Copyright Simon Lydell 2013, 2014.
4 *
5 * This file is part of VimFx.
6 *
7 * VimFx is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * VimFx is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with VimFx. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * Copyright (c) 2010 Phil Crosby, Ilya Sukhar.
21 *
22 * Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or sell
27 * copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44 /* Copied over from vimium project */
45 .VimFxReset {
46 background: none !important;
47 border: none !important;
48 /*bottom: auto !important;*/
49 box-shadow: none !important;
50 color: WindowText !important;
51 cursor: auto !important;
52 display: inline !important;
53 float: none !important;
54 font-family: "Helvetica Neue", "Helvetica", "Arial", "Sans" !important;
55 font-size: inherit !important;
56 font-style: normal !important;
57 font-variant: normal !important;
58 font-weight: normal !important;
59 height: auto !important;
60 /*left: auto !important;*/
61 letter-spacing: 0 !important;
62 line-height: 100% !important;
63 margin: 0 !important;
64 max-height: none !important;
65 max-width: none !important;
66 min-height: 0 !important;
67 min-width: 0 !important;
68 opacity: 1 !important;
69 outline: none !important;
70 padding: 0 !important;
71 position: static !important;
72 /*right: auto !important;*/
73 text-align: left !important;
74 text-decoration: none !important;
75 text-indent: 0 !important;
76 text-shadow: none !important;
77 text-transform: none !important;
78 /*top: auto !important;*/
79 vertical-align: baseline !important;
80 white-space: normal !important;
81 width: auto !important;
82 float: none !important;
83 }
84 .VimFxReset::before,
85 .VimFxReset::after {
86 content: none !important;
87 }
88
89 /* Markers */
90
91 .VimFxMarkersContainer {
92 position: absolute;
93 }
94
95 .VimFxHintMarker {
96 white-space: nowrap;
97 position: absolute;
98 padding: 1px 2px 0 2px;
99 line-height: 1;
100 background-color: #FFD76E;
101 border: solid 1px #AD810C;
102 border-radius: 2px;
103 box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.3);
104 font-size: 12px;
105 color: #302505;
106 font-family: "Helvetica Neue", "Helvetica", "Arial", "Sans";
107 font-weight: bold;
108 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
109 text-transform: uppercase;
110 }
111
112 .VimFxCharMatch,
113 .VimFxMatchedHintMarker {
114 color: #ffa22a;
115 }
116
117 .VimFxHiddenHintMarker {
118 display: none;
119 }
120
121 /* This class is temporarily added to markable element, to remove border-radius
122 * while doing some computations. The `!important`s are therefore needed. */
123 .VimFxNoBorderRadius {
124 border-radius: 0 !important;
125 /* `transition` is reset here to make sure that the above declaration
126 * takes effect immediately. */
127 transition: none !important;
128 }
129
130 /* Help Dialog */
131
132 div#VimFxHelpDialog {
133 opacity: 0.92 !important;
134 background-color: Window !important;
135 position: fixed !important;
136 /* See mode-hints/hints.coffee for where the z-index value comes from. */
137 z-index: 2147480000 !important;
138 border-radius: 3px !important;
139 padding: 15px 30px !important;
140 width: 700px !important;
141 left: 50% !important;
142 /* This needs to be 1/2 width to horizontally center the help dialog */
143 margin-left: -380px !important;
144 top: 30px !important;
145 box-shadow: rgba(1, 2, 1, 0.4) 0px 0px 6px !important;
146 overflow-y: auto !important;
147 font-size: 15px !important;
148 max-height: 80% !important;
149 }
150
151 div#VimFxHelpDialog .VimFxTitle {
152 font-size: 30px !important;
153 line-height: 130% !important;
154 display: block !important;
155 float: left !important;
156 }
157
158 div#VimFxHelpDialog .VimFxClearFix {
159 clear: both !important;
160 float: none !important;
161 display: block !important;
162 visibility: hidden !important;
163 height: 0 !important;
164 }
165
166 div#VimFxHelpDialog .VimFxTitleVim {
167 color: darkgreen !important;
168 }
169
170 div#VimFxHelpDialog .VimFxTitleFx {
171 color: darkred !important;
172 }
173
174 div#VimFxHelpDialog .VimFxVersion {
175 float: right !important;
176 position: absolute !important;
177 top: 20px !important;
178 right: 100px !important;
179 font-size: 12px !important;
180 }
181
182 div#VimFxHelpDialog .VimFxClose {
183 float: right !important;
184 font-family: "Helvetica Neue", "Helvetica", "Arial", "Sans" !important;
185 position: absolute !important;
186 right: 20px !important;
187 top: 20px !important;
188 font-size: 20px !important;
189 cursor: pointer !important;
190 }
191
192 div#VimFxHelpDialog .VimFxColumn {
193 width: 46% !important;
194 margin: 0 0 0 8% !important;
195 float: left !important;
196 margin-bottom: 10px !important;
197 }
198
199 div#VimFxHelpDialog .VimFxColumn:first-child {
200 margin: 0 !important;
201 }
202
203 div#VimFxHelpDialog .VimFxSectionTitle {
204 display: block !important;
205 font-size: 15px !important;
206 font-weight: bold !important;
207 line-height: 140% !important;
208 text-transform: uppercase !important;
209 margin: 30px 0 10px 0 !important;
210
211 }
212
213 div#VimFxHelpDialog table.VimFxReset {
214 display: table !important;
215 table-layout: fixed !important;
216 }
217
218 div#VimFxHelpDialog tr.VimFxReset {
219 display: table-row !important;
220 }
221
222 div#VimFxHelpDialog td.VimFxReset {
223 display: table-cell !important;
224 padding-top: 2px !important;
225 padding-bottom: 4px !important;
226 line-height: 15px !important;
227 }
228
229 div.VimFxKeySequence {
230 max-width: 70px !important;
231 text-align: right !important;
232 font-weight: bold !important;
233 color: #2f508e !important;
234 white-space: nowrap !important;
235 }
236
237 a.VimFxKeyLink {
238 display: inline !important;
239 background: #777 !important;
240 border: none !important;
241 color: #fff !important;
242 cursor: pointer !important;
243 font-weight: bold !important;
244 border-radius: 3px !important;
245 text-shadow: 1px 1px #666 !important;
246 font-size: 75% !important;
247 padding: 2px 3px !important;
248 }
249
250 a.VimFxKeyLink:hover {
251 outline: 3px solid #c55500 !important;
252 -moz-outline-radius: 6px !important;
253 background: #c55500 !important;
254 border-radius: 0px !important;
255 text-decoration: none !important;
256 }
257
258 a.VimFxAddShortcutLink {
259 color: #c55500 !important;
260 cursor: pointer !important;
261 margin-left: 2px !important;
262 }
263
264 div#VimFxHelpDialog .VimFxFooter {
265 float: left !important;
266 margin-top: 30px !important;
267 font-size: 12px !important;
268 }
269
270 div#VimFxHelpDialog .VimFxFooter p {
271 display: block !important;
272 line-height: 150% !important;
273 margin-bottom: 5px !important;
274 }
275
276 div#VimFxHelpDialog .VimFxFooter a {
277 text-decoration: underline !important;
278 color: darkblue !important;
279 cursor: pointer !important;
280 }
281
282 div#VimFxHelpDialog span.VimFxDot {
283 color: #818181 !important;
284 }
Imprint / Impressum