Update style.css
Browse files
style.css
CHANGED
|
@@ -1,28 +1,46 @@
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
+
margin: 0;
|
| 3 |
+
overflow: hidden;
|
| 4 |
+
display: flex;
|
| 5 |
+
justify-content: center;
|
| 6 |
+
align-items: center;
|
| 7 |
+
height: 100vh;
|
| 8 |
+
background-color: #000;
|
| 9 |
}
|
| 10 |
|
| 11 |
+
#gameArea {
|
| 12 |
+
position: relative;
|
| 13 |
+
width: 100%;
|
| 14 |
+
height: 100%;
|
| 15 |
+
background-color: #333;
|
| 16 |
}
|
| 17 |
|
| 18 |
+
#paddleLeft, #paddleRight {
|
| 19 |
+
position: absolute;
|
| 20 |
+
width: 10px;
|
| 21 |
+
height: 80px;
|
| 22 |
+
background-color: #fff;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
#paddleLeft {
|
| 26 |
+
left: 10px;
|
| 27 |
+
top: 50%;
|
| 28 |
+
transform: translateY(-50%);
|
|
|
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
+
#paddleRight {
|
| 32 |
+
right: 10px;
|
| 33 |
+
top: 50%;
|
| 34 |
+
transform: translateY(-50%);
|
| 35 |
}
|
| 36 |
+
|
| 37 |
+
#ball {
|
| 38 |
+
position: absolute;
|
| 39 |
+
width: 15px;
|
| 40 |
+
height: 15px;
|
| 41 |
+
background-color: #fff;
|
| 42 |
+
border-radius: 50%;
|
| 43 |
+
top: 50%;
|
| 44 |
+
left: 50%;
|
| 45 |
+
transform: translate(-50%, -50%);
|
| 46 |
+
}
|