-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (124 loc) · 2.25 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
119
120
121
122
123
124
* {
margin: 0;
}
html {
background: #181a1b;
height: 100vh;
}
body {
font-family: cursive;
text-align: center;
display: flex;
height: 100%;
justify-content: space-around;
align-items: center;
}
#score-board {
border: 2px dashed #e49400;
border-radius: 10px;
color: #d8d4cf;
display: grid;
grid-template-columns: 50% 50%;
grid-template-rows: 50% 50%;
align-items: center;
padding: 1%;
position: relative;
}
#score-reset {
position: absolute;
bottom: 0;
right: 0;
border-radius: 9px 0 9px 0;
}
#container {
display: grid;
grid-template-columns: 33% 33% 33%;
grid-template-rows: 33% 33% 33%;
position: relative;
}
#container div img {
height: 100%;
width: 100%;
}
button {
background: #e49400;
color: #000;
outline: none;
border: none;
}
button:active {
background: #ff4500;
}
@media screen and (orientation:portrait) {
body {
flex-direction: column;
}
#score-board {
width: 30vw;
}
#container {
width: 96vw;
height: 96vw;
}
}
@media screen and (orientation:landscape) {
body {
flex-direction: row;
}
#score-board {
width: 20vh;
}
#container {
width: 85vh;
height: 85vh;
}
}
.bb {
border-bottom: 4px solid #e49400;
margin: -1px;
}
.bl {
border-left: 4px solid #e49400;
margin: -1px;
}
.br {
border-right: 4px solid #e49400;
margin: -1px;
}
.bt {
border-top: 4px solid #e49400;
margin: -1px;
}
#winLine {
display: none;
width: 13px;
border-radius: 100%;
background: #a30000;
position: absolute;
top: 49.52%;
left: 49.52%;
}
#winDow {
display: none;
position: absolute;
background: #292c2e;
color: #d8d4cf;
top: 50vh;
left: 50vw;
opacity: 0;
border-radius: 10px;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
width: 300px;
height: 150px;
transform: translate(-50%, -50%);
transition: opacity .5s;
}
#winDow h1 {
padding: 5px;
}
#winDow button {
border-radius: 5px;
padding: 3px 6px;
}