add timestamp to classic style
authorFrédéric Péters <fpeters@0d.be>
Fri, 1 May 2015 14:08:37 +0000 (16:08 +0200)
committerFrédéric Péters <fpeters@0d.be>
Fri, 1 May 2015 14:09:21 +0000 (16:09 +0200)
data/themes/Classic.AdiumMessageStyle/Contents/Resources/Content.html
data/themes/Classic.AdiumMessageStyle/Contents/Resources/main.css

index 3eaa3ef..aeb0caa 100644 (file)
@@ -1,5 +1,6 @@
 <div id="prepend"></div>
 <div class="%messageClasses%" dir="%messageDirection%">
+  <span class="timestamp">[%time{H:m}%]</span>
   <span class="sender">%sender%:</span>
   <span class="message">%message%</span>
 </div>
index 1950408..0f07433 100644 (file)
@@ -65,3 +65,20 @@ div.message {
   padding: 0.3ex 0;
   line-height: 130%;
 }
+
+span.timestamp {
+  color: black;
+  opacity: 0.2;
+  position: absolute;
+  right: 2px;
+  font-size: small;
+  -webkit-transition: all .2s ease-in-out;
+  border-radius: 3px;
+}
+
+span.timestamp:hover {
+  opacity: 0.8;
+  background: #666;
+  color: #eee;
+  z-index: 1000;
+}