-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
128 lines (114 loc) · 1.94 KB
/
styles.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
125
126
127
128
body {
background-color: black;
margin: 0;
padding: 0;
overflow: hidden;
color: white;
font-family: "Courier New", Courier, monospace;
}
.paddle {
position: fixed;
bottom: 0;
margin-bottom: 0.5vmin;
background-color: white;
border-radius: 1vmin;
width: 8vw;
min-height: 12px;
height: 2vmin;
}
.ball {
display: none;
background-color: white;
border-radius: 50%;
position: fixed;
min-width: 10px;
min-height: 10px;
width: 1.75vmin;
height: 1.75vmin;
transform: translateX(-50%) translateY(-50%);
}
.overlay {
display: none;
text-align: center;
background: black;
position: fixed;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
z-index: 5;
}
#scoreBoard,
#debug {
text-align: end;
transform: none;
top: 0;
left: auto;
margin: 2vmin;
right: 0;
display: block;
z-index: 10;
background: transparent;
}
.bricks {
position: relative;
margin: 10vh auto;
width: 80vw;
height: 50vh;
/* border: 1px solid white; */
}
#timer {
top: 75vh;
font-size: 15vmin;
}
.brick {
/* background: linear-gradient(45deg, green, black, blue); */
/* box-shadow: inset 0 0 10px 10px #00820090;
background: #00ff00; */
margin: 0;
border: 1px solid white;
}
.hit {
background: none !important;
box-shadow: none !important;
border: 1px solid transparent;
}
.toShrink {
width: -webkit-fill-available;
height: -webkit-fill-available;
background: inherit;
transform: scale(0);
animation: shrink 1s linear;
}
.powerup {
position: absolute;
z-index: 20;
}
.powerup img {
width: 5vw;
filter: invert(1);
}
.shield {
background: lightblue;
margin: 0;
padding: 0;
position: absolute;
bottom: 0;
height: 0.5vmin;
width: -webkit-fill-available;
}
@keyframes shrink {
from {
transform: scale(1);
}
to {
transform: scale(0);
}
}
@media screen and (max-width: 600px) {
.paddle {
width: 20vw;
}
.powerup img {
width: 15vw;
}
}