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