Skip to content

Commit e590a4b

Browse files
authored
Merge pull request #298 from CodeForPhilly/284-hide-options-for-patient-summary-in-a-kebab-menu-on-mobile
Added mobile drop down
2 parents 47b2028 + 765198c commit e590a4b

File tree

5 files changed

+589
-511
lines changed

5 files changed

+589
-511
lines changed

frontend/src/App.css

Lines changed: 113 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,115 @@
11
@keyframes logo-spin {
2-
from {
3-
transform: rotate(0deg);
4-
}
5-
to {
6-
transform: rotate(360deg);
7-
}
2+
from {
3+
transform: rotate(0deg);
4+
}
5+
to {
6+
transform: rotate(360deg);
7+
}
88
}
99

1010
@media (prefers-reduced-motion: no-preference) {
11-
a:nth-of-type(2) .logo {
12-
animation: logo-spin infinite 20s linear;
13-
}
11+
a:nth-of-type(2) .logo {
12+
animation: logo-spin infinite 20s linear;
13+
}
1414
}
1515

1616
@media print {
17-
.no-print,
18-
button {
19-
display: none !important;
20-
}
17+
.no-print,
18+
button {
19+
display: none !important;
20+
}
2121
}
2222

2323
@tailwind base;
2424
@tailwind components;
2525
@tailwind utilities;
2626

2727
@layer components {
28-
.sidebar-icon {
29-
@apply;
30-
}
28+
.sidebar-icon {
29+
@apply;
30+
}
3131
}
3232

3333
/*
3434
Note: The styles for this gradient grid background is heavily inspired by the creator of this amazing site (https://dub.sh) – all credits go to them!
3535
*/
3636

3737
.main {
38-
width: 100vw;
39-
min-height: 100vh;
40-
position: fixed;
41-
display: flex;
42-
justify-content: center;
43-
padding: 120px 24px 160px 24px;
44-
pointer-events: none;
38+
width: 100vw;
39+
min-height: 100vh;
40+
position: fixed;
41+
display: flex;
42+
justify-content: center;
43+
padding: 120px 24px 160px 24px;
44+
pointer-events: none;
4545
}
4646

4747
.main:before {
48-
background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%);
49-
position: absolute;
50-
content: "";
51-
z-index: 2;
52-
width: 100%;
53-
height: 100%;
54-
top: 0;
48+
background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%);
49+
position: absolute;
50+
content: "";
51+
z-index: 2;
52+
width: 100%;
53+
height: 100%;
54+
top: 0;
5555
}
5656

5757
.dark .main:before {
58-
background: #000;
59-
position: absolute;
60-
content: "";
61-
z-index: 2;
62-
width: 100%;
63-
height: 100%;
64-
top: 0;
58+
background: #000;
59+
position: absolute;
60+
content: "";
61+
z-index: 2;
62+
width: 100%;
63+
height: 100%;
64+
top: 0;
6565
}
6666

6767
.main:after {
68-
content: "";
69-
background-image: url("/src/assets/grid.svg");
70-
z-index: 1;
71-
position: absolute;
72-
width: 100%;
73-
height: 100%;
74-
top: 0;
75-
opacity: 0.4;
76-
filter: invert(1);
68+
content: "";
69+
background-image: url("/src/assets/grid.svg");
70+
z-index: 1;
71+
position: absolute;
72+
width: 100%;
73+
height: 100%;
74+
top: 0;
75+
opacity: 0.4;
76+
filter: invert(1);
7777
}
7878

7979
.dark .main:after {
80-
opacity: 0.7; /* Just an example: change the opacity in dark mode */
81-
background-image: none;
80+
opacity: 0.7; /* Just an example: change the opacity in dark mode */
81+
background-image: none;
8282
}
8383

