Files
notifications-admin/app/assets/sass/uswds/components/_sms-message.scss
2025-11-06 14:23:30 -05:00

90 lines
1.8 KiB
SCSS

@use 'uswds-core' as *;
@use 'settings/tokens' as *;
.sms-message-wrapper {
position: relative;
width: 100%;
max-width: $sms-bubble-max-width;
box-sizing: border-box;
padding: units(2);
background: color('gray-cool-10');
border: 1px solid color('gray-cool-10');
border-radius: 5px;
white-space: normal;
margin: 0 0 units(1) 0;
clear: both;
word-wrap: break-word;
&:after {
content: "";
display: block;
position: absolute;
bottom: -5px;
right: -$sms-bubble-arrow-offset;
border: $sms-bubble-arrow-size solid transparent;
border-left-width: $sms-bubble-arrow-width;
border-right-width: $sms-bubble-arrow-width;
border-bottom-color: color('gray-cool-10');
border-left-color: color('gray-cool-10');
transform: rotate($sms-bubble-arrow-rotation);
}
}
.sms-message-inbound {
.sms-message-wrapper {
&:after {
border-left-color: transparent;
border-bottom-color: color('gray-cool-10');
border-right-color: color('gray-cool-10');
right: auto;
left: -$sms-bubble-arrow-offset;
transform: rotate($sms-bubble-arrow-rotation);
}
}
}
.sms-message-sender,
.sms-message-file-name,
.sms-message-scheduler,
.sms-message-template {
margin: units(1) 0 0;
}
.sms-message-recipient {
color: color('gray-cool-90');
margin: units(1) 0 units(2);
}
.sms-message-status {
color: color('gray-cool-90');
margin: units('neg-205') units(1) units('205') units(1);
}
.sms-message-status-outbound {
text-align: right;
}
h2.sms-message-header {
margin-bottom: units(1);
}
.usa-prose > * + h2.message-header {
margin-top: 1em;
}
h2.recipient-list {
margin-bottom: units(1);
}
.sms-message-row {
&:focus {
outline: none;
padding-top: units(15);
margin-top: units('neg-15');
}
}
.sms-message-reply-link {
text-align: right;
}