178 lines
3.8 KiB
CSS
178 lines
3.8 KiB
CSS
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400');
|
|
|
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
|
|
big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center,
|
|
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article,
|
|
aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section,
|
|
summary, time, mark, audio, video {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
font-size: 100%;
|
|
font: inherit;
|
|
vertical-align: baseline;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
::-webkit-input-placeholder {
|
|
color: orangered;
|
|
transition: color 0.25s ease-out;
|
|
}
|
|
::-moz-placeholder {
|
|
color: orangered;
|
|
transition: color 0.25s ease-out;
|
|
}
|
|
:-ms-input-placeholder {
|
|
color: orangered;
|
|
transition: color 0.25s ease-out;
|
|
}
|
|
:-moz-placeholder {
|
|
color: orangered;
|
|
transition: color 0.25s ease-out;
|
|
}
|
|
|
|
input:focus::-webkit-input-placeholder {
|
|
color: transparent;
|
|
}
|
|
input:focus::-moz-placeholder {
|
|
color: transparent;
|
|
}
|
|
input:focus:-ms-input-placeholder {
|
|
color: transparent;
|
|
}
|
|
input:focus:-moz-placeholder {
|
|
color: transparent;
|
|
}
|
|
|
|
html {
|
|
background: url('../img/background.jpg') top left no-repeat;
|
|
background-size: cover;
|
|
height: 100vh;
|
|
}
|
|
|
|
body {
|
|
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
.weather-section {
|
|
height: 100vh;
|
|
display: block;
|
|
}
|
|
.weather-input .header {
|
|
color: #333;
|
|
font-size: 30px;
|
|
font-weight: 300;
|
|
text-align: center;
|
|
height: 50px;
|
|
padding: 0;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
vertical-align: bottom;
|
|
margin-top: calc(50vh - 75px);
|
|
text-shadow: 0 0 3px rgba(255,255,255,0.25);
|
|
}
|
|
.weather-input .input-wrapper {
|
|
display:block;
|
|
width: 75%;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-radius: 10px;
|
|
height: 50px;
|
|
text-align: center;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.15);
|
|
}
|
|
.weather-input .input-wrapper input {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
background: transparent;
|
|
text-align: center;
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
color: #333;
|
|
}
|
|
.weather-input .input-wrapper input:focus {
|
|
outline: none;
|
|
}
|
|
.weather-input .error-message {
|
|
text-align: center;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
font-weight: 400;
|
|
color: darkred;
|
|
display: none;
|
|
}
|
|
|
|
|
|
.weather-forecast {
|
|
display: none;
|
|
}
|
|
|
|
.weather-forecast .header {
|
|
color: #333;
|
|
font-size: 30px;
|
|
font-weight: 300;
|
|
text-align: center;
|
|
height: 50px;
|
|
padding: 0;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
vertical-align: bottom;
|
|
margin-top: calc(50vh - 100px);
|
|
text-shadow: 0 0 3px rgba(255,255,255,0.25);
|
|
}
|
|
|
|
.weather-forecast .results-wrapper {
|
|
display:block;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-radius: 10px;
|
|
height: 125px;
|
|
text-align: center;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.weather-forecast .results-wrapper .day {
|
|
width: 25%;
|
|
display: inline-block;
|
|
height: 100%;
|
|
float: left;
|
|
text-align: center;
|
|
}
|
|
|
|
.day img {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
.day .weather-date {
|
|
color: #999;
|
|
font-weight: 300;
|
|
margin-top: 20px;
|
|
font-size: 12px;
|
|
}
|
|
.day .weather-details {
|
|
color: #333;
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
}
|
|
.back-button {
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
.back-button a {
|
|
text-align: center;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
font-weight: 400;
|
|
color: #333;
|
|
opacity: 0.5;
|
|
text-decoration: none;
|
|
}
|
|
.back-button a:hover {
|
|
opacity: 1;
|
|
} |