Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const appViews = [
join(__dirname, 'node_modules/nhsuk-frontend/dist/nhsuk/components'),
join(__dirname, 'node_modules/nhsuk-frontend/dist/nhsuk/macros'),
join(__dirname, 'node_modules/nhsuk-frontend/dist/nhsuk'),
join(__dirname, 'node_modules/nhsuk-frontend/dist')
join(__dirname, 'node_modules/nhsuk-frontend/dist'),
join(__dirname, 'app/components/')
]

/**
Expand Down
191 changes: 191 additions & 0 deletions app/assets/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Set the location of NHS.UK images and other assets
$nhsuk-assets-path: "/nhsuk-frontend/assets/";

// Import NHS.UK frontend library
@import "nhsuk-frontend/dist/nhsuk";

Expand Down Expand Up @@ -54,6 +57,194 @@ $govuk-brand-colour: $nhsuk-link-colour;

// Custom styles


@media (max-width: 48.0525em) {
.nhsuk-table-responsive .nhsuk-table__body .nhsuk-table__header,
.nhsuk-table-responsive .nhsuk-table__body .nhsuk-table__cell {
justify-content: flex-start;
gap: 16px;
text-align: left;
}

.nhsuk-table-responsive__heading {
flex: 0 0 140px;
padding-right: 0;
}

.app-table-cell-value {
min-width: 0;
text-align: left;
}
}

.app-table-secondary-value {
margin-left: 4px;
}

@media (min-width: 40.0625em) {
.app-table-secondary-value {
display: block;
margin-top: 4px;
margin-left: 0;
}
}

.app-table-secondary-value--stacked {
display: block;
margin-top: 4px;
margin-left: 0;
}

.govuk-applied-filters {
display: flex;
flex-wrap: wrap;
gap: 16px 14px;
margin-bottom: 20px;
}

.govuk-applied-filter {
display: inline-flex;
align-items: center;
gap: 10px;

min-height: 38px;
padding: 0 14px;

border: 2px solid #b1b4b6;
border-radius: 8px;
background: #f3f2f1;

color: #0b0c0c;
text-decoration: none;

font-size: 16px;
line-height: 1.2;
font-weight: 400;
}

.govuk-applied-filter:hover {
background: #e8e8e8;
border-color: #6f777b;
text-decoration: none;
}

.govuk-applied-filter:focus {
background: #ffdd00;
border-color: #0b0c0c;
box-shadow: none;
}

.govuk-applied-filter__label {
display: inline-block;
}

.govuk-applied-filter__remove {
font-size: 24px;
line-height: 1;
margin-top: -1px;
}

/* Table overrides */

/* Prevent wrapping + tighten table */
.nhsuk-table {
table-layout: auto;
}

.nhsuk-table th, .nhsuk-table td, .nhsuk-table-responsive th, .nhsuk-table-responsive td {
/*padding: 8px 12px;*/
padding: 8px 12px 8px 0;
vertical-align: top;
font-size: 16px;
}

.nhsuk-table__header--wrap {
white-space: normal;
line-height: 1.2;
max-width: 150px;
}

.nhsuk-table__header--wrap span {
display: block;
}

/* Pagination overrides */
.nhsuk-pagination-wrapper {
display: flex;
justify-content: space-between;
align-items: center; /* keeps pagination + "Showing..." on same line */
margin-top: 8px; /* tighten gap from table */
}

.nhsuk-pagination {
margin-top: 0; /* remove default big gap */
margin-bottom: 0;
}

.nhsuk-table, .nhsuk-table-responsive {
margin-bottom: 8px; /* tighten space above pagination */
}

.nhsuk-pagination-wrapper__results {
margin-left: auto;
white-space: nowrap;
}

/* Eligibility Expander table */
.eligibility-table .nhsuk-list--bullet li {
font-size: 16px;
}

.eligibility-table .nhsuk-list--bullet {
margin-bottom: 0;
}

.eligibility-table .nhsuk-list--bullet:last-child {
margin-bottom: 0;
}

.eligibility-table .nhsuk-list--bullet li:last-child {
margin-bottom: 0;
}

.eligibility-table .nhsuk-body-s {
margin-bottom: 4px;
}

/* Recommended window Summary list */
.recommended-window .nhsuk-summary-list {
font-size: 16px;
margin-bottom: 24px;
}

.recommended-window .nhsuk-list--bullet li {
font-size: 16px;

}

.recommended-window .nhsuk-list--bullet {
margin-bottom: 0;
}

.recommended-window .nhsuk-list--bullet:last-child {
margin-bottom: 0;
}

.recommended-window .nhsuk-list--bullet li:last-child {
margin-bottom: 0;
}

.recommended-window .nhsuk-summary-list__key {
width: 140px;
padding-right: 12px;
}

.recommended-window .nhsuk-summary-list__value {
padding-left: 0;
}



// Phase banner
.app-phase-banner {
border-bottom: 1px solid #d8dde0;
Expand Down
29 changes: 29 additions & 0 deletions app/components/secondary-navigation/_secondary-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,32 @@
padding-bottom: nhsuk-spacing(4) - $_current-link-border-width;
}
}

.app-secondary-navigation--side {
border-bottom: 0;
border-left: 4px solid $nhsuk-border-colour;
margin-bottom: nhsuk-spacing(6);
padding-left: nhsuk-spacing(3);
}

.app-secondary-navigation--side .app-secondary-navigation__list {
@include nhsuk-font(19);

display: block;
margin-bottom: 0;
}

.app-secondary-navigation--side .app-secondary-navigation__list-item {
margin: 0 0 nhsuk-spacing(2);
padding: 0;
}

.app-secondary-navigation--side .app-secondary-navigation__list-item:not(:last-child) {
margin-right: 0;
}

.app-secondary-navigation--side .app-secondary-navigation__list-item--current {
border-left-width: $_current-link-border-width;
margin-left: ((nhsuk-spacing(2) + $_current-link-border-width) * -1);
padding-left: nhsuk-spacing(2);
}
2 changes: 2 additions & 0 deletions app/views/layouts/ravs-plus-layout-1-maternity.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<!-- Extends the layout from /docs/views/template.html -->
{% extends "prototype-kit-template.njk" %}

{% from "secondary-navigation/macro.njk" import appSecondaryNavigation %}

{% block head %}
<!-- Add your custom CSS or Sass in /app/assets/sass/main.scss -->
<link href="/css/main.css" rel="stylesheet">
Expand Down
Loading