Skip to content

Commit

Permalink
Update css.css
Browse files Browse the repository at this point in the history
  • Loading branch information
karanprasad2706 authored Apr 21, 2024
1 parent d370030 commit 0c2c0c2
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions css.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(to bottom, rgb(0, 123, 255), rgb(58, 80, 107)); /* Replace with your desired RGB values */
background: linear-gradient(to bottom, rgb(0, 123, 255), rgb(58, 80, 107));
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}


.stopwatch {
background-color: rgba(193, 189, 189, 0.934); /* Grey color with transparency */
backdrop-filter: blur(10px); /* Adjust the blur effect */
background-color: rgba(193, 189, 189, 0.934);
backdrop-filter: blur(10px);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
Expand All @@ -20,9 +19,6 @@ body {
width: 100%;
}

/* Rest of your existing CSS remains unchanged */


.time {
font-size: 3em;
margin: 20px 0;
Expand All @@ -45,7 +41,6 @@ button {
transition: background-color 0.3s ease;
}


.watch-icon {
display: flex;
justify-content: center;
Expand All @@ -55,24 +50,23 @@ button {
}

.watch-icon i {
transform-origin: 50% 50%; /* Set the rotation origin to the center */
transform-origin: 50% 50%;
transition: transform 0.3s ease;
}

.watch-icon.rotate i {
transform: rotate(180deg); /* Rotate 90 degrees vertically */
transform: rotate(180deg);
}

button:hover {
background-color: #2980b9;
}


.laps, .history {
margin-top: 20px;
text-align: left;
max-height: 150px; /* Set a maximum height for the container */
overflow-y: auto; /* Add a vertical scrollbar when content overflows */
max-height: 150px;
overflow-y: auto;
}

.laps div, .history div {
Expand All @@ -82,13 +76,28 @@ button:hover {
border-radius: 5px;
}



.controls button i {
margin-right: 5px;
transition: transform 0.3s ease;
}

.controls button.rotate i {
transform: rotate(180deg);
}
}

/* Media Query */
@media (max-width: 600px) {
.stopwatch {
max-width: 90%;
}
.time {
font-size: 2.5em;
}
.controls button {
font-size: 1em;
padding: 8px 16px;
}
.watch-icon {
margin-bottom: 10px;
}
}

0 comments on commit 0c2c0c2

Please sign in to comment.