3v324v23 commited on
Commit
3d6f980
·
1 Parent(s): 1078b07

tidying up style a bit

Browse files
Files changed (3) hide show
  1. assets/10-theme.css +54 -0
  2. assets/gov-fda-new-white.svg +1 -0
  3. main.py +15 -1
assets/10-theme.css CHANGED
@@ -253,4 +253,58 @@ input:focus-visible {
253
  .site-main {
254
  min-height: 0;
255
  padding-bottom: 1.5rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  }
 
253
  .site-main {
254
  min-height: 0;
255
  padding-bottom: 1.5rem;
256
+ }
257
+
258
+ .fda-logo {
259
+ display: block;
260
+ width: 300px;
261
+ max-width: 100%;
262
+ height: auto;
263
+ }
264
+
265
+ /* Let the header use the full screen width, despite .site-container. */
266
+ .site-container.site-header-inner {
267
+ max-width: none;
268
+ width: 100%;
269
+ margin: 0;
270
+ padding: 14px 16px;
271
+ box-sizing: border-box;
272
+
273
+ display: grid;
274
+ grid-template-columns: 1fr auto 1fr;
275
+ align-items: center;
276
+ gap: 16px;
277
+ }
278
+
279
+ .site-header-inner .site-brand {
280
+ justify-self: start;
281
+ }
282
+
283
+ .fda-logo {
284
+ display: block;
285
+ width: 260px;
286
+ height: auto;
287
+ }
288
+
289
+ .site-tool-title {
290
+ justify-self: center;
291
+ color: #fff;
292
+ font-size: 1.5rem;
293
+ font-weight: 600;
294
+ text-align: center;
295
+ }
296
+
297
+ .site-header-inner .site-nav {
298
+ justify-self: end;
299
+ }
300
+
301
+ @media (max-width: 1100px) {
302
+ .site-container.site-header-inner {
303
+ grid-template-columns: 1fr auto;
304
+ }
305
+
306
+ .site-tool-title {
307
+ grid-column: 1 / -1;
308
+ grid-row: 2;
309
+ }
310
  }
assets/gov-fda-new-white.svg ADDED
main.py CHANGED
@@ -26,7 +26,21 @@ app.layout = html.Div([
26
 
27
  html.Header(
28
  html.Div([
29
- html.A("Extraction condition comparison tool", href="/", className="site-brand"),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  html.Nav([
31
  dcc.Link("Model", href="/"),
32
  dcc.Link("Instructions", href="/instructions"),
 
26
 
27
  html.Header(
28
  html.Div([
29
+ html.A(
30
+ html.Img(
31
+ src="/assets/gov-fda-new-white.svg",
32
+ alt="U.S. Food and Drug Administration",
33
+ className="fda-logo",
34
+ ),
35
+ href="/",
36
+ className="site-brand",
37
+ ),
38
+
39
+ html.Span(
40
+ "Extraction condition justification tool",
41
+ className="site-tool-title",
42
+ ),
43
+
44
  html.Nav([
45
  dcc.Link("Model", href="/"),
46
  dcc.Link("Instructions", href="/instructions"),