-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
74 lines (73 loc) · 1.67 KB
/
style.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
/* remove browser defined margin and padding */
*{
padding:0;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.background{
background-color: #bcc8c8;
height: 100vh;
padding-top: 1px; /**1px padding top to avoid margin collapse */
}
.title{
color: #fff;
text-align: center;
font-size: 40px;
margin-top: 10%;
}
.display{
color: #fff;
font-size: 25px;
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
}
/* this will allow us to hide any UI elements of the page */
.hide{
display: none;
}
/* this will create our game grid */
.container{
margin: 0 auto;
display: grid;
grid-template-columns:33% 33% 33%;
grid-template-rows: 33% 33% 33%;
max-width: 300px;
/* we have used equal gtc and gtr in order to create 3 equal columns and rows
and auto margin to center it horizontally
*/
}
.tile{
border: 1px solid white;
min-width: 100px;
min-height: 100px;
display: flex;
justify-content: center;
align-items: center;
font-size:50px;
cursor: pointer; /*the cursor pointer shows that this element is clickable just like a link*/
}
/* color UI elements based on our player */
.playerX{
color: rgb(233, 41, 60);
}
.playerO{
color:rgb(72, 21, 108);
}
.controls{
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 1em;
}
/* this is used to style the reset button */
#reset{
background-color: #ff3860;
color: #fff;
padding: 8px;
border-radius: 8px;
border: none;
font-size: 20px;
margin-left: 1em;
cursor:pointer;
}