Skip to content

Commit 7ebfd2f

Browse files
committed
changing style and adding gifs
1 parent 5edd4ac commit 7ebfd2f

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed
12.6 MB
Loading

Screenshots/Sorting_1.gif

20.8 MB
Loading

src/SortingVisualizer/SortingVisualizer.css

+13-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ html{
1313
text-align: center;
1414
}
1515

16+
#itemsDiv{
17+
height: 42vw;
18+
}
19+
1620
.array-item{
1721
display: inline-block;
1822
border-radius: 15px 15px 0px 0px;
@@ -35,7 +39,7 @@ button{
3539
font-size: inherit;
3640
cursor: pointer;
3741
padding: 15px 10px;
38-
transition: all 0.3s;
42+
transition: all 0.2s;
3943
display: inline-block;
4044
text-transform: uppercase;
4145
letter-spacing: 1px;
@@ -69,4 +73,12 @@ div button, div input, div label{
6973
.numberInput{
7074
all: unset;
7175
background-color: #ff5733;
76+
font-weight: 200;
77+
font-size: x-large;
78+
color: white;
79+
}
80+
81+
input[type=number]::-webkit-inner-spin-button,
82+
input[type=number]::-webkit-outer-spin-button {
83+
-webkit-appearance: none;
7284
}

src/SortingVisualizer/SortingVisualizer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default class SortingVisualizer extends React.Component{
136136
let widthValue = 40 / this.state.numberOfItems;
137137
return (
138138
<div className="main-div" id="centerdiv">
139-
<div className="centerdivKeepWidth">
139+
<div className="centerdivKeepWidth" id="itemsDiv">
140140
{arrayToSort.map((heightValue, idx) => (
141141
<div className="array-item" key={idx} style={{height: `${heightValue / 25}vw`, width: `${widthValue}vw`, backgroundColor: this.getColor(idx)}}>
142142

0 commit comments

Comments
 (0)