forked from Aryagithubk/N_queen_visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
229 lines (204 loc) · 4.23 KB
/
style.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
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
.header {
position: relative;
top: -20px;
width: 100%;
background-color: #011627;
color: #fdfffc;
}
.header h2 {
padding: 0.5em;
}
div.n-queen {
position: absolute;
left: 50%;
transform: translate(-50%, -50%);
width: 70%;
max-width: 450px;
/* border: 1px solid red; */
}
.inputbox {
position: relative;
top: 1.5em;
bottom: 2em;
}
.numberbox {
width: 100%;
font-size: 14px;
padding: 4px;
border: none;
border-bottom: 2px solid #2ec4b6;
outline: none;
background: transparent;
}
.inputbox label {
position: absolute;
top: 4px;
left: 0px;
color: #2ec4b6;
font-size: 14px;
pointer-events: none;
transition: 0.3s;
}
.inputbox input:focus ~ label,
.inputbox input:disabled ~ label,
.inputbox input:valid ~ label {
top: -9px;
font-size: 12px;
font-weight: 400;
}
.slider-container {
position: absolute;
left: 5%;
width: 90%;
/* text-align: center; */
margin: 0 auto;
top: 4em;
/* border: 2px solid red; */
}
.slider {
-webkit-appearance: none;
width: 100%;
margin: 0 auto;
height: 7px;
border-radius: 7px;
background: linear-gradient(90deg, #e8eddf 60%, #e8eddf 60%);
outline: none;
}
.slider::after {
content: "SLOW";
position: absolute;
top: -10px;
font-size: 14px;
font-weight: 500;
color: #fa7921;
}
.slider::before {
content: "FAST";
position: absolute;
top: -10px;
right: 0px;
font-size: 14px;
font-weight: 500;
color: #fa7921;
}
/* Google chrome */
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
position: relative;
top: -2px;
cursor: pointer;
background-color: #fa7921;
border-radius: 50%;
z-index: 2;
}
.slider::-webkit-slider-runnable-track {
-webkit-appearance: none;
height: 15px;
width: 15px;
z-index: 1;
color: #ffba08;
}
/* Mozilla firefox */
.slider::-moz-range-thumb {
width: 20px;
height: 20px;
background-color: #fa7921;
cursor: pointer;
position: relative;
top: -2px;
border-radius: 50%;
z-index: 2;
}
.slider::-webkit-slider-thumb:hover {
box-shadow: 0 0 0 2px white, 0 0 0 4px #fa7921;
}
#progress-bar {
width: 60%;
height: 7px;
background: #ffd200;
border-radius: 7px;
position: absolute;
top: 7px;
}
.play-button {
position: relative;
top: 80px;
left: 35%;
border: none;
outline: none;
color: #fdfffc;
width: 80px;
height: 35px;
background-color: #f72585;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease-in-out;
/* z-index: 1; */
}
.play-button:hover {
opacity: 0.8;
transform: scale(1.05);
}
.queen-arrangement {
position: relative;
top: 140px;
text-align: center;
font-size: 18px;
font-weight: 500;
color: #247ba0;
}
#n-queen-board {
position: relative;
display: flex;
width: 80%;
top: 150px;
margin: 0 auto;
flex-wrap: wrap;
justify-content: center;
}
#n-queen-board div {
position: relative;
display: flex;
justify-content: center;
flex-direction: column;
margin: 0 10px;
box-shadow: 0 4px 8px 0 rgb(0, 0, 0, 0.2);
border-radius: 3px;
bottom: 10px;
}
table {
position: relative;
border-collapse: collapse;
margin: -10px 10px;
padding: 10px;
margin-bottom: 10px;
align-self: center;
}
td {
width: 35px;
height: 35px;
text-align: center;
}
h4 {
position: relative;
top: -5px;
padding: 8px;
width: 95%;
background-color: #0582ca;
align-self: center;
color: #fdfffc;
text-align: center;
border-radius: 4px 4px 0 0;
}