From 309c55b5a9670e7c327ad8d4e5d94b8af840d00f Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Fri, 18 Nov 2011 17:46:06 -0500
Subject: [PATCH] Calculate repository color from name. Show swatch on repository list.

---
 resources/bootstrap.gb.css |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/resources/bootstrap.gb.css b/resources/bootstrap.gb.css
index 6ff047b..32aac08 100644
--- a/resources/bootstrap.gb.css
+++ b/resources/bootstrap.gb.css
@@ -52,6 +52,10 @@
 	background-position: center bottom;
 }
 
+.topbar .active a {
+	background-color: transparent !important;
+}
+
 .breadcrumb {
 	margin-top: 5px !important;
 	margin-bottom: 5px !important;
@@ -156,6 +160,15 @@
 	font-size: 11px;	
 }
 
+span.repositorySwatch {
+	border-radius: 3px;
+	padding: 2px 5px;	
+	color: #ffffff;
+}
+span.repositorySwatch a {
+	color: inherit;
+}
+
 img.inlineIcon {
 	padding-left: 1px;
 	padding-right: 1px;
@@ -164,6 +177,13 @@
 img.overview {
 	float:right;
 	border:1px solid #CCCCCC;
+}
+
+img.gravatar {
+    background-color: #ffffff;
+    border: 1px solid #ddd;
+    border-radius: 5px;
+    padding: 2px;
 }
 
 div.header, div.commitHeader, table.repositories th {
@@ -488,6 +508,7 @@
 }
 
 table.pretty {
+	border:1px solid #ddd;
 	border-radius: 0 0 3px 3px;	
 }
 
@@ -512,6 +533,7 @@
 }
 
 table.repositories {	
+	border:1px solid #ddd;
 	border-spacing: 0px;
 }
 
@@ -587,6 +609,7 @@
 }
 
 table.annotated {
+	border:1px solid #ddd;
 }
 
 table.annotated tr.even {

--
Gitblit v1.9.1