aboutsummaryrefslogtreecommitdiff
path: root/cgit.css
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-03-19 02:58:41 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2026-09-18 13:52:07 +0200
commit52ef8657d61c07e49e84d9fd4112fa9fad7db6d8 (patch)
tree329c9746fe7819ba2aa20c1bb1201ea7518c36bd /cgit.css
parent4590963d46acd2d4bcb879b145bad0b2cc33f78c (diff)
Steal kernel.org's libravatar lua.
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css29
1 files changed, 29 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 73be862..ff25155 100644
--- a/cgit.css
+++ b/cgit.css
@@ -908,6 +908,35 @@ div#cgit table.ssdiff td.space div {
min-height: 3em;
}
+div#cgit span.libravatar img.onhover {
+ display: none;
+ border: 1px solid gray;
+ padding: 0px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ width: 128px;
+ height: 128px;
+}
+
+div#cgit span.libravatar img.inline {
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ width: 13px;
+ height: 13px;
+ margin-right: 0.2em;
+ opacity: 0.6;
+}
+
+div#cgit span.libravatar:hover > img.onhover {
+ display: block;
+ position: absolute;
+ margin-left: 1.5em;
+ background-color: #eeeeee;
+ box-shadow: 2px 2px 7px rgba(100,100,100,0.75);
+}
+
:root { color-scheme: light dark; }
@media only all and (prefers-color-scheme: dark) {
html, div#cgit { color: #eee; background: #171717; }