-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (82 loc) · 1.98 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
* {
box-sizing: border-box;
}
html {
}
body {
font-family: Arial;
display: -webkit-box;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
min-height: 100vh;
/* background: linear-gradient(-45deg, #e53935 0 20px, #fb8c00 20px 40px, #fdd835 40px 60px, #43a047 60px 80px, #00acc1 80px 100px, #3949ab 100px 120px, #8e24aa 120px 140px, transparent 140px), linear-gradient(135deg, #e53935 0 20px, #fb8c00 20px 40px, #fdd835 40px 60px, #43a047 60px 80px, #00acc1 80px 100px, #3949ab 100px 120px, #8e24aa 120px 140px, #fff 140px); */
/* background: linear-gradient(115deg, #e53935 0 40px, #fb8c00 40px 120px, #fdd835 60px 35%, #43a047 35% 65%, #00acc1 65% calc(100% - 120px), #3949ab calc(100% - 120px) calc(100% - 40px), #8e24aa calc(100% - 40px) 100%); */
background: linear-gradient(-45deg, #3949ab, #80deea);
}
h1 {
text-align: center;
letter-spacing: 1rem;
color: white;
}
#screen {
background: #eee;
border: solid 5px white;
width: 210px;
height: 410px;
display: -webkit-box;
display: flex;
flex-wrap: wrap;
}
#screen div {
width: 20px;
height: 20px;
border: solid 1px white;
}
#screen div:nth-of-type(n+201) {
border: transparent;
}
#preview-screen {
display: -webkit-box;
display: flex;
flex-wrap: wrap;
width: 90px;
height: 90px;
margin-bottom: 20px;
border: solid 5px white;
background: #eee;
}
#preview-screen div {
width: 20px;
height: 20px;
border: solid 1px white;
}
#preview-screen div:nth-of-type(n+17) {
border: transparent;
}
.tetromino {
/* background: red; */
}
#score {
padding: 5px;
color: white;
}
#start {
width: 210px;
/* border: solid 5px white; */
cursor: pointer;
background: white;
border: none;
padding: 5px;
margin-bottom: 20px;
}
#start:hover,
#start:focus {
background: #eee;
border-color: #eee;
}