Also fix encoding for 'commitdiff'.
[viewgit.git] / default.css
blobcf7c9d750989b5bd4fbf3ab0f51c1997cf64dc78
1 /**
2 * More polished style for ViewGit
4 * @author John Lawrence <mail@johnlawrence.net>
5 */
6 body {
7 font-family: "Helvetica", Arial, sans-serif;
8 color: black;
9 background-color: white;
10 margin: 0px;
11 font-size: 80%;
14 a {
15 color: #c00;
18 a.tree_link {
19 padding-top: 16px;
20 height: 0px;
21 width: 22px;
22 overflow: hidden;
23 display: inline-block;
24 background: url('images/silk/chart_organisation.png') no-repeat 50% 50%;
27 a.tar_link {
28 padding-top: 16px;
29 height: 0px;
30 width: 22px;
31 overflow: hidden;
32 display: inline-block;
33 background: url('images/silk/page_white_compressed.png') no-repeat 50% 50%;
36 a.zip_link{
37 padding-top: 16px;
38 height: 0px;
39 width: 22px;
40 overflow: hidden;
41 display: inline-block;
42 background: url('images/silk/page_white_zip.png') no-repeat 50% 50%;
45 a.cdiff_link {
46 padding-top: 16px;
47 height: 0px;
48 width: 22px;
49 overflow: hidden;
50 display: inline-block;
51 background: url('images/silk/commit_diff.png') no-repeat 50% 50%;
54 a.patch_link {
55 padding-top: 16px;
56 height: 0px;
57 width: 22px;
58 overflow: hidden;
59 display: inline-block;
60 background: url('images/silk/page_white_code_red.png') no-repeat 50% 50%;
63 h1 {
64 font-size: 130%;
67 h1 a {
68 text-decoration: none;
71 h2 {
72 font-size: 115%;
75 table {
76 width: 100%;
77 border-collapse: collapse;
80 table tr.even {
81 background-color: #f8f8f8;
82 border-bottom: 1px solid #eee;
83 border-top: 1px solid #eee;
86 table tr.odd td, table tr.even td {
87 padding: 3px 2px;
90 table tbody tr:hover {
91 background-color: #e0ffe0;
94 table th {
95 background-color: #cfcfcf;
96 text-align: left;
97 border-bottom: 1px solid #666;
98 border-top: 1px solid #666;
99 padding: 6px 2px;
102 .notices {
103 padding-left: 1em;
104 margin: 0;
107 .notices p {
108 margin: 0;
109 padding: 0;
112 .notices .error {
113 background-color: #f77;
116 .notices .info {
117 background-color: #ff7;
120 .notices .warning {
121 background-color: #fc7;
124 .nav {
125 font-size: 1.4em;
126 padding: 20px;
127 margin: 0;
128 background:#333 url('images/viewgit.png') no-repeat 98% 50%;
129 border-bottom: 1px solid #000;
130 color: #eee;
133 .nav a {
134 text-decoration: none;
135 color: #4d4;
136 font-size: 1.2em;
137 font-weight: bold;
140 div#page_body {
141 margin: 10px 20px;
144 .pagenav {
145 margin-top: 0.3em;
146 padding-top: 0.5em;
147 padding-bottom: 0.5em;
148 border-top: 1px solid #333;
149 border-bottom: 1px solid #333;
152 .pagenav a {
153 text-decoration: none;
156 .pagenav a:hover {
157 text-decoration: underline;
160 .pagenav .cur {
161 font-weight: bold;
164 .search {
165 display: inline;
168 .ad {
169 margin-top: 20px;
170 text-align: center;
171 font-size: 80%;
174 span.label {
175 font-size: 80%;
176 padding-left: 0.5em;
177 padding-right: 0.5em;
178 margin-left: 0.5em;
179 font-weight: bold;
182 span.head {
183 background-color: #afa;
184 border-right: 1px solid #090;
185 border-bottom: 1px solid #090;
188 span.remote {
189 background-color: #faf;
190 border-right: 1px solid #909;
191 border-bottom: 1px solid #909;
194 span.tag {
195 background-color: #ffa;
196 border-right: 1px solid #990;
197 border-bottom: 1px solid #990;
200 /* summary template */
202 table.shortlog th.date {
203 width: 15%;
204 white-space: pre;
207 table.shortlog th.author {
208 width: 15%;
211 table.heads th.date {
212 width: 15%;
215 /* commitdiff template */
217 .commitmessage {
218 border:1px solid #999;
219 background:#ffe;
220 padding: 0 0.5em;
221 margin: 0.5em;
222 font-size: 1.2em;
225 div.diff {
226 font-size: 1.2em;
229 .diff .add {
230 color: green;
233 .diff .del {
234 color: red;
237 .diff .pos {
238 color: purple;
241 .diff .etc {
242 color: #999;
245 /* tree template */
246 table.tree th.perm {
247 width: 10%;
250 table.tree th.dl {
251 width: 10%;
254 table.tree .dir a.item_name{
255 padding-left: 20px;
256 background: url('images/silk/folder.png') no-repeat 0 50%;
259 table.tree .blob a.item_name{
260 padding-left: 20px;
261 background: url('images/silk/page_white_text.png') no-repeat 0 50%;
264 /* viewblob template */
265 .file {
266 border:1px solid #999;
267 background:#ddd;
268 padding: 0 0.5em;
269 margin: 0.5em;
270 font-size: 1.2em;