From 43e32ec71a508e1bb68b247fdca74f64bcf629b3 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 28 Feb 2012 22:41:31 -0500 Subject: [PATCH] Draft integration of Lucene search mechanism and web ui --- resources/gitblit.css | 52 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 44 insertions(+), 8 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index e3f2bb5..bfa1c20 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -152,26 +152,51 @@ color: #888; } -.age0, .age1, .age2 { +.age0, .age1, .age2, .age3, .age4 { font-size: 12px; } -/* age0: age < 60*60*2 */ +/* age0: age < 2 hours */ .age0 { - color: #008000; font-style: italic; + color: #008000; font-weight: bold; } -/* age1: 60*60*2 <= age < 60*60*24*2 */ +/* age1: 2 hours <= age < 2 days */ .age1 { - color: #008000; font-style: italic; + color: #0000ff; + font-weight: bold; } -/* age2: 60*60*24*2 <= age */ +/* age2: 2 days < age <= 7 days */ .age2 { font-style: italic; + color: #2b60de; +} + +/* age3: 7 days < age <= 30 days */ +.age3 { + color: #800080; +} + +/* age4: > 30 days */ +.age4 { +} + +/* Ensure that hovered ages are white */ +tr.light:hover .age0, +tr.light:hover .age1, +tr.light:hover .age2, +tr.light:hover .age3, +tr.light:hover .age4, +tr.dark:hover .age0, +tr.dark:hover .age1, +tr.dark:hover .age2, +tr.dark:hover .age3, +tr.dark:hover .age4 { + color: #ffffff !important; } a.list { @@ -218,7 +243,6 @@ border-radius: 3px; padding: 1px 4px 2px 4px; color: #ffffff; - font-weight: bold; vertical-align: center; } span.repositorySwatch a { @@ -240,6 +264,18 @@ border: 1px solid #ddd; border-radius: 5px; padding: 2px; +} + +div.searchResult { + padding:5px; +} + +div.searchResult .summary { + font-weight: bold; +} + +div.searchResult .branch { + color: #008000; } div.header, div.commitHeader, table.repositories th { @@ -713,7 +749,7 @@ } td.date { - font-style: italic !important; + /*font-style: italic !important;*/ } span.sha1, span.sha1 a, span.sha1 a span, pre.commit_message { -- Gitblit v1.9.1