nitdoc: Add quick search results preview.
[nit.git] / share / nitdoc / styles / main.css
1 /* General */
2
3 body {
4 margin: 0;
5 font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
6 }
7
8 a {
9 color: #333;
10 text-decoration: none;
11 }
12
13 a:hover {
14 color: #0D8921;
15 }
16
17 ul {
18 list-style-type: square;
19 }
20
21 pre, code {
22 white-space: pre;
23 font-family: monospace;
24 font-size: 1em;
25 }
26
27 pre {
28 background: #EEE;
29 padding: 5px;
30 color: black;
31 overflow: auto;
32 }
33
34 hr {
35 background-color: #DDD;
36 height: 1px;
37 border: 0;
38 }
39
40 div.clear {
41 clear: both;
42 }
43
44 /* Titles */
45
46 h1, h2, h3, h4, h5 {
47 font-family: Verdana, Geneva, sans-serif;
48 color: #6C6C6C;
49 font-weight: normal;
50 }
51
52 h1 {
53 font-size: 300%;
54 margin: 0 0 10px 0;
55 }
56
57 h3 {
58 font-weight: bold;
59 }
60
61 /* Header, Footer */
62
63 header nav ul {
64 padding: 0;
65 list-style-type: none;
66 width: 900px;
67 margin: auto;
68 }
69
70 header nav ul li {
71 display: inline;
72 padding: 3px 6px;
73 margin: auto 5px;
74 color: #999;
75 }
76
77 header nav ul li a {
78 color: black;
79 }
80
81 header nav ul li a:hover {
82 color: #0D8921;
83 }
84
85 footer {
86 text-align: center;
87 padding: 20px 10px;
88 margin: 10px 100px;
89 color: #CCC;
90 }
91
92 /* Main menu */
93
94 header nav.main {
95 background: #E0E0E0 url(../resources/top_back.gif) repeat-x top left;
96 padding: 7px 0;
97 }
98
99 header nav.main ul li.current {
100 background: #0D8921;
101 color: white;
102 }
103
104 /* Page content */
105
106 .page {
107 width: 940px;
108 margin: auto;
109 }
110
111 /* Latteral Menu */
112
113 .menu {
114 width: 250px;
115 float: left;
116 }
117
118 .menu nav {
119 margin: 20px;
120 border: 1px solid #CCC;
121 }
122
123 .menu nav:first-child {
124 margin-top: 0;
125 }
126
127 .menu nav h3 {
128 margin: 0;
129 padding: 5px;
130 background: #CCC;
131 font-size: 1em;
132 }
133
134 .menu nav h4 {
135 font-weight: bold;
136 color: #555555;
137 margin: 10px 0 0 10px;
138 font-size: 12px;
139 }
140
141 .menu nav h4:last-child {
142 margin-bottom: 5px;
143 }
144
145 .menu nav ul {
146 margin: 10px;
147 padding: 0;
148 list-style-type: none;
149 }
150
151 .menu nav ul li {
152 overflow: hidden;
153 color: #CCC;
154 }
155
156 /* Content */
157
158 .content {
159 margin: 20px 20px 20px 260px;
160 }
161
162 .content.fullpage {
163 margin: 20px;
164 }
165
166 .content section {
167 margin: 20px 0;
168 }
169
170 .content article {
171 color: #6C6C6C;
172 background-repeat: no-repeat;
173 background-position: left 7px;
174 margin: 20px 0;
175 padding: 5px 20px;
176 }
177
178 .content article h3 {
179 margin: 0;
180 font-weight: normal;
181 color: #333;
182 }
183
184 .content article.graph {
185 text-align: center;
186 }
187
188 .content article.modules,
189 .content article.classes,
190 .content article.properties {
191 float: left;
192 width: 250px;
193 overflow: hidden;
194 }
195
196 .content article.overview ul,
197 .content article.modules ul,
198 .content article.classes ul,
199 .content article.properties ul {
200 list-style-type: none;
201 padding: 0;
202 }
203
204 .content article.properties ul ul {
205 padding-left: 10px;
206 }
207
208 nav ul li span,
209 .content article ul li span {
210 color: #CCC;
211 text-align: center;
212 font-family: monospace;
213 margin-right: 5px;
214 }
215
216 .content article.modules ul code,
217 .content article.classes ul code,
218 .content article.properties ul code {
219 font-weight: normal;
220 }
221
222 .content section.summary h2, .content section.summary article{
223 color: #000000;
224 }
225
226 .content section.summary article h3{
227 font-weight: bold;
228 color: #555;
229 }
230
231 .content article.highlighted {
232 background-color: #FFF3C2;
233 color: black;
234 }
235
236 .content .subtitle {
237 color: #6C6C6C;
238 }
239
240 .content a:hover {
241 color: #333;
242 }
243
244 .content a {
245 color: #0D8921;
246 }
247
248 article .info .code {
249 float: right;
250 }
251
252
253
254 /* JS facilities */
255
256 input[type=text] {
257 width: 150px;
258 border: 1px solid #CCC;
259 margin-right: 5px;
260 padding: 1px 2px;
261 }
262
263 input[type=text].notUsed {
264 color: #999;
265 font-style: italic;
266 }
267
268 nav .filter {
269 text-align: center;
270 padding: 5px;
271 }
272
273 nav.main input[type=text] {
274 margin: -2px 10px;
275 color: black;
276 font-style: normal;
277 }
278
279 nav.main form {
280 float: right;
281 }
282
283 .filter a {
284 color: #0D8921;
285 cursor: pointer;
286 font-family: monospace;
287 margin-right: 5px;
288 font-weight: bold;
289 }
290
291 .filter a.hidden {
292 color: #999;
293 font-weight: normal;
294 }
295
296 .filter a:hover {
297 text-decoration: underline;
298 }
299
300 nav h3 a.fold {
301 margin: 0 5px;
302 color: #999;
303 font-family: monospace;
304 font-weight: bold;
305 font-size: 120%;
306 cursor: pointer;
307 }
308
309 .hide {
310 overflow-y: hidden;
311 height: 0;
312 }
313
314 /* Icons */
315 .vtype.public { background-image: url('../resources/icons/vtype_public.png')}
316 .vtype.protected { background-image: url('../resources/icons/vtype_protected.png')}
317 .vtype.private { background-image: url('../resources/icons/vtype_private.png')}
318 .init.public { background-image: url('../resources/icons/const_public.png')}
319 .init.protected { background-image: url('../resources/icons/const_protected.png')}
320 .init.private { background-image: url('../resources/icons/const_private.png')}
321 .fun.public { background-image: url('../resources/icons/meth_public.png')}
322 .fun.protected { background-image: url('../resources/icons/meth_protected.png')}
323 .fun.private { background-image: url('../resources/icons/meth_private.png')}
324
325 /* Quick Search */
326
327 #search {
328 width: 300px;
329 }
330
331 #searchTable {
332 background-color: #FFFFFF;
333 border: 1px solid #E0E0E0;
334 border-spacing: 0px;
335 }
336
337 #searchTable .activeSearchResult {
338 cursor: pointer;
339 background: #EEE;
340 }
341
342 #searchTable td {
343 white-space: nowrap;
344 overflow: hidden;
345 line-height: 22px;
346 padding: 2px;
347 width: 25%;
348 }
349
350 #searchTable td.entryInfo {
351 color: #0D8921;
352 font-size: small;
353 width: 75%;
354 text-align: right;
355 }