-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyling.css
More file actions
192 lines (169 loc) · 3.54 KB
/
styling.css
File metadata and controls
192 lines (169 loc) · 3.54 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color:white; /* Light gray background */
}
header {
text-align: center;
margin-bottom: 20px;
}
h1 {
font-size: 2.5rem;
color: #333;
margin-bottom: 10px;
}
h2 {
font-size: 3rem; /* Adjust size as needed */
color: #FF9F1C; /* Blue color for heading */
background-color: #f8f9fa; /* Light gray background */
padding: 10px 20px; /* Add padding for better readability */
border-radius: 5px; /* Rounded corners */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
}
.controls {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.controls input[type="number"],
.controls input[type="range"] {
padding: 5px;
margin-left: 5px;
border: 1px solid #ccc;
border-radius: 3px;
outline: none;
font-size: 1rem;
}
.controls button {
padding: 8px 20px;
background-color: #FF9F1C;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.3s;
}
.controls button:hover {
background-color: #f5b000;
}
.controls #progressBar {
height: 10px;
width: 100%;
background-color: #ddd;
margin-top: 5px;
position: relative;
}
.controls #progressBar::after {
content: '';
display: block;
height: 100%;
width: 0;
background-color: #FF9F1C;
}
.slider{
color:yellow;
}
.main {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
/* Board Styles */
#board {
display: grid;
gap: 2px;
margin-bottom: 20px;
}
.cell {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.even {
background-color: #FCCD90;
}
.odd {
background-color: #FF9F1C;
}
.queen {
font-size: 24px;
}
.queen-cell {
background-color: rgb(238, 156, 144);
}
.checking-cell {
background-color: pink;
}
label{
font-size: x-large;
}
/* Responsive Design */
@media (max-width: 768px) {
.controls {
flex-direction: column;
align-items: flex-start;
}
.controls label {
margin-bottom: 5px;
}
.controls button {
margin-top: 10px;
}
}
/* .conflict {
background-color: #f00;
}
@keyframes blink {
from {
background-color: #ff0;
}
to {
background-color: #ffffe0;
}
}
.conflict-blink {
animation: blink 1s infinite alternate;
} */
.cell {
/* Your existing styles */
position: relative; /* Ensure relative positioning for conflict indication */
}
.cell.blinking::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgb(255, 0, 0); /* Adjust as needed */
animation: blink-animation 0.5s ease-in-out infinite alternate; /* Blink animation */
}
@keyframes blink-animation {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.current-checking {
/* Style to indicate the currently checking column */
outline: 2px solid pink; /* Example outline for highlighting */
/* Add other visual cues as needed */
}