-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.styl
94 lines (91 loc) · 1.54 KB
/
index.styl
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
lightMode()
--background: white
--foreground: black
--gray: #666
darkMode()
--background: black
--foreground: white
--gray: #999
:root
&.dark
darkMode()
&.light
lightMode()
@media (prefers-color-scheme: light)
:root
lightMode()
@media (prefers-color-scheme: dark)
:root
darkMode()
body
font-family: 'Roboto', sans-serif
margin: 0px
display: flex
flex-direction: column
background-color: var(--background)
color: var(--foreground)
svg
margin: 10px
flex-grow: 1
.change
cursor: pointer
user-select: none
fill: var(--background)
/* debugging targets
fill: #400
stroke: #f00
*/
text
pointer-events: none
text-anchor: middle
font-size: 30px
font-weight: 900
fill: var(--gray)
/.started &
fill: var(--foreground)
text.overtime
font-size: 8px
.overtime
display: none
.negative
.overtime
display: block
text
fill: Crimson
.help
font-size: 14px
display: fixed
bottom: 0px
padding: 3px 10px
text-align: center
background-color: #333
color: white
a, a:visited
color: #ddd
kbd
background: #666
padding: 0px 4px
&:not(.button)
pointer-events: none
.button
cursor: pointer
user-select: none
&:hover
background-color: SlateBlue
kbd
background-color: DarkViolet
.big
padding: 0.5rem
margin-bottom: 0.25rem
> span
margin-left: 0.5rem
font-weight: bold
font-size: 32px
vertical-align: -4px
pointer-events: none
kbd.button:hover
background-color: DarkViolet
.tip
display: inline-block
.tip + .tip
margin-left: 2em