-
Notifications
You must be signed in to change notification settings - Fork 0
/
brick_game.css
142 lines (120 loc) · 2.25 KB
/
brick_game.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
body{
margin: 0px;
width: 100%;
height: 100vh;
}
/*style of header*/
#header{
position: absolute;
overflow: hidden;
background-color: #1f1b1d;
width: 100%;
height: 10%;
text-align: center;
}
#gameTitle{
color: white;
margin: 0px;
padding-top: 10px;
padding-right: 10px;
font-family: 'McLaren', cursive;
display: inline-block;
}
#scoreDiv{
position: absolute;
margin: 0px;
line-height: 100%;
height: 100%;
display: inline-block;
top: 0px;
left: 0px;
/*why width????*/
}
.scoreTxt{
margin: 0px;
color: white;
display: inline-block;
line-height: 100%;
height: 100%;
}
/*style of statusBar*/
#statusBar{
position: absolute;
background-color: #D2B48C;
background-image: url("img/woodTexture.jpg");
width: 8%;
height: 90%;
}
.life{
position: absolute;
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 10px #000000;
}
#myPaint{
position: absolute;
}
#score{
position: absolute;
}
#game{
position: absolute;
background-color: #8B4513;
background-image: url("img/woodTexture.jpg");
width: 92%;
height: 90%;
z-index: -1;
}
#playArea{
position: absolute;
margin: auto;
background-color: #fff;
background-image: url("img/paperTexture.jpg");
opacity: 0.85;
width: 97%;
height: 95%;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}
#ball{
position: absolute;
height: 25px;
width: 25px;
border-radius: 50%;
background-color: black;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
z-index: 1;
}
.paddle{
position: absolute;
width: 15%;
height: 20px;
background-color: #000;
}
.brick{
position: absolute;
padding: 0px;
display: inline-block;
border: 2px solid black;
}
/*CSS for blind item*/
#light{
--cusorX: 100vw;
--cusorY: 50vh;
}
#light:before{
content: '';
display: block;
width: 100%;
height: 100%;
position: fixed;
pointer-events: none;
background: radial-gradient(circle 15vmax at var(--cusorX) var(--cusorY),
rgba(0,0,0,0) 0%,
rgba(0,0,0,0.5) 50%,
rgba(0,0,0,1) 100%
);
}
.item{
position: absolute;
background-size: contain;
}