From b1f1b0496df82e65ef4738962065aa51f8ed8c17 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Thu, 19 Feb 2009 19:49:04 +0100 Subject: [PATCH 1/1] Initial commit --- README.rst | 20 +++ gitweb.css | 399 ++++++++++++++++++++++++++++++++++++++++++++ img/page_footer.png | Bin 0 -> 1651 bytes img/page_header.png | Bin 0 -> 191 bytes img/table_row.png | Bin 0 -> 622 bytes 5 files changed, 419 insertions(+) create mode 100644 README.rst create mode 100755 gitweb.css create mode 100644 img/page_footer.png create mode 100644 img/page_header.png create mode 100644 img/table_row.png diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..d8cb71b --- /dev/null +++ b/README.rst @@ -0,0 +1,20 @@ +================ +Theme for gitweb +================ + +This is an alternative theme for `gitweb`_. It is *strongly* inspired by GitHub. + +Installation +============ + +The installation of this stylesheet is very easy. + +1. Just copy the CSS-file `gitweb.css` into the gitweb folder. Best practise + would be to rename the old file, in case you want to switch back. +2. Copy the `img` folder and its contents on same level as the file + `gitweb.css` +3. There is no third point ;) + +If you see some missing things or errors, please post a comment. + +.. _gitweb: http://git.or.cz/gitwiki/Gitweb \ No newline at end of file diff --git a/gitweb.css b/gitweb.css new file mode 100755 index 0000000..6497dce --- /dev/null +++ b/gitweb.css @@ -0,0 +1,399 @@ +/* Reset +------------------------------------------------------------------------- */ + +/* 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 { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} + +ol, ul { list-style: none; } + +blockquote, q { quotes: none; } + +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +:focus { outline: 0; } + +ins { text-decoration: none; } + +del { text-decoration: line-through; } + +table { + border-collapse: collapse; + border-spacing: 0; +} + +a { outline: none; } + +/* General +---------------------------------------------------------------------------- */ + +body { + font-family: "Monaco", "Courier New", monospace; + font-size: 75%; + margin: 0; + background-color: #fff; + color: #000000; +} + +a:link, a:visited { + color: #4183C4; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +i { + font-style: normal; +} + +td, th { + padding: 5px; +} + +.page_nav br { + display: none; +} + +/* Page Header +---------------------------------------------------------------------------- */ + +.page_header { + background: #cfcfcf url(img/page_header.png) repeat-x 0 0; + height: 40px; + line-height: 40px; + position: relative; + padding: 0 27px; + margin-bottom: 30px; +} + +.page_header a:link, .page_header a:visited { + color: #000; + background: #eee; + text-decoration: none; + padding: 3px; +} + +.page_header a:hover { + background: #bbb; + padding: 3px; +} + +.page_header a:first-child { + background: transparent; +} + +.page_header img.logo { + float: right; + padding: 7px 1.0em; + border: 0; +} + +/* Page Footer +---------------------------------------------------------------------------- */ + +.page_footer { + height: 115px; + line-height: 115px; + background: #4386ba url(img/page_footer.png) repeat-x 0 0; + padding: 0 30px; + margin-top: 15px; +} + +.page_footer a { + padding-top: 5em; +} + +.page_footer_text { + color: #fff; + display: inline; + float: left; +} + +a.rss_logo { + float: right; + padding: 3px; + width: 35px; + line-height: 10px; + border: 1px solid; + border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; + color: #ffffff; + background-color: #ff6600; + font-weight: bold; + font-family: sans-serif; + font-size: 70%; + text-align: center; + text-decoration: none; + margin-top: 4.5em; + margin-left: 5px; +} + +a.rss_logo:hover { + background-color: #ee5500; +} + +/* Elements +---------------------------------------------------------------------------- */ + +.project_list, +.shortlog, +.tree, +.commit_search { + width: 960px; + margin: 0 auto 15px auto; + border: 1px solid #d8d8d8; +} + +.project_list th, +.shortlog th, +.tree th, +.commit_search th { + color: #afafaf; + font-weight: normal; +} + +.project_list tr, +.shortlog tr, +.tree tr, +.commit_search tr { + background: #eaeaea; + height: 2.5em; + text-align: left; + color: #545454; +} + +.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; + height: 2.5em; + border-bottom: 1px solid #e1e1e1; +} + +th .header { + background: transparent; + border: 0; + padding: 0; +} + +.tree { + width: 100%; + margin: 0; +} + +.commit_search { + background: #eaeaea; +} + +.page_nav, +.history, +.list_head, +.page_path, +.search { + width: 948px; + background: #f0f0f0; + color: #545454; + border: 1px solid #d8d8d8; + padding: 5px; + margin: 0 auto 15px auto; +} + +.title { + width: 950px; + padding: 5px; +} + +.projects_list, +.heads, +.tags { + width: 960px; + background: #f0f0f0; + color: #545454; + border: 1px solid #d8d8d8; + padding: 5px; + margin: 0 auto 15px auto; +} + +.header { + width: 948px; + margin: 0 auto 15px auto; + background: #eaf2f5; + border: 1px solid #bedce7; + padding: 5px; +} + +.header .age { + float: left; + color: #000; + font-weight: bold; + width: 10em; +} + +.title_text { + width: 948px; + background: #eaf2f5; + border: 1px solid #bedce7; + padding: 5px; + margin: 0 auto 0 auto; +} + +.log_body { + width: 948px; + background: #eaf2f5; + border: 1px solid #bedce7; + border-top: 0; + padding: 5px; + margin: 0 auto 15px auto; +} + +.page_body { + line-height: 1.4em; + width: 948px; + background: #f8f8ff; + border: 1px solid #d8d8d8; + padding: 5px; + margin: 15px auto 15px auto; +} + +.diff_tree { + width: 960px; + 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; +} + +/* Refs +---------------------------------------------------------------------------- */ + +span.refs span { + color: #000; + padding: 0px 4px; + font-size: 70%; + font-weight: normal; + border: 1px solid; + background-color: #ffaaff; + border-color: #ffccff #ff00ee #ff00ee #ffccff; +} + +span.refs span.ref { + background-color: #aaaaff; + border-color: #ccccff #0033cc #0033cc #ccccff; +} + +span.refs span.tag { + background-color: #ffffaa; + border-color: #ffffcc #dccd00 #dccd00 #ffffcc; +} + +span.refs span.head { + background-color: #aaffaa; + border-color: #ccffcc #00cc33 #00cc33 #ccffcc; +} + +/* Diffs +---------------------------------------------------------------------------- */ + +.patchset { + overflow: auto; +} + +.chunk_header { + background: #eaf2f5; + color: #999; +} + +.rem { + background: #ffdddd; +} +.add { + background: #ddffdd; +} + +/* Age +---------------------------------------------------------------------------- */ + +/* noage: "No commits" */ +.project_list td.noage { + color: #cdcdcd; +} + +/* age2: 60*60*24*2 <= age */ +.project_list td.age2, .blame td.age2 { + color: #545454; +} + +/* age1: 60*60*2 <= age < 60*60*24*2 */ +.project_list td.age1 { + color: #009900; +} + +/* age0: age < 60*60*2 */ +.project_list td.age0 { + color: #009900; + font-weight: bold; +} + +/* File status +---------------------------------------------------------------------------- */ + +.diff_tree span.file_status.new { + color: #008000; +} + +table.diff_tree span.file_status.deleted { + color: #c00000; +} + +table.diff_tree span.file_status.moved, +table.diff_tree span.file_status.mode_chnge { + color: #545454; +} + +table.diff_tree span.file_status.copied { + color: #70a070; +} + +span.cntrl { + border: dashed #aaaaaa; + border-width: 1px; + padding: 0px 2px 0px 2px; + margin: 0px 2px 0px 2px; +} + +span.match { + background: #aaffaa; + color: #000; +} + +td.error { + color: red; + background: yellow; +} \ No newline at end of file diff --git a/img/page_footer.png b/img/page_footer.png new file mode 100644 index 0000000000000000000000000000000000000000..a498f686948824bba7ec27de11a8cfabb47505a3 GIT binary patch literal 1651 zcmV-(28{WMP)eX&1( zvO09AI&`K#ey~7-v^{#PLWa0Qg}Fh2wLN&NG-;hegt$0yqd|hSIdi5taicaHK$hv^{yPG-{kVaiv3sx;Sv8J$S4_g}FX{u{w6BJbJA- za-=wNr9gqTL4dS0YMnrWwL5gEHg2Fjd8;*On>cZ$H*ljjY@au5pgMM`IdG#wgttV9 zyYHFUOaK4`iAh93RCwCVi-%&`NDzic!loHFjEQp~L`SHA=^!w@7({gi7ce2@oaU5^ z(?Ai0q=VOnF*B$KTLZQnE3@qGjAc<+7RcCT*)?_vuoX5I ztFW_Jr4nOfVZd0%hLqpJu?mDmFyvj3Bcx_aoIvmC0;7AcK-ojqdMNneA<| z|H1MFsBD? zy!VUu5%BJ8*1S6{w1!P@%L}c6VRJCp@eXzjcY{F-28KavfX%>w#$dqQ`~#c8V6)Y7 zw+7&D89upNO+%|it{dEhfxGEm0*R8lw6sk;B}k;2rBbQcye=i&*VhTmsph9^cj8ki zl|m20L?M-WlPDzK6cVXn0Sd0dn_(hVaQ%&^-~!i@;iH1yrAMi{P=-Uj3s$SR(pR6Z zR`o+H;6#78s@G#X)DNqxRj95WRu8Myr+5#mt5@K^s`?L~k`fAUk z{a60_{?$vr|HOXFj`pL_BeZPLPe{uq$&-mK z?Dp>SeLL8H;jJCB#y-{Y;r5hHEv5~XuA&=I0Jn!Z^yV2tE$a=A8Xa)HPVv~MDjKqMEq z2@q{Vpb;S^5I%P6ZD43|tX7yx3sV5YrHY-4( zQVM=%iU5mA^(TFt9n2Ed36kamHIXDrf?!aRCXzWwNzwkBoge|E&il^s zaZu`5FiAn^Tcp0Fe|#+cWwG?%TfnlUgC8~)Sox8N0X+Gj7S2 zE&vE;J)zeF;5ZJAzzHA-9GRRzVpc#np$D9BbSb>ztUWHvWwV#i!yl|x?$yz&EXN&L x;pmdAF0ENCkFr*<68976k@+W{g;@U;U;yq~fi{8L<&^*c002ovPDHLkV1oE>5ZC|! literal 0 HcmV?d00001 diff --git a/img/page_header.png b/img/page_header.png new file mode 100644 index 0000000000000000000000000000000000000000..67c83bc48d4c8bb4446ede4d71b45ee987ad4954 GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^{6MV1!3-qD76yC+Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiWCEULR_z0xpMXD)$`}iU%q_#;>C+MZrr$Z>C(-cH?Lj0 zcHzQ>>({T>T&+t1DmL+SaSW-rHRbqDK?Vh$0~96~*_Ak;? px3f*Xzr^12|D?L*ui_gR8U8Kc>AvImave}VgQu&X%Q~loCIG;AQHTHl literal 0 HcmV?d00001 diff --git a/img/table_row.png b/img/table_row.png new file mode 100644 index 0000000000000000000000000000000000000000..124d6705017cc649f565bb57af4b139250c5c167 GIT binary patch literal 622 zcmW+!Z%9*79DSkqXDY4_rY?{M_8~u{k*kO-Y@2hII(4Q?Gp9}|n5IpeP&p=yv_xdO z{#phxtTYC>@K0r_SRqzcAS7kcQX}QPd*8eFJ+Pu5^5dR!FZbMY&WGD($k9c~6f%Zk zqV$=XeBfwU31LBiQ_i6bpm>|M*j7+iZ98XfurTRWbrqIvdaJp{l5a6rHP^qf901X% z;iyr|vK+^WMJr<<+zWMRZ{OK+WIhs%!3FyVt@Ml}COTHMy2_<2If5l_}_%E3TIe$9H682Q6mDUKv~d z&^mK>{(>?mc8g=i*{7TP{>eAl_OizxY+N&cYg3&~yV{(idfKufndtij)L(_l`I&nPYPYub*Aye y`hw!L%5N=6U)y>xZhFWY@uGI#pBr`OUragUT2dFATIy@zZ!mgoj^@$fa_4{B({8>1 literal 0 HcmV?d00001 -- 2.30.2