Skip to content

Commit 785ffff

Browse files
Update styles.css
added confetti when valid, made validate button orange, add hover effect to validate button no matter the color it changes into, validate button turns green when valid and red when invalid
1 parent ce5c36a commit 785ffff

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

styles.css

+16-32
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
/* General Styling */
22
body {
33
font-family: 'Arial', sans-serif;
4-
background-color: #1e293b; /* Modern dark blue-gray for contrast */
4+
background-color: #1e293b;
55
}
66

7-
/* Blue Card Styling */
8-
.bg-gray-900 {
9-
max-width: 34rem; /* Ensure the card contains all elements */
10-
width: 100%; /* Make it responsive */
11-
}
12-
13-
/* Sudoku Grid Container Styling */
7+
/* Sudoku grid styling */
148
.sudoku-grid {
159
display: grid;
1610
grid-template-columns: repeat(9, 1fr);
17-
width: 27rem; /* Ensure grid fits perfectly inside the white background */
11+
width: 27rem;
1812
gap: 0;
19-
background-color: #f3f4f6; /* Light gray for grid background */
20-
border-radius: 0.5rem; /* Rounded edges */
13+
background-color: #f3f4f6;
14+
border-radius: 0.5rem;
2115
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
2216
border: 2px solid #d1d5db;
2317
}
2418

25-
/* Input Cell Styling */
19+
/* Input cell styling */
2620
.cell {
2721
background-color: white;
2822
color: black;
@@ -34,27 +28,17 @@ body {
3428
line-height: 3rem;
3529
}
3630

37-
.cell.border-t-2 {
38-
border-top-width: 2px;
39-
}
40-
41-
.cell.border-l-2 {
42-
border-left-width: 2px;
43-
}
44-
45-
/* Dropdown Menu Styling */
46-
select {
47-
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='gray'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
48-
background-repeat: no-repeat;
49-
background-position: right 0.75rem center;
50-
background-size: 1.5rem 1.5rem;
51-
appearance: none;
52-
padding-right: 2.5rem; /* Space for arrow */
53-
cursor: pointer;
31+
/* Confetti canvas styling */
32+
#confettiCanvas {
33+
position: fixed;
34+
top: 0;
35+
left: 0;
36+
z-index: 1000;
37+
pointer-events: none;
5438
}
5539

56-
/* Buttons */
57-
button {
58-
transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
40+
/* Hover effect for Validate button */
41+
#validateButton:hover {
42+
filter: brightness(1.2); /* Makes the button brighter on hover */
5943
cursor: pointer;
6044
}

0 commit comments

Comments
 (0)