8484
.gradient {
85-
height: fit-content;
86-
z-index: 3;
87-
width: 100%;
88-
max-width: 640px;
89-
background-image: radial-gradient(
90-
at 27% 37%,
91-
hsla(215, 98%, 61%, 1) 0px,
92-
transparent 0%
85+
height: fit-content;
86+
z-index: 3;
87+
width: 100%;
88+
max-width: 640px;
89+
background-image: radial-gradient(
90+
at 27% 37%,
91+
hsla(215, 98%, 61%, 1) 0px,
92+
transparent 0%
9393
),
9494
radial-gradient(at 97% 21%, F5F6F9(125, 98%, 72%, 1) 0px, transparent 50%),
9595
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
9696
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
9797
radial-gradient(at 97% 96%, F5F6F9(38, 60%, 74%, 1) 0px, transparent 50%),
9898
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
9999
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%);
100-
position: absolute;
101-
content: "";
102-
width: 100%;
103-
height: 100%;
104-
filter: blur(100px) saturate(150%);
105-
top: 80px;
106-
opacity: 0.15;
100+
position: absolute;
101+
content: "";
102+
width: 100%;
103+
height: 100%;
104+
filter: blur(100px) saturate(150%);
105+
top: 80px;
106+
opacity: 0.15;
107107
}
108108

109109
@media screen and (max-width: 640px) {
110-
.main {
111-
padding: 0;
112-
}
110+
.main {
111+
padding: 0;
112+
}
113113
}
114114

115115
/*
@@ -119,15 +119,15 @@
119119
/* Layout For Whole Site */
120120

121121
.container {
122-
@apply relative z-10 mx-auto flex w-full flex-col items-center;
122+
@apply relative z-10 mx-auto flex w-full flex-col items-center;
123123
}
124124

125125
/*
126126
This is the wording logo in the nav bar
127127
*/
128128

129129
.header_logo {
130-
@apply bg-gradient-to-r from-blue-600 via-blue-700 to-blue-600 bg-clip-text text-transparent;
130+
@apply bg-gradient-to-r from-blue-600 via-blue-700 to-blue-600 bg-clip-text text-transparent;
131131
}
132132

133133
/* Tailwind Styles */
@@ -137,31 +137,23 @@ Font for body
137137
*/
138138

139139
.font_body {
140-
@apply font-satoshi;
141-
}
142-
143-
/*
144-
The border style of the container
145-
*/
146-
147-
.summary_box {
148-
@apply rounded-md border bg-white p-4 px-8 ring-1 hover:ring-slate-300 ;
140+
@apply font-satoshi;
149141
}
150142

151143
/*
152144
Button
153145
*/
154146

155147
.btnBlue {
156-
@apply h-12 rounded-xl border bg-blue-500 px-3 py-1.5 font-satoshi text-white hover:bg-blue-400;
148+
@apply h-12 rounded-xl border bg-blue-500 px-3 py-1.5 font-satoshi text-white hover:bg-blue-400;
157149
}
158150

159151
.btnGray {
160-
@apply h-12 rounded-xl border bg-gray-500 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
152+
@apply h-12 rounded-xl border bg-gray-500 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
161153
}
162154

163155
.btnRed {
164-
@apply h-12 rounded-xl border bg-red-700 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
156+
@apply h-12 rounded-xl border bg-red-700 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
165157
}
166158

167159

@@ -170,108 +162,110 @@ The heading directly under the nav bar.
170162
*/
171163

172164
.head_text {
173-
@apply mt-16 text-center text-5xl font-extrabold leading-[1.15] text-black sm:text-6xl;
165+
@apply mt-16 text-center text-5xl font-extrabold leading-[1.15] text-black sm:text-6xl;
174166
}
175167

176168
.desc {
177-
@apply mt-7 px-2 text-center font-sans text-3xl font-medium text-gray-800 md:p-0 md:px-0 md:text-5xl;
169+
@apply mt-7 px-2 text-center font-sans text-3xl font-medium text-gray-800 md:p-0 md:px-0 md:text-5xl;
178170
}
171+
179172
.desc1 {
180-
@apply mx-auto mt-5 hidden max-w-[75%] text-center font-satoshi text-lg text-gray-400 sm:text-xl md:block;
181-
font-size: 100%;
182-
letter-spacing: 0.03em;
173+
@apply mx-auto mt-5 hidden max-w-[75%] text-center font-satoshi text-lg text-gray-400 sm:text-xl md:block;
174+
font-size: 100%;
175+
letter-spacing: 0.03em;
183176
}
184177

185178
/*
186179
Input field.
187180
*/
188181

