-
Notifications
You must be signed in to change notification settings - Fork 0
/
Graphics.css
128 lines (110 loc) · 2.34 KB
/
Graphics.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
116
117
118
119
120
121
122
123
124
125
126
127
128
@charset "UTF-8";
/*Css to plot a background and center the game plot in the middle of
the viewport, its 30 percent of width of the screen. Will make it more responsive in future */
body{
display: block;
}
#Plot {
z-index: 1;
line-height: 1vw;
flex-wrap: wrap;
position: absolute;
transform: translate(-50%,-50%);
top: 50%;
left: 50%;
width: 70vmin;
height: 70vmin;
padding: 0vw 5vw;
}
/*Css to plot big squares in a flex wrap so that they align inline and gave grey
color to them*/
#Plot .MS{
padding-right: 0.5%;
padding-left: 0.5%;
padding-top: 1%;
flex-wrap: wrap;
display: inline-flex;
width:28%;
height:28%;
background-color: grey;
margin-bottom: 1%;
}
/*This are to margin big squares properly*/
#Plot .MS:nth-child(3n+1){
margin-left: 1vw;
}
#Plot .MS:nth-child(1), #Plot .MS:nth-child(2), #Plot .MS:nth-child(3){
margin-top: 1vw;
}
/*Small tiles inside the big squares and color white*/
.MS .Tile {
display: inline-block;
width:30%;
height:30%;
background-color: white;
}
/*For margining and aligning tiles properly inside the big squares */
.MS .Tile:nth-child(3n+2) {
margin-right: 2%;
margin-left: 2%;
}
/*For margining and aligning x and o inside tiles */
.Tile{
margin: 0 auto;
}
.Tile p{
position: absolute;
transform: translate(60%,-70%);
font-size: 3.7vmin;
color: white;
}
.Sbutton {
font-size: 3vmin;
width: 21vmin;
height: 9vmin;
position: absolute;
top: 85%;
left: 49.5%;
transform: translateX(-50%);
}
.Conclusion {
color:white;
text-align: center;
display: none;
z-index: 2;
position: absolute;
transform: translate(-53%,-53%);
top: 50%;
left:50%;
width: 30vmin;
height: 30vmin;
background-color: grey;
opacity: 0.9;
}
.Conclusion p{
font-weight: bold;
font-size: 3vmin;
position: absolute;
top: 35%;
left: 50%;
transform: translateX(-50%);
}
#CurrentPlayer {
text-align: center;
height: 7vmin;
width: 7vmin;
color: white;
font-size: 6vmin;
position: absolute;
left: 49.5%;
transform: translateX(-50%);
}
#Heading {
height: 3vmin;
display: block;
font-family: Tahoma, sans-serif;
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 5vmin;
}