Skip to content

Commit

Permalink
Fix CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshitv21 committed Dec 8, 2024
1 parent 245548a commit 7ce9867
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/components/InputBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const InputBox = ({
<div className="button-container">
<button
type="button"
className="btn btn-primary"
className="btn btn-primary input-box-btn"
onClick={() =>
handleAddTime(
type,
Expand All @@ -153,7 +153,7 @@ export const InputBox = ({
</button>
<button
type="button"
className="btn btn-warning"
className="btn btn-warning input-box-btn"
onClick={() => handleClear(type)}
>
Clear
Expand All @@ -166,7 +166,7 @@ export const InputBox = ({
</button>
<button
type="button"
className="btn btn-danger"
className="btn btn-danger input-box-btn"
onClick={() => handleClear(type, true)}
>
Clear All
Expand Down Expand Up @@ -199,7 +199,7 @@ export const InputBox = ({
{(type === "AR" ? arrivalArray : burstTimeArray).length < 10 ? (
<button
type="button"
className="btn btn-primary"
className="btn btn-primary input-box-btn"
onClick={() =>
handleAddTime(
type,
Expand All @@ -222,7 +222,7 @@ export const InputBox = ({
)}
<button
type="button"
className="btn btn-warning"
className="btn btn-warning input-box-btn"
onClick={() => handleClear(type)}
>
Clear{" "}
Expand All @@ -235,7 +235,7 @@ export const InputBox = ({
</button>
<button
type="button"
className="btn btn-danger"
className="btn btn-danger input-box-btn"
onClick={() => handleClear(type, true)}
>
Clear All
Expand Down
16 changes: 8 additions & 8 deletions src/styles/InputBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
height: 24px;
}

button {
.input-box-btn {
padding: 10px 15px;
font-size: 16px;
border: none;
Expand All @@ -67,15 +67,15 @@ button {
transition: all 0.3s ease;
}

button:hover {
transform: translateY(-3px); /* Smooth upward movement */
background-color: #8e44ad; /* Transition to a lighter purple */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Highlighted shadow */
.input-box-btn:hover {
transform: translateY(-3px);
/* background-color: #8e44ad; */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:active {
transform: translateY(0); /* Reset the position on click */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lower shadow on click */
.input-box-btn:active {
transform: translateY(0);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


0 comments on commit 7ce9867

Please sign in to comment.