@hippo-digital/hippocampus 1.0.0-rc.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -3
- package/README.md +36 -0
- package/agents/README.md +6 -6
- package/agents/accessibility-tester.md +2 -2
- package/agents/ingestion-curator.md +9 -9
- package/agents/knowledge-builder.md +9 -9
- package/agents/prototype-builder.md +3 -3
- package/agents/screenshot-runner.md +2 -2
- package/agents/workflow-orchestrator.md +16 -16
- package/assets/dist/hippocampus.css +1 -1
- package/assets/hippocampus.scss +994 -133
- package/assets/javascript/blueprint.js +21 -0
- package/assets/javascript/trace.js +54 -0
- package/bin/hippocampus.js +9 -3
- package/docs/agent-roadmap.md +2 -2
- package/docs/custom-agents-usage.md +1 -1
- package/docs/repeatable-research-round-ingestion.md +3 -3
- package/docs/research-knowledge-graph.md +5 -5
- package/index.js +2 -1
- package/lib/breadcrumb.js +80 -0
- package/lib/create-router.js +246 -6
- package/lib/discover-projects.js +5 -0
- package/lib/filter.js +81 -0
- package/lib/flow-map.js +214 -0
- package/lib/lint-knowledge.js +31 -0
- package/lib/load-knowledge.js +335 -34
- package/lib/record-links.js +51 -0
- package/lib/templates.js +174 -0
- package/package.json +1 -1
- package/scripts/doctor.js +10 -0
- package/scripts/install-skills.js +93 -3
- package/scripts/lib/make-blueprint-template.py +107 -0
- package/scripts/smoke-routes.js +19 -0
- package/scripts/validate-skills.js +64 -5
- package/skills/README.md +18 -18
- package/skills/SKILL-FORMAT.md +24 -5
- package/skills/{add-prototype-screen.skill.md → add-prototype-screen/SKILL.md} +2 -0
- package/skills/{add-scenario.skill.md → add-scenario/SKILL.md} +2 -0
- package/skills/{add-user-needs.skill.md → add-user-needs/SKILL.md} +2 -0
- package/skills/{audit-knowledge-source.skill.md → audit-knowledge-source/SKILL.md} +2 -0
- package/skills/{capture-route-review-pack.skill.md → capture-route-review-pack/SKILL.md} +2 -0
- package/skills/{create-journey-from-scenario.skill.md → create-journey-from-scenario/SKILL.md} +2 -0
- package/skills/{deliver-service-slice.skill.md → deliver-service-slice/SKILL.md} +2 -0
- package/skills/examples/README.md +1 -1
- package/skills/examples/non-copilot-research-ingestion.md +1 -1
- package/skills/examples/non-copilot-service-slice.md +1 -1
- package/skills/{generate-service-slice.skill.md → generate-service-slice/SKILL.md} +2 -0
- package/skills/{ingest-project-context.skill.md → ingest-project-context/SKILL.md} +2 -0
- package/skills/{ingest-research-round.skill.md → ingest-research-round/SKILL.md} +2 -0
- package/skills/{ingest-user-personas.skill.md → ingest-user-personas/SKILL.md} +2 -0
- package/skills/{map-research-to-graph.skill.md → map-research-to-graph/SKILL.md} +2 -0
- package/skills/{onboard-team-member.skill.md → onboard-team-member/SKILL.md} +2 -0
- package/skills/{record-accessibility-review.skill.md → record-accessibility-review/SKILL.md} +2 -0
- package/skills/{record-design-decision.skill.md → record-design-decision/SKILL.md} +2 -0
- package/skills/{review-research-import-draft.skill.md → review-research-import-draft/SKILL.md} +2 -0
- package/skills/skills.json +21 -21
- package/skills/skills.schema.json +1 -1
- package/skills/{structure-project-context-draft.skill.md → structure-project-context-draft/SKILL.md} +2 -0
- package/skills/{structure-research-draft.skill.md → structure-research-draft/SKILL.md} +2 -0
- package/skills/{triage-research-corpus.skill.md → triage-research-corpus/SKILL.md} +2 -0
- package/skills/{write-delivery-summary.skill.md → write-delivery-summary/SKILL.md} +2 -0
- package/skills/{write-route-review-summary.skill.md → write-route-review-summary/SKILL.md} +2 -0
- package/templates/service-blueprint.xlsx +0 -0
- package/views/hippocampus/_layout.html +116 -3
- package/views/hippocampus/blueprint-classic.html +0 -1
- package/views/hippocampus/blueprint.html +0 -1
- package/views/hippocampus/components/_blueprint-cell.njk +6 -3
- package/views/hippocampus/components/_blueprint-controls.njk +2 -1
- package/views/hippocampus/components/_breadcrumb.njk +29 -0
- package/views/hippocampus/components/_connections.njk +38 -0
- package/views/hippocampus/components/_filters.njk +56 -0
- package/views/hippocampus/components/_journey-step.njk +11 -7
- package/views/hippocampus/components/_screen-preview.njk +41 -0
- package/views/hippocampus/doc.html +0 -1
- package/views/hippocampus/docs.html +67 -6
- package/views/hippocampus/evidence-impact.html +66 -33
- package/views/hippocampus/graph.html +137 -31
- package/views/hippocampus/handover-empty.html +0 -1
- package/views/hippocampus/handover.html +0 -1
- package/views/hippocampus/index.html +102 -13
- package/views/hippocampus/journey-flow.html +0 -1
- package/views/hippocampus/journey.html +21 -6
- package/views/hippocampus/journeys.html +63 -0
- package/views/hippocampus/project.html +19 -2
- package/views/hippocampus/record.html +33 -0
- package/views/hippocampus/research.html +14 -2
- package/views/hippocampus/route-review.html +0 -1
- package/views/hippocampus/scenarios.html +21 -3
- package/views/hippocampus/screens.html +45 -0
- package/views/hippocampus/trace.html +35 -22
- package/views/hippocampus/user-needs.html +55 -19
- package/views/hippocampus/user.html +131 -79
- package/views/hippocampus/users.html +33 -19
package/assets/hippocampus.scss
CHANGED
|
@@ -12,6 +12,54 @@
|
|
|
12
12
|
background: #1c1c1a;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// The NHS logo is an SVG filled with `currentcolor`, so it takes the colour of
|
|
16
|
+
// the link around it. The theme below turns every link green, which on this
|
|
17
|
+
// near-black header rendered the logo green on black - an NHS logo in the wrong
|
|
18
|
+
// colour is a brand error, not a style preference. Set explicitly here rather
|
|
19
|
+
// than relying on the generic link rule not to reach it.
|
|
20
|
+
.knowledge-admin-theme .nhsuk-header__service-logo,
|
|
21
|
+
.knowledge-admin-theme .nhsuk-header__service-logo:hover,
|
|
22
|
+
.knowledge-admin-theme .nhsuk-header__service-logo:visited {
|
|
23
|
+
color: #ffffff;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.knowledge-admin-theme .nhsuk-header__logo {
|
|
27
|
+
fill: currentcolor;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.knowledge-admin-theme .nhsuk-header__service-name {
|
|
31
|
+
color: #ffffff;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.knowledge-admin-theme .nhsuk-header__service-logo:focus {
|
|
35
|
+
color: #212b32;
|
|
36
|
+
background-color: #ffeb3b;
|
|
37
|
+
box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// The router puts page content in a FLUID container so data tables get the full
|
|
41
|
+
// viewport, while the header ships with the fixed-width one - two different
|
|
42
|
+
// grids, so the logo never lined up with anything below it.
|
|
43
|
+
//
|
|
44
|
+
// Removing the max-width alone is not enough and makes it worse: at 1024px the
|
|
45
|
+
// fixed container also sets `margin-left: auto` to centre itself inside its
|
|
46
|
+
// 960px, and an auto margin with no max-width computes to 0 - so the header
|
|
47
|
+
// jumps from centred to flush against the viewport edge.
|
|
48
|
+
//
|
|
49
|
+
// Match the fluid container's own margins exactly, including its breakpoint.
|
|
50
|
+
.knowledge-admin-theme .nhsuk-header__container {
|
|
51
|
+
max-width: none;
|
|
52
|
+
margin-left: 16px;
|
|
53
|
+
margin-right: 16px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 48.0625em) {
|
|
57
|
+
.knowledge-admin-theme .nhsuk-header__container {
|
|
58
|
+
margin-left: 32px;
|
|
59
|
+
margin-right: 32px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
15
63
|
.knowledge-admin-theme h1,
|
|
16
64
|
.knowledge-admin-theme h2,
|
|
17
65
|
.knowledge-admin-theme h3,
|
|
@@ -47,6 +95,9 @@
|
|
|
47
95
|
box-shadow: none;
|
|
48
96
|
}
|
|
49
97
|
|
|
98
|
+
// Short labels: "3 RECORDS", "GENERATED VIEW". Uppercase monospace is a label
|
|
99
|
+
// treatment and only works on two or three words - a sentence set this way is
|
|
100
|
+
// read letter by letter, which is why .knowledge-note exists below.
|
|
50
101
|
.knowledge-admin-theme .knowledge-card__meta,
|
|
51
102
|
.knowledge-admin-theme .knowledge-muted {
|
|
52
103
|
color: #8c8a80;
|
|
@@ -56,6 +107,15 @@
|
|
|
56
107
|
text-transform: uppercase;
|
|
57
108
|
}
|
|
58
109
|
|
|
110
|
+
// Secondary prose: a line explaining what a group of cards is for, or what a
|
|
111
|
+
// generated view will show you. Quieter than body text, still a sentence.
|
|
112
|
+
.knowledge-admin-theme .knowledge-note {
|
|
113
|
+
color: #626058;
|
|
114
|
+
font-size: 15px;
|
|
115
|
+
line-height: 1.4;
|
|
116
|
+
margin-bottom: 8px;
|
|
117
|
+
}
|
|
118
|
+
|
|
59
119
|
.knowledge-admin-theme .nhsuk-button {
|
|
60
120
|
background: #1c1c1a;
|
|
61
121
|
border-radius: 2px;
|
|
@@ -364,29 +424,6 @@
|
|
|
364
424
|
text-transform: uppercase;
|
|
365
425
|
}
|
|
366
426
|
|
|
367
|
-
.knowledge-trace-controls {
|
|
368
|
-
display: flex;
|
|
369
|
-
flex-wrap: wrap;
|
|
370
|
-
align-items: flex-end;
|
|
371
|
-
gap: 16px 24px;
|
|
372
|
-
margin-bottom: 0;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.knowledge-trace-controls__field {
|
|
376
|
-
display: flex;
|
|
377
|
-
flex-direction: column;
|
|
378
|
-
width: 100%;
|
|
379
|
-
max-width: 320px;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.knowledge-trace-controls__field .nhsuk-label {
|
|
383
|
-
margin-bottom: 4px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.knowledge-trace-controls__submit {
|
|
387
|
-
margin: 0;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
427
|
.knowledge-trace-timeline,
|
|
391
428
|
.knowledge-trace-children {
|
|
392
429
|
list-style: none;
|
|
@@ -399,13 +436,13 @@
|
|
|
399
436
|
}
|
|
400
437
|
|
|
401
438
|
.knowledge-trace-timeline::before {
|
|
402
|
-
background: #
|
|
439
|
+
background: #e3e1d9;
|
|
403
440
|
bottom: 0;
|
|
404
441
|
content: "";
|
|
405
|
-
left:
|
|
442
|
+
left: 14px;
|
|
406
443
|
position: absolute;
|
|
407
444
|
top: 8px;
|
|
408
|
-
width:
|
|
445
|
+
width: 2px;
|
|
409
446
|
}
|
|
410
447
|
|
|
411
448
|
.knowledge-trace-group,
|
|
@@ -425,139 +462,119 @@
|
|
|
425
462
|
margin-bottom: 16px;
|
|
426
463
|
}
|
|
427
464
|
|
|
465
|
+
// Every level draws its own connector, and its items hang off it.
|
|
466
|
+
//
|
|
467
|
+
// Only the second level and deeper had a line before, and the markers sat at
|
|
468
|
+
// the left edge of whatever list they were in rather than on anything - so a
|
|
469
|
+
// nested step showed a dot floating in space while the one line on the page
|
|
470
|
+
// ran down the far left past all of them. Nesting was legible from the indent
|
|
471
|
+
// alone, if you were counting.
|
|
428
472
|
.knowledge-trace-children {
|
|
473
|
+
border-left: 2px solid #e3e1d9;
|
|
429
474
|
display: grid;
|
|
430
|
-
gap:
|
|
475
|
+
gap: 12px;
|
|
476
|
+
margin-top: 12px;
|
|
477
|
+
padding-left: 22px;
|
|
431
478
|
}
|
|
432
479
|
|
|
433
|
-
.knowledge-trace-
|
|
434
|
-
|
|
435
|
-
margin-top: 16px;
|
|
436
|
-
padding-left: 24px;
|
|
480
|
+
.knowledge-trace-group__content > .knowledge-trace-children {
|
|
481
|
+
margin-top: 0;
|
|
437
482
|
}
|
|
438
483
|
|
|
439
484
|
.knowledge-trace-item {
|
|
440
|
-
padding-left:
|
|
485
|
+
padding-left: 0;
|
|
441
486
|
}
|
|
442
487
|
|
|
488
|
+
// Centred on the parent list's border: 22px of padding, half of a 2px line,
|
|
489
|
+
// half of a 11px dot.
|
|
443
490
|
.knowledge-trace-item__marker {
|
|
444
491
|
background: #ffffff;
|
|
445
|
-
border:
|
|
492
|
+
border: 2px solid #00726b;
|
|
446
493
|
border-radius: 50%;
|
|
447
|
-
height:
|
|
448
|
-
left:
|
|
494
|
+
height: 11px;
|
|
495
|
+
left: -28.5px;
|
|
449
496
|
position: absolute;
|
|
450
|
-
top:
|
|
451
|
-
width:
|
|
497
|
+
top: 16px;
|
|
498
|
+
width: 11px;
|
|
452
499
|
}
|
|
453
500
|
|
|
454
|
-
.knowledge-trace-children .knowledge-trace-item__marker {
|
|
455
|
-
border-color: #
|
|
501
|
+
.knowledge-trace-children .knowledge-trace-children .knowledge-trace-item__marker {
|
|
502
|
+
border-color: #adb4b8;
|
|
456
503
|
}
|
|
457
504
|
|
|
505
|
+
// A card, like every other block in the viewer. A top border and nothing else
|
|
506
|
+
// left each step floating against the page, so a nested child read as a
|
|
507
|
+
// sibling of its own parent rather than as something inside it.
|
|
458
508
|
.knowledge-trace-item__content {
|
|
509
|
+
background: #ffffff;
|
|
510
|
+
border: 1px solid #e3e1d9;
|
|
511
|
+
border-radius: 3px;
|
|
459
512
|
max-width: 70ch;
|
|
460
|
-
|
|
461
|
-
padding: 16px 0 8px;
|
|
513
|
+
padding: 12px 16px;
|
|
462
514
|
}
|
|
463
515
|
|
|
464
|
-
.knowledge-trace-item--selected
|
|
465
|
-
|
|
466
|
-
border-left: 4px solid #005eb8;
|
|
467
|
-
border-top: 0;
|
|
468
|
-
margin: 8px 0 32px;
|
|
469
|
-
padding: 16px;
|
|
516
|
+
.knowledge-trace-item--selected {
|
|
517
|
+
padding-left: 48px;
|
|
470
518
|
}
|
|
471
519
|
|
|
472
520
|
.knowledge-trace-item--selected .knowledge-trace-item__marker {
|
|
473
|
-
background: #005eb8;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.knowledge-admin-theme .knowledge-trace-timeline::before {
|
|
477
521
|
background: #00726b;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.knowledge-admin-theme .knowledge-trace-item__marker {
|
|
481
522
|
border-color: #00726b;
|
|
523
|
+
height: 16px;
|
|
524
|
+
left: 7px;
|
|
525
|
+
top: 18px;
|
|
526
|
+
width: 16px;
|
|
482
527
|
}
|
|
483
528
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.knowledge-admin-theme .knowledge-trace-item--selected .knowledge-trace-item__content {
|
|
492
|
-
border-left-color: #00726b;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.knowledge-admin-theme .knowledge-trace-item--selected .knowledge-trace-item__marker {
|
|
496
|
-
background: #00726b;
|
|
529
|
+
.knowledge-trace-item--selected .knowledge-trace-item__content {
|
|
530
|
+
border-color: #00726b;
|
|
531
|
+
border-left-width: 4px;
|
|
532
|
+
margin: 8px 0 32px;
|
|
533
|
+
max-width: none;
|
|
497
534
|
}
|
|
498
535
|
|
|
499
|
-
.knowledge-trace-item__date {
|
|
500
|
-
color: #4c6272;
|
|
501
|
-
font-size: 16px;
|
|
502
|
-
font-weight: 700;
|
|
503
|
-
margin-bottom: 4px;
|
|
504
|
-
}
|
|
505
536
|
|
|
537
|
+
// Every heading in this tree is a link, so an underline separates nothing -
|
|
538
|
+
// same treatment as the cards. 22px was a page-heading size for what is one
|
|
539
|
+
// step in a list.
|
|
506
540
|
.knowledge-trace-item__heading {
|
|
507
|
-
font-size:
|
|
508
|
-
margin: 0 0
|
|
509
|
-
}
|
|
541
|
+
font-size: 18px;
|
|
542
|
+
margin: 0 0 4px;
|
|
510
543
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
padding: 2px 10px;
|
|
514
|
-
margin-bottom: 8px;
|
|
515
|
-
font-size: 14px;
|
|
516
|
-
font-weight: 700;
|
|
517
|
-
color: #fff;
|
|
518
|
-
background: #768692;
|
|
519
|
-
border-radius: 12px;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.knowledge-trace-item__type--user {
|
|
523
|
-
background: #005eb8;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.knowledge-trace-item__type--scenario {
|
|
527
|
-
background: #d5281b;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.knowledge-trace-item__type--need {
|
|
531
|
-
background: #007f3b;
|
|
532
|
-
}
|
|
544
|
+
a {
|
|
545
|
+
text-decoration: none;
|
|
533
546
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
background: #006747;
|
|
547
|
+
&:hover,
|
|
548
|
+
&:focus {
|
|
549
|
+
text-decoration: underline;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
540
552
|
}
|
|
541
553
|
|
|
542
|
-
.knowledge-trace-
|
|
543
|
-
|
|
554
|
+
.knowledge-trace-item--selected .knowledge-trace-item__heading {
|
|
555
|
+
font-size: 20px;
|
|
544
556
|
}
|
|
545
557
|
|
|
546
|
-
.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
558
|
+
// The type, as a label rather than a badge.
|
|
559
|
+
//
|
|
560
|
+
// It was a saturated pill in a different colour per type - blue, purple, red,
|
|
561
|
+
// magenta, amber. Twelve record types is far past the point where colour tells
|
|
562
|
+
// them apart, and it made the timeline the loudest page in a viewer that is
|
|
563
|
+
// otherwise one accent on white. The word already says which type it is.
|
|
564
|
+
.knowledge-trace-item__type {
|
|
565
|
+
color: #706f68;
|
|
566
|
+
font-family: ui-monospace, "SF Mono", Consolas, monospace;
|
|
567
|
+
font-size: 12px;
|
|
568
|
+
letter-spacing: 0.03em;
|
|
569
|
+
margin: 0;
|
|
570
|
+
text-transform: uppercase;
|
|
551
571
|
}
|
|
552
572
|
|
|
573
|
+
// The relationship, above the heading: the verb that got you here.
|
|
553
574
|
.knowledge-trace-item__relationship {
|
|
554
575
|
color: #4c6272;
|
|
555
|
-
font-size:
|
|
556
|
-
margin
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.knowledge-trace-item__relationship strong {
|
|
560
|
-
color: #212b32;
|
|
576
|
+
font-size: 14px;
|
|
577
|
+
margin: 0 0 2px;
|
|
561
578
|
}
|
|
562
579
|
|
|
563
580
|
.knowledge-muted {
|
|
@@ -603,15 +620,32 @@
|
|
|
603
620
|
|
|
604
621
|
.knowledge-matrix th,
|
|
605
622
|
.knowledge-matrix td {
|
|
606
|
-
border: 1px solid #
|
|
623
|
+
border: 1px solid #e3e1d9;
|
|
607
624
|
padding: 12px;
|
|
608
625
|
text-align: left;
|
|
609
626
|
vertical-align: top;
|
|
610
627
|
}
|
|
611
628
|
|
|
629
|
+
// White, like every other surface in the viewer. The grey fill was NHS.UK's
|
|
630
|
+
// table default and the only grey left on the page, so the headers read as a
|
|
631
|
+
// separate panel bolted to a white table rather than as part of it.
|
|
632
|
+
//
|
|
633
|
+
// A header still has to be findable in a grid this size, and it does not need a
|
|
634
|
+
// fill to be: the cell is bold already, and a heavier rule along the edge the
|
|
635
|
+
// header sits on marks the row and the column it governs. That also survives
|
|
636
|
+
// the horizontal scroll, where a fill on a header you have scrolled past tells
|
|
637
|
+
// you nothing.
|
|
612
638
|
.knowledge-matrix thead th,
|
|
613
639
|
.knowledge-matrix tbody th {
|
|
614
|
-
background: #
|
|
640
|
+
background: #ffffff;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.knowledge-matrix thead th {
|
|
644
|
+
border-bottom: 2px solid #adb4b8;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.knowledge-matrix tbody th {
|
|
648
|
+
border-right: 2px solid #adb4b8;
|
|
615
649
|
}
|
|
616
650
|
|
|
617
651
|
.knowledge-matrix__boundary td {
|
|
@@ -626,18 +660,29 @@
|
|
|
626
660
|
color: #00726b;
|
|
627
661
|
}
|
|
628
662
|
|
|
663
|
+
// The same surface as the find bar and the trace controls: white card, one
|
|
664
|
+
// border, one radius. It was a full-bleed white band with a grey rule under it,
|
|
665
|
+
// which is what a page header looks like - so the one control bar in the viewer
|
|
666
|
+
// that is always on screen was also the one that did not look like a control
|
|
667
|
+
// bar.
|
|
668
|
+
//
|
|
669
|
+
// The layout is its own: a segmented button group and a checkbox fieldset do
|
|
670
|
+
// not align like a row of fields, so only the surface is shared. Vertical
|
|
671
|
+
// padding is tighter than the find bar's because this one is sticky and its
|
|
672
|
+
// height is viewport a reader never gets back.
|
|
629
673
|
.knowledge-blueprint-controls {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
674
|
+
align-items: flex-start;
|
|
675
|
+
background: #ffffff;
|
|
676
|
+
border: 1px solid #e3e1d9;
|
|
677
|
+
border-radius: 3px;
|
|
633
678
|
display: flex;
|
|
634
679
|
flex-wrap: wrap;
|
|
635
680
|
gap: 16px 24px;
|
|
636
|
-
align-items: flex-start;
|
|
637
|
-
padding: 12px 0;
|
|
638
681
|
margin-bottom: 24px;
|
|
639
|
-
|
|
640
|
-
|
|
682
|
+
padding: 12px 24px;
|
|
683
|
+
position: sticky;
|
|
684
|
+
top: 0;
|
|
685
|
+
z-index: 2;
|
|
641
686
|
}
|
|
642
687
|
|
|
643
688
|
.knowledge-blueprint-controls__lenses {
|
|
@@ -646,6 +691,16 @@
|
|
|
646
691
|
gap: 8px;
|
|
647
692
|
}
|
|
648
693
|
|
|
694
|
+
// Every other control in the viewer names itself above the control. This group
|
|
695
|
+
// had an aria-label only, so a sighted reader got four unexplained words and
|
|
696
|
+
// the fieldset beside it got a heading.
|
|
697
|
+
.knowledge-blueprint-controls__legend {
|
|
698
|
+
font-size: 14px;
|
|
699
|
+
font-weight: 700;
|
|
700
|
+
margin: 0 0 6px;
|
|
701
|
+
width: 100%;
|
|
702
|
+
}
|
|
703
|
+
|
|
649
704
|
.knowledge-lens-btn {
|
|
650
705
|
padding: 6px 14px;
|
|
651
706
|
font: inherit;
|
|
@@ -666,8 +721,17 @@
|
|
|
666
721
|
border-color: #00726b;
|
|
667
722
|
}
|
|
668
723
|
|
|
724
|
+
// The white label has to be restated here.
|
|
725
|
+
//
|
|
726
|
+
// `.knowledge-admin-theme .knowledge-lens-btn` and
|
|
727
|
+
// `.knowledge-lens-btn[aria-pressed="true"]` are both one class plus one more
|
|
728
|
+
// thing, so they carry the same weight and the later one wins - and the themed
|
|
729
|
+
// rule is later. It repainted the pressed button's text back to the accent
|
|
730
|
+
// colour it had just been given as a background, so the selected lens was
|
|
731
|
+
// teal on teal and its label vanished.
|
|
669
732
|
.knowledge-admin-theme .knowledge-lens-btn[aria-pressed="true"] {
|
|
670
733
|
background: #00726b;
|
|
734
|
+
color: #ffffff;
|
|
671
735
|
}
|
|
672
736
|
|
|
673
737
|
.knowledge-blueprint-controls__lanes {
|
|
@@ -680,9 +744,10 @@
|
|
|
680
744
|
}
|
|
681
745
|
|
|
682
746
|
.knowledge-blueprint-controls__lanes legend {
|
|
683
|
-
width: 100%;
|
|
684
747
|
font-size: 14px;
|
|
685
748
|
font-weight: 700;
|
|
749
|
+
margin-bottom: 6px;
|
|
750
|
+
width: 100%;
|
|
686
751
|
}
|
|
687
752
|
|
|
688
753
|
.knowledge-lane-toggle {
|
|
@@ -698,9 +763,16 @@
|
|
|
698
763
|
gap: 24px;
|
|
699
764
|
}
|
|
700
765
|
|
|
766
|
+
// Clear of the controls bar, which is itself sticky at the top of the viewport
|
|
767
|
+
// and sits above this on z-index. 64px was a guess at its height; it is 137px
|
|
768
|
+
// at desktop width and taller when the lane checkboxes wrap, so the first two
|
|
769
|
+
// step markers scrolled underneath it and stayed there. blueprint.js measures
|
|
770
|
+
// the bar and keeps the custom property up to date; the fallback is the
|
|
771
|
+
// measured desktop height, so the untouched page is only wrong when the bar
|
|
772
|
+
// wraps rather than always.
|
|
701
773
|
.knowledge-blueprint-minimap {
|
|
702
774
|
position: sticky;
|
|
703
|
-
top:
|
|
775
|
+
top: calc(var(--blueprint-controls-height, 137px) + 16px);
|
|
704
776
|
align-self: start;
|
|
705
777
|
}
|
|
706
778
|
|
|
@@ -813,11 +885,6 @@
|
|
|
813
885
|
grid-template-columns: 1fr;
|
|
814
886
|
}
|
|
815
887
|
|
|
816
|
-
.knowledge-trace-controls {
|
|
817
|
-
grid-template-columns: 1fr;
|
|
818
|
-
gap: 0;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
888
|
.knowledge-trace-timeline::before {
|
|
822
889
|
left: 9px;
|
|
823
890
|
}
|
|
@@ -894,3 +961,797 @@
|
|
|
894
961
|
vertical-align: top;
|
|
895
962
|
border-bottom: 1px solid #d8dde0;
|
|
896
963
|
}
|
|
964
|
+
|
|
965
|
+
// The find bar on list pages.
|
|
966
|
+
//
|
|
967
|
+
// Laid out in a row on wide screens because the controls belong together as
|
|
968
|
+
// one action, and stacked below 48em where a row would squeeze the search
|
|
969
|
+
// field to uselessness. The result count sits directly beneath, close enough
|
|
970
|
+
// to read as the outcome of the form rather than a heading for the list.
|
|
971
|
+
//
|
|
972
|
+
// Literal values rather than NHS.UK tokens: this stylesheet is compiled on its
|
|
973
|
+
// own with no frontend import, so a token here is an undefined variable.
|
|
974
|
+
// One control bar, used by every page that has one.
|
|
975
|
+
//
|
|
976
|
+
// The find bar was NHS.UK's pale blue panel while the trace controls were a
|
|
977
|
+
// white card, so two forms doing the same job on adjacent pages looked like
|
|
978
|
+
// two different features. This is the card: the same white surface, border and
|
|
979
|
+
// radius as every other block in the viewer, which is also what stops a search
|
|
980
|
+
// bar reading as a notice.
|
|
981
|
+
.knowledge-find {
|
|
982
|
+
align-items: flex-end;
|
|
983
|
+
background: #ffffff;
|
|
984
|
+
border: 1px solid #e3e1d9;
|
|
985
|
+
border-radius: 3px;
|
|
986
|
+
display: flex;
|
|
987
|
+
flex-wrap: wrap;
|
|
988
|
+
gap: 0 24px;
|
|
989
|
+
margin-bottom: 8px;
|
|
990
|
+
padding: 24px 24px 8px;
|
|
991
|
+
|
|
992
|
+
.nhsuk-form-group {
|
|
993
|
+
flex: 1 1 14rem;
|
|
994
|
+
margin-bottom: 16px;
|
|
995
|
+
// Without this a flex item refuses to shrink below its content, and the
|
|
996
|
+
// entity select on /trace - whose options are whole need statements - took
|
|
997
|
+
// a basis wide enough to push every other field onto its own row.
|
|
998
|
+
min-width: 0;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
// The search field earns more room than the selects beside it.
|
|
1002
|
+
.nhsuk-form-group:first-child {
|
|
1003
|
+
flex: 2 1 20rem;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.nhsuk-form-group .nhsuk-label {
|
|
1007
|
+
margin-bottom: 4px;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// Fill the group rather than shrink-wrapping the longest option, or two
|
|
1011
|
+
// selects side by side are different widths for no reason a reader can see.
|
|
1012
|
+
.nhsuk-select,
|
|
1013
|
+
.nhsuk-input {
|
|
1014
|
+
max-width: 100%;
|
|
1015
|
+
width: 100%;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.nhsuk-button {
|
|
1019
|
+
flex: 0 0 auto;
|
|
1020
|
+
margin-bottom: 16px;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// Two selects and a button: no field here is a search box, so none of them
|
|
1025
|
+
// needs a search box's width.
|
|
1026
|
+
.knowledge-find--compact .nhsuk-form-group,
|
|
1027
|
+
.knowledge-find--compact .nhsuk-form-group:first-child {
|
|
1028
|
+
flex: 1 1 16rem;
|
|
1029
|
+
max-width: 26rem;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.knowledge-find__count {
|
|
1033
|
+
margin-bottom: 24px;
|
|
1034
|
+
color: #4c6272;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
@media (max-width: 48em) {
|
|
1038
|
+
.knowledge-find {
|
|
1039
|
+
display: block;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// Section navigation, on every page.
|
|
1044
|
+
//
|
|
1045
|
+
// A horizontal bar under the service header. It scrolls sideways rather than
|
|
1046
|
+
// wrapping on narrow screens: ten sections wrapping to three rows pushes the
|
|
1047
|
+
// page content below the fold on a laptop, and a nav that hides the content is
|
|
1048
|
+
// not navigation.
|
|
1049
|
+
.knowledge-nav {
|
|
1050
|
+
background-color: #ffffff;
|
|
1051
|
+
border-bottom: 1px solid #d8dde0;
|
|
1052
|
+
margin-bottom: 24px;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.knowledge-nav__list {
|
|
1056
|
+
display: flex;
|
|
1057
|
+
gap: 4px;
|
|
1058
|
+
margin: 0;
|
|
1059
|
+
padding: 0;
|
|
1060
|
+
list-style: none;
|
|
1061
|
+
overflow-x: auto;
|
|
1062
|
+
-webkit-overflow-scrolling: touch;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.knowledge-nav__item {
|
|
1066
|
+
margin: 0;
|
|
1067
|
+
flex: 0 0 auto;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.knowledge-nav__link {
|
|
1071
|
+
display: block;
|
|
1072
|
+
// Journeys made it eleven items, which at 1280px pushed Docs off the end.
|
|
1073
|
+
// The bar scrolls, so nothing was unreachable - but a section you have to
|
|
1074
|
+
// discover by scrolling a nav bar is barely in the nav bar.
|
|
1075
|
+
padding: 12px 12px;
|
|
1076
|
+
text-decoration: none;
|
|
1077
|
+
color: #4c6272;
|
|
1078
|
+
font-weight: 600;
|
|
1079
|
+
white-space: nowrap;
|
|
1080
|
+
border-bottom: 4px solid transparent;
|
|
1081
|
+
|
|
1082
|
+
&:hover {
|
|
1083
|
+
color: #00726b;
|
|
1084
|
+
background-color: #f0f4f5;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
&:focus {
|
|
1088
|
+
outline: 3px solid transparent;
|
|
1089
|
+
color: #212b32;
|
|
1090
|
+
background-color: #ffeb3b;
|
|
1091
|
+
box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
|
|
1092
|
+
text-decoration: none;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// The current section. Marked by weight and an underline as well as colour,
|
|
1097
|
+
// so it does not rely on colour alone.
|
|
1098
|
+
.knowledge-nav__link--current {
|
|
1099
|
+
color: #00726b;
|
|
1100
|
+
border-bottom-color: #00726b;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
// A round's status sits between its title and its summary, so the state is
|
|
1104
|
+
// read before the prose rather than inferred from it.
|
|
1105
|
+
.knowledge-round-status {
|
|
1106
|
+
display: flex;
|
|
1107
|
+
flex-wrap: wrap;
|
|
1108
|
+
align-items: baseline;
|
|
1109
|
+
gap: 12px;
|
|
1110
|
+
margin-bottom: 8px;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// "Where things stand" - the dashboard on the landing page.
|
|
1114
|
+
//
|
|
1115
|
+
// A responsive grid of cards rather than a table: these are independent
|
|
1116
|
+
// figures somebody scans for the one that concerns them, not a sequence.
|
|
1117
|
+
// auto-fit with a minimum keeps them honest at any width without breakpoints.
|
|
1118
|
+
//
|
|
1119
|
+
// The left border carries the state. Colour alone never distinguishes them -
|
|
1120
|
+
// each card names what it counts and what it means, so the border is emphasis,
|
|
1121
|
+
// not information.
|
|
1122
|
+
.knowledge-status {
|
|
1123
|
+
margin-bottom: 32px;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.knowledge-status__grid {
|
|
1127
|
+
display: grid;
|
|
1128
|
+
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
|
|
1129
|
+
gap: 16px;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.knowledge-stat {
|
|
1133
|
+
display: flex;
|
|
1134
|
+
flex-direction: column;
|
|
1135
|
+
gap: 4px;
|
|
1136
|
+
padding: 16px 20px;
|
|
1137
|
+
background-color: #ffffff;
|
|
1138
|
+
border: 1px solid #d8dde0;
|
|
1139
|
+
border-left: 4px solid #768692;
|
|
1140
|
+
border-radius: 4px;
|
|
1141
|
+
text-decoration: none;
|
|
1142
|
+
|
|
1143
|
+
&:hover {
|
|
1144
|
+
border-color: #00726b;
|
|
1145
|
+
border-left-color: #00726b;
|
|
1146
|
+
background-color: #f0f4f5;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
&:focus {
|
|
1150
|
+
outline: 3px solid transparent;
|
|
1151
|
+
background-color: #ffeb3b;
|
|
1152
|
+
box-shadow: 0 0 0 4px #212b32;
|
|
1153
|
+
text-decoration: none;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.knowledge-stat--waiting {
|
|
1158
|
+
border-left-color: #ed8b00;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.knowledge-stat--done {
|
|
1162
|
+
border-left-color: #007f3b;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.knowledge-stat--neutral {
|
|
1166
|
+
border-left-color: #005eb8;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
.knowledge-stat__value {
|
|
1170
|
+
font-size: 2rem;
|
|
1171
|
+
line-height: 1.1;
|
|
1172
|
+
font-weight: 700;
|
|
1173
|
+
color: #212b32;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.knowledge-stat__label {
|
|
1177
|
+
font-weight: 600;
|
|
1178
|
+
color: #00726b;
|
|
1179
|
+
text-decoration: underline;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.knowledge-stat__detail {
|
|
1183
|
+
font-size: 0.875rem;
|
|
1184
|
+
color: #4c6272;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
// "Knowledge base" beside the section links.
|
|
1189
|
+
//
|
|
1190
|
+
// It sits on the same line as the navigation and stays put while the links
|
|
1191
|
+
// scroll sideways on narrow screens, because the one thing that must never
|
|
1192
|
+
// scroll out of reach is what tells you where you are.
|
|
1193
|
+
.knowledge-nav__inner {
|
|
1194
|
+
display: flex;
|
|
1195
|
+
align-items: stretch;
|
|
1196
|
+
gap: 16px;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.knowledge-nav__wordmark {
|
|
1200
|
+
display: flex;
|
|
1201
|
+
align-items: center;
|
|
1202
|
+
flex: 0 0 auto;
|
|
1203
|
+
padding-right: 24px;
|
|
1204
|
+
border-right: 1px solid #d8dde0;
|
|
1205
|
+
color: #212b32;
|
|
1206
|
+
font-weight: 700;
|
|
1207
|
+
text-decoration: none;
|
|
1208
|
+
white-space: nowrap;
|
|
1209
|
+
|
|
1210
|
+
&:hover {
|
|
1211
|
+
color: #00726b;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
&:focus {
|
|
1215
|
+
outline: 3px solid transparent;
|
|
1216
|
+
color: #212b32;
|
|
1217
|
+
background-color: #ffeb3b;
|
|
1218
|
+
box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
@media (max-width: 40em) {
|
|
1223
|
+
.knowledge-nav__wordmark {
|
|
1224
|
+
display: none;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// The breadcrumb, in place of the per-page back links.
|
|
1229
|
+
//
|
|
1230
|
+
// The back link carried NHS.UK's own generous margin above and almost none
|
|
1231
|
+
// below, so it floated between the header and the h1 belonging to neither.
|
|
1232
|
+
// A breadcrumb belongs to the page it labels: tight to the heading below,
|
|
1233
|
+
// clear of the navigation above.
|
|
1234
|
+
.knowledge-breadcrumb {
|
|
1235
|
+
// The trail reads as part of the navigation above it rather than as a band
|
|
1236
|
+
// of its own, so it sits close under the bar. The gap BELOW comes from the
|
|
1237
|
+
// main wrapper's padding, trimmed just below, rather than from a margin
|
|
1238
|
+
// here - two stacked spaces is how the old back link ended up marooned.
|
|
1239
|
+
margin-top: 12px;
|
|
1240
|
+
margin-bottom: 0;
|
|
1241
|
+
padding: 0;
|
|
1242
|
+
background: none;
|
|
1243
|
+
|
|
1244
|
+
.nhsuk-breadcrumb__list {
|
|
1245
|
+
margin-bottom: 0;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
// The page you are on: present, but not competing with the links.
|
|
1249
|
+
[aria-current="page"] {
|
|
1250
|
+
color: #4c6272;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// NHS.UK gives the main wrapper 24px (48px from tablet) of top padding, sized
|
|
1255
|
+
// for a page that starts cold. A trail directly above already separates the
|
|
1256
|
+
// navigation from the page, so that padding becomes a hole - cut to a gap
|
|
1257
|
+
// just wide enough to keep the h1 from touching the crumbs.
|
|
1258
|
+
// `:not(--quiet)` matters. A visually hidden breadcrumb is positioned out of
|
|
1259
|
+
// the flow but is still the adjacent sibling in the DOM, so without this the
|
|
1260
|
+
// overview would keep the trimmed padding while having no visible trail to
|
|
1261
|
+
// account for it - and its h1 would sit hard against the navigation bar.
|
|
1262
|
+
.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet) + .nhsuk-main-wrapper {
|
|
1263
|
+
padding-top: 12px;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
@media (min-width: 40.0625em) {
|
|
1267
|
+
.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet) + .nhsuk-main-wrapper {
|
|
1268
|
+
padding-top: 16px;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
// Integrity, in the footer, on every page.
|
|
1273
|
+
//
|
|
1274
|
+
// Deliberately quiet: this is a reassurance a reader checks when they have a
|
|
1275
|
+
// reason to doubt the data, not a status anyone needs to read on the way past.
|
|
1276
|
+
// The tick carries the meaning, so it is not the only thing that does - the
|
|
1277
|
+
// words say what was checked.
|
|
1278
|
+
.knowledge-integrity {
|
|
1279
|
+
align-items: center;
|
|
1280
|
+
color: #d8dde0;
|
|
1281
|
+
display: flex;
|
|
1282
|
+
gap: 8px;
|
|
1283
|
+
margin-bottom: 0;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.knowledge-integrity__icon {
|
|
1287
|
+
// Lighter than the #007f3b used on white: NHS green on near-black is a dark
|
|
1288
|
+
// mark on a dark field. The tick is the one thing here read at a glance.
|
|
1289
|
+
fill: #4caf7d;
|
|
1290
|
+
flex-shrink: 0;
|
|
1291
|
+
height: 20px;
|
|
1292
|
+
width: 20px;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// #d5281b lightened until it holds up on the near-black footer. The words say
|
|
1296
|
+
// "validation failed" either way - the colour is emphasis, not the message.
|
|
1297
|
+
.knowledge-integrity--failed {
|
|
1298
|
+
color: #ff8f85;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
// The footer, in the theme rather than NHS.UK's citizen-facing one.
|
|
1302
|
+
//
|
|
1303
|
+
// The default is a pale grey band with a blue rule, which on these pages reads
|
|
1304
|
+
// as a piece of a different site pasted to the bottom. Black with a green rule
|
|
1305
|
+
// closes the page against the black header that opens it.
|
|
1306
|
+
.knowledge-admin-theme .nhsuk-footer {
|
|
1307
|
+
background-color: #1c1c1a;
|
|
1308
|
+
border-top: 4px solid #007f3b;
|
|
1309
|
+
color: #ffffff;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
// Left-aligned with everything above it. The footer ships with the fixed-width
|
|
1313
|
+
// container while the router puts page content in the fluid one, so without
|
|
1314
|
+
// this the links sit centred under a header and a nav bar that do not.
|
|
1315
|
+
.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container {
|
|
1316
|
+
max-width: none;
|
|
1317
|
+
margin-left: 16px;
|
|
1318
|
+
margin-right: 16px;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
@media (min-width: 48.0625em) {
|
|
1322
|
+
.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container {
|
|
1323
|
+
margin-left: 32px;
|
|
1324
|
+
margin-right: 32px;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
// NHS.UK's footer links are dark blue, which on black is unreadable. White and
|
|
1329
|
+
// underlined rather than the theme's green: on this background the underline
|
|
1330
|
+
// is doing the work of marking them as links, so the colour is free to be the
|
|
1331
|
+
// one with the most contrast.
|
|
1332
|
+
.knowledge-admin-theme .nhsuk-footer__list-item-link,
|
|
1333
|
+
.knowledge-admin-theme .nhsuk-footer__list-item-link:visited,
|
|
1334
|
+
.knowledge-admin-theme .nhsuk-footer__list-item-link:hover {
|
|
1335
|
+
color: #ffffff;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.knowledge-admin-theme .nhsuk-footer__list-item-link:focus {
|
|
1339
|
+
color: #212b32;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.knowledge-admin-theme .nhsuk-footer__list {
|
|
1343
|
+
margin-bottom: 16px;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
// The views generated from one journey.
|
|
1347
|
+
//
|
|
1348
|
+
// A list rather than a row of buttons: a button offers an action, and these are
|
|
1349
|
+
// four ways of looking at the same steps. The detail line is what makes them
|
|
1350
|
+
// choosable - "Blueprint" and "Blueprint matrix" are not distinguishable by
|
|
1351
|
+
// name alone, and picking the wrong one costs a page load and a scroll.
|
|
1352
|
+
.knowledge-view-list {
|
|
1353
|
+
list-style: none;
|
|
1354
|
+
margin: 0 0 24px;
|
|
1355
|
+
padding: 0;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
// The heading above the list needs air, or it reads as part of the meta line
|
|
1359
|
+
// that precedes it rather than as the start of something new.
|
|
1360
|
+
.knowledge-view-list-heading {
|
|
1361
|
+
margin-top: 24px;
|
|
1362
|
+
margin-bottom: 4px;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.knowledge-view-list li {
|
|
1366
|
+
border-top: 1px solid #e3e1d9;
|
|
1367
|
+
padding: 8px 0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.knowledge-view-list li:last-child {
|
|
1371
|
+
border-bottom: 1px solid #e3e1d9;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.knowledge-view-list .knowledge-note {
|
|
1375
|
+
display: block;
|
|
1376
|
+
margin: 2px 0 0;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
// A grid of small cards, for a list you are choosing FROM rather than reading
|
|
1380
|
+
// through. The shared card carries a 70ch measure and a bottom margin, both of
|
|
1381
|
+
// which fight a grid - the measure because the column is already narrower than
|
|
1382
|
+
// that, the margin because the gap has it covered.
|
|
1383
|
+
// Two dials rather than two whole grid declarations. As separate
|
|
1384
|
+
// `grid-template-columns` rules the modifiers overwrote each other, so asking
|
|
1385
|
+
// for wide columns AND auto-fill got whichever happened to be later in the
|
|
1386
|
+
// file - silently, and only visible as the wrong number of columns.
|
|
1387
|
+
.knowledge-card-grid {
|
|
1388
|
+
--card-min: 260px;
|
|
1389
|
+
--card-fit: auto-fit;
|
|
1390
|
+
|
|
1391
|
+
display: grid;
|
|
1392
|
+
gap: 16px;
|
|
1393
|
+
grid-template-columns: repeat(var(--card-fit), minmax(var(--card-min), 1fr));
|
|
1394
|
+
margin-bottom: 32px;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.knowledge-card-grid .knowledge-card {
|
|
1398
|
+
margin-bottom: 0;
|
|
1399
|
+
max-width: none;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.knowledge-card--compact {
|
|
1403
|
+
display: flex;
|
|
1404
|
+
flex-direction: column;
|
|
1405
|
+
padding: 16px;
|
|
1406
|
+
|
|
1407
|
+
// The count line sits on the floor of the card, so a row of cards with
|
|
1408
|
+
// descriptions of different lengths still lines its numbers up.
|
|
1409
|
+
.knowledge-card__meta:last-child {
|
|
1410
|
+
margin-top: auto;
|
|
1411
|
+
padding-top: 8px;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
// Records linked from a card you are scanning rather than reading: the
|
|
1416
|
+
// evidence under a need, the needs under a scenario. Small and tight, because
|
|
1417
|
+
// the point is WHICH records are connected - reading one is what its own page
|
|
1418
|
+
// is for, one click away.
|
|
1419
|
+
.knowledge-linked-list {
|
|
1420
|
+
font-size: 0.875rem;
|
|
1421
|
+
margin: 0;
|
|
1422
|
+
|
|
1423
|
+
li {
|
|
1424
|
+
margin-bottom: 6px;
|
|
1425
|
+
padding: 0;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
li:last-child {
|
|
1429
|
+
margin-bottom: 0;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
// Every item in this list is a link and the statements run to two or three
|
|
1433
|
+
// lines each, so underlining them all produces a block of stripes while
|
|
1434
|
+
// distinguishing nothing - the underline only tells you something when some
|
|
1435
|
+
// of the text around it is not a link. It returns on hover and focus.
|
|
1436
|
+
a {
|
|
1437
|
+
text-decoration: none;
|
|
1438
|
+
|
|
1439
|
+
&:hover,
|
|
1440
|
+
&:focus {
|
|
1441
|
+
text-decoration: underline;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
// A record's own words on a card: a need statement, which is a whole sentence
|
|
1447
|
+
// rather than a title. Body size, normal weight - it is the card's subject, so
|
|
1448
|
+
// it is a heading in the markup, but nothing here needs shouting.
|
|
1449
|
+
// Scoped to the theme class so it outweighs the theme's own heading rule,
|
|
1450
|
+
// which sets every h1-h4 to 600. A record's own words are not a heading
|
|
1451
|
+
// voice, whichever tag happens to carry them.
|
|
1452
|
+
.knowledge-admin-theme .knowledge-card__statement {
|
|
1453
|
+
font-size: 1rem;
|
|
1454
|
+
font-weight: 400;
|
|
1455
|
+
line-height: 1.4;
|
|
1456
|
+
margin: 0 0 12px;
|
|
1457
|
+
|
|
1458
|
+
// No underline at rest, following NHS.UK's own card: a whole sentence
|
|
1459
|
+
// underlined is a block of stripes, and inside a card the link is the card's
|
|
1460
|
+
// subject rather than a link buried in prose, so its position identifies it.
|
|
1461
|
+
// It comes back on hover and focus, where it confirms what you are about to
|
|
1462
|
+
// click.
|
|
1463
|
+
a {
|
|
1464
|
+
text-decoration: none;
|
|
1465
|
+
|
|
1466
|
+
&:hover,
|
|
1467
|
+
&:focus {
|
|
1468
|
+
text-decoration: underline;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
// Wider columns, for cards carrying prose rather than a name: a scenario, or a
|
|
1474
|
+
// need written as a whole user story. Both still collapse to one column on a
|
|
1475
|
+
// narrow screen.
|
|
1476
|
+
.knowledge-card-grid--wide {
|
|
1477
|
+
--card-min: 380px;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
// The tag row above a card's heading. Without this the tag is a loose inline
|
|
1481
|
+
// element with a paragraph's bottom margin, sitting adrift of the title it
|
|
1482
|
+
// belongs to.
|
|
1483
|
+
.knowledge-card__tags {
|
|
1484
|
+
margin-bottom: 8px;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
// A disclosure inside a card: supplementary depth that must not set the card's
|
|
1488
|
+
// height. NHS.UK gives details a generous bottom margin meant for a page.
|
|
1489
|
+
.knowledge-card__details {
|
|
1490
|
+
margin-bottom: 12px;
|
|
1491
|
+
|
|
1492
|
+
.nhsuk-details__text {
|
|
1493
|
+
font-size: 0.875rem;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
// Connections, on every detail page. Each item is a link and a need statement
|
|
1498
|
+
// runs to three lines, so underlining all of them makes a block of stripes
|
|
1499
|
+
// that distinguishes nothing - there is no non-link text here for an underline
|
|
1500
|
+
// to mark them out from. It returns on hover and focus.
|
|
1501
|
+
.knowledge-connection-list {
|
|
1502
|
+
a {
|
|
1503
|
+
text-decoration: none;
|
|
1504
|
+
|
|
1505
|
+
&:hover,
|
|
1506
|
+
&:focus {
|
|
1507
|
+
text-decoration: underline;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
li {
|
|
1512
|
+
margin-bottom: 8px;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
// The flow map.
|
|
1517
|
+
//
|
|
1518
|
+
// One hue throughout, deliberately. Twelve record types is well past the point
|
|
1519
|
+
// where categorical colour separates anything - a twelfth hue is not
|
|
1520
|
+
// distinguishable from an existing one for a colourblind reader, and it would
|
|
1521
|
+
// be spending the only free channel on identity that the labels already carry.
|
|
1522
|
+
// Position says which type; thickness says how many; colour says nothing.
|
|
1523
|
+
.knowledge-flowmap {
|
|
1524
|
+
margin: 0 0 32px;
|
|
1525
|
+
overflow-x: auto;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.knowledge-flowmap__svg {
|
|
1529
|
+
display: block;
|
|
1530
|
+
min-width: 860px;
|
|
1531
|
+
width: 100%;
|
|
1532
|
+
height: auto;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
.knowledge-flowmap__flow {
|
|
1536
|
+
fill: none;
|
|
1537
|
+
stroke: #00726b;
|
|
1538
|
+
stroke-opacity: 0.22;
|
|
1539
|
+
stroke-linecap: round;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
// A flow inside one column bows out to the side, so it reads as a detour
|
|
1543
|
+
// rather than as part of the left-to-right spine.
|
|
1544
|
+
.knowledge-flowmap__flow--aside {
|
|
1545
|
+
stroke-dasharray: 3 5;
|
|
1546
|
+
stroke-opacity: 0.4;
|
|
1547
|
+
stroke-width: 2 !important;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
.knowledge-flowmap__flow:hover {
|
|
1551
|
+
stroke-opacity: 0.55;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
.knowledge-flowmap__box {
|
|
1555
|
+
fill: #ffffff;
|
|
1556
|
+
stroke: #adb4b8;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.knowledge-flowmap__label {
|
|
1560
|
+
fill: #1c1c1a;
|
|
1561
|
+
font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
1562
|
+
font-size: 14px;
|
|
1563
|
+
font-weight: 600;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.knowledge-flowmap__count {
|
|
1567
|
+
fill: #4c6272;
|
|
1568
|
+
font-family: ui-monospace, "SF Mono", Consolas, monospace;
|
|
1569
|
+
font-size: 12px;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
// The same connections as text. A thickness is a comparison and a number is a
|
|
1573
|
+
// fact; a reader is owed both, and this is also the version that works in a
|
|
1574
|
+
// screen reader, in print and at any zoom.
|
|
1575
|
+
.knowledge-flowlist {
|
|
1576
|
+
list-style: none;
|
|
1577
|
+
margin: 0;
|
|
1578
|
+
padding: 0;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.knowledge-flowlist__row {
|
|
1582
|
+
align-items: center;
|
|
1583
|
+
border-top: 1px solid #e3e1d9;
|
|
1584
|
+
display: grid;
|
|
1585
|
+
gap: 16px;
|
|
1586
|
+
grid-template-columns: minmax(220px, 20rem) 1fr 3rem;
|
|
1587
|
+
padding: 6px 0;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.knowledge-flowlist__row:last-child {
|
|
1591
|
+
border-bottom: 1px solid #e3e1d9;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.knowledge-flowlist__phrase {
|
|
1595
|
+
color: #706f68;
|
|
1596
|
+
font-style: italic;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.knowledge-flowlist__bar {
|
|
1600
|
+
background: #f0efe9;
|
|
1601
|
+
display: block;
|
|
1602
|
+
height: 10px;
|
|
1603
|
+
|
|
1604
|
+
// 4px rounded ends on the data end only, so the bar reads as growing from
|
|
1605
|
+
// the baseline rather than floating.
|
|
1606
|
+
span {
|
|
1607
|
+
background: #00726b;
|
|
1608
|
+
border-radius: 0 4px 4px 0;
|
|
1609
|
+
display: block;
|
|
1610
|
+
height: 100%;
|
|
1611
|
+
min-width: 2px;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.knowledge-flowlist__count {
|
|
1616
|
+
font-family: ui-monospace, "SF Mono", Consolas, monospace;
|
|
1617
|
+
font-size: 14px;
|
|
1618
|
+
text-align: right;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
@media (max-width: 40em) {
|
|
1622
|
+
.knowledge-flowlist__row {
|
|
1623
|
+
grid-template-columns: 1fr 3rem;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.knowledge-flowlist__bar {
|
|
1627
|
+
display: none;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
// The heading above each group of unconnected records. It sits outside the
|
|
1632
|
+
// cards rather than inside a box of its own, so what you see first is the
|
|
1633
|
+
// kind, and then the records - which are the point of the section.
|
|
1634
|
+
.knowledge-orphan-heading {
|
|
1635
|
+
margin-bottom: 8px;
|
|
1636
|
+
|
|
1637
|
+
& + .knowledge-card-grid {
|
|
1638
|
+
margin-bottom: 24px;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
// When the statement is all the card holds, its bottom margin is a gap under
|
|
1643
|
+
// nothing.
|
|
1644
|
+
.knowledge-admin-theme .knowledge-card__statement--only {
|
|
1645
|
+
margin-bottom: 0;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
// auto-FILL rather than auto-fit, for a grid that might hold one card. With
|
|
1649
|
+
// auto-fit the empty tracks collapse and a lone card stretches the full width,
|
|
1650
|
+
// which reads as something important rather than as the only one of its kind -
|
|
1651
|
+
// and on a filtered list, as a result that is somehow bigger than the others.
|
|
1652
|
+
.knowledge-card-grid--fill {
|
|
1653
|
+
--card-fit: auto-fill;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
// A live preview of a prototype screen.
|
|
1657
|
+
//
|
|
1658
|
+
// The iframe renders the page at a real browser width and is then scaled down,
|
|
1659
|
+
// rather than being squeezed into the box: a responsive page rendered 320px
|
|
1660
|
+
// wide shows its mobile layout, which is not what the record is about. It is
|
|
1661
|
+
// drawn at --preview-width and scaled to fit, so what you see is the desktop
|
|
1662
|
+
// page, small.
|
|
1663
|
+
.knowledge-screen-preview {
|
|
1664
|
+
--preview-width: 1280px;
|
|
1665
|
+
--preview-height: 820px;
|
|
1666
|
+
--preview-scale: 0.28;
|
|
1667
|
+
|
|
1668
|
+
margin: 0 0 12px;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
.knowledge-screen-preview__frame {
|
|
1672
|
+
background: #ffffff;
|
|
1673
|
+
border: 1px solid #e3e1d9;
|
|
1674
|
+
border-radius: 3px;
|
|
1675
|
+
height: calc(var(--preview-height) * var(--preview-scale));
|
|
1676
|
+
overflow: hidden;
|
|
1677
|
+
position: relative;
|
|
1678
|
+
// Sized to the scaled page, not to the column. At `width: 100%` the frame
|
|
1679
|
+
// was wider than the thing inside it, so every thumbnail had a strip of
|
|
1680
|
+
// white down its right-hand side that looked like part of the screen.
|
|
1681
|
+
width: calc(var(--preview-width) * var(--preview-scale));
|
|
1682
|
+
max-width: 100%;
|
|
1683
|
+
|
|
1684
|
+
iframe {
|
|
1685
|
+
border: 0;
|
|
1686
|
+
height: var(--preview-height);
|
|
1687
|
+
left: 0;
|
|
1688
|
+
pointer-events: none;
|
|
1689
|
+
position: absolute;
|
|
1690
|
+
top: 0;
|
|
1691
|
+
transform: scale(var(--preview-scale));
|
|
1692
|
+
transform-origin: 0 0;
|
|
1693
|
+
width: var(--preview-width);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
.knowledge-screen-preview figcaption {
|
|
1698
|
+
align-items: baseline;
|
|
1699
|
+
display: flex;
|
|
1700
|
+
flex-wrap: wrap;
|
|
1701
|
+
gap: 4px 12px;
|
|
1702
|
+
margin-top: 6px;
|
|
1703
|
+
|
|
1704
|
+
code {
|
|
1705
|
+
color: #706f68;
|
|
1706
|
+
font-size: 12px;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
// On a record's own page there is room to see it properly.
|
|
1711
|
+
.knowledge-screen-preview--detail {
|
|
1712
|
+
--preview-scale: 0.5;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
// In a blueprint lane or beside a journey step, where it is one of several
|
|
1716
|
+
// things competing for the row.
|
|
1717
|
+
.knowledge-screen-preview--inline {
|
|
1718
|
+
--preview-scale: 0.18;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.knowledge-screen-preview--absent {
|
|
1722
|
+
background: #f6f5f2;
|
|
1723
|
+
border: 1px dashed #d8dde0;
|
|
1724
|
+
border-radius: 3px;
|
|
1725
|
+
padding: 12px;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
// A preview is decoration for print and for anyone who would rather not load
|
|
1729
|
+
// seven pages at once.
|
|
1730
|
+
@media print {
|
|
1731
|
+
.knowledge-screen-preview__frame {
|
|
1732
|
+
display: none;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
// Several previews side by side, where a step touches more than one screen.
|
|
1737
|
+
.knowledge-screen-preview-row {
|
|
1738
|
+
display: flex;
|
|
1739
|
+
flex-wrap: wrap;
|
|
1740
|
+
gap: 16px;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
// The command that reads a template back. Two of them stacked, because filling
|
|
1744
|
+
// the workbook in is the first half of the job and promoting the draft is the
|
|
1745
|
+
// second - and a reader who only sees the import ends up wondering why nothing
|
|
1746
|
+
// changed.
|
|
1747
|
+
.knowledge-template__command {
|
|
1748
|
+
background: #f6f5f2;
|
|
1749
|
+
border: 1px solid #e3e1d9;
|
|
1750
|
+
border-radius: 3px;
|
|
1751
|
+
display: block;
|
|
1752
|
+
font-size: 13px;
|
|
1753
|
+
margin-top: 4px;
|
|
1754
|
+
overflow-x: auto;
|
|
1755
|
+
padding: 6px 8px;
|
|
1756
|
+
white-space: nowrap;
|
|
1757
|
+
}
|