-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpill-info.css
188 lines (158 loc) · 3.12 KB
/
pill-info.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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/* Pill Info Page Styles */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.pill-info-container {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 30px;
width: 90%;
max-width: 600px;
}
h2 {
color: #2c5530;
text-align: center;
margin-bottom: 25px;
}
form {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 25px;
}
label {
font-weight: 600;
color: #333;
margin-bottom: 5px;
}
input[type="text"] {
padding: 12px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 16px;
transition: border-color 0.3s ease;
}
input[type="text"]:focus {
border-color: #4caf50;
outline: none;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.btn {
background-color: #4caf50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #45a049;
}
.pill-results {
margin-top: 30px;
padding-top: 20px;
border-top: 2px solid #eee;
}
.pill-results h3 {
color: #2c5530;
margin-bottom: 15px;
}
#pill-info {
background-color: #f9f9f9;
padding: 20px;
border-radius: 6px;
margin-top: 15px;
}
/* Dark mode styles */
body.dark-mode {
background-color: #1a1a1a;
}
body.dark-mode .pill-info-container {
background-color: #2d2d2d;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode h2,
body.dark-mode h3 {
color: #7cb342;
}
body.dark-mode label {
color: #e0e0e0;
}
body.dark-mode input[type="text"] {
background-color: #333333;
border-color: #404040;
color: #f0f0f0;
}
body.dark-mode input[type="text"]:focus {
border-color: #7cb342;
box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.2);
}
body.dark-mode .btn {
background-color: #2c5530;
}
body.dark-mode .btn:hover {
background-color: #3c7340;
}
body.dark-mode .pill-results {
border-top-color: #404040;
}
body.dark-mode #pill-info {
background-color: #333333;
color: #f0f0f0;
}
/* Pill information display styling */
.pill-info-item {
margin-bottom: 15px;
padding: 15px;
border-radius: 6px;
background-color: #ffffff;
border: 1px solid #ddd;
}
body.dark-mode .pill-info-item {
background-color: #333333;
border-color: #404040;
color: #f0f0f0;
}
.pill-info-item h4 {
color: #2c5530;
margin-bottom: 10px;
}
body.dark-mode .pill-info-item h4 {
color: #9ccc65;
}
.pill-info-item p {
margin: 5px 0;
line-height: 1.5;
}
/* Loading state */
.loading {
text-align: center;
color: #666;
font-style: italic;
}
body.dark-mode .loading {
color: #aaa;
}
/* Error message */
.error-message {
color: #d32f2f;
background-color: #ffebee;
padding: 10px;
border-radius: 6px;
margin-top: 10px;
}
body.dark-mode .error-message {
color: #ef5350;
background-color: #391515;
}