From 6cbe89ac2b96023bda74c97a61e7e0011db2bb08 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 20 Mar 2012 19:40:08 -0400 Subject: [PATCH] Disable default branch/HEAD selector on create/empty repository --- resources/gitblit.css | 95 +++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 87 insertions(+), 8 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index e3f2bb5..0b285fb 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 { @@ -242,6 +266,60 @@ padding: 2px; } +div.searchResult { + padding: 10px 5px 10px 5px; +} + +div.searchResult .summary { + font-weight: bold; +} + +div.searchResult .branch { + color: #008000; +} + +div.searchResult .author { + font-style: italic !important; +} + +div.searchResult .date { + color:#999; +} + +div.searchResult .body { + padding-left:20px; +} + +div.searchResult .fragment { + padding: 7px 0; +} + +div.searchResult .highlight { + background-color: #ffffaa; + border: 1px solid #ffcc00; + padding: 0 2px; +} + +div.searchResult .ellipses { + padding-left:25px; + color: #aaa; +} + +div.searchResult pre { + margin: 1px 0px; + border: 0px; +} + +div.searchResult .text { + border-left: 5px solid #EEEEEE; + + padding: 0 0 0 15px; +} + +div.searchResult ol { + margin-bottom: 0px !important; +} + div.header, div.commitHeader, table.repositories th { background-color:#e0e0e0; background-repeat:repeat-x; @@ -263,6 +341,7 @@ border: 1px solid #ddd; border-bottom: 0; border-radius: 3px 3px 0 0; + font-weight: bold; } div.commitHeader { @@ -713,7 +792,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