]> gitweb.ps.run Git - ps-cgit/blob - cgit.css
Add shared diff-handling functions
[ps-cgit] / cgit.css
1 body {
2         font-family: arial;
3         font-size: 11pt;
4         background: white;
5 }
6
7 body, table {
8         padding: 0em;
9         margin: 0em;
10 }
11
12 table {
13       border-collapse: collapse;
14 }
15
16 h2 {
17         font-size: 120%;
18         font-weight: bold;
19         margin-top: 0em;
20         margin-bottom: 0.25em;
21 }
22
23 h3 {
24         margin-top: 0em;
25         font-size: 100%;
26         font-weight: normal;
27 }
28
29 a {
30         color: blue;
31         text-decoration: none;
32 }
33
34 a:hover {
35         text-decoration: underline;
36 }
37
38 table.list {
39         border: none;
40         border-collapse: collapse;
41 }
42
43 table.list tr {
44         background: white;
45 }
46
47 table.list tr:hover {
48         background: #eee;
49 }
50
51 table.list tr.nohover:hover {
52         background: white;
53 }
54
55 table.list th {
56         font-weight: normal;
57         border-bottom: solid 1px #777;
58         padding: 0.1em 0.5em 0.1em 0.5em;
59         vertical-align: baseline;
60 }
61
62 table.list td {
63         border: none;
64         padding: 0.1em 0.5em 0.1em 0.5em;
65 }
66
67 img {
68         border: none;
69 }
70
71 table#layout {
72         width: 100%;
73         border-collapse: collapse;
74         margin: 0px;
75 }
76
77 td#header, td#logo {
78         color: #666;
79         background-color: #ddd;
80         border-bottom: solid 1px #000;
81 }
82
83 td#header {
84         font-size: 150%;
85         font-weight: bold;
86         padding: 0.2em 0.5em;
87         vertical-align: text-bottom;
88 }
89
90 td#logo {
91         text-align: right;
92         vertical-align: middle;
93         padding-right: 0.5em;
94 }
95
96 td#crumb, td#search {
97         color: #ccc;
98         border-top: solid 3px #555;
99         background-color: #666;
100         border-bottom: solid 1px #333;
101         padding: 2px 1em;
102 }
103
104 td#crumb {
105         font-weight: bold;
106 }
107
108 td#crumb a {
109         color: #ccc;
110 }
111
112 td#crumb a:hover {
113         color: #eee;
114 }
115
116 td#search {
117         text-align: right;
118         vertical-align: center;
119         padding-right: 0.5em;
120 }
121
122 td#search form {
123         margin: 0px;
124         padding: 0px;
125 }
126
127 td#search input {
128         font-size: 9pt;
129         padding: 0px;
130         width: 10em;
131         border: solid 1px #333;
132         color: #333;
133         background-color: #fff;
134 }
135
136 td#summary {
137         vertical-align: top;
138         padding-bottom: 1em;
139 }
140
141 td#archivelist {
142         padding-bottom: 1em;
143 }
144
145 td#archivelist table {
146         float: right;
147         border-collapse: collapse;
148         border: solid 1px #777;
149 }
150
151 td#archivelist table th {
152         background-color: #ccc;
153 }
154
155 td#content {
156         padding: 1em 0.5em;
157 }
158
159 div#blob {
160         border: solid 1px black;
161 }
162
163 div.error {
164         color: red;
165         font-weight: bold;
166         margin: 1em 2em;
167 }
168
169 td.ls-blob, td.ls-dir, td.ls-mod {
170         font-family: monospace;
171 }
172
173 div.ls-dir a {
174         font-weight: bold;
175 }
176
177 th.filesize, td.filesize {
178         text-align: right;
179 }
180
181 td.filesize {
182         font-family: monospace;
183 }
184
185 td.filemode {
186         font-family: monospace;
187 }
188
189 td.blob {
190         white-space: pre;
191         font-family: monospace;
192         background-color: white;
193 }
194
195 table.nowrap td {
196         white-space: nowrap;
197 }
198
199 table.commit-info {
200         border-collapse: collapse;
201         margin-top: 1.5em;
202 }
203
204 table.commit-info th {
205         text-align: left;
206         font-weight: normal;
207         padding: 0.1em 1em 0.1em 0.1em;
208 }
209
210 table.commit-info td {
211         font-weight: normal;
212         padding: 0.1em 1em 0.1em 0.1em;
213 }
214
215 div.commit-subject {
216         font-weight: bold;
217         font-size: 125%;
218         margin: 1.5em 0em 0.5em 0em;
219         padding: 0em;
220 }
221
222 div.commit-msg {
223         white-space: pre;
224         font-family: monospace;
225 }
226
227 table.diffstat {
228         border-collapse: collapse;
229         margin-top: 1.5em;
230 }
231
232 table.diffstat th {
233         font-weight: normal;
234         text-align: left;
235         text-decoration: underline;
236         padding: 0.1em 1em 0.1em 0.1em;
237         font-size: 100%;
238 }
239
240 table.diffstat td {
241         padding: 0.1em 1em 0.1em 0.1em;
242         font-size: 100%;
243 }
244
245 table.diffstat td span.modechange {
246         padding-left: 1em;
247         color: red;
248 }
249
250 table.diffstat td.add a {
251         color: green;
252 }
253
254 table.diffstat td.del a {
255         color: red;
256 }
257
258 table.diffstat td.upd a {
259         color: blue;
260 }
261
262 table.diffstat td.summary {
263         color: #888;
264         padding-top: 0.5em;
265 }
266
267 table.diff td {
268         border: solid 1px black;
269         font-family: monospace;
270         white-space: pre;
271 }
272
273 table.diff td div.hunk {
274         background: #ccc;
275 }
276
277 table.diff td div.add {
278         color: green;
279 }
280
281 table.diff td div.del {
282         color: red;
283 }
284
285 .sha1 {
286         font-family: courier;
287         font-size: 90%;
288 }
289
290 .left {
291         text-align: left;
292 }
293
294 .right {
295         text-align: right;
296 }