-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I improved the styling of Weather app. In order to do this, I had written whole css. Some minor modification in html along with adding icons. And put some more content under 'script.js' by adding Images indicating the kind of weather.
- Loading branch information
1 parent
2876d59
commit dedccbe
Showing
9 changed files
with
193 additions
and
15 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,130 @@ | ||
/* css k naam pe sirf * hai */ | ||
/* css k naam pe sirf * hai */ | ||
*{ | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
border: none; | ||
outline: none; | ||
font-family: sans-serif; | ||
} | ||
|
||
body{ | ||
min-height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-repeat: no-repeat; | ||
background-size: auto; | ||
background: url('../Images/homePhoto.jpg') | ||
} | ||
|
||
.container{ | ||
width: 400px; | ||
height: min-content; | ||
background-color: #fff; | ||
border-radius: 12px; | ||
padding: 28px; | ||
border:1px solid red; | ||
opacity: .8; | ||
} | ||
|
||
.search-box{ | ||
width: 100%; | ||
height: min-content; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.search-box input{ | ||
width: 84%; | ||
font-size: 20px; | ||
text-transform: capitalize; | ||
color: #000; | ||
background-color: #e6f5fb; | ||
padding: 12px 16px; | ||
border-radius: 14px; | ||
} | ||
|
||
.search-box input::placeholder{ | ||
color: #000; | ||
} | ||
|
||
.search-box button{ | ||
width: 46px; | ||
height: 46px; | ||
background-color: #e6f5fb; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
font-size: 20px; | ||
} | ||
|
||
.search-box button:hover{ | ||
color: #fff; | ||
background-color: #ababab; | ||
} | ||
.weather-box{ | ||
margin-block: 20px; | ||
text-align: center; | ||
} | ||
|
||
.weather-box .temperature{ | ||
font-size: 40px; | ||
font-weight: 800; | ||
position: relative; | ||
} | ||
.weather-details{ | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 30px; | ||
} | ||
|
||
.humidity, .wind1{ | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.humidity{ | ||
margin-left: 20px; | ||
} | ||
|
||
.wind1{ | ||
margin-right: 20px; | ||
} | ||
|
||
.weather-details i{ | ||
font-size: 36px; | ||
} | ||
|
||
.weather-details .text{ | ||
margin-left: 10px; | ||
font-size: 16px; | ||
} | ||
.text span{ | ||
font-size: 20px; | ||
font-weight: 700; | ||
} | ||
|
||
|
||
.blank{ | ||
height:5rem; | ||
|
||
} | ||
.feel{ | ||
margin-top:5rem; | ||
font-size: 1.3rem; | ||
} | ||
.tem{ | ||
margin-top:3rem; | ||
} | ||
.feels{ | ||
font-weight: 700; | ||
} | ||
.cel{ | ||
font-weight: 700; | ||
} | ||
.tcel{ | ||
font-weight: 700; | ||
font-size: 2rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters