Skip to content

Commit 6c46bc7

Browse files
committed
CSS+Placeholder: add the version number on the start screen
1 parent 5ca593a commit 6c46bc7

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ <h1 class="title">
3232
<i class="logo fa fa-eject"></i>
3333
FilePlayer
3434
</h1>
35-
<span>Drop files here…</span>
35+
<span class="version">
36+
<i class="fa fa-terminal"></i>
37+
version 0.1.0
38+
</span>
3639
</div>
3740
<div id="screen" class="no-select">
3841
<video></video>

player/css/placeholder.css

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
top: 50%;
55
margin: -60px 0 0;
66
text-align: center;
7+
color: #777;
8+
animation: sinOpacity 5s ease infinite;
79
}
810

911
#player.playing .placeholder {
@@ -15,19 +17,19 @@
1517
margin: 0;
1618
font-size: 50px;
1719
font-style: italic;
18-
opacity: .3;
1920
}
2021

21-
#player .placeholder span {
22-
display: block;
23-
margin-top: 40px;
24-
font-size: 12px;
25-
font-weight: bold;
26-
animation: placeholderSpan 2s ease infinite;
22+
#player .placeholder .version {
23+
position: absolute;
24+
top: 47px;
25+
left: 50%;
26+
margin-left: -88px;
27+
font: 14px monospace;
28+
opacity: .66;
2729
}
2830

29-
@keyframes placeholderSpan {
30-
0% { opacity: .1; }
31-
50% { opacity: 1; }
32-
100% { opacity: .1; }
31+
@keyframes sinOpacity {
32+
0% { opacity: 1; }
33+
50% { opacity: .2; }
34+
100% { opacity: 1; }
3335
}

0 commit comments

Comments
 (0)