Merge pull request #686 from alphagov/no-jump-email

Stop page jumping on first load with a long email
This commit is contained in:
Chris Hill-Scott
2016-06-15 09:38:56 +01:00
committed by GitHub
3 changed files with 40 additions and 11 deletions

View File

@@ -47,20 +47,24 @@ $button-bottom-border-colour: rgba(0, 0, 0, 0.17);
&-wrapper {
.collapsed & {
.js-enabled & {
max-height: 92px;
overflow: hidden;
}
.js-enabled .expanded & {
max-height: none;
}
}
.toggle {
display: none;
position: absolute;
left: 50%;
bottom: -18px;
height: 27px;
display: inline-block;
padding: 0;
margin: 0 0 0 -30px;
line-height: 12px;
@@ -93,3 +97,11 @@ $button-bottom-border-colour: rgba(0, 0, 0, 0.17);
}
}
.js-enabled .toggle {
display: inline-block;
}
.js-enabled .expanded .toggle {
display: none;
}