189182
.input {
190-
@apply block rounded-md border-0 shadow-sm ring-1 ring-inset bg-white py-3 pl-5 pr-5 font-satoshi text-base transition duration-300 focus:border-0 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500;
183+
@apply block rounded-md border-0 shadow-sm ring-1 ring-inset bg-white py-3 pl-5 pr-5 font-satoshi text-base transition duration-300 focus:border-0 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500;
191184
}
192185

193186
/*
194187
This is for when the input field is loading
195188
*/
196189

197190
.input_loading {
198-
@apply block w-full rounded-md border border-gray-300 bg-gray-300 bg-opacity-50 py-3 pl-5 pr-5 font-satoshi text-base font-medium shadow-lg focus:border-black focus:outline-none focus:ring-0;
191+
@apply block w-full rounded-md border border-gray-300 bg-gray-300 bg-opacity-50 py-3 pl-5 pr-5 font-satoshi text-base font-medium shadow-lg focus:border-black focus:outline-none focus:ring-0;
199192
}
200193

201194
/*
202195
Dropdown field.
203196
*/
204197

205198
.dropdown {
206-
@apply block md:w-64 font-satoshi cursor-pointer rounded-md border-0 p-3 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset sm:text-sm sm:leading-6 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500 ;
199+
@apply block md:w-64 font-satoshi cursor-pointer rounded-md border-0 p-3 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset sm:text-sm sm:leading-6 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500 ;
207200
}
208201

209202
.link_card {
210-
@apply flex cursor-pointer items-center justify-between rounded-md border bg-white p-3 py-2.5 pl-5 ring-1 hover:bg-indigo-100;
203+
@apply flex cursor-pointer items-center justify-between rounded-md border bg-white p-3 py-2.5 pl-5 ring-1 hover:bg-indigo-100;
211204
}
212205

213206
/*
214207
Circle background for logos
215208
*/
216209

217210
.copy_btn {
218-
@apply flex h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] md:mr-10;
211+
@apply flex h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] md:mr-10;
219212
}
220213

221214
/*
222215
Tooltip. Please see Tooltip.tsx under components folder
223216
*/
224217

225218
.tooltip-container {
226-
@apply cursor-pointer;
219+
@apply cursor-pointer;
227220
}
228221

229222
.tooltip {
230-
@apply border;
231-
position: absolute;
232-
/* top: calc(-100% - 50px); */
233-
transform: translateX(-50%);
234-
background-color: #f4f9ff;
235-
color: #111827;
236-
padding: 10px;
237-
border-radius: 4px;
238-
z-index: 1;
239-
min-width: 200px;
240-
max-width: 500px;
223+
@apply border;
224+
position: absolute;
225+
/* top: calc(-100% - 50px); */
226+
transform: translateX(-50%);
227+
background-color: #f4f9ff;
228+
color: #111827;
229+
padding: 10px;
230+
border-radius: 4px;
231+
z-index: 1;
232+
min-width: 200px;
233+
max-width: 500px;
241234
}
242235

243236
.material-symbols-outlined {
244-
font-size: 18px;
237+
font-size: 18px;
245238
}
246239

247240
/*
248241
Error message. Please see ErrorMessages.tsx under components folder
249242
*/
250243
@keyframes ellipsis {
251-
0%, 20% {
252-
content: '';
253-
}
254-
40% {
255-
content: '.';
256-
}
257-
60% {
258-
content: '..';
259-
}
260-
80%, 100% {
261-
content: '...';
262-
}
244+
0%, 20% {
245+
content: '';
246+
}
247+
40% {
248+
content: '.';
249+
}
250+
60% {
251+
content: '..';
252+
}
253+
80%, 100% {
254+
content: '...';
255+
}
263256
}
264257

265258
.thinking {
259+
font-size: 16px;
266260

267-
animation: ellipsis 1.5s infinite;
261+
animation: ellipsis 1.5s infinite;
268262
}
269263

270264
.thinking::after {
271265

272-
animation: ellipsis 2s infinite;
273-
content: '';
274-
font-weight: bold;
266+
animation: ellipsis 2s infinite;
267+
content: '';
268+
font-weight: bold;
275269

276270
}
277271

0 commit comments

Comments
 (0)