Make position of letter edit links absolute

Previously they were relative (ie percentages). This made sure that they
worked on mobile, when the letter might be narrower.

However it broke when the preview was more than one page, because
13% of the height of 2 pages is different to 13% of the height of one
pages.

This commit changes the positions to be pixel values, which match the
calculated percentage values when the preview is one page.
This commit is contained in:
Chris Hill-Scott
2017-04-25 16:01:14 +01:00
parent 7f6e6ad2d9
commit cf80d0da26

View File

@@ -25,7 +25,7 @@
.edit-template-link-letter-contact {
@extend %edit-template-link;
right: -25px;
top: 13.3%; // align to top of contact block
top: 138px; // align to top of contact block
}
.edit-template-link-letter-address {
@@ -36,6 +36,6 @@
.edit-template-link-letter-body {
@extend %edit-template-link;
top: 38.5%; // aligns to top of subject
top: 400px; // aligns to top of subject
left: -5px;
}