syntax highlight support
[m6w6/gitweb-theme] / gitweb.css
index dfe4e5ef612682f7175581aa10fb20b52bbef35e..7e9cbe0bc9ef32cdb0229fcf293206fa5689d5e4 100755 (executable)
@@ -4,11 +4,11 @@
 /* Based on http://meyerweb.com/eric/tools/css/reset/ */
 /* v1.0 | 20080212 */
 
-html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, 
-blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, 
-font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, 
-u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, 
-caption, tbody, tfoot, thead, tr, th, td { 
+html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
+blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
+font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b,
+u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
+caption, tbody, tfoot, thead, tr, th, td {
     margin: 0;
     padding: 0;
     border: 0;
@@ -17,17 +17,17 @@ caption, tbody, tfoot, thead, tr, th, td {
     vertical-align: baseline;
     background: transparent;
 }
+
 ol, ul { list-style: none; }
 
 blockquote, q { quotes: none; }
 
-blockquote:before, blockquote:after, 
+blockquote:before, blockquote:after,
 q:before, q:after {
-    content: ''; 
+    content: '';
     content: none;
 }
+
 :focus { outline: 0; }
 
 ins { text-decoration: none; }
@@ -46,7 +46,7 @@ a { outline: none; }
 
 body {
     font-family: "Monaco", "Courier New", monospace;
-    font-size: 75%;
+    font-size: 12px;
     margin: 0;
     background-color: #fff;
     color: #000000;
@@ -77,24 +77,31 @@ td, th {
 ---------------------------------------------------------------------------- */
 
 .page_header {
-    background: #cfcfcf url(img/page_header.png) repeat-x 0 0;
-    height: 40px;
-    line-height: 40px;
+    height: 50px;
+    line-height: 50px;
     position: relative;
     padding: 0 27px;
-    margin-bottom: 30px;
+    margin-bottom: 20px;
+    font-size: 20px;
+    font-family: Helvetica, Arial, Freesans, Clean, sans-serif;
+    background: #FFFFFF; /* old browsers */
+    background: -moz-linear-gradient(top, #FFFFFF 0%, #F5F5F5 100%); /* firefox */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFFFFF), color-stop(100%,#F5F5F5)); /* webkit */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#F5F5F5',GradientType=0 ); /* ie */
+    border-bottom: 1px solid #dfdfdf;
 }
 
 .page_header a:link, .page_header a:visited {
-    color: #000;
-    background: #eee;
+    color: #4183C4;
     text-decoration: none;
     padding: 3px;
+    font-weight: bold;
 }
 
 .page_header a:hover {
-    background: #bbb;
+    font-weight: bold;
     padding: 3px;
+    text-decoration: underline;
 }
 
 .page_header a:first-child {
@@ -102,35 +109,32 @@ td, th {
 }
 
 .page_header img.logo {
-    float: right;
-    padding: 7px 1.0em;
-    border: 0;
+    display: none;
 }
 
 /* Page Footer
 ---------------------------------------------------------------------------- */
 
 .page_footer {
-    height: 115px;
-    line-height: 115px;
-    background: #4386ba url(img/page_footer.png) repeat-x 0 0;
+    height: 80px;
+    line-height: 80px;
     padding: 0 30px;
     margin-top: 15px;
-}
-
-.page_footer a {
-    padding-top: 5em;
+    margin-bottom: 30px;
+    background: #f1f1f1;
+    border-top: 2px solid #ddd;
+    border-bottom: 1px solid #ddd;
 }
 
 .page_footer_text {
-    color: #fff;
+    color: #666;
     display: inline;
     float: left;
 }
 
 a.rss_logo {
     float: right;
-    padding: 3px;
+    padding: 3px 1px;
     width: 35px;
     line-height: 10px;
     border: 1px solid;
@@ -139,16 +143,16 @@ a.rss_logo {
     background-color: #ff6600;
     font-weight: bold;
     font-family: sans-serif;
-    font-size: 70%;
+    font-size: 80%;
     text-align: center;
     text-decoration: none;
-    margin-top: 49px;
+    margin-top: 30px;
     margin-left: 5px;
 }
 
 a.rss_logo:hover {
     background-color: #ee5500;
-}  
+}
 
 /* Elements
 ---------------------------------------------------------------------------- */
@@ -156,10 +160,14 @@ a.rss_logo:hover {
 .project_list,
 .shortlog,
 .tree,
-.commit_search {
-    width: 960px;
+.commit_search,
+.history {
+    width: 95%;
     margin: 0 auto 15px auto;
     border: 1px solid #d8d8d8;
+    -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2);
+    -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
+    box-shadow: 0 0 3px rgba(0,0,0,0.2);
 }
 
 .project_list th,
@@ -183,8 +191,13 @@ a.rss_logo:hover {
 .project_list tr.dark, .project_list tr.light,
 .shortlog tr.dark, .shortlog tr.light,
 .tree tr.dark, .tree tr.light,
-.commit_search tr.dark, .commit_search tr.light {
-    background: #efefef url(img/table_row.png) repeat-x 0 0;
+.commit_search tr.dark, .commit_search tr.light,
+.history tr.dark, .history tr.light,
+.heads tr.dark, .heads tr.light {
+    background: #F9F9F9; /* old browsers */
+    background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
     height: 2.5em;
     border-bottom: 1px solid #e1e1e1;
 }
@@ -200,32 +213,41 @@ th .header {
     margin: 0;
 }
 
+.projsearch {
+    position: absolute;
+    right: 4%;
+    top: 15px;
+}
+
 .commit_search {
     background: #eaeaea;
 }
 
 .page_nav,
-.history,
 .list_head,
 .page_path,
 .search {
-    width: 948px;
-    background: #f0f0f0;
+    width: 94%;
+    background: #eaeaea;
     color: #545454;
     border: 1px solid #d8d8d8;
     padding: 5px;
     margin: 0 auto 15px auto;
 }
 
+.history {
+    background: #eaeaea;
+}
+
 .title {
-    width: 950px;
+    width: 95%;
     padding: 5px;
+    margin: 0 auto 15px auto;
 }
 
 .projects_list,
-.heads,
 .tags {
-    width: 960px;
+    width: 95%;
     background: #f0f0f0;
     color: #545454;
     border: 1px solid #d8d8d8;
@@ -233,8 +255,16 @@ th .header {
     margin: 0 auto 15px auto;
 }
 
+.heads {
+    width: 95%;
+    color: #545454;
+    border: 1px solid #d8d8d8;
+    padding: 5px;
+    margin: 0 auto 15px auto;
+}
+
 .header {
-    width: 948px;
+    width: 94%;
     margin: 0 auto 15px auto;
     background: #eaf2f5;
     border: 1px solid #bedce7;
@@ -249,7 +279,7 @@ th .header {
 }
 
 .title_text {
-    width: 948px;
+    width: 94%;
     background: #eaf2f5;
     border: 1px solid #bedce7;
     padding: 5px;
@@ -257,7 +287,7 @@ th .header {
 }
 
 .log_body {
-    width: 948px;
+    width: 94%;
     background: #eaf2f5;
     border: 1px solid #bedce7;
     border-top: 0;
@@ -267,27 +297,31 @@ th .header {
 
 .page_body {
     line-height: 1.4em;
-    width: 948px;
-    background: #f8f8ff;
+    width: 94%;
+    background: #f8f8f8;
     border: 1px solid #d8d8d8;
     padding: 5px;
     margin: 15px auto 15px auto;
 }
 
 .diff_tree {
-    width: 960px;
+    width: 95%;
     background: #f0f0f0;
     border: 1px solid #d8d8d8;
     padding: 5px;
     margin: 0 auto 15px auto;
 }
 
-.author_date {
-    width: 948px;
-    background: #f0f0f0;
-    border: 1px solid #d8d8d8;
-    padding: 5px;
-    margin: 0 auto 15px auto;
+.page_body > .list_head {
+    width: 98.5%;
+}
+
+.page_body > .diff_tree {
+    width: 99.5%;
+}
+
+.patch > .header {
+    width: 98.5%;
 }
 
 /* Refs
@@ -296,7 +330,7 @@ th .header {
 span.refs span {
     color: #000;
     padding: 0px 4px;
-    font-size: 70%;
+    font-size: 10px;
     font-weight: normal;
     border: 1px solid;
     background-color: #ffaaff;
@@ -318,6 +352,10 @@ span.refs span.head {
     border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
 }
 
+span.refs a {
+    color: #000;
+}
+
 /* Diffs
 ---------------------------------------------------------------------------- */
 
@@ -396,4 +434,28 @@ span.match {
 td.error {
     color: red;
     background: yellow;
-}
\ No newline at end of file
+}
+
+/* blob view */
+
+td.pre, div.pre, div.diff {
+    white-space: pre;
+}
+
+/* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
+
+/* Highlighting theme definition: */
+
+.num    { color:#6ecf36; }
+.esc    { color:#ff00ff; }
+.str    { color:#ff00d3; background-color: #edc9ec }
+.dstr   { color:#818100; }
+.slc    { color:#838183; font-style:italic; }
+.com    { color:#838183; font-style:italic; }
+.dir    { color:#008200; }
+.sym    { color:#000000; }
+.line   { color:#555555; }
+.kwa    { color:#666666; font-weight:bold; }
+.kwb    { color:#6b3099; }
+.kwc    { color:#d4663d; }
+.kwd    { color:#2928ff; }