File size: 1,505 Bytes
8621d18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #fdfdfd;
font-family: "Nunito", sans-serif;
font-size: 1rem;
overflow: hidden;
}
html, body {
height: 100%;
min-height: 100%;
}
main {
max-width: 900px;
margin: auto;
padding: 0.5rem;
text-align: center;
height: 80%;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
}
ul {
list-style: none;
display: flex;
}
li {
margin-right: 1rem;
}
h1 {
margin-bottom: 0.5rem;
}
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
grid-gap: 1rem;
justify-content: center;
align-items: center;
margin: auto;
padding: 1rem 0;
}
body.sunny {
background: #69caf8;
}
body.cloudy {
background: #cbcaca;
}
body.rain {
background: #607280;
color: white;
}
body.offline {
background: #e37f7f;
color: black;
}
#weather {
margin-top: 100px;
}
#weather #image-container {
float: left;
}
#weather #image {
width: 350px;
}
#weather #temp {
padding-top: 70px;
font-size: 100px;
font-weight: bold;
}
#weather #forecast {
}
footer {
text-align: center;
height: 20%;
background-color: #444;
color: #aaa;
}
.footer-content {
padding-top: 40px;
}
a {
cursor: pointer;
font-weight: bold;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.hidden {
display: none;
} |