0fd73b7dd170bcc6843ecc6b9fa74a3ca985d3d7
[nit.git] / share / nitdoc / css / nitdoc.css
1 /*
2 * Global
3 */
4
5 body {
6 text-align: justify;
7 }
8
9 a:hover {
10 text-decoration: none;
11 }
12
13 ul li .label {
14 padding: 1px 4px;
15 font-size: 70%;
16 vertical-align: middle;
17 border-radius: .25em;
18 margin: 3px;
19 font-family: monospace;
20 }
21
22 code {
23 color: #333;
24 border: 1px solid #ddd;
25 }
26
27 .navbar-default .navbar-toggle {
28 margin-top: 2px;
29 padding: 5px 10px;
30 }
31
32 h3 {
33 margin: 10px 0;
34 }
35
36 /*
37 * Sidebar
38 */
39
40 #sidebar .panel {
41 margin-top: 15px;
42 box-shadow: none;
43 }
44
45 #sidebar .panel-heading {
46 padding: 3px 0 0 0;
47 font-size: 16px;
48 }
49
50 #sidebar .panel-body {
51 padding: 0;
52 }
53
54 #sidebar .panel-body ul>li>a {
55 padding: 0;
56 }
57
58 #sidebar .panel-body ul>li {
59 padding: 0 0 0 15px;
60 font-size: 15px;
61 color: #333;
62 }
63
64 #sidebar .panel-body ul ul>li,
65 #sidebar .panel-body ul ul>li a {
66 padding: 0 0 0 0;
67 font-size: 14px;
68 color: #666;
69 }
70
71 #sidebar .panel-body ul .list-labeled>li {
72 }
73
74 #sidebar .panel-body ul ul ul>li {
75 font-size: 13px;
76 color: #999;
77 }
78
79 #sidebar .panel-heading a:hover, #sidebar .panel ul a:hover {
80 color: #0d8921;
81 background-color: transparent;
82 }
83
84 #sidebar .summary .nav>li>a {
85 padding: 3px 0 0 10px;
86 font-size: 15px;
87 border-left: 2px solid transparent;
88 color: #333;
89 }
90
91 #sidebar .summary .nav .nav>li>a {
92 padding-top: 2px;
93 padding-left: 15px;
94 font-size: 14px;
95 color: #666;
96 }
97
98 #sidebar .summary .nav .nav .nav>li>a {
99 padding-left: 20px;
100 font-size: 13px;
101 color: #999;
102 }
103
104 #sidebar .summary .nav .nav .nav .nav>li>a {
105 font-size: 12px;
106 color: #CCC;
107 }
108
109 #sidebar .summary .nav>.active>a,
110 #sidebar .summary .nav>.active>a:hover,
111 #sidebar .summary .nav>li>a:hover {
112 color: #0d8921;
113 background-color: transparent;
114 }
115
116 #sidebar .summary .nav>.active>a,
117 #sidebar .summary .nav>.active>a:hover,
118 #sidebar .summary .nav .nav>.active>a,
119 #sidebar .summary .nav .nav>.active>a:hover,
120 #sidebar .summary .nav .nav .nav>.active>a,
121 #sidebar .summary .nav .nav .nav>.active>a:hover {
122 color: #0d8921;
123 border-left: 2px solid #0d8921;
124 margin-left: 0px;
125 }
126
127 #sidebar .summary .nav>li>a:hover,
128 #sidebar .summary .nav .nav>li>a:hover,
129 #sidebar .summary .nav .nav .nav>li>a:hover {
130 color: #0d8921;
131 border-left: 1px solid #0d8921;
132 margin-left: 1px;
133 background-color: transparent;
134 }
135
136 /*
137 * Content
138 */
139
140 #content {
141 position: fixed;
142 top: 30px;
143 bottom: 0;
144 left: 10px;
145 right: 15px;
146 }
147
148 #content>.col {
149 height: 100%;
150 overflow-y: scroll;
151 }
152
153 #content>.col::-webkit-scrollbar-thumb {
154 background: transparent;
155 }
156
157 #content>.col:hover::-webkit-scrollbar-thumb {
158 background: #CCC;
159 -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,0.10),inset 0 -1px 0 rgba(0,0,0,0.07);
160 }
161
162 #content>.col::-webkit-scrollbar {
163 width: 7px;
164 height: 7px;
165 }
166
167 #content>.col::-webkit-scrollbar-thumb:hover {
168 background: #999;
169 }
170
171 #content>.col::-webkit-scrollbar-corner {
172 background: transparent;
173 }
174
175 #content>.col::-webkit-scrollbar-button {
176 width: 0;
177 height: 0;
178 display: none;
179 }
180
181 #content article {
182 padding: 10px 0px;
183 }
184
185 #content article:target {
186 padding-left: 10px;
187 margin-left: -10px;
188 border-left: 2px solid #0d8921;
189 }
190
191 /*
192 * Page parts
193 */
194
195 .footer {
196 padding: 10px;
197 margin: 20px 0;
198 }
199
200 .subtitle {
201 margin-bottom: 10px;
202 }
203
204 .label:empty {
205 display:inline;
206 }
207
208 .label.intro:before {
209 content: "I";
210 }
211 .label.redef:before {
212 content: "R";
213 }
214 .label.inherit:before {
215 content: "H";
216 }
217
218 .signature span.glyphicon {
219 margin: 0 10px 5px 0;
220 font-size: 55%;
221 vertical-align: middle;
222 }
223
224 .signature a, .list-definition a {
225 color: #0d8921;
226 }
227
228 .info {
229 color: #888;
230 }
231
232 .info a {
233 color: #666;
234 }
235
236 .info a:hover {
237 color: #333;
238 }
239
240 .graph {
241 text-align: center;
242 }
243
244 .synopsys {
245 margin: 5px 0;
246 font-size: 16px;
247 font-weight: bold;
248 line-height: 1.4;
249 }
250
251 .public {
252 color: #5cb85c;
253 }
254
255 .protected {
256 color: #f0ad4e;
257 }
258
259 .private {
260 color: #a94442;
261 }
262
263 .list-definition .list-definition {
264 margin-left: 30px;
265 }
266
267 .source-link {
268 display: none;
269 float: right;
270 margin-top: 10px;
271 }
272
273 .source-link a {
274 color: #0d8921;
275 }
276
277 article:hover .source-link, article:target .source-link {
278 display: block;
279 }
280
281 /*
282 * Code Highlighting
283 */
284
285 .nitcode a { color: inherit; text-decoration: inherit; } /* hide links */
286 .nitcode a:hover { text-decoration: underline; } /* underline links */
287 .nitcode span[title]:hover { text-decoration: underline; } /* underline titles */
288 /* lexical raw tokens. independent of usage or semantic: */
289 .nitcode .nc_c { color: gray; font-style: italic; } /* comment */
290 .nitcode .nc_d { color: #3D8127; font-style: italic; } /* documentation comments */
291 .nitcode .nc_k { font-weight: bold; } /* keyword */
292 .nitcode .nc_o {} /* operator */
293 .nitcode .nc_i {} /* standard identifier */
294 .nitcode .nc_t { color: #445588; font-weight: bold; } /* type/class identifier */
295 .nitcode .nc_a { color: #445588; font-style: italic; } /* old style attribute identifier */
296 .nitcode .nc_l { color: #009999; } /* char and number literal */
297 .nitcode .nc_s { color: #8F1546; } /* string literal */
298 /* syntactic token usage. added because of their position in the AST */
299 .nitcode .nc_ast { color: blue; } /* assert label */
300 .nitcode .nc_la { color: blue; } /* break/continue label */
301 .nitcode .nc_m { color: #445588; } /* module name */
302 /* syntactic groups */
303 .nitcode .nc_def { font-weight: bold; color: blue; } /* name used in a definition */
304 .nitcode .nc_def.nc_a { color: blue; } /* name used in a attribute definition */
305 .nitcode .nc_def.nc_t { color: blue; } /* name used in a class or vt definition */
306 .nitcode .nc_ss { color: #9E6BEB; } /* superstrings */
307 .nitcode .nc_cdef {} /* A whole class definition */
308 .nitcode .nc_pdef {} /* A whole property definition */
309 /* semantic token usage */
310 .nitcode .nc_v { font-style: italic; } /* local variable or parameter */
311 .nitcode .nc_vt { font-style: italic; } /* virtual type or formal type */
312 .nitcode .nc_error { border: 1px red solid;} /* not used */
313