-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
118 lines (113 loc) · 2.03 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
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
body {
background: black;
margin: 0;
}
.game {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
/* for the variables */
:root {
--color: #30e292;
--uncolor: #4131e7;
}
/* for the gradient boundaries */
.wrap {
margin: 0.7vw;
background: linear-gradient(120deg, var(--color), var(--uncolor));
}
.wrap:hover {
background: var(--color);
}
.unwrap {
margin: 0.3vw;
background: black;
}
/* the rows */
.row1,
.row2,
.row3 {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
margin: auto;
padding: 0;
}
/* Individual boxes */
.r1c1,
.r1c2,
.r1c3,
.r2c1,
.r2c2,
.r2c3,
.r3c1,
.r3c2,
.r3c3 {
background-image: linear-gradient(120deg, var(--color), var(--uncolor));
background-clip: text;
-webkit-background-clip: text;
color: transparent;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 2em;
max-width: 70px;
min-width: 30px;
max-height: 70px;
min-height: 30px;
height: 30vh;
width: 30vw;
text-align: center;
padding: 3vh;
display: flex;
justify-content: center;
align-items: center;
}
/* the bottom */
.result {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 2rem;
background-image: linear-gradient(120deg, var(--color), var(--uncolor));
background-clip: text;
-webkit-background-clip: text;
color: transparent;
display: flex;
margin: auto;
width: 45vw;
align-items: center;
justify-content: center;
}
.scoreX,
.scoreO {
font-size: 2rem;
background-image: linear-gradient(0deg, var(--color), var(--uncolor));
background-clip: text;
-webkit-background-clip: text;
color: transparent;
display: flex;
justify-content: center;
text-align: center;
margin: auto;
width: 45vw;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Responsive */
@media screen and (max-width: 750px) {
.r1c1,
.r1c2,
.r1c3,
.r2c1,
.r2c2,
.r2c3,
.r3c1,
.r3c2,
.r3c3 {
padding: 3vw;
}
.wrap {
margin: 1.7vw;
}
.unwrap {
margin: 0.5vh;
}
}