Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 89 additions & 88 deletions style.css → assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,90 @@
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Open Sans', sans-serif;
background: #222;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
font-size: 120%;
}

.card {
background: #000000d0;
color: white;
padding: 2em;
border-radius: 30px;
width: 100%;
max-width: 420px;
margin: 1em;
}

.search {
display: flex;
align-items: center;
justify-content: center;
}

button {
margin: 0.5em;
border-radius: 50%;
border: none;
height: 44px;
width: 44px;
outline: none;
background: #7c7c7c2b;
color: white;
cursor: pointer;
transition: 0.2s ease-in-out;
}

input.search-bar {
border: none;
outline: none;
padding: 0.4em 1em;
border-radius: 24px;
background: #7c7c7c2b;
color: white;
font-family: inherit;
font-size: 105%;
width: calc(100% - 100px);
}

button:hover {
background: #7c7c7c6b;
}

h1.temp {
margin: 0;
margin-bottom: 0.4em;
}

.flex {
display: flex;
align-items: center;
}

.description {
text-transform: capitalize;
/**This margin is needless as the icon has inbuilt margins.**/
/**margin-left: 8px;**/
}

.weather.loading {
visibility: hidden;
max-height: 20px;
position: relative;
}

.weather.loading:after {
visibility: visible;
content: "Loading...";
color: white;
position: absolute;
top: 0;
left: 20px;
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Open Sans', sans-serif;
background: #222;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
font-size: 120%;
background: url('../images/weather-background.png');
}

.card {
background: #000000d0;
color: white;
padding: 2em;
border-radius: 30px;
width: 100%;
max-width: 420px;
margin: 1em;
}

.search {
display: flex;
align-items: center;
justify-content: center;
}

button {
margin: 0.5em;
border-radius: 50%;
border: none;
height: 44px;
width: 44px;
outline: none;
background: #7c7c7c2b;
color: white;
cursor: pointer;
transition: 0.2s ease-in-out;
}

input.search-bar {
border: none;
outline: none;
padding: 0.4em 1em;
border-radius: 24px;
background: #7c7c7c2b;
color: white;
font-family: inherit;
font-size: 105%;
width: calc(100% - 100px);
}

button:hover {
background: #7c7c7c6b;
}

h1.temp {
margin: 0;
margin-bottom: 0.4em;
}

.flex {
display: flex;
align-items: center;
}

.description {
text-transform: capitalize;
/**This margin is needless as the icon has inbuilt margins.**/
/**margin-left: 8px;**/
}

.weather.loading {
visibility: hidden;
max-height: 20px;
position: relative;
}

.weather.loading:after {
visibility: visible;
content: "Loading...";
color: white;
position: absolute;
top: 0;
left: 20px;
}
Binary file added assets/images/weather-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading