-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
120 lines (105 loc) · 2.29 KB
/
style.scss
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
display: absolute;
width: 100%;
height: 100%;
font-family: "Poppins", sans-serif;
background: whitesmoke;
.topBar {
width: 100%;
background-color: rgb(58, 149, 209);
height: 10vh;
display: flex;
justify-content: center;
align-items: center;
.gameTitle {
font-size: 50px;
font-weight: 800;
color: white;
}
}
.mainContainer {
position: relative;
top: 2vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.status {
font-size: 40px;
font-weight: 900;
padding: 20px 40px;
margin: 20px;
color: white;
max-width: 80%;
background: rgb(58, 149, 209);
text-align: center;
border-radius: 20px;
}
.statusX::before {
content: "Player O's turn";
}
.statusO::before {
content: "Player X's turn";
}
.gameBoard {
position: relative;
padding: 20px;
width: 600px;
height: 600px;
background-color: white;
border: 3px solid rgb(58, 149, 209);
border-radius: 20px;
display: grid;
grid-template-columns: repeat(3, 1fr);
margin: 0px auto;
.field {
margin-left: 13px;
margin-top: 13px;
display: block;
color: rgb(58, 149, 209);
height: 160px;
width: 160px;
font-size: 7rem;
border: 2px solid rgb(58, 149, 209);
border-radius: 20px;
text-align: center;
cursor: pointer;
}
.x::before {
content: "X";
}
.o::before {
content: "O";
}
.field:hover {
background-color: rgba(58, 149, 209, 0.3);
color: white;
text-shadow: 0px 5px 10px rgba(58, 149, 209, 0.4);
}
}
.restartSection {
.restartBtn {
position: relative;
top: 2vh;
outline: none;
cursor: pointer;
background: rgb(58, 149, 209);
color: white;
font-weight: 600;
font-size: 30px;
padding: 15px 30px;
border: none;
border-radius: 20px;
}
.restartBtn:hover {
box-shadow: 0px 0px 15px rgba(161, 161, 161, 0.788);
font-size: 35px;
}
}
}
}