-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.css
112 lines (95 loc) · 1.92 KB
/
css.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
112
body {
margin: 10px 0 0 0;
padding: 0;
border: 0;
color: #ddd;
background-color: #333;
transition: transform 1s ease, background-color 5s ease;
}
.fade-in {
opacity: 1 !important;
}
.fade-out {
opacity: 0 !important;
}
.red-bg {
background-color: red;
}
ws-ltr {
display: inline-block;
vertical-align: top;
border: 2px solid #999;
text-transform: uppercase;
margin: 2px;
font-family: FiraCode;
overflow: hidden;
}
ws-ltr:hover {
border-color: white;
}
#ltrs ws-ltr {
/* 8vh 8% * 12 "rows" */
/* 12vw 12% * 8 "columns" */
width: calc(min(12vw, 8vh));
height: calc(min(12vw, 8vh));
font-size: calc(min(8vw, 6vh));
border-radius: calc(min(6vw, 4vh));
}
#ltrs ws-ltr div {
margin-top: calc(-1 * min(.9vw, .9vh));
}
#scoring > div {
white-space: nowrap; /* basically just for iOS */
}
#scoring ws-ltr {
/* 8vh 8% * 12 "rows" */
/* 9vw 9% * 10 "columns" */
width: calc(min(9vw, 8vh));
height: calc(min(9vw, 8vh));
font-size: calc(min(7vw, 6vh));
border-radius: calc(min(5vw, 4vh));
white-space: initial; /* basically just for iOS */
}
#scoring > div > ws-ltr > div {
margin-top: calc(-1 * min(.9vw, .9vh));
}
#scoring .backspace {
font-size: calc(min(2vw, 2vh));
line-height: 1.0;
}
#scoring .backspace > div {
margin-top: calc(min(1.5vw, 1.5vh));
}
#scoring #spacebar {
width: 40vw;
font-size: calc(min(2vw, 2vh));
line-height: 1.2;
}
#scoring #spacebar > div {
margin-top: calc(min(1vw, 1vh));
}
#spacebar {
transition: background-color 1s ease;
}
#space-msg {
transition: all 1s ease;
opacity: 0;
background-color: transparent;
}
#space-msg ws-ltr > div {
padding-bottom: 50px;
}
@font-face { font-family: FiraCode; src:url('FiraCode-Medium.otf'); }
/* bootstrap overrides */
a { color: cyan }
/* fun animations */
.flip {
transform: rotateY(90deg)
}
canvas {
z-index: 1;
background-color: transparent;
position: absolute;
top: 0;
left: 0;
}