author | Lars Hjemli <hjemli@gmail.com> | 2007-05-22 21:08:46 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-22 21:12:41 (UTC) |
commit | 5db39170b6c979655a0238dcd627e206febed88b (patch) (side-by-side diff) | |
tree | 2c79691bde31f9db2861dc76010691e9dbdde1cb /cgit.css | |
parent | 3b86b44fc761cfa8b97c44bbbdd63c9fbf1127ed (diff) | |
download | cgit-5db39170b6c979655a0238dcd627e206febed88b.zip cgit-5db39170b6c979655a0238dcd627e206febed88b.tar.gz cgit-5db39170b6c979655a0238dcd627e206febed88b.tar.bz2 |
Add cgit_print_age() function
This function can be used to print relative dates, just as in gitweb. Next
step will be to actually use the new function.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -343,48 +343,73 @@ table.diff td div.del { .sha1 { font-family: courier; font-size: 90%; } .left { text-align: left; } .right { text-align: right; } table.list td.repogroup { font-style: italic; color: #888; } a.button { font-size: 80%; color: #333; background-color: #ccc; border: solid 1px #999; padding: 0em 0.5em; margin: 0.1em 0.25em; } a.button:hover { text-decoration: none; background-color: #eee; } a.primary { font-size: 100%; } a.secondary { font-size: 90%; } td.toplevel-repo { } table.list td.sublevel-repo { padding-left: 1.5em; } + +span.age-mins { + font-weight: bold; + color: #080; +} + +span.age-hours { + color: #080; +} + +span.age-days { + color: #040; +} + +span.age-weeks { + color: #444; +} + +span.age-months { + color: #888; +} + +span.age-years { + color: #bbb; +} |