Merge pull request #3605 from alphagov/prevent-user-name-email-being-cut-off

Prevent user name email being cut off
This commit is contained in:
Tom Byers
2020-09-10 15:10:58 +01:00
committed by GitHub
9 changed files with 212 additions and 170 deletions

View File

@@ -36,44 +36,10 @@
}
&-edit-link {
text-align: right;
position: absolute;
top: -25px;
right: -135px;
a {
&:before {
content: "";
display: block;
position: absolute;
top: -1 * govuk-spacing(3) - 1;
right: 0;
bottom: -1 * govuk-spacing(3);
left: -1 * govuk-spacing(3);
background: transparent;
}
&:active:before,
&:focus:before {
border-color: $yellow;
border-style: solid;
border-width: 15px 3px 15px 15px;
right: -3px;
}
}
}
&-hint {
color: #6F777B;
padding-top: 5px;
margin: 0;
}
}

View File

@@ -7,17 +7,14 @@ $item-top-padding: govuk-spacing(3);
&-item {
padding: $item-top-padding 150px govuk-spacing(3) 0;
padding: govuk-spacing(3) 0px;
border-top: 1px solid $border-colour;
position: relative;
&-heading {
padding-right: govuk-spacing(3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: $secondary-text-colour; // So the ellipsis is grey
overflow-wrap: break-word;
.heading-small {
color: $black;
@@ -29,13 +26,61 @@ $item-top-padding: govuk-spacing(3);
border-bottom: 1px solid $border-colour;
}
& :last-child {
margin-bottom: 0;
}
&-blank {
margin-bottom: govuk-spacing(3);
@include govuk-media-query($from: tablet) {
margin-bottom: 0;
}
}
}
&-edit-link {
text-align: right;
position: absolute;
top: $item-top-padding;
right: 0px;
position: relative;
display: block;
margin: govuk-spacing(3) 0 govuk-spacing(3);
@include govuk-media-query($from: tablet) {
float: right;
margin: 0;
}
&:before {
content: "";
display: block;
position: absolute;
top: -1 * govuk-spacing(3) - 1;
right: 0;
bottom: -1 * govuk-spacing(3);
left: -1 * govuk-spacing(3);
background: transparent;
}
&:active:before,
&:focus:before {
border-color: $yellow;
border-style: solid;
border-width: 15px 3px;
right: -3px;
left: -3px;
@include govuk-media-query($from: tablet) {
border-width: 15px 3px 15px 15px;
left: -15px;
}
}
}
}