-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmorse.css
111 lines (90 loc) · 1.71 KB
/
morse.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
100
101
102
103
104
105
106
107
108
109
110
111
/* Morse Code Game CSS */
/* By Adam Amott */
header {
position: relative;
display: flex;
/* grid-template-columns: max-content 250px; */
flex-wrap: wrap;
background-color: rgb(90, 173, 194);
border-radius: 15px;
}
header h1 {
font-size: 2em;
text-align: center;
margin: 0.2em 0 0.2em 0.25em;
}
header .stats {
margin: -0.5em 0 0 1em;
min-width: 200px;
font-size: 0.7em;
}
select {
font-size: 1em;
background-color: rgb(199, 196, 196);
}
body {
background-color: rgb(185, 221, 218);
font-size: 2em;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
main {
text-align: center;
}
#letter-display {
margin: 1em auto;
max-width: max-content;
min-width: 1em;
min-height: 1.2em;
border-bottom: 3px black solid;
}
.controlBtn {
font-size: 0.8em;
margin-bottom: 10px;
}
#keyboard {
display: grid;
grid-template-columns: repeat(10, 1fr);
grid-template-rows: 1fr 1fr 1fr;
justify-content: center;
}
#keyboard button {
height: 50px;
font-size: 1em;
border-radius: 15px;
border: 1px black solid;
}
#keyboard button .percent {
background-color: rgb(0, 156, 70);
height: 4px;
width: 0;
}
.hide {
display: none;
}
#message {
font-size: 0.9em;
}
@media (min-width: 570px) {
header h1 {
font-size: 2.5em;
margin: 0.2em 0 0.2em 0;
}
#message {
font-size: 1em;
}
}
@media (min-width: 770px) {
header h1 {
font-size: 3em;
margin: 0.2em 0 0.2em 0;
}
header .stats {
margin: -0.5em 0 0 1em;
min-width: 200px;
font-size: 1em;
}
#keyboard button {
height: 70px;
font-size: 1em;
}
}