Skip to content

Commit

Permalink
Merge pull request #320 from Divyanshi014/tempCardsModified
Browse files Browse the repository at this point in the history
restyled temperature cards
  • Loading branch information
avinash201199 committed Oct 26, 2023
2 parents 5466fef + 729f28c commit 23d2dca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
24 changes: 19 additions & 5 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,27 @@ button:focus {
}

.forecast-component__item {
border: 1px solid rgb(35, 35, 35);
background: rgba(9, 80, 102, 0.7);
padding: 12px;
transition: background-color 0.5s ease;
height: 150px;
position: relative;
box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-top: 1px solid rgba(255, 255, 255, 0.5);
border-left: 1px solid rgba(255, 255, 255, 0.5);
backdrop-filter: blur(5px);
height: 210px;
width: 100%;
min-width: max-content;
margin: 1%;

}

.w-100{
width: 111%!important;
}

.forecast-component__item img {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ <h2 id="temp" class="weather-component__city-temperature fw-bold display-1">32°
</div>
</div>
</div>
<div class="col" style="margin-top: 5.5rem;">
<div class="col" style="margin-top: 3.5rem;">
<div class="forecast-component p-2 overflow-hidden text-white w-100">
<div class="forecast-component__items-wrapper transition overflow-hidden " id="weather-forecast">
<div class="forecast-component__item rounded text-center" id="weather-forecast-item">
Expand Down

0 comments on commit 23d2dca

Please sign in to comment.