forked from justinwoo/vt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (80 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<title>vidtracker</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: "Noto Sans CJK JP";
max-width: 900px;
margin: auto;
padding: 1rem;
}
.header {
display: flex;
font-size: 0.8rem;
margin-bottom: 1rem;
}
.info {
flex: 1;
}
.recents {
flex: 2;
}
.info span {
display: block;
}
.recents {
text-align: right;
}
.file {
/* display: flex; */
/* align-items: center; */
border: 1px solid white;
display: grid;
align-items: center;
grid-template-columns: auto 1fr auto;
}
.file.done {
background: rgba(0, 255, 0, 0.05);
}
.file.cursor {
border: 1px solid black;
background: rgba(255, 0, 0, 0.2);
}
.file.done.cursor {
background: rgba(255, 100, 0, 0.2);
}
.name,
.watched {
padding: 0.5rem;
cursor: pointer;
}
.name:hover,
.watched:hover {
text-decoration: underline;
}
.watched:hover:before {
content: "mark watched - ";
}
.watched.has-date:hover:before {
content: "";
}
.icon {
width: 4rem;
height: 2rem;
border: 1px solid grey;
border-radius: 2rem;
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
}
.name {
flex: 1;
}
.watched {
width: 20rem;
text-align: right;
}
</style>
<div id="app"></div>
<script src="./index.js"></script>