diff --git a/css/style.css b/css/style.css index 96445a6..3dcaab1 100644 --- a/css/style.css +++ b/css/style.css @@ -1 +1,187 @@ /* Custom CSS goes here */ + +html { + display:table; + width:100%; +} + +body { + text-align: center; + background-size: cover; +} + +main { + display: block; + font-family: 'Raleway', sans-serif; + margin: 50px auto; + color: white; + line-height: 1.5; + font-size: 115%; +} + +#btn { + background: #3B84F9; + color: white; + height: 30px; + width: 110px; + border: none; + font-weight: 700; + text-shadow: none; + font-size: 14px; +} + +#btn:hover { + background: #5E9AFA; +} + +.weather-city { + color: #939393; +} + +h2 .results-city { + font-weight: 700 !important; +} + +.temperature-container, .humidity-container { + visibility: hidden; +} + +.row { + /*visibility: hidden;*/ + margin-top: 30px; +} + +footer { + position: fixed; + width: 100%; + background-color: rgba(0,0,0,.3); + padding: 10px 0; +} + +footer, a { + color: white; +} + +a { + font-weight: bold; +} + +a:hover { + color: grey; + text-decoration: none; +} + +/*it's icon time*/ +.icon { + visibility: hidden; + position: relative; + display: inline-block; + width: 12em; + height: 10em; + font-size: .5em; /* control icon size here */ +} + +.sun { + position: absolute; + top: 50%; + left: 50%; + width: 2.5em; + height: 2.5em; + margin: -1.25em; + background: currentColor; + border-radius: 50%; + box-shadow: 0 0 0 0.375em #fff; + animation: spin 12s infinite linear; +} +.rays { + position: absolute; + top: -2em; + left: 50%; + display: block; + width: 0.375em; + height: 1.125em; + margin-left: -0.1875em; + background: #fff; + border-radius: 0.25em; + box-shadow: 0 5.375em #fff; +} +.rays:before, +.rays:after { + content: ''; + position: absolute; + top: 0em; + left: 0em; + display: block; + width: 0.375em; + height: 1.125em; + transform: rotate(60deg); + transform-origin: 50% 3.25em; + background: #fff; + border-radius: 0.25em; + box-shadow: 0 5.375em #fff; +} +.rays:before { + transform: rotate(120deg); +} + +/* Animations */ + +@keyframes spin { + 100% { transform: rotate(360deg); } +} + +@keyframes cloud { + 0% { opacity: 0; } + 50% { opacity: 0.3; } + 100% { + opacity: 0; + transform: scale(0.5) translate(-200%, -3em); + } +} + +@keyframes rain { + 0% { + background: #0cf; + box-shadow: + 0.625em 0.875em 0 -0.125em rgba(255,255,255,0.2), + -0.875em 1.125em 0 -0.125em rgba(255,255,255,0.2), + -1.375em -0.125em 0 #0cf; + } + 25% { + box-shadow: + 0.625em 0.875em 0 -0.125em rgba(255,255,255,0.2), + -0.875em 1.125em 0 -0.125em #0cf, + -1.375em -0.125em 0 rgba(255,255,255,0.2); + } + 50% { + background: rgba(255,255,255,0.3); + box-shadow: + 0.625em 0.875em 0 -0.125em #0cf, + -0.875em 1.125em 0 -0.125em rgba(255,255,255,0.2), + -1.375em -0.125em 0 rgba(255,255,255,0.2); + } + 100% { + box-shadow: + 0.625em 0.875em 0 -0.125em rgba(255,255,255,0.2), + -0.875em 1.125em 0 -0.125em rgba(255,255,255,0.2), + -1.375em -0.125em 0 #0cf; + } +} + +@keyframes lightning { + 45% { + color: #fff; + background: #fff; + opacity: 0.2; + } + 50% { + color: #0cf; + background: #0cf; + opacity: 1; + } + 55% { + color: #fff; + background: #fff; + opacity: 0.2; + } +} diff --git a/index.html b/index.html index 33c1580..443959b 100644 --- a/index.html +++ b/index.html @@ -3,18 +3,21 @@