-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.css
115 lines (105 loc) · 2.14 KB
/
index.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
113
114
115
html,
body {
height: 100%;
user-select: none;
-webkit-user-select: none;
font-family: Avenir;
font-size: 1rem;
}
* {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
}
#container {
display: flex;
flex-flow: row;
align-items: center;
justify-content: space-evenly;
min-height: 95%;
}
#instructions {
display: flex;
flex-flow: column;
justify-content: center;
}
#buttons {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
margin: 1rem 0;
}
button {
font-size: 1rem;
height: 3rem;
width: 90%;
outline: none;
border: 1px solid transparent;
border-radius: 4rem;
background-color: rgb(236, 171, 85);
margin: 1rem 0;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease 0s;
}
button:active {
border-color: black;
transform: translateY(-4px);
}
#touchArea {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
text-align: center;
border: 5px solid transparent;
border-radius: 10px;
width: 90vh;
height: 90vh;
/* Add this again to add lines
background-image: linear-gradient(white 1px, transparent 0),
linear-gradient(90deg, white 1px, transparent 0);
*/
background-size: 6.6667% 100%;
touch-action: none;
cursor: pointer;
background-color: rgb(255, 228, 77);
}
@media screen and (max-width: 1200px) {
#container {
flex-direction: column;
justify-content: space-evenly;
}
#touchArea {
width: 80vw;
height: 80vw;
}
}
@media screen and (max-width: 600px) {
#container {
justify-content: flex-start;
}
#buttons {
margin: 0.5rem 0;
}
button {
margin: 0.5rem 0;
}
#touchArea {
width: 90vw;
height: 90vw;
}
}
@media screen and (max-height: 600px) {
h3 {
margin: 0;
}
button {
height: 2rem;
font-size: 0.8rem;
}
}