-
Notifications
You must be signed in to change notification settings - Fork 0
/
deektay.css
99 lines (90 loc) · 1.33 KB
/
deektay.css
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
98
99
/* Resets and generics */
* {
margin: 0;
padding: 0;
}
body {
max-width: 800px;
margin: auto;
padding: 0 2px;
}
h1, h2, h3 {
margin: 8px 0;
}
h4, h5, h6, p {
margin: 4px 0;
}
/* Deektay layout */
#sentences {
margin-top: 1em;
}
button {
background-color: inherit;
border: solid thin #aaf;
color: #33f;
padding: 3px 10px;
border-radius: 20px;
cursor: pointer;
}
button[disabled] {
color: #aaf;
cursor: default;
}
button:not([disabled]):hover {
border-color: blue;
}
.sentence {
pointer-events: none;
}
.sentence.active {
pointer-events: auto;
}
.sentence > div {
display: flex;
flex-flow: row wrap;
align-items: center;
}
.play {
width: 6ex;
}
.hint {
flex: 1 1 auto;
padding: 0 1ex;
font-style: italic;
color: #444;
}
.answer {
margin-left: 6ex;
font-size: 110%;
}
.answer {
height: 1em;
border: solid thin #aaf;
padding: 1ex;
}
.answer.right {
background-color: #afa;
}
.answer.wrong {
background-color: #faa;
}
span.wrong {
background-color: #ff8;
}
#controls {
margin: 2ex 0;
}
.done #controls {
display: none;
}
.done #score {
border: solid thin gray;
border-radius: 10px;
margin: 2ex;
padding: 2ex;
}
.errcount {
font-weight: bold;
margin-top: 1ex;
text-align: center;
}