Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made it compatible to Gitweb 1.7.12

* Supports now side-by-side view
* I added a new favicon and logo as Git has a new logo quite a while now
  and it was not updated in Gitweb.
  • Loading branch information...
commit aadd51d179d56841e3624315035f521aba6c4177 1 parent ebd6abf
@kogakure authored
View
22 README.rst
@@ -2,7 +2,7 @@
Theme for gitweb
================
-This is an alternative theme for `gitweb`_ (tested with git web interface version 1.7.4.2). It is *strongly* inspired by GitHub.
+This is an alternative theme for `gitweb`_ (tested with git web interface version 1.7.12). It is *strongly* inspired by GitHub.
Fullsize screenshots available on `kogakure.github.com/gitweb-theme`_.
@@ -13,14 +13,18 @@ The installation of this stylesheet is very easy:
Just clone the repository to a location of your choice, probably into the same directory where the base gitweb stylesheet is located (in Ubuntu, this is e.g. /usr/share/gitweb/). It's recommended to move away the existing files and then create symlinks to the new files. You can do this with the following few commands::
- cd <PUT YOUR LOCATION OF GITWEB HERE, could be /usr/share/gitweb/>
- mv gitweb.css gitweb_original.css
- mv gitweb.js gitweb_original.js
- git clone git://github.com/kogakure/gitweb-theme.git
- ln -s gitweb-theme/gitweb.css gitweb.css
- ln -s gitweb-theme/gitweb.js gitweb.js
+ cd <PUT YOUR LOCATION OF GITWEB HERE, could be /usr/share/gitweb/>
+ mv gitweb.css gitweb_original.css
+ mv gitweb.js gitweb_original.js
+ mv git-logo.png git-logo_original.png
+ mv git-favicon.png git-favicon_original.png
+ git clone git://github.com/kogakure/gitweb-theme.git
+ ln -s gitweb-theme/gitweb.css gitweb.css
+ ln -s gitweb-theme/gitweb.js gitweb.js
+ ln -s gitweb-theme/git-logo.png git-logo.png
+ ln -s gitweb-theme/git-favicon.png git-favicon.png
-If you see some missing things or errors, please post a comment.
+Of course you can just copy them to the new location. If you see some missing things or errors, please create a ticket or fix it and send a pull request.
.. _gitweb: http://git.or.cz/gitwiki/Gitweb
.. _kogakure.github.com/gitweb-theme: http://kogakure.github.com/gitweb-theme
@@ -36,4 +40,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
BIN  git-favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  git-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
61 gitweb.css
@@ -131,7 +131,9 @@ td, th {
}
.page_header img.logo {
- display: none;
+ position: relative;
+ top: 7px;
+ margin-right: 5px;
}
/* Page Footer
@@ -247,6 +249,10 @@ th .header {
top: 15px;
}
+.projsearch a {
+ display: none;
+}
+
.commit_search {
background: #eaeaea;
}
@@ -349,7 +355,7 @@ th .header {
}
.patch > .header {
- width: 98.5%;
+ width: 99%;
}
/* Refs
@@ -387,6 +393,20 @@ span.refs a {
/* Diffs
---------------------------------------------------------------------------- */
+div.diff.to_file a.path,
+div.diff.to_file {
+ color: #007000;
+}
+
+div.diff.from_file a.path,
+div.diff.from_file {
+ color: #aa0000;
+}
+
+.patch .header {
+ margin: 0;
+}
+
.patchset {
overflow-x: auto;
overflow-y: hidden;
@@ -404,6 +424,42 @@ span.refs a {
background: #ddffdd;
}
+.extended_header {
+ width: 99.5%;
+}
+
+div.chunk_block {
+ overflow: hidden;
+}
+
+div.chunk_block div.old {
+ float: left;
+ width: 50%;
+ overflow: hidden;
+ border-right: 5px solid #EAF2F5;
+}
+
+div.chunk_block.rem,
+div.chunk_block.add {
+ background: transparent;
+}
+
+div.chunk_block div.old .add,
+div.chunk_block div.old .rem {
+ padding-right: 3px;
+}
+
+div.chunk_block div.new .add,
+div.chunk_block div.new .rem {
+ padding-left: 3px;
+}
+
+div.chunk_block div.new {
+ margin-left: 50%;
+ width: 50%;
+ border-left: 5px solid #EAF2F5;
+}
+
/* Age
---------------------------------------------------------------------------- */
@@ -488,4 +544,3 @@ td.pre, div.pre, div.diff {
.kwb { color:#6b3099; }
.kwc { color:#d4663d; }
.kwd { color:#2928ff; }
-
Please sign in to comment.
Something went wrong with that request. Please try again.