Line up linked message in viewport

We anchor link to the relevant message in a thread. Which is good, but
it leaves the messages hard against the top edge of the viewport. This
looks sloppy. So this commit:

- makes each message focusable
- shifts the focused message with CSS to sit away from the viewport
This commit is contained in:
Chris Hill-Scott
2017-06-06 15:30:38 +01:00
parent f6d8e55579
commit e7ed1c1cfe
2 changed files with 11 additions and 1 deletions

View File

@@ -63,3 +63,13 @@ $tail-angle: 20deg;
.sms-message-status-outbound {
text-align: right;
}
.sms-message-row {
&:focus {
outline: none;
padding-top: 20px;
margin-top: -20px;
}
}