doc: Rename `synopsys` into `synopsis`
[nit.git] / share / nitweb / stylesheets / nitlight.css
1 /*
2 * Copyright 2017 Alexandre Terrasa <alexandre@moz-code.org>.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * Code Highlighting
19 */
20
21 .nitdoc h1, .nitdoc h2, .nitdoc h3, .nitdoc h4, .nitdoc h5, .nitdoc h6 {
22 color: #333;
23 }
24
25 .nitdoc .synopsis {
26 margin-top: 0;
27 }
28
29 .nitcode a { color: inherit; text-decoration: inherit; } /* hide links */
30 .nitcode a:hover { text-decoration: underline; } /* underline links */
31 .nitcode span[title]:hover { text-decoration: underline; } /* underline titles */
32 /* lexical raw tokens. independent of usage or semantic: */
33 .nitcode .nc_c { color: gray; font-style: italic; } /* comment */
34 .nitcode .nc_d { color: #3D8127; font-style: italic; } /* documentation comments */
35 .nitcode .nc_k { font-weight: bold; } /* keyword */
36 .nitcode .nc_o {} /* operator */
37 .nitcode .nc_i {} /* standard identifier */
38 .nitcode .nc_t { color: #445588; font-weight: bold; } /* type/class identifier */
39 .nitcode .nc_a { color: #445588; font-style: italic; } /* old style attribute identifier */
40 .nitcode .nc_l { color: #009999; } /* char and number literal */
41 .nitcode .nc_s { color: #8F1546; } /* string literal */
42 /* syntactic token usage. added because of their position in the AST */
43 .nitcode .nc_ast { color: blue; } /* assert label */
44 .nitcode .nc_la { color: blue; } /* break/continue label */
45 .nitcode .nc_m { color: #445588; } /* module name */
46 /* syntactic groups */
47 .nitcode .nc_def { font-weight: bold; color: blue; } /* name used in a definition */
48 .nitcode .nc_def.nc_a { color: blue; } /* name used in a attribute definition */
49 .nitcode .nc_def.nc_t { color: blue; } /* name used in a class or vt definition */
50 .nitcode .nc_ss { color: #9E6BEB; } /* superstrings */
51 .nitcode .nc_cdef {} /* A whole class definition */
52 .nitcode .nc_pdef {} /* A whole property definition */
53 /* semantic token usage */
54 .nitcode .nc_v { font-style: italic; } /* local variable or parameter */
55 .nitcode .nc_vt { font-style: italic; } /* virtual type or formal type */
56 .nitcode .nc_error { border: 1px red solid;} /* not used */