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`_.
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
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.
\ No newline at end of file
+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.
}
.page_header img.logo {
- display: none;
+ position: relative;
+ top: 7px;
+ margin-right: 5px;
}
/* Page Footer
top: 15px;
}
+.projsearch a {
+ display: none;
+}
+
.commit_search {
background: #eaeaea;
}
}
.patch > .header {
- width: 98.5%;
+ width: 99%;
}
/* Refs
/* 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;
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
---------------------------------------------------------------------------- */
.kwb { color:#6b3099; }
.kwc { color:#d4663d; }
.kwd { color:#2928ff; }
-