-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
112 lines (99 loc) · 2.02 KB
/
styles.css
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
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 0;
background: #f0f4f8;
}
/* Header */
header {
width: 100%;
padding: 1rem;
background-color: #3498db;
color: white;
text-align: center;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
header h1 {
margin: 0;
}
.search-box {
margin-top: 0.5rem;
}
.search-box input {
padding: 0.5rem;
width: 80%;
border: none;
border-radius: 4px;
}
.search-box button {
padding: 0.5rem 1rem;
margin-left: 0.5rem;
background-color: #3077bd;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* Main Content */
main {
width: 100%;
max-width: 600px;
padding: 1rem;
}
/* Today's Weather Section */
.today-weather {
padding: 1rem;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
}
.today-weather h2 {
font-size: 1.5rem;
color: #3498db;
margin-top: 0;
}
.heading {
}
/* Weekly Forecast Section */
.weekly-forecast {
display: flex;
justify-content: space-between;
flex-wrap: wrap; /* Allows wrapping of forecast boxes */
}
/* Centering the Weekly Report heading */
h2 {
text-align: center; /* Center the text */
margin: 20px 0; /* Add some margin above and below */
}
/* Style for each day's forecast box */
.day {
background-color: #f0f0f0; /* Light gray background */
border: 1px solid #ccc; /* Light border */
border-radius: 8px; /* Rounded corners */
padding: 15px; /* Inner spacing */
margin: 10px; /* Outer spacing */
flex: 1 0 calc(30% - 20px); /* Flex items with three in a row */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.forecast-day {
width: 48%;
padding: 1rem;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
font-size: 0.9rem;
}
/* Footer */
footer {
width: 100%;
padding: 1rem;
background-color: #3498db;
color: white;
text-align: center;
margin-top: 2rem;
}