Add a form to set priority of top 2 providers

Their priority should always add up to 100%. Currently we have to ensure
this by hand. Adding this form means there’s no way to not set their
combined priorities to 100%. And it’s a bit more of an intuitive UI than
two textboxes on separate pages.
This commit is contained in:
Chris Hill-Scott
2019-12-02 18:15:00 +00:00
parent 16ebdfeb8b
commit 5233ee4bd9
9 changed files with 164 additions and 6 deletions

View File

@@ -65,6 +65,15 @@
margin: 0;
}
&-centered-button {
.button {
display: block;
margin: 0 auto;
}
}
}
.align-button-with-textbox {

View File

@@ -117,3 +117,60 @@
margin-right: 15px;
}
}
.inline-stacked-label {
}
.radio-slider {
border-bottom: 2px solid $black;
height: 18px;
margin-bottom: 18px + 30px;
margin-right: -18px;
margin-left: -18px;
white-space: nowrap;
legend {
display: none;
}
.multiple-choice {
display: inline-block;
margin-right: 0;
padding: 0;
width: 38px;
margin-right: calc((100% - (38px * 11)) / 10);
&:last-child {
margin-right: 0;
}
label {
font-size: 0;
padding: 0;
&:before {
background: $white;
}
}
}
&-left-value {
position: absolute;
bottom: 30px;
left: 0;
}
&-right-value {
position: absolute;
bottom: 30px;
right: 0;
text-align: right;
}
}

View File

@@ -15,6 +15,10 @@ $item-top-padding: $gutter-half;
border-bottom: 1px solid $border-colour;
}
.page-footer {
margin-bottom: 5px;
}
}
&-user {
@@ -31,7 +35,7 @@ $item-top-padding: $gutter-half;
$axis-thickness: 2px;
border-bottom: $axis-thickness solid $black;
position: relative;
margin-bottom: 30px;
margin-bottom: 35px;
height: 35px;
&:before,
@@ -50,6 +54,11 @@ $item-top-padding: $gutter-half;
right: 0;
}
&-without-border {
position: relative;
padding-top: 35px;
}
&-marker {
$size: 20px;
$border-thickness: 7px;