aboutsummaryrefslogtreecommitdiff
path: root/static/git-arr.css
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 23:18:33 +0100
committerAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 23:18:33 +0100
commite49c69da2e53c8938f4d58bd478bb68f060e3849 (patch)
tree360cfbebf9faf3d9a48847bfa5f594b11e8538cc /static/git-arr.css
parent6764bfcfd6bfb5e1aafc777fea9cfe00139710f2 (diff)
downloadgit-arr-fork-e49c69da2e53c8938f4d58bd478bb68f060e3849.zip
Show the age of a repository in the index, via javascript
This patch adds the age of the repository to the index view, using javascript to give a nice human string for the age. When javascript is not available, the element remains hidden. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'static/git-arr.css')
-rw-r--r--static/git-arr.css20
1 files changed, 20 insertions, 0 deletions
diff --git a/static/git-arr.css b/static/git-arr.css
index 2e28c69..8da2b67 100644
--- a/static/git-arr.css
+++ b/static/git-arr.css
@@ -100,6 +100,26 @@ span.tag {
background-color: #ffff88;
}
+/* Age of an object.
+ * Note this is hidden by default as we rely on javascript to show it. */
+span.age {
+ display: none;
+ color: gray;
+ font-size: x-small;
+}
+
+span.age-band0 {
+ color: darkgreen;
+}
+
+span.age-band1 {
+ color: green;
+}
+
+span.age-band2 {
+ color: seagreen;
+}
+
/* Commit message and diff. */
pre.commit-message {
font-size: large;