-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSorting.css
More file actions
110 lines (95 loc) · 1.82 KB
/
Sorting.css
File metadata and controls
110 lines (95 loc) · 1.82 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
html, body {
text-align: center;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-color:rgba(114, 130, 86, 0.484);
}
h1 {
margin-top: 20px;
}
.navbar {
margin: 20px auto;
display: flex;
justify-content: center;
gap: 10px;
}
.option {
display: flex;
gap: 10px;
}
button {
padding: 5px 10px;
font-size: 16px;
cursor: pointer;
background-color: #ffff;
border: none;
border-radius: 5px;
}
#ArrayInput {
padding: 5px;
width: 200px;
}
.Bars {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
width: 90%;
margin: 25px auto;
background-color:rgba(129, 150, 129, 0.527);
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}
.bar {
width: 20px;
margin: 2px;
background: white;
transition: all 300ms ease-out;
border-radius: 6px;
}
.bar.active {
background: rgb(153, 118, 75);
animation: upAndDownScale 1.5s ease-in-out;
}
.color-container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px; /* Spacing between each color block */
}
.color-box {
display: flex;
flex-direction: column; /* Stacks color and text */
align-items: center;
}
.color {
height: 30px;
width: 30px;
border: 2px solid white;
border-radius: 50%;
display: block;
}
#yellow {
background-color: yellow;
}
#red {
background-color: red;
}
#green {
background-color: green;
}
#white {
background-color: white;
}
.color-label {
margin-top: 5px; /* Space between color and text */
font-size: 14px;
font-weight: bold;
color: white;
text-align: center;
}
@keyframes upAndDownScale {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}