mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Emails can get very long. When you’re trying to do other things on the page this results in a lot of scrolling. This commit truncates email messages to about 3 lines, and adds a JS toggle which reveal the full contents of the email.
72 lines
1015 B
SCSS
72 lines
1015 B
SCSS
%sms-message-wrapper,
|
|
.sms-message-wrapper {
|
|
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: $gutter-half;
|
|
background: $panel-colour;
|
|
border: 1px solid $panel-colour;
|
|
border-radius: 5px;
|
|
white-space: normal;
|
|
margin: 0 0 $gutter 0;
|
|
clear: both;
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
p + p {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
}
|
|
|
|
.sms-message-wrapper-with-radio {
|
|
@extend %sms-message-wrapper;
|
|
padding-left: 45px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sms-message-recipient {
|
|
@include copy-19;
|
|
color: $secondary-text-colour;
|
|
margin: -20px 0 $gutter 0;
|
|
}
|
|
|
|
.sms-message-name {
|
|
@include bold-24;
|
|
margin: 20px 0 10px 0;
|
|
}
|
|
|
|
.sms-message-picker {
|
|
display: block;
|
|
margin: 7px 0 0 0;
|
|
position: absolute;
|
|
left: 15px;
|
|
top: 50%;
|
|
z-index: 50;
|
|
}
|
|
|
|
.sms-message-use-links {
|
|
|
|
@include copy-19;
|
|
margin-top: 52px;
|
|
|
|
a {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.sms-message-from {
|
|
@include bold-19;
|
|
display: block;
|
|
}
|