Skip to content

Commit a6e16be

Browse files
committed
fix breakout colors
1 parent ca9ee6a commit a6e16be

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

75-breakout game/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const rules = document.getElementById("rules");
44
const canvas = document.getElementById("canvas");
55
const ctx = canvas.getContext("2d");
66
const color = getComputedStyle(document.documentElement).getPropertyValue(
7-
"--background-color"
7+
"--button-color"
88
);
99
const secondaryColor = getComputedStyle(
1010
document.documentElement
11-
).getPropertyValue("--background-secondary-color");
11+
).getPropertyValue("--sidebar-color");
1212
let score = 0;
1313
const brickRowCount = 9;
1414
const brickColumnCount = 5;

75-breakout game/style.css

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@import url("https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400;700&display=swap");
22

33
:root {
4-
--background-color: #081150;
5-
--background-secondary-color: #1842da;
4+
--background-color: #7f7fd5;
5+
--background-secondary-color: #91eae4;
66
--canvas-color: #f0f0f0;
77
--text-color: rgba(255, 255, 255, 0.87);
8-
--sidebar-color: #4d515e;
9-
--button-color: #00094f;
10-
--hover-color: #3e499c;
8+
--sidebar-color: #343457;
9+
--button-color: #86a8e7;
10+
--hover-color: #7db3e3;
1111
}
1212

1313
* {
@@ -16,11 +16,11 @@
1616

1717
body {
1818
background-color: var(--background-color);
19-
background-image: radial-gradient(
20-
circle,
21-
var(--button-color) 0%,
22-
var(--background-color) 35%,
23-
var(--background-secondary-color) 100%
19+
background: linear-gradient(
20+
to right,
21+
var(--background-color),
22+
var(--button-color),
23+
var(--background-secondary-color)
2424
);
2525
font-family: "Balsamiq Sans", cursive;
2626
display: flex;

0 commit comments

Comments
 (0)