-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (96 loc) · 1.63 KB
/
style.css
File metadata and controls
113 lines (96 loc) · 1.63 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
/* style.css */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f7f9;
margin: 0;
padding: 20px;
text-align: center;
}
h1 {
margin-bottom: 10px;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
margin-bottom: 25px;
align-items: center;
}
.controls label,
.controls select,
.controls input,
.controls button {
font-size: 16px;
}
.controls select,
.controls input[type="text"],
.controls button {
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 6px;
outline: none;
background-color: white;
transition: 0.2s;
}
.controls button {
cursor: pointer;
background-color: #007bff;
color: white;
border: none;
}
.controls button:hover {
background-color: #0056b3;
}
#speed {
cursor: pointer;
vertical-align: middle;
}
#bars-container {
display: flex;
align-items: flex-end;
justify-content: center;
height: 400px;
max-width: 100%;
margin: 0 auto;
padding: 10px;
gap: 5px;
}
.bar {
width: 25px;
background-color: rgb(250, 9, 166);
position: relative;
border: 2px solid black;
border-radius: 4px 4px 0 0;
transition: height 0.2s ease;
}
.bar span {
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
color: black;
white-space: nowrap;
}
.bar.sorted {
background-color: green;
}
.bar.comparing {
background-color: orange;
}
.bar.swapping {
background-color: red;
}
.bar.pivot {
background-color: yellow;
}
@media (max-width: 600px) {
.bar {
width: 6px;
}
.controls {
flex-direction: column;
align-items: stretch;
}
}