aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-06 19:23:55 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-06 19:23:55 -0400
commitb235490206f5aea8b1c618e7ffdae20ef052e78d (patch)
tree41ab369635de6056fa531d3f37640581561295fd
parent4537376b9b9854fcf3b92d64a5337d155303c620 (diff)
downloadlastfm-api-b235490206f5aea8b1c618e7ffdae20ef052e78d.tar.gz
Prepare for love track feature
-rw-r--r--static/style.css19
-rw-r--r--templates/index.tmpl5
2 files changed, 23 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css
index e4730aa..c4d2db4 100644
--- a/static/style.css
+++ b/static/style.css
@@ -28,7 +28,9 @@ header {
box-sizing: border-box;
color: white;
margin-bottom: 1em;
+ /*
box-shadow: 0 0 4px #1A237E;
+ */
}
h1 {
@@ -95,6 +97,23 @@ ul.scrobbles .like {
text-align: right;
}
+.swap > .two {
+ color: #3F51B5;
+ display: none;
+}
+
+.swap > .one {
+ color: #4f4f4f;
+}
+
+.swap:hover > .one {
+ display: none;
+}
+
+.swap:hover > .two {
+ display: initial;
+}
+
#center {
height: 100%;
max-width: 1000px;
diff --git a/templates/index.tmpl b/templates/index.tmpl
index 8468b31..2451c6b 100644
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -10,7 +10,10 @@
</div>
<div class="like">
<span class="album">{{ago .Time}}</span><br/>
- <i class="material-icons">favorite_border</i>
+ <span class="swap">
+ <i class="material-icons one">favorite_border</i>
+ <i class="material-icons two">favorite</i>
+ </span>
</div>
</li>
{{- end}}