Skip to content
Open
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
File renamed without changes.
118 changes: 118 additions & 0 deletions app/assets/sass/components/_definition-list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.definition-list {
$this: &;

margin-bottom: 1em;
line-height: 1.5;

@include nhsuk-font-size(19);
@include adjust-heading($size: 19);

margin-bottom: 1em;

&__title,
&__description {
display: block;
word-break: break-word;
}

&__title {
font-weight: bold;
}

&__description {
@include wysiwyg-content;

margin-left: 0;
}

&__group {
&:nth-last-child(n + 2) {
padding-bottom: nhsuk-spacing(3);
}
}

&--small {
@include nhsuk-font-size(16);
@include adjust-heading($size: 16);
}

&--inline {
#{$this}__title,
#{$this}__description {
display: inline;
}

#{$this}__title {
margin-right: nhsuk-spacing(1);
}

#{$this}__group {
padding-bottom: 0;
}

#{$this}__description {
&:nth-of-type(n + 2) {
display: block;
}
}

p {
display: inline-block;
margin-bottom: 0;
}
}

&--separated {
@include nhsuk-media-query($from: tablet) {
#{$this}__group {
display: block;

@supports (grid-area: auto) {
display: grid;
grid-template-columns: 200px 1fr;
grid-gap: 0 nhsuk-spacing(5);
}
}

#{$this}__title {
grid-column-start: 1;
}

#{$this}__description {
grid-column-start: 2;
}
}
}

&--zebra-striped {
margin-bottom: nhsuk-spacing(3);
padding-top: 20px;
border-bottom: 2px solid $nhsuk-form-border-color;

&__group {
border-top: 2px solid $nhsuk-form-border-color;
}

& > :nth-child(odd) {
background-color: $color_nhsuk-white;
}

& > :nth-child(even) {
background-color: $color_nhsuk-grey-4;
}

#{$this}__group {
padding: nhsuk-spacing(3);
// border-bottom: 1px solid $nhsuk-form-border-color;

&:last-child {
margin-bottom: 0;
border-bottom: 0;
}

#{$this}__title {
margin-bottom: 0.5em;
}
}
}
}
71 changes: 71 additions & 0 deletions app/assets/sass/components/_icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.certificate-icon {
width: 38px;
height: 48px;

.cls-1, .cls-2, .cls-3 {
fill: none;
}

// .cls-3, .cls-4, .cls-2 {
// stroke-width: 2.4px;
// }

.cls-2, .cls-3, .cls-4 {
stroke: #005eb8;
stroke-width: 2.4px;
stroke-linecap: round;
stroke-linejoin: round;
}

.cls-5, .cls-4 {
fill: #f2f8fd;
}

.cls-6 {
clip-path: url(#clippath);
}

&--small {
width: 19px;
height: 25px;


// .cls-4, .cls-2, .cls-3 {
// stroke-width: 2px;
// }

.cls-4, .cls-2, .cls-3 {
stroke: $color_nhsuk-grey-2;
stroke-width: 2px;
stroke-linecap: round;
stroke-linejoin: round;
}
}
}

// Grey small
// .cls-1, .cls-2, .cls-3 {
// fill: none;
// }

// .cls-3 {
// stroke-width: 1.2px;
// }

// .cls-4, .cls-2 {
// stroke-width: .9px;
// }

// .cls-4, .cls-2, .cls-3 {
// stroke: #aeb7bd;
// stroke-linecap: round;
// stroke-linejoin: round;
// }

// .cls-4, .cls-5 {
// fill: #f2f8fd;
// }

// .cls-6 {
// clip-path: url(#clippath);
// }
1 change: 1 addition & 0 deletions app/assets/sass/components/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
margin-bottom: nhsuk-spacing(3);
border-radius: 6px;
border: 1px solid $color_nhsuk-green;
position: relative;
}

// &__action {}
Expand Down
32 changes: 29 additions & 3 deletions app/assets/sass/components/_quick-filters.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@
}

&__list-item {
margin: nhsuk-spacing(1) 0 !important;
padding: 0 nhsuk-spacing(1);
display: flex;
align-items: center;
min-height: 44px;
margin-bottom: nhsuk-spacing(2);
padding: 0 nhsuk-spacing(2);

&:hover {
background-color: $color_nhsuk-grey-4;
border-radius: $nhsuk-border-radius;
}

&:last-child {
margin-bottom: nhsuk-spacing(2);
}
}

&__order-filter {
Expand All @@ -38,23 +50,37 @@
@include nhsuk-font($size: 16, $weight: bold, $line-height: 1);

display: inline-block;
padding: nhsuk-spacing(1) nhsuk-spacing(2);
padding: 4px 14px;
border: 1px solid $color_nhsuk-grey-3;
border-radius: 3px;
outline: 2px solid transparent;
outline-offset: -2px;
background-color: $color_nhsuk-white;
// background-color: $color_nhsuk-grey-5;
color: $color_nhsuk-black;
text-decoration: none;

&:visited {
color: $color_nhsuk-black;
}

&:focus {
@include nhsuk-focused-button;

border: 2px solid;
box-shadow: none;
}

&--active {
padding: 4px 6px 4px 5px;
background-color: nhsuk-tint($color_nhsuk-blue, 80%);
border-color: nhsuk-shade($color_nhsuk-blue, 30%);
color: nhsuk-shade($color_nhsuk-blue, 30%);

&:before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.5 5.45455L4.83333 8L10.5 1' stroke='%23004281' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
display: inline-block;
}
}
}
}
74 changes: 74 additions & 0 deletions app/assets/sass/components/_rating.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.tel-rating {
$this: &;
@extend .nhsuk-u-font-size-16;

display: flex;
align-items: center;
flex-wrap: wrap;
margin-bottom: nhsuk-spacing(3);
color: $nhsuk-secondary-text-color;

&__container {
margin-bottom: nhsuk-spacing(2);

}

&__cover {
background: white;
height: 100%;
overflow: hidden;
position: absolute;
top: 0;
right: 0;
}

&--star {
#{$this}__container {
padding: 0 nhsuk-spacing(3) 0 0;
}

#{$this}__progress {
flex: 0;
height: 20px;
position: relative;
white-space: nowrap;

svg {
width: 24px;
fill: gold;
}

#{$this}__cover {
height: 20px;
mix-blend-mode: color;
}
}

#{$this}__description {}
}

&--progress-bar {
#{$this}__container {
width: 100%;
}

#{$this}__progress {
overflow: hidden;
height: 8px;
margin-right: 6px;
margin-bottom: nhsuk-spacing(3);
border-radius: 6px;
border: 1px solid $color_nhsuk-green;
position: relative;
white-space: nowrap;
background-color: $color_nhsuk-green;
}

#{$this}__completion {}

#{$this}__cover {
height: 8px;
mix-blend-mode: background-color;
}
}
}
5 changes: 5 additions & 0 deletions app/assets/sass/components/_tel-list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.tel-list li {
border-bottom: 1px solid $color_nhsuk-grey-4;
padding: nhsuk-spacing(3) nhsuk-spacing(0) nhsuk-spacing(0);
margin-bottom: nhsuk-spacing(5);
}
4 changes: 4 additions & 0 deletions app/assets/sass/components/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
margin-top: 5px;
margin-bottom: 5px;
}

.no-list-style {
@include no-list-style;
}
Loading