-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (119 loc) · 2.24 KB
/
style.css
File metadata and controls
127 lines (119 loc) · 2.24 KB
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
* {
padding: 0;
margin: 0;
}
.board {
background-color: beige;
width: 100vw;
height: 100vh;
display: grid;
justify-content: center;
align-content: center;
grid-template-columns: repeat(3, auto);
}
#win-line {
position: absolute;
height: 5px;
width: 500px;
background-color: #000;
}
.cell {
height: 300px;
width: 300px;
border: 3px solid #000;
border-top: 0;
border-left: 0;
position: relative;
}
.cell:nth-child(3n + 3) {
border-right: 0;
}
.cell:nth-child(1n + 7) {
border-bottom: 0;
}
.cell.x::before, .cell.x::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
background-color: black;
height: 9px;
width: 195px;
}.cell.x::before {
transform: rotate(45deg);
} .cell.x::after {
transform: rotate(-45deg);
}
.cell.o::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
background-color: transparent;
border: 9px solid black;
height: 195px;
width: 195px;
border-radius: 50%;
}
@media screen and (max-width: 1024px) {
.cell {
height: calc(300px/2);
width: calc(300px/2);
}.cell.x::before, .cell.x::after {
height: calc(9px/2);
width: calc(195px/2);
}
.cell.o::before {
border: calc(9px/2)solid black;
height: calc(195px/2);
width: calc(195px/2);
}
}
@media screen and (max-height: 950px) {
.cell {
height: calc(300px/2);
width: calc(300px/2);
}.cell.x::before, .cell.x::after {
height: calc(9px/2);
width: calc(195px/2);
}
.cell.o::before {
border: calc(9px/2)solid black;
height: calc(195px/2);
width: calc(195px/2);
}
}
@media screen and (max-height: 500px) {
.cell {
height: calc(300px/3);
width: calc(300px/3);
}.cell.x::before, .cell.x::after {
height: calc(9px/3);
width: calc(195px/3);
}
.cell.o::before {
border: calc(9px/3)solid black;
height: calc(195px/3);
width: calc(195px/3);
}
}
@media screen and (max-width: 680px) {
.cell {
height: calc(300px/3);
width: calc(300px/3);
}.cell.x::before, .cell.x::after {
height: calc(9px/3);
width: calc(195px/3);
}
.cell.o::before {
border: calc(9px/3)solid black;
height: calc(195px/3);
width: calc(195px/3);
}
}