-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
131 lines (107 loc) · 2.72 KB
/
Copy pathstyles.css
File metadata and controls
131 lines (107 loc) · 2.72 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
/* Basic styles for the weather widget */
#weatherWidget {
background-color: lightblue;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease-in-out;
}
/* Temperature and weather details */
#temperature {
font-size: 3rem;
font-weight: bold;
}
#humidity, #windSpeed, #weatherDescription {
font-size: 1.2rem;
}
/* Custom styles for the forecast table */
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 12px;
text-align: left;
}
/* Hover effect for table rows */
tbody tr:hover {
background-color: rgba(0, 0, 0, 0.05); /* Slight highlight on hover */
}
th {
background-color: #f4f4f4;
font-weight: bold;
}
tbody tr:nth-child(even) {
background-color: #f9f9f9;
}
/* Chatbot styling */
#chatResponse {
background-color: #f0f0f0;
padding: 10px;
border-radius: 8px;
}
/* Responsive design adjustments */
@media (max-width: 768px) {
#weatherWidget {
padding: 15px;
}
#temperature {
font-size: 2.5rem; /* Smaller font size on mobile */
}
#humidity, #windSpeed, #weatherDescription {
font-size: 1rem; /* Smaller font size on mobile */
}
th, td {
padding: 10px; /* Adjust padding for smaller screens */
}
}
/* Simple loading spinner */
.loader {
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid #ffffff;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* CSS Animation for the weather icon */
.fade-in {
opacity: 0;
animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
/* Custom styles for light and dark themes */
.light-theme {
background-color: #f9fafb; /* Light background */
color: #1f2937; /* Dark text */
}
.light-theme #weather-details {
background-color: #ffffff; /* White background for the widget */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.light-theme #chatResponse {
background-color: #e5e7eb; /* Light gray for chatbot response */
}
.dark-theme {
background-color: #1f2937; /* Dark background */
color: #f9fafb; /* Light text */
}
.dark-theme #weather-details {
background-color: #374151; /* Darker background for the widget */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dark-theme #chatResponse {
background-color: #4b5563; /* Dark gray for chatbot response */
}