forked from omkrishna/ColorGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
86 lines (79 loc) · 1.38 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
* {
margin: 0;
padding: 0;
}
#header {
background-color: lightpink;
height: 30vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#container {
background-color: black;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
}
.tile {
box-sizing: border-box;
height: 15vw;
width: 15vw;
background-color: aliceblue;
margin: 3rem 5rem;
border-radius: 0.4rem;
text-align: center;
font-size: 3vh;
font-weight: 800;
line-height: 3vh;
padding-top: 9vh;
}
.tile:hover{
transform: scale(1.02) translateY(-2px);
box-shadow: 3px 3px 6px #ffffff;
cursor: pointer;
}
.score-panel{
position: absolute;
top: 20px;
right: 20px;
background-color: white;
border-radius: 0.4rem;
height: 20vh;
padding: 10px;
display: flex;
flex-direction: column;
}
.panel{
text-align: center;
font-size: 22px;
}
#next{
width: 13rem;
padding: 0.7rem;
font-size: 1.2rem;
color: white;
background: #3F51B5;
border: 0;
outline: 0;
border-radius: 0.4rem;
cursor: pointer;
transition: 0.4s;
margin: 5px;
}
#reset{
width: 13rem;
padding: 0.7rem;
font-size: 1.2rem;
color: white;
background: #3F51B5;
border: 0;
outline: 0;
border-radius: 0.4rem;
cursor: pointer;
transition: 0.4s;
margin: 5px;
}