Debian Codegraph @

doc/pasdoc/html-parts/cge-pasdoc.css

raw symbols SCIP
1 /*
2 Copyright 1998-2023 Michalis Kamburelis, PasDoc developers.
3
4 This file was part of "PasDoc" and is adapted to "Castle Game Engine".
5
6 "PasDoc" is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 "PasDoc" is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with "PasDoc"; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19
20 ----------------------------------------------------------------------------
21 */
22
23 /* The CSS file from PasDoc, adjusted,
24 mainly to only change things inside .pasdoc-container (to not change
25 the Castle Game Engine header/footer style, produced by body-begin/end.php
26 files).
27 */
28
29 .cge-version-form {
30 margin-top: 2em;
31 }
32 .cge-version-form label {
33 font-weight: normal;
34 }
35
36 /* Remove Bootstrap (used by Castle Game Engine header) customizations of <code> in .itemcode */
37 .pasdoc-container .itemcode code {
38 background: transparent;
39 color: inherit;
40 }
41
42 .pasdoc-container td,
43 .pasdoc-container th {
44 border: 1px solid white;
45 }
46 .pasdoc-container th {
47 text-align: center;
48 padding: 0.2em;
49 }
50
51 /* Counter the padding of Bootstrap container-fluid around us.
52 We cannot just remove padding from container-fluid, as it's needed
53 for navbar to look right. */
54 .pasdoc-container {
55 margin-left: -15px;
56 /* margin-right: -15px; */
57 /* The value -15px is what we precisely want.
58 But Google Chrome does not calculate everything precisely then
59 (the outer padding 15px, this margin -15px),
60 and shows a useless horizontal scrollbar at the bottom of the page. */
61 margin-right: -14px;
62 }
63
64 /* Match CGE sidebar size and look */
65 .pasdoc-container .navigation {
66 background-image: linear-gradient(to bottom, #e8e8e8 0px, #f5f5f5 100%);
67 background-repeat: repeat-x;
68 border-color: #dcdcdc;
69 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset, 0 1px 0 rgba(255, 255, 255, 0.1);
70 border: 1px solid #e3e3e3;
71 border-radius: 4px;
72 margin-bottom: 20px;
73 }
74
75 /* Disable the max-width 100% rule which breaks these images. */
76 .pasdoc-container img {
77 max-width: none !important;
78 }
79
80 /* Our default left-aligned footer is obscured by PasDoc navigation */
81 .panel-footer {
82 text-align: right;
83 }
84
85 /* Adjusted original pasdoc.css below ---------------------------------------- */
86
87 .pasdoc-container .container {
88 margin: 0;
89 padding: 0;
90 }
91
92 .pasdoc-container .container {
93 width: 100%;
94 height: 100%;
95 border-spacing: 0;
96 }
97
98 /* Small screens, like phones */
99 @media (max-width: 1000px) {
100 /* nothing necessary now */
101 }
102
103 /* Large screens, like desktops */
104 @media (min-width: 1001px) {
105 .pasdoc-container .navigation {
106 float: left;
107 width: 20em; /* must match .content margin-left */
108 height: 100%;
109 position: fixed;
110 }
111 .pasdoc-container .content {
112 margin-left: 20em; /* must match .navigation width */
113 }
114 }
115
116 .pasdoc-container .navigation {
117 background-color: #787878;
118 margin: 0;
119 box-sizing: border-box; /* without this, you could not have padding here, it would overlap with .content, causing errors on narrow screens */
120 padding: 1em;
121 }
122 .pasdoc-container .navigation ul {
123 margin: 0em;
124 padding: 0em;
125 }
126 .pasdoc-container .navigation li {
127 list-style-type: none;
128 margin: 0.2em 0em 0em 0em;
129 padding: 0.25em;
130 }
131 .pasdoc-container .navigation h2 {
132 text-align: center;
133 margin: 0em;
134 padding: 0.5em;
135 }
136
137 .pasdoc-container .content {
138 box-sizing: border-box; /* without this, you could not have padding here, it would overlap with .navigation, causing errors on narrow screens */
139 padding: 1em;
140 }
141 .pasdoc-container .content h1 {
142 margin-top: 0;
143 }
144
145 .pasdoc-container img { border:0px; }
146
147 .pasdoc-container hr {
148 border-bottom: medium none;
149 border-top: thin solid #888;
150 }
151
152 .pasdoc-container a:link {text-decoration: none; }
153 .pasdoc-container a:visited {text-decoration: none; }
154 .pasdoc-container a:hover {text-decoration: underline; }
155 .pasdoc-container a:active {text-decoration: underline; }
156
157 .pasdoc-container .content a:link {color:#C91E0C; text-decoration: none; }
158 .pasdoc-container .content a:visited {color:#7E5C31; text-decoration: none; }
159
160 .pasdoc-container a.navigation:link { text-decoration: none; }
161 .pasdoc-container a.navigation:visited { text-decoration: none; }
162 .pasdoc-container a.navigation:hover { font-weight: bold; text-decoration: none; }
163 .pasdoc-container a.navigation:active { text-decoration: none; }
164
165 .pasdoc-container a.bold:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
166 .pasdoc-container a.bold:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
167 .pasdoc-container a.bold:hover {text-decoration: underline; font-weight:bold; }
168 .pasdoc-container a.bold:active {text-decoration: underline; font-weight:bold; }
169
170 .pasdoc-container a.section {color: green; text-decoration: none; font-weight: bold; }
171 .pasdoc-container a.section:hover {color: green; text-decoration: underline; font-weight: bold; }
172
173 .pasdoc-container ul.useslist a:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
174 .pasdoc-container ul.useslist a:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
175 .pasdoc-container ul.useslist a:hover {text-decoration: underline; font-weight:bold; }
176 .pasdoc-container ul.useslist a:active {text-decoration: underline; font-weight:bold; }
177
178 .pasdoc-container ul.hierarchy { list-style-type:none; }
179 .pasdoc-container ul.hierarchylevel { list-style-type:none; }
180
181 .pasdoc-container p.unitlink a:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
182 .pasdoc-container p.unitlink a:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
183 .pasdoc-container p.unitlink a:hover {text-decoration: underline; font-weight:bold; }
184 .pasdoc-container p.unitlink a:active {text-decoration: underline; font-weight:bold; }
185
186 .pasdoc-container tr.list { background: #FFBF44; }
187 .pasdoc-container tr.list2 { background: #FFC982; }
188 .pasdoc-container tr.listheader { background: #C91E0C; color: white; }
189
190 .pasdoc-container table.wide_list { border-spacing:2px; width:100%; }
191 .pasdoc-container table.wide_list td { vertical-align:top; padding:4px; }
192
193 .pasdoc-container table.markerlegend { width:auto; }
194 .pasdoc-container table.markerlegend td.legendmarker { text-align:center; }
195
196 .pasdoc-container .sections { background:white; }
197 .pasdoc-container .sections .one_section {
198 background:lightgray;
199 display: inline-block;
200 margin: 0.2em;
201 padding: 0.5em 1em;
202 }
203
204 .pasdoc-container table.summary td.itemcode { width:100%; }
205 .pasdoc-container table.detail td.itemcode { width:100%; }
206
207 .pasdoc-container td.itemname {white-space:nowrap; }
208 .pasdoc-container td.itemunit {white-space:nowrap; }
209 .pasdoc-container td.itemdesc { width:100%; }
210
211 .pasdoc-container p.nodescription { display: none; }
212
213 .pasdoc-container div.nodescription { color:red; }
214 .pasdoc-container dl.parameters dt { color:blue; }
215
216 /* Various browsers have various default styles for <h6>,
217 sometimes ugly for our purposes, so it's best to set things
218 like font-size and font-weight in out pasdoc.css explicitly. */
219 .pasdoc-container h6.description_section {
220 /* font-size 100% means that it has the same font size as the
221 parent element, i.e. normal description text */
222 font-size: 100%;
223 font-weight: bold;
224 /* By default browsers usually have some large margin-bottom and
225 margin-top for <h1-6> tags. In our case, margin-bottom is
226 unnecessary, we want to visually show that description_section
227 is closely related to content below. In this situation
228 (where the font size is just as a normal text), smaller bottom
229 margin seems to look good. */
230 margin-top: 1.4em;
231 margin-bottom: 0em;
232 }
233
234 /* Style applied to Pascal code in documentation
235 (e.g. produced by @longcode tag) } */
236 .pasdoc-container span.pascal_string { color: #000080; }
237 .pasdoc-container span.pascal_keyword { font-weight: bolder; }
238 .pasdoc-container span.pascal_comment { color: #000080; font-style: italic; }
239 .pasdoc-container span.pascal_compiler_comment { color: #008000; }
240 .pasdoc-container span.pascal_numeric { }
241 .pasdoc-container span.pascal_hex { }
242
243 .pasdoc-container p.hint_directive { color: red; }
244
245 .pasdoc-container input#search_text { }
246 .pasdoc-container input#search_submit_button { }
247
248 .pasdoc-container acronym.mispelling { background-color: #ffa; }
249
250 /* Actually this reduces vertical space between *every* paragraph
251 inside list with @itemSpacing(compact).
252 While we would like to reduce this space only for the
253 top of 1st and bottom of last paragraph within each list item.
254 But, well, user probably will not do any paragraph breaks
255 within a list with @itemSpacing(compact) anyway, so it's
256 acceptable solution. */
257 .pasdoc-container ul.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
258 .pasdoc-container ol.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
259 .pasdoc-container dl.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
260
261 /* Style for table created by @table tags:
262 just some thin border.
263
264 This way we have some borders around the cells
265 (so cells are visibly separated), but the border
266 "blends with the background" so it doesn't look too ugly.
267 Hopefully it looks satisfactory in most cases and for most
268 people.
269
270 We add padding for cells, otherwise they look too close.
271 This is normal thing to do when border-collapse is set to
272 collapse (because this eliminates spacing between cells).
273 */
274 .pasdoc-container table.table_tag { border-collapse: collapse; }
275 .pasdoc-container table.table_tag td { border: 1pt solid gray; padding: 0.3em; }
276 .pasdoc-container table.table_tag th { border: 1pt solid gray; padding: 0.3em; }
277
278 .pasdoc-container table.detail {
279 border: 1pt solid gray;
280 border-collapse: separate;
281 margin-top: 0.3em;
282 margin-bottom: 0.3em;
283 }
284
285 .pasdoc-container .search-form { white-space: nowrap; }
286 .pasdoc-container .search-input input { max-width: 80%; } /* this provides some safe space to always fit even on very narrow screens */
287 .pasdoc-container .search-input input, .search-button { display: inline-block; vertical-align: middle; }
288 .pasdoc-container .search-input { display: inline-block; }
289
290 /* Do not make extra vertical space at the beginning/end of table cells.
291 We need ">" selector, to not change paragraphs inside lists inside
292 table cells. */
293 .pasdoc-container table.table_tag td > p:first-child,
294 .pasdoc-container table.table_tag th > p:first-child,
295 td.itemdesc > p:first-child { margin-top: 0em; }
296
297 .pasdoc-container table.table_tag td > p:last-child,
298 .pasdoc-container table.table_tag th > p:last-child,
299 td.itemdesc > p:last-child { margin-bottom: 0em; }
300
301 .pasdoc-container .navigation h2 {
302 text-align: left;
303 padding: 0 !important;
304 }