-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (125 loc) · 2.38 KB
/
style.css
File metadata and controls
144 lines (125 loc) · 2.38 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
background: linear-gradient(rgb(47, 150, 163), rgb(48, 62, 143));
font-family: sans-serif;
color: white;
}
/* holds current weather */
.container {
width: 550px;
height: 100vh;
margin: 0 auto;
display: flex;
padding: 50px 5px;
flex-direction: column;
align-items: center;
}
/* center the form */
form {
text-align: center;
padding-bottom: 25px;
}
/* temperature + degree symbol */
.degrees {
display: flex;
flex-direction: row;
justify-content: center;
}
/* Div around table */
.bottom {
display: flex;
flex-direction: row;
justify-content: space-between;
/* width: 550px; */
margin: 0 10%;
padding-top: 50px;
min-width: 700px;
}
/* Table formatting */
table {
border-spacing: 5px;
}
table, th, td {
padding: 10px;
justify-content: center;
}
/* Text formatting */
h1 {
font-size: 4rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.4rem;
}
span {
font-size: 2.5rem;
}
p {
font-size: 1.5rem;
}
/* icon size */
img {
width: 125px;
height: 125px;
}
#zip {
padding: 5px;
}
/* Modal Window */
#weather-app {
text-align: center;
font-size: 2rem;
margin: 0;
padding: 0;
}
#modal {
background-color: rgba(0,0,0,0.4);
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 1;
/*This puts our modal in front of the body (which has a default z-index setting of `0`*/
overflow: auto;
/*If overflow is clipped, a scroll-bar should be added to see the rest of the content*/
display: none;
/*Set this to `none` so that the modal does not show initially on page load.*/
}
#modal-textbox {
background-color: white;
height: 350px;
width: 550px;
border-radius: 2px;
margin: 50px auto;
color: gray;
/*This will set the margins for the top and the bottom to 150px (or larger). The right and left will automatically set themselves (and keep the box centered horizontally).*/
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
/*This will give the box some depth.*/
padding: 5%;
line-height: 220%;
}
#open-modal {
text-align: right;
}
#modal-footer {
text-align: right;
}
.modal-buttons {
padding: 10px 18px;
background-color: rgb(68, 109, 151);
border: none;
outline: none;
border-radius: 3px;
color: white;
font-family: 'Arial';
cursor: pointer;
}