mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 07:18:58 -04:00
Because: - drawing things in CSS is fun - when we have inbound messages, having a tail pointing the other way will help differentiate which messages are inbound
39 lines
795 B
SCSS
39 lines
795 B
SCSS
$tail-angle: 20deg;
|
|
|
|
.sms-message-wrapper {
|
|
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 464px;
|
|
box-sizing: border-box;
|
|
padding: $gutter-half $gutter-half $gutter-half $gutter-half;
|
|
background: $panel-colour;
|
|
border: 1px solid $panel-colour;
|
|
border-radius: 5px;
|
|
white-space: normal;
|
|
margin: 0 0 $gutter 0;
|
|
clear: both;
|
|
word-wrap: break-word;
|
|
|
|
&:after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
bottom: -4px;
|
|
right: -20px;
|
|
border: 10px solid transparent;
|
|
border-left-width: 13px;
|
|
border-right-width: 13px;
|
|
border-bottom-color: $panel-colour;
|
|
border-left-color: $panel-colour;
|
|
transform: rotate($tail-angle);
|
|
}
|
|
|
|
}
|
|
|
|
.sms-message-recipient {
|
|
@include copy-19;
|
|
color: $secondary-text-colour;
|
|
margin: 10px 0 0 0;
|
|
}
|