signal-desktop/stylesheets/_modules.scss
Scott Nonnenberg 9fd867fdd1 Support new 'requiredProtocolVersion' in DataMessage
* Add new requiredProtocolVersion field to DataMessage

* Message.requiredProtocolVersion, warning if version mot supported

* Update strings; limit width; new left pane preview text
2019-06-10 17:40:02 -04:00

4685 lines
89 KiB
SCSS

// Using BEM syntax explained here: https://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/
// Module: Contact Name
.module-contact-name__profile-name {
font-style: italic;
}
// Module: Message
.module-message {
position: relative;
display: inline-flex;
flex-direction: row;
align-items: stretch;
}
.module-message--expired {
animation: module-message__shake 0.2s linear infinite;
}
@keyframes module-message__shake {
0% {
transform: translateX(0px);
}
25% {
transform: translateX(-5px);
}
50% {
transform: translateX(0px);
}
75% {
transform: translateX(5px);
}
100% {
transform: translateX(0px);
}
}
// Spec: container < 438px
.module-message--incoming {
margin-left: 0;
margin-right: 32px;
}
.module-message--outgoing {
float: right;
margin-right: 0;
margin-left: 32px;
}
.module-message__buttons {
position: absolute;
top: 0;
bottom: 0;
display: inline-flex;
flex-direction: row;
align-items: center;
opacity: 0;
}
.module-message:hover .module-message__buttons {
opacity: 1;
}
.module-message__buttons--incoming {
left: 100%;
}
.module-message__buttons--outgoing {
right: 100%;
}
.module-message__buttons__download {
height: 24px;
width: 24px;
display: inline-block;
cursor: pointer;
@include color-svg('../images/download.svg', $color-light-45);
&:hover {
@include color-svg('../images/download.svg', $color-gray-90);
}
}
.module-message__buttons__download--incoming {
margin-left: 12px;
}
.module-message__buttons__download--outgoing {
margin-right: 12px;
}
.module-message__buttons__reply {
height: 24px;
width: 24px;
display: inline-block;
cursor: pointer;
@include color-svg('../images/reply.svg', $color-light-45);
&:hover {
@include color-svg('../images/reply.svg', $color-gray-90);
}
}
.module-message__buttons__reply--incoming {
margin-left: 12px;
}
.module-message__buttons__reply--outgoing {
margin-right: 12px;
}
.module-message__buttons__menu {
height: 24px;
width: 24px;
display: inline-block;
cursor: pointer;
@include color-svg('../images/ellipsis.svg', $color-light-45);
&:hover {
@include color-svg('../images/ellipsis.svg', $color-gray-90);
}
}
.module-message__buttons__menu--incoming {
margin-left: 12px;
}
.module_message__buttons__menu--outgoing {
margin-right: 12px;
}
.module-message__error-container {
width: 28px;
position: relative;
}
.module-message__error {
width: 20px;
height: 20px;
display: inline-block;
position: absolute;
bottom: 4px;
@include color-svg('../images/error.svg', $color-core-red);
}
.module-message__error--outgoing {
left: 8px;
}
.module-message__error--incoming {
right: 8px;
}
.module-message__container {
position: relative;
display: inline-block;
border-radius: 16px;
padding-right: 12px;
padding-left: 12px;
padding-top: 10px;
padding-bottom: 10px;
min-width: 0px;
}
.module-message__container--with-sticker {
padding-bottom: 0px;
}
.module-message__container--outgoing {
background-color: $color-light-10;
}
// In case the color gets messed up
.module-message__container--incoming {
background-color: $color-conversation-grey;
}
.module-message__container--incoming-red {
background-color: $color-conversation-red;
}
.module-message__container--incoming-deep_orange {
background-color: $color-conversation-deep_orange;
}
.module-message__container--incoming-brown {
background-color: $color-conversation-brown;
}
.module-message__container--incoming-pink {
background-color: $color-conversation-pink;
}
.module-message__container--incoming-purple {
background-color: $color-conversation-purple;
}
.module-message__container--incoming-indigo {
background-color: $color-conversation-indigo;
}
.module-message__container--incoming-blue {
background-color: $color-conversation-blue;
}
.module-message__container--incoming-teal {
background-color: $color-conversation-teal;
}
.module-message__container--incoming-green {
background-color: $color-conversation-green;
}
.module-message__container--incoming-light_green {
background-color: $color-conversation-light_green;
}
.module-message__container--incoming-blue_grey {
background-color: $color-conversation-blue_grey;
}
.module-message__attachment-container {
// To ensure that images are centered if they aren't full width of bubble
text-align: center;
position: relative;
margin: {
left: -12px;
right: -12px;
top: -10px;
bottom: -10px;
}
border-radius: 16px;
overflow: hidden;
background-color: $color-white;
&--with-content-below {
margin-bottom: 7px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
&--with-content-above {
margin-top: 4px;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
}
.module-message__sticker-container {
// To ensure that images are centered if they aren't full width of bubble
text-align: center;
margin: {
left: -12px;
right: -12px;
top: -9px;
bottom: -5px;
}
&--with-content-below {
margin-bottom: 5px;
}
&--with-content-above {
margin-top: 4px;
}
}
.module-message__img-attachment {
margin-bottom: -3px;
// redundant with attachment-container, but we get cursor flashing on move otherwise
cursor: pointer;
}
.module-message__audio-attachment {
margin-top: 2px;
}
.module-message__audio-attachment--with-content-below {
margin-bottom: 5px;
}
.module-message__audio-attachment--with-content-above {
margin-top: 6px;
}
.module-message__generic-attachment {
display: flex;
flex-direction: row;
align-items: center;
}
.module-message__generic-attachment--with-content-below {
padding-bottom: 6px;
}
.module-message__generic-attachment--with-content-above {
padding-top: 4px;
}
.module-message__generic-attachment__icon-container {
position: relative;
}
.module-message__generic-attachment__spinner-container {
padding-left: 4px;
padding-right: 4px;
}
.module-message__generic-attachment__icon {
background: url('../images/file-gradient.svg') no-repeat center;
height: 44px;
width: 56px;
margin-left: -13px;
margin-right: -14px;
margin-bottom: -4px;
// So we can center the extension text inside this icon
display: flex;
flex-direction: row;
align-items: center;
}
.module-message__generic-attachment__icon-dangerous-container {
position: absolute;
top: -1px;
right: -4px;
height: 16px;
width: 16px;
border-radius: 50%;
background-color: $color-white;
}
.module-message__generic-attachment__icon-dangerous {
height: 16px;
width: 16px;
@include color-svg('../images/error-filled.svg', $color-core-red);
}
.module-message__generic-attachment__icon__extension {
font-size: 10px;
line-height: 13px;
letter-spacing: 0.1px;
text-transform: uppercase;
// Along with flow layout in parent item, centers text
text-align: center;
width: 25px;
margin-left: auto;
margin-right: auto;
// We don't have much room for text here, cut it off without ellipse
overflow-x: hidden;
white-space: nowrap;
text-overflow: clip;
color: $color-gray-90;
}
.module-message__generic-attachment__text {
flex-grow: 1;
margin-left: 8px;
// The width of the icon plus our 8px margin
max-width: calc(100% - 37px);
}
.module-message__generic-attachment__file-name {
color: $color-gray-90;
font-size: 14px;
line-height: 18px;
font-weight: 300;
margin-top: 2px;
// Handling really long filenames - cut them off
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.module-message__generic-attachment__file-name--incoming {
color: $color-white;
}
.module-message__generic-attachment__file-size {
color: $color-gray-90;
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
margin-top: 3px;
}
.module-message__generic-attachment__file-size--incoming {
color: $color-white;
}
.module-message__generic-attachment__file-size--incoming {
color: $color-white;
}
.module-message__link-preview {
cursor: pointer;
margin-left: -12px;
margin-right: -12px;
margin-top: -10px;
margin-bottom: 5px;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.module-message__link-preview--with-content-above {
margin-top: 4px;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
.module-message__link-preview__content {
padding: 8px;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
background-color: $color-white;
display: flex;
flex-direction: row;
align-items: flex-start;
border: 1px solid $color-black-015;
}
.module-message__link-preview__content--with-content-above {
border-top: none;
border-bottom: none;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
.module-message__link-preview__icon_container {
margin: -2px;
margin-right: 8px;
display: inline-block;
}
.module-message__link-preview__text--with-icon {
margin-top: 5px;
}
.module-message__link-preview__title {
color: $color-gray-90;
font-size: 16px;
font-weight: 300;
letter-spacing: 0.15px;
line-height: 22px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.module-message__link-preview__location {
margin-top: 4px;
color: $color-gray-60;
font-size: 12px;
height: 16px;
letter-spacing: 0.4px;
line-height: 16px;
text-transform: uppercase;
}
.module-message__author {
color: $color-white;
font-size: 13px;
font-weight: 300;
line-height: 18px;
height: 18px;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
text-overflow: ellipsis;
&__profile-name {
font-style: italic;
}
}
.module-message__author_with_sticker {
color: $color-gray-90;
font-size: 13px;
font-weight: 300;
line-height: 18px;
height: 18px;
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
text-overflow: ellipsis;
// Stickers are pretty narrow, so we allow this one element of a sticker
// message to go wider than normal.
// There's a tension here, since this is width and not max-width; things will
// look bad for RTL users if we make it too wide.
width: 300px;
&__profile-name {
font-style: italic;
}
}
.module-message__text {
color: $color-gray-90;
font-size: 14px;
line-height: 18px;
text-align: start;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
white-space: pre-wrap;
a {
text-decoration: underline;
color: $color-gray-90;
}
}
.module-message__text--incoming {
color: $color-white;
a {
text-decoration: underline;
color: $color-white;
}
}
.module-message__text--error {
font-style: italic;
}
.module-message__metadata {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 3px;
margin-bottom: -3px;
}
// With an image and no caption, this section needs to be on top of the image overlay
.module-message__metadata--with-image-no-caption {
position: absolute;
bottom: 9px;
z-index: 2;
width: 100%;
// Because this is absolutely positioned, we 100% is too big, take it down by parent
// padding sizes.
padding-right: 24px;
}
.module-message__metadata__date {
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
color: $color-gray-60;
text-transform: uppercase;
}
.module-message__metadata__date--incoming {
color: $color-white-08;
}
.module-message__metadata__date--with-image-no-caption {
color: $color-white;
}
.module-message__metadata__spacer {
flex-grow: 1;
}
.module-message__metadata__status-icon {
width: 12px;
height: 12px;
display: inline-block;
margin-left: 6px;
margin-bottom: 2px;
}
.module-message__metadata__status-icon--sending {
@include color-svg('../images/sending.svg', $color-gray-60);
animation: module-message__metdata__status-icon--spinning 4s linear infinite;
}
@keyframes module-message__metdata__status-icon--spinning {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.module-message__metadata__status-icon--sent {
@include color-svg('../images/check-circle-outline.svg', $color-gray-60);
}
.module-message__metadata__status-icon--delivered {
@include color-svg('../images/double-check.svg', $color-gray-60);
width: 18px;
}
.module-message__metadata__status-icon--read {
@include color-svg('../images/read.svg', $color-gray-60);
width: 18px;
}
// When status indicators are overlaid on top of an image, they use different colors
.module-message__metadata__status-icon--with-image-no-caption {
background-color: $color-white;
}
.module-message__send-message-button {
cursor: pointer;
font-weight: 300;
font-size: 13px;
line-height: 18px;
color: $color-signal-blue;
background-color: $color-light-02;
border: 1px solid $color-black-012;
margin-top: 8px;
margin-bottom: -10px;
margin-left: -12px;
margin-right: -12px;
text-align: center;
padding: 10px;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
.module-message__author-avatar {
position: absolute;
bottom: 0px;
right: calc(100% + 4px);
}
.module-message__typing-container {
height: 16px;
display: flex;
flex-direction: row;
align-items: center;
}
// Module: Expire Timer
.module-expire-timer {
width: 12px;
height: 12px;
display: inline-block;
margin-left: 6px;
margin-bottom: 2px;
@include color-svg('../images/timer-60.svg', $color-gray-60);
}
.module-expire-timer--55 {
@include color-svg('../images/timer-55.svg', $color-gray-60);
}
.module-expire-timer--50 {
@include color-svg('../images/timer-50.svg', $color-gray-60);
}
.module-expire-timer--45 {
@include color-svg('../images/timer-45.svg', $color-gray-60);
}
.module-expire-timer--40 {
@include color-svg('../images/timer-40.svg', $color-gray-60);
}
.module-expire-timer--35 {
@include color-svg('../images/timer-35.svg', $color-gray-60);
}
.module-expire-timer--30 {
@include color-svg('../images/timer-30.svg', $color-gray-60);
}
.module-expire-timer--25 {
@include color-svg('../images/timer-25.svg', $color-gray-60);
}
.module-expire-timer--20 {
@include color-svg('../images/timer-20.svg', $color-gray-60);
}
.module-expire-timer--15 {
@include color-svg('../images/timer-15.svg', $color-gray-60);
}
.module-expire-timer--10 {
@include color-svg('../images/timer-10.svg', $color-gray-60);
}
.module-expire-timer--05 {
@include color-svg('../images/timer-05.svg', $color-gray-60);
}
.module-expire-timer--00 {
@include color-svg('../images/timer-00.svg', $color-gray-60);
}
.module-expire-timer--incoming {
background-color: $color-white-08;
}
// When status indicators are overlaid on top of an image, they use different colors
.module-expire-timer--with-image-no-caption {
background-color: $color-white;
}
// Module: Quoted Reply
.module-quote-container {
margin-left: -6px;
margin-right: -6px;
margin-top: -4px;
margin-bottom: 5px;
}
.module-quote-container--with-content-above {
margin-top: 3px;
}
.module-quote {
position: relative;
border-radius: 4px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
cursor: pointer;
display: flex;
flex-direction: row;
align-items: stretch;
overflow: hidden;
border-left-width: 4px;
border-left-style: solid;
}
.module-quote--no-click {
cursor: auto;
}
.module-quote--with-content-above {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.module-quote--with-reference-warning {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.module-quote--outgoing {
border-left-color: $color-conversation-grey;
background-color: $color-conversation-grey-tint;
}
.module-quote--outgoing-red {
border-left-color: $color-conversation-red;
background-color: $color-conversation-red-tint;
}
.module-quote--outgoing-deep_orange {
border-left-color: $color-conversation-deep_orange;
background-color: $color-conversation-deep_orange-tint;
}
.module-quote--outgoing-brown {
border-left-color: $color-conversation-brown;
background-color: $color-conversation-brown-tint;
}
.module-quote--outgoing-pink {
border-left-color: $color-conversation-pink;
background-color: $color-conversation-pink-tint;
}
.module-quote--outgoing-purple {
border-left-color: $color-conversation-purple;
background-color: $color-conversation-purple-tint;
}
.module-quote--outgoing-indigo {
border-left-color: $color-conversation-indigo;
background-color: $color-conversation-indigo-tint;
}
.module-quote--outgoing-blue {
border-left-color: $color-conversation-blue;
background-color: $color-conversation-blue-tint;
}
.module-quote--outgoing-teal {
border-left-color: $color-conversation-teal;
background-color: $color-conversation-teal-tint;
}
.module-quote--outgoing-green {
border-left-color: $color-conversation-green;
background-color: $color-conversation-green-tint;
}
.module-quote--outgoing-light_green {
border-left-color: $color-conversation-light_green;
background-color: $color-conversation-light_green-tint;
}
.module-quote--outgoing-blue_grey {
border-left-color: $color-conversation-blue_grey;
background-color: $color-conversation-blue_grey-tint;
}
.module-quote--incoming {
border-left-color: $color-white;
background-color: $color-conversation-grey-tint;
}
.module-quote--incoming-red {
background-color: $color-conversation-red-tint;
}
.module-quote--incoming-deep_orange {
background-color: $color-conversation-deep_orange-tint;
}
.module-quote--incoming-brown {
background-color: $color-conversation-brown-tint;
}
.module-quote--incoming-pink {
background-color: $color-conversation-pink-tint;
}
.module-quote--incoming-purple {
background-color: $color-conversation-purple-tint;
}
.module-quote--incoming-indigo {
background-color: $color-conversation-indigo-tint;
}
.module-quote--incoming-blue {
background-color: $color-conversation-blue-tint;
}
.module-quote--incoming-teal {
background-color: $color-conversation-teal-tint;
}
.module-quote--incoming-green {
background-color: $color-conversation-green-tint;
}
.module-quote--incoming-light_green {
background-color: $color-conversation-light_green-tint;
}
.module-quote--incoming-blue_grey {
background-color: $color-conversation-blue_grey-tint;
}
.module-quote__primary {
flex-grow: 1;
padding-left: 8px;
padding-right: 8px;
padding-top: 7px;
padding-bottom: 7px;
max-width: 100%;
}
.module-quote__primary__author {
font-size: 13px;
line-height: 18px;
font-weight: 300;
color: $color-gray-90;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.module-quote__primary__profile-name {
font-style: italic;
}
.module-quote__primary__text {
font-size: 14px;
line-height: 18px;
color: $color-gray-90;
text-align: start;
a {
color: $color-gray-90;
}
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
white-space: pre-wrap;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
// Note: -webkit-line-clamp doesn't work for RTL text, and it forces you to use
// ... as the truncation indicator. That's not a solution that works well for
// all languages. More resources:
// - http://hackingui.com/front-end/a-pure-css-solution-for-multiline-text-truncation/
// - https://medium.com/mofed/css-line-clamp-the-good-the-bad-and-the-straight-up-broken-865413f16e5
}
.module-quote__primary__type-label {
font-style: italic;
color: $color-gray-90;
font-size: 13px;
line-height: 18px;
}
.module-quote__primary__filename-label {
font-size: 12px;
}
.module-quote__close-container {
position: absolute;
top: 4px;
right: 4px;
height: 16px;
width: 16px;
background-color: rgba(255, 255, 255, 0.75);
border-radius: 50%;
}
.module-quote__close-button {
width: 100%;
height: 100%;
cursor: pointer;
@include color-svg('../images/x.svg', $grey);
}
.module-quote__icon-container {
flex: initial;
min-width: 54px;
width: 54px;
max-height: 54px;
position: relative;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.module-quote__icon-container__inner {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.module-quote__icon-container__circle-background {
display: flex;
align-items: center;
justify-content: center;
height: 32px;
width: 32px;
border-radius: 50%;
background-color: $color-white;
}
.module-quote__icon-container__icon {
width: 24px;
height: 24px;
}
.module-quote__icon-container__icon--file {
@include color-svg('../images/file.svg', $color-signal-blue);
}
.module-quote__icon-container__icon--image {
@include color-svg('../images/image.svg', $color-signal-blue);
}
.module-quote__icon-container__icon--microphone {
@include color-svg('../images/microphone.svg', $color-signal-blue);
}
.module-quote__icon-container__icon--play {
@include color-svg('../images/play.svg', $color-signal-blue);
}
.module-quote__icon-container__icon--movie {
@include color-svg('../images/movie.svg', $color-signal-blue);
}
.module-quote__generic-file {
display: flex;
flex-direction: row;
align-items: center;
}
.module-quote__generic-file__icon {
background: url('../images/file-gradient.svg');
background-size: 75%;
background-repeat: no-repeat;
height: 28px;
width: 36px;
margin-left: -4px;
margin-right: -6px;
margin-bottom: 5px;
}
.module-quote__generic-file__text {
font-size: 14px;
line-height: 18px;
color: $color-gray-90;
max-width: calc(100% - 26px);
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.module-quote__reference-warning {
height: 26px;
display: flex;
flex-direction: row;
align-items: center;
background-color: $color-white-085;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding-left: 8px;
padding-right: 8px;
}
.module-quote__reference-warning__icon {
height: 16px;
width: 16px;
@include color-svg('../images/broken-link.svg', $color-gray-60);
}
.module-quote__reference-warning__text {
margin-left: 6px;
color: $color-gray-90;
font-size: 13px;
line-height: 18px;
}
// Module: Embedded Contact
.module-embedded-contact {
// Cursor is always a pointer because this component is always wired up to the contact detail screen
cursor: pointer;
display: flex;
flex-direction: row;
align-items: center;
}
.module-embedded-contact--with-content-above {
padding-top: 4px;
}
.module-embedded-contact--with-content-below {
padding-bottom: 4px;
}
.module-embedded-contact__spinner-container {
padding-left: 5px;
padding-right: 5px;
}
.module-embedded-contact__text-container {
flex-grow: 1;
margin-left: 8px;
max-width: calc(100% - 58px);
}
.module-embedded-contact__contact-name {
font-size: 14px;
line-height: 18px;
font-weight: 300;
margin-top: 6px;
color: $color-gray-90;
max-width: 100%;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
}
.module-embedded-contact__contact-name--incoming {
color: $color-white;
}
.module-embedded-contact__contact-method {
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
margin-top: 3px;
color: $color-gray-60;
max-width: 100%;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
}
.module-embedded-contact__contact-method--incoming {
color: $color-white-07;
}
// Module: Contact Detail
.module-contact-detail {
text-align: center;
max-width: 300px;
margin-left: auto;
margin-right: auto;
}
.module-contact-detail__avatar {
margin-bottom: 4px;
}
.module-contact-detail__contact-name {
font-size: 20px;
font-weight: bold;
}
.module-contact-detail__contact-method {
font-size: 14px;
margin-top: 10px;
}
.module-contact-detail__send-message {
cursor: pointer;
border-radius: 4px;
background-color: $blue;
display: inline-block;
padding: 6px;
margin-top: 20px;
color: $color-white;
flex-direction: column;
align-items: center;
button {
@include button-reset;
}
}
.module-contact-detail__send-message__inner {
display: flex;
align-items: center;
}
.module-contact-detail__send-message__bubble-icon {
height: 17px;
width: 18px;
display: inline-block;
margin-right: 5px;
@include color-svg('../images/chat-bubble.svg', white);
}
.module-contact-detail__additional-contact {
text-align: left;
border-top: 1px solid $color-light-10;
margin-top: 15px;
padding-top: 8px;
}
.module-contact-detail__additional-contact__type {
color: $color-light-45;
font-size: 12px;
margin-bottom: 3px;
}
// Module: Group Notification
.module-group-notification {
margin-top: 14px;
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
color: $color-gray-60;
text-align: center;
}
.module-group-notification__change {
margin-top: 10px;
}
.module-group-notification__contact {
font-weight: 300;
}
// Module: Reset Session Notification
.module-reset-session-notification {
margin-top: 14px;
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
color: $color-gray-60;
text-align: center;
}
// Module: Safety Number Notification
.module-safety-number-notification {
margin-top: 14px;
text-align: center;
}
.module-safety-number-notification__icon {
height: 24px;
width: 24px;
margin-left: auto;
margin-right: auto;
margin-bottom: 7px;
@include color-svg('../images/shield.svg', $color-gray-60);
}
.module-safety-number-notification__text {
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
color: $color-gray-60;
}
.module-safety-number-notification__contact {
font-weight: 300;
}
.module-safety-number-notification__button {
margin-top: 5px;
display: inline-block;
cursor: pointer;
font-size: 13px;
font-weight: 300;
line-height: 18px;
padding: 12px;
color: $color-signal-blue;
background-color: $color-light-02;
border-radius: 4px;
}
// Module: Verification Notification
.module-verification-notification {
margin-top: 14px;
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
color: $color-gray-60;
text-align: center;
}
.module-verification-notification__contact {
font-weight: 300;
}
.module-verification-notification__icon--mark-verified {
height: 24px;
width: 24px;
margin-left: auto;
margin-right: auto;
margin-bottom: 4px;
@include color-svg('../images/verified-check.svg', $color-gray-60);
}
.module-verification-notification__icon--mark-not-verified {
height: 24px;
width: 24px;
margin-left: auto;
margin-right: auto;
margin-bottom: 7px;
@include color-svg('../images/shield.svg', $color-gray-60);
}
// Module: Timer Notification
.module-timer-notification {
margin-top: 14px;
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
color: $color-gray-60;
text-align: center;
}
.module-timer-notification__icon-container {
margin-left: auto;
margin-right: auto;
display: inline-flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
}
.module-timer-notification__icon {
height: 20px;
width: 20px;
display: inline-block;
@include color-svg('../images/timer.svg', $color-gray-60);
}
.module-timer-notification__icon--disabled {
@include color-svg('../images/timer-disabled.svg', $color-gray-60);
}
.module-timer-notification__icon-label {
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
margin-left: 6px;
text-transform: uppercase;
// Didn't seem centered otherwise
margin-top: 1px;
}
.module-timer-notification__message {
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
}
.module-notification--with-click-handler {
cursor: pointer;
}
.module-notification__icon {
height: 24px;
width: 24px;
margin-left: auto;
margin-right: auto;
}
// Module: Contact List Item
.module-contact-list-item {
padding-top: 5px;
padding-bottom: 5px;
display: flex;
flex-direction: row;
align-items: center;
color: $color-gray-60;
}
.module-contact-list-item--with-click-handler {
cursor: pointer;
}
.module-contact-list-item__text {
margin-left: 8px;
}
.module-contact-list-item__text__name {
font-weight: 300;
font-size: 14px;
}
.module-contact-list-item__text__profile-name {
font-style: italic;
}
.module-contact-list-item__text__additional-data {
margin-top: 3px;
font-size: 14px;
}
.module-contact-list-item__text__verified-icon {
@include color-svg('../images/verified-check.svg', $color-gray-60);
display: inline-block;
width: 18px;
height: 18px;
vertical-align: text-bottom;
// Trying to account for the whitespace around the check mark
margin-bottom: -1px;
}
// Module: Conversation Header
.module-conversation-header {
padding-left: 16px;
padding-right: 16px;
display: flex;
flex-direction: row;
align-items: center;
height: $header-height;
color: $color-gray-90;
background-color: $color-white;
border-bottom: 1px solid $color-black-02;
}
.module-conversation-header__back-icon {
@include color-svg('../images/back.svg', $color-gray-90);
display: inline-block;
margin-left: -10px;
margin-right: -2px;
width: 35px;
height: 35px;
min-width: 35px;
vertical-align: text-bottom;
cursor: pointer;
}
.module-conversation-header__title-container {
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
display: block;
text-align: center;
height: 48px;
}
.module-conversation-header__title-flex {
margin-left: auto;
margin-right: auto;
display: inline-flex;
flex-direction: row;
align-items: center;
height: 48px;
max-width: 100%;
}
.module-conversation-header__avatar {
min-width: 28px;
user-select: none;
}
.module-conversation-header__title {
margin-left: 6px;
min-width: 0;
font-size: 16px;
line-height: 24px;
font-weight: 300;
color: $color-gray-90;
// width of avatar (28px) and our 6px left margin
max-width: calc(100% - 34px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-webkit-user-select: text;
}
.module-conversation-header__title__profile-name {
font-style: italic;
}
.module-conversation-header__title__verified-icon {
@include color-svg('../images/verified-check.svg', $color-gray-90);
display: inline-block;
width: 1.25em;
height: 1.25em;
vertical-align: text-bottom;
}
.module-conversation-header__expiration {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 8px;
padding-right: 8px;
}
.module-conversation-header__expiration__clock-icon {
@include color-svg('../images/timer.svg', $color-gray-60);
height: 20px;
width: 20px;
display: inline-block;
}
.module-conversation-header__expiration__setting {
margin-left: 5px;
text-align: center;
}
.module-conversation-header__gear-icon {
@include color-svg('../images/gear.svg', $color-gray-60);
height: 20px;
width: 20px;
margin-left: 4px;
cursor: pointer;
}
// Module: Message Detail
.module-message-detail {
max-width: 650px;
margin-left: auto;
margin-right: auto;
padding: 20px;
}
.module-message-detail__message-container {
padding-top: 20px;
padding-bottom: 20px;
&:after {
content: '.';
visibility: hidden;
display: block;
height: 0;
clear: both;
}
}
.module-message-detail__label {
font-weight: 300;
padding-right: 5px;
}
.module-message-detail__unix-timestamp {
color: $color-light-10;
}
.module-message-detail__delete-button-container {
text-align: center;
margin-top: 10px;
}
.module-message-detail__delete-button {
@include button-reset;
background-color: $color-core-red;
color: $color-white;
box-shadow: 0 0 10px -3px rgba(97, 97, 97, 0.7);
border-radius: 5px;
border: solid 1px $color-light-35;
cursor: pointer;
margin: 1em auto;
padding: 1em;
}
.module-message-detail__contact-container {
margin: 20px;
}
.module-message-detail__contact {
margin-bottom: 8px;
display: flex;
flex-direction: row;
align-items: center;
}
.module-message-detail__contact__text {
margin-left: 10px;
flex-grow: 1;
}
.module-message-detail__contact__error {
color: $color-core-red;
font-weight: 300;
}
.module-message-detail__contact__status-icon {
width: 12px;
height: 12px;
display: inline-block;
margin-bottom: 2px;
}
.module-message-detail__contact__status-icon--sending {
@include color-svg('../images/sending.svg', $color-gray-60);
animation: module-message-detail__contact__status-icon--spinning 4s linear
infinite;
}
@keyframes module-message-detail__contact__status-icon--spinning {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.module-message-detail__contact__status-icon--sent {
@include color-svg('../images/check-circle-outline.svg', $color-gray-60);
}
.module-message-detail__contact__status-icon--delivered {
@include color-svg('../images/double-check.svg', $color-gray-60);
width: 18px;
}
.module-message-detail__contact__status-icon--read {
@include color-svg('../images/read.svg', $color-gray-60);
width: 18px;
}
.module-message-detail__contact__status-icon--error {
@include color-svg('../images/error.svg', $color-core-red);
}
.module-message-detail__contact__unidentified-delivery-icon {
margin-left: 6px;
margin-right: 10px;
width: 20px;
height: 20px;
display: inline-block;
@include color-svg('../images/unidentified-delivery.svg', $color-gray-60);
}
.module-message-detail__contact__error-buttons {
text-align: right;
}
.module-message-detail__contact__show-safety-number {
@include button-reset;
padding: 4px;
color: $color-white;
background-color: $color-light-35;
border-radius: 4px;
}
.module-message-detail__contact__send-anyway {
@include button-reset;
color: $color-white;
background-color: $color-core-red;
margin-left: 5px;
margin-top: 5px;
padding: 4px;
border-radius: 4px;
}
// Module: Media Gallery
.module-media-gallery {
display: flex;
flex-direction: column;
flex-grow: 1;
width: 100%;
height: 100%;
}
.module-media-gallery__tab-container {
display: flex;
flex-grow: 0;
flex-shrink: 0;
cursor: pointer;
width: 100%;
}
.module-media-gallery__tab {
width: 100%;
background-color: $color-light-02;
padding: 20px;
text-align: center;
}
.module-media-gallery__tab--active {
border-bottom: 2px solid $color-signal-blue;
}
.module-media-gallery__content {
display: flex;
flex-grow: 1;
overflow-y: auto;
padding: 20px;
}
.module-media-gallery__sections {
display: flex;
flex-grow: 1;
flex-direction: column;
}
// Module: Attachment Section
.module-attachment-section {
width: 100%;
}
.module-attachment-section__header {
font-size: 14px;
font-weight: normal;
line-height: 28px;
}
.module-attachment-section__items {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
}
// Module: Document List Item
.module-document-list-item {
width: 100%;
height: 72px;
}
.module-document-list-item--with-separator {
border-bottom: 1px solid $color-light-02;
}
.module-document-list-item__content {
cursor: pointer;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
height: 100%;
}
.module-document-list-item__icon {
flex-shrink: 0;
width: 48px;
height: 48px;
@include color-svg('../images/file.svg', $color-light-35);
}
.module-document-list-item__metadata {
display: inline-flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 0;
margin-left: 8px;
margin-right: 8px;
}
.module-document-list-item__file-name {
font-weight: bold;
}
.module-document-list-item__file-size {
display: inline-block;
margin-top: 8px;
font-size: 80%;
}
.module-document-list-item__date {
display: inline-block;
flex-shrink: 0;
}
// Module: Media Grid Item
.module-media-grid-item {
height: 94px;
width: 94px;
cursor: pointer;
background-color: $color-light-10;
margin-right: 4px;
margin-bottom: 4px;
position: relative;
}
.module-media-grid-item__image {
height: 94px;
width: 94px;
object-fit: cover;
}
.module-media-grid-item__icon {
position: absolute;
top: 15px;
bottom: 15px;
left: 15px;
right: 15px;
}
.module-media-grid-item__icon-image {
@include color-svg('../images/image.svg', $color-light-35);
}
.module-media-grid-item__image-container {
height: 94px;
width: 94px;
object-fit: cover;
position: relative;
}
.module-media-grid-item__circle-overlay {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 42px;
height: 42px;
background-color: $color-white;
border-radius: 21px;
}
.module-media-grid-item__play-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 36px;
width: 36px;
@include color-svg('../images/play.svg', $color-signal-blue);
}
.module-media-grid-item__icon-video {
@include color-svg('../images/movie.svg', $color-light-35);
}
.module-media-grid-item__icon-generic {
@include color-svg('../images/file.svg', $color-light-35);
}
/* Module: Empty State*/
.module-empty-state {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
font-size: 28px;
color: $color-light-45;
}
// Module: Conversation List Item
.module-conversation-list-item {
max-width: 300px;
display: flex;
flex-direction: row;
padding-right: 16px;
padding-left: 16px;
align-items: center;
cursor: pointer;
&:hover {
background-color: $color-gray-05;
}
}
.module-conversation-list-item--has-unread {
padding-left: 12px;
border-left: 4px solid $color-signal-blue;
}
.module-conversation-list-item--is-selected {
background-color: $color-gray-05;
}
.module-conversation-list-item__avatar-container {
position: relative;
margin-top: 8px;
margin-bottom: 8px;
}
.module-conversation-list-item__unread-count {
color: $color-white;
background-color: $color-signal-blue;
text-align: center;
padding-top: 1px;
padding-left: 3px;
padding-right: 3px;
position: absolute;
right: -6px;
top: 6px;
font-weight: 300;
font-size: 11px;
letter-spacing: 0.25px;
height: 16px;
min-width: 16px;
line-height: 16px;
border-radius: 8px;
box-shadow: 0px 0px 0px 1px $color-gray-02;
}
.module-conversation-list-item__content {
flex-grow: 1;
margin-left: 12px;
// parent - 48px (for avatar) - 16px (our right margin)
max-width: calc(100% - 64px);
display: flex;
flex-direction: column;
align-items: stretch;
}
.module-conversation-list-item__header {
display: flex;
flex-direction: row;
align-items: center;
}
.module-conversation-list-item__header__name {
flex-grow: 1;
flex-shrink: 1;
font-size: 14px;
line-height: 18px;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: 300;
color: $color-gray-90;
}
.module-conversation-list-item__header__name--with-unread {
font-weight: 300;
}
.module-conversation-list-item__header__timestamp {
flex-shrink: 0;
margin-left: 6px;
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-transform: uppercase;
color: $color-gray-60;
}
.module-conversation-list-item__header__date--has-unread {
font-weight: 300;
color: $color-gray-90;
}
.module-conversation-list-item__message {
display: flex;
flex-direction: row;
align-items: center;
}
.module-conversation-list-item__message__text {
flex-grow: 1;
flex-shrink: 1;
font-size: 13px;
line-height: 18px;
color: $color-gray-60;
height: 1.3em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.module-conversation-list-item__message__text--has-unread {
font-weight: 300;
color: $color-gray-90;
}
.module-conversation-list-item__message__status-icon {
flex-shrink: 0;
margin-top: 2px;
width: 12px;
height: 12px;
display: inline-block;
margin-left: 6px;
}
.module-conversation-list-item__message__status-icon--sending {
@include color-svg('../images/sending.svg', $color-gray-60);
animation: module-conversation-list-item__message__status-icon--spinning 4s
linear infinite;
}
@keyframes module-conversation-list-item__message__status-icon--spinning {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.module-conversation-list-item__message__status-icon--sent {
@include color-svg('../images/check-circle-outline.svg', $color-light-35);
}
.module-conversation-list-item__message__status-icon--delivered {
@include color-svg('../images/double-check.svg', $color-light-35);
width: 18px;
}
.module-conversation-list-item__message__status-icon--read {
@include color-svg('../images/read.svg', $color-light-35);
width: 18px;
}
.module-conversation-list-item__message__status-icon--error {
@include color-svg('../images/error.svg', $color-core-red);
}
// Module: Avatar
.module-avatar {
position: relative;
vertical-align: middle;
display: inline-block;
border-radius: 50%;
img {
object-fit: cover;
border-radius: 50%;
}
}
.module-avatar__label {
width: 100%;
text-align: center;
font-weight: 300;
text-transform: uppercase;
color: $color-white;
}
.module-avatar__icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.module-avatar__icon--group {
@include color-svg('../images/profile-group.svg', $color-white);
}
.module-avatar__icon--direct {
@include color-svg('../images/profile-individual.svg', $color-white);
}
.module-avatar--28 {
height: 28px;
width: 28px;
img {
height: 28px;
width: 28px;
}
}
.module-avatar__label--28 {
font-size: 14px;
line-height: 28px;
}
.module-avatar__icon--28 {
height: 16px;
width: 16px;
}
.module-avatar--36 {
height: 36px;
width: 36px;
img {
height: 36px;
width: 36px;
}
}
.module-avatar__label--36 {
margin-top: 1px;
width: 36px;
font-size: 16px;
letter-spacing: 0.19px;
line-height: 36px;
}
.module-avatar__icon--36 {
height: 20px;
width: 20px;
}
.module-avatar--48 {
height: 48px;
width: 48px;
img {
height: 48px;
width: 48px;
}
}
.module-avatar__label--48 {
width: 48px;
font-size: 20px;
letter-spacing: 0.19px;
line-height: 48px;
}
.module-avatar__icon--48 {
height: 26px;
width: 26px;
}
.module-avatar--80 {
height: 80px;
width: 80px;
img {
height: 80px;
width: 80px;
}
}
.module-avatar__label--80 {
width: 80px;
font-size: 40px;
line-height: 82px;
}
.module-avatar__icon--80 {
height: 42px;
width: 42px;
}
.module-avatar__icon--note-to-self {
width: 70%;
height: 70%;
@include color-svg('../images/note-28.svg', $color-white);
}
.module-avatar--no-image {
background-color: $color-conversation-grey;
}
.module-avatar--signal-blue {
background-color: $color-signal-blue;
}
.module-avatar--red {
background-color: $color-conversation-red;
}
.module-avatar--deep_orange {
background-color: $color-conversation-deep_orange;
}
.module-avatar--brown {
background-color: $color-conversation-brown;
}
.module-avatar--pink {
background-color: $color-conversation-pink;
}
.module-avatar--purple {
background-color: $color-conversation-purple;
}
.module-avatar--indigo {
background-color: $color-conversation-indigo;
}
.module-avatar--blue {
background-color: $color-conversation-blue;
}
.module-avatar--teal {
background-color: $color-conversation-teal;
}
.module-avatar--green {
background-color: $color-conversation-green;
}
.module-avatar--light_green {
background-color: $color-conversation-light_green;
}
.module-avatar--blue_grey {
background-color: $color-conversation-blue_grey;
}
// Module: Main Header
.module-main-header {
height: $header-height;
width: 300px;
padding-left: 16px;
display: flex;
flex-direction: row;
align-items: center;
border-bottom: 1px solid $color-gray-15;
}
.module-main-header__search {
margin-left: 12px;
position: relative;
}
.module-main-header__search__input {
height: 28px;
width: 228px;
border-radius: 14px;
border: solid 1px $color-gray-15;
padding-left: 30px;
padding-right: 30px;
color: $color-gray-90;
font-size: 14px;
&::placeholder {
color: $color-gray-45;
}
&:focus {
border: solid 1px blue;
outline: none;
}
}
.module-main-header__search__icon {
position: absolute;
left: 8px;
top: 6px;
height: 16px;
width: 16px;
cursor: text;
@include color-svg('../images/search.svg', $color-gray-60);
}
.module-main-header__search__cancel-icon {
position: absolute;
right: 8px;
top: 7px;
height: 14px;
width: 14px;
cursor: pointer;
@include color-svg('../images/x-16.svg', $color-gray-60);
}
// Module: Image
.module-image {
overflow: hidden;
position: relative;
display: inline-block;
margin: 1px;
vertical-align: middle;
}
.module-image--with-background {
background-color: $color-white;
}
.module-image__caption-icon {
position: absolute;
top: 6px;
left: 6px;
}
.module-image__with-click-handler {
cursor: pointer;
}
.module-image--soft-corners {
border-radius: 4px;
}
.module-image--curved-top-left {
border-top-left-radius: 16px;
}
.module-image--curved-top-right {
border-top-right-radius: 16px;
}
.module-image--curved-bottom-left {
border-bottom-left-radius: 16px;
}
.module-image--curved-bottom-right {
border-bottom-right-radius: 16px;
}
.module-image--small-curved-top-left {
border-top-left-radius: 10px;
}
.module-image__border-overlay {
position: absolute;
top: 0;
bottom: 0;
z-index: 1;
left: 0;
right: 0;
box-shadow: inset 0px 0px 0px 1px $color-black-015;
}
.module-image__border-overlay--dark {
background-color: $color-black-02;
}
.module-image__loading-placeholder {
display: inline-flex;
flex-direction: row;
align-items: center;
background-color: $color-black-015;
}
.module-image__image {
object-fit: cover;
// redundant with attachment-container, but we get cursor flashing on move otherwise
cursor: pointer;
margin-bottom: -3px;
}
.module-image__bottom-overlay {
height: 48px;
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0) 9%,
rgba(0, 0, 0, 0.02) 17%,
rgba(0, 0, 0, 0.05) 24%,
rgba(0, 0, 0, 0.08) 31%,
rgba(0, 0, 0, 0.12) 37%,
rgba(0, 0, 0, 0.16) 44%,
rgba(0, 0, 0, 0.2) 50%,
rgba(0, 0, 0, 0.24) 56%,
rgba(0, 0, 0, 0.28) 63%,
rgba(0, 0, 0, 0.32) 69%,
rgba(0, 0, 0, 0.35) 76%,
rgba(0, 0, 0, 0.38) 83%,
rgba(0, 0, 0, 0.4) 91%,
rgba(0, 0, 0, 0.4)
);
position: absolute;
bottom: 0;
z-index: 2;
left: 0;
right: 0;
}
.module-image__play-overlay__circle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
background-color: $color-white;
border-radius: 24px;
}
.module-image__play-overlay__icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 36px;
width: 36px;
@include color-svg('../images/play.svg', $color-signal-blue);
}
.module-image__text-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
color: $color-white;
font-size: 20px;
font-weight: normal;
letter-spacing: 0;
text-align: center;
}
.module-image__close-button {
cursor: pointer;
position: absolute;
top: 5px;
right: 5px;
width: 16px;
height: 16px;
z-index: 2;
background-image: url('../images/x-shadow-16.svg');
}
// Module: Image Grid
.module-image-grid {
display: inline-flex;
flex-direction: row;
align-items: center;
margin: -1px;
}
.module-image-grid--one-image {
margin-bottom: -5px;
}
.module-image-grid--with-sticker {
padding: 8px;
}
.module-image-grid__column {
display: inline-flex;
flex-direction: column;
align-items: center;
}
.module-image-grid__row {
display: inline-flex;
flex-direction: row;
align-items: center;
flex-grow: 1;
}
// Module: Typing Animation
.module-typing-animation {
display: inline-flex;
flex-directin: row;
align-items: center;
height: 8px;
width: 38px;
padding-left: 1px;
padding-right: 1px;
}
.module-typing-animation__dot {
border-radius: 50%;
background-color: $color-gray-60;
height: 6px;
width: 6px;
opacity: 0.4;
}
.module-typing-animation__dot--light {
border-radius: 50%;
background-color: $color-white;
height: 6px;
width: 6px;
opacity: 0.4;
}
@keyframes typing-animation-first {
0% {
opacity: 0.4;
}
20% {
transform: scale(1.3);
opacity: 1;
}
40% {
opacity: 0.4;
}
}
@keyframes typing-animation-second {
10% {
opacity: 0.4;
}
30% {
transform: scale(1.3);
opacity: 1;
}
50% {
opacity: 0.4;
}
}
@keyframes typing-animation-third {
20% {
opacity: 0.4;
}
40% {
transform: scale(1.3);
opacity: 1;
}
60% {
opacity: 0.4;
}
}
.module-typing-animation__dot--first {
animation: typing-animation-first 1600ms ease infinite;
}
.module-typing-animation__dot--second {
animation: typing-animation-second 1600ms ease infinite;
}
.module-typing-animation__dot--third {
animation: typing-animation-third 1600ms ease infinite;
}
.module-typing-animation__spacer {
flex-grow: 1;
}
// Module: Attachments
.module-attachments {
border-top: 1px solid $color-black-015;
}
.module-attachments__header {
height: 24px;
position: relative;
}
.module-attachments__close-button {
cursor: pointer;
position: absolute;
top: 8px;
right: 16px;
width: 20px;
height: 20px;
z-index: 2;
@include color-svg('../images/x-16.svg', $color-black);
}
.module-attachments__rail {
margin-top: 12px;
margin-left: 16px;
padding-right: 16px;
overflow-x: scroll;
max-height: 142px;
white-space: nowrap;
overflow-y: hidden;
margin-bottom: 6px;
}
// Module: Staged Generic Attachment
.module-staged-generic-attachment {
height: 120px;
width: 120px;
margin: 1px;
display: inline-block;
position: relative;
border-radius: 4px;
box-shadow: inset 0px 0px 0px 1px $color-black-015;
background-color: $color-gray-05;
vertical-align: middle;
}
.module-staged-generic-attachment__close-button {
cursor: pointer;
position: absolute;
top: 5px;
right: 5px;
width: 16px;
height: 16px;
z-index: 2;
@include color-svg('../images/x-16.svg', $color-black);
}
.module-staged-generic-attachment__icon {
margin-top: 30px;
background: url('../images/file-gradient.svg') no-repeat center;
height: 44px;
width: 56px;
margin-left: 32px;
margin-right: 32px;
margin-bottom: -4px;
// So we can center the extension text inside this icon
display: flex;
flex-direction: row;
align-items: center;
}
.module-staged-generic-attachment__icon__extension {
font-size: 10px;
line-height: 13px;
letter-spacing: 0.1px;
text-transform: uppercase;
// Along with flow layout in parent item, centers text
text-align: center;
width: 25px;
margin-left: auto;
margin-right: auto;
// We don't have much room for text here, cut it off without ellipse
overflow-x: hidden;
white-space: nowrap;
text-overflow: clip;
color: $color-gray-90;
}
.module-staged-generic-attachment__filename {
margin: 7px;
margin-top: 5px;
text-align: center;
font-family: Roboto;
font-size: 14px;
overflow: hidden;
height: 2.4em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}
// Module: Caption Editor
.module-caption-editor {
background-color: $color-black;
z-index: 20;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.module-caption-editor__close-button {
z-index: 21;
cursor: pointer;
position: absolute;
top: 12px;
right: 16px;
width: 30px;
height: 30px;
z-index: 2;
@include color-svg('../images/x-16.svg', $color-white);
}
.module-caption-editor__media-container {
flex-grow: 1;
flex-shrink: 1;
background-color: $color-black;
text-align: center;
margin: 50px;
overflow: hidden;
height: 100%;
}
.module-caption-editor__image {
width: 100%;
height: 100%;
object-fit: contain;
flex-grow: 1;
flex-shrink: 1;
}
.module-caption-editor__video {
max-width: 100%;
max-height: 100%;
object-fit: contain;
flex-grow: 1;
flex-shrink: 1;
}
.module-caption-editor__placeholder {
width: 100%;
height: 100%;
object-fit: contain;
flex-grow: 1;
flex-shrink: 1;
}
.module-caption-editor__bottom-bar {
flex-grow: 0;
flex-shrink: 0;
height: 52px;
padding: 8px;
display: inline-flex;
flex-direction: row;
align-items: middle;
margin-left: auto;
margin-right: auto;
}
.module-caption-editor__input-container {
position: relative;
}
.module-caption-editor__caption-input {
height: 36px;
width: 40em;
font-size: 14px;
color: $color-white;
border: 1px solid $color-white;
border-radius: 18px;
background-color: $color-black;
padding: 9px;
padding-left: 12px;
padding-right: 65px;
&::placeholder {
color: $color-white-07;
}
&:focus {
border: 1px solid $color-signal-blue;
outline: none;
}
}
.module-caption-editor__save-button {
position: absolute;
background-color: $color-signal-blue;
color: $color-white;
cursor: pointer;
height: 28px;
border-radius: 15px;
padding: 5px;
padding-left: 12px;
padding-right: 12px;
right: 4px;
top: 4px;
}
// Module: Staged Placeholder Attachment
.module-staged-placeholder-attachment {
margin: 1px;
border-radius: 4px;
border: 1px solid $color-gray-25;
height: 120px;
width: 120px;
display: inline-block;
vertical-align: middle;
cursor: pointer;
position: relative;
&:hover {
background: $color-gray-05;
}
}
.module-staged-placeholder-attachment__plus-icon {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
height: 36px;
width: 36px;
@include color-svg('../images/plus-36.svg', $color-gray-45);
}
// Module: Staged Link Preview
.module-staged-link-preview {
position: relative;
display: flex;
flex-direction: row;
align-items: flex-start;
min-height: 65px;
}
.module-staged-link-preview--is-loading {
align-items: center;
}
.module-staged-link-preview__loading {
color: $color-gray-60;
font-size: 14px;
text-align: center;
flex-grow: 1;
flex-shrink: 1;
}
.module-staged-link-preview__icon-container {
margin-right: 8px;
}
.module-staged-link-preview__content {
margin-right: 20px;
}
.module-staged-link-preview__title {
color: $color-gray-90;
font-weight: 300;
font-size: 14px;
line-height: 18px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.module-staged-link-preview__location {
margin-top: 4px;
color: $color-gray-60;
font-size: 11px;
height: 16px;
letter-spacing: 0.25px;
text-transform: uppercase;
}
.module-staged-link-preview__close-button {
cursor: pointer;
position: absolute;
top: 0px;
right: 0px;
height: 16px;
width: 16px;
@include color-svg('../images/x-16.svg', $color-gray-60);
}
// Module: Spinner
.module-spinner__container {
margin-left: auto;
margin-right: auto;
position: relative;
height: 56px;
width: 56px;
}
.module-spinner__circle {
position: absolute;
top: 0;
left: 0;
@include color-svg('../images/spinner-track-56.svg', $color-white-04);
z-index: 2;
height: 56px;
width: 56px;
}
.module-spinner__arc {
position: absolute;
top: 0;
left: 0;
@include color-svg('../images/spinner-56.svg', $color-gray-60);
z-index: 3;
height: 56px;
width: 56px;
animation: spinner-arc-animation 1000ms linear infinite;
}
@keyframes spinner-arc-animation {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
100% {
transform: rotate(360deg);
}
}
// In these --small and --mini sizes, we're exploding our @color-svg mixin so we don't
// have to duplicate our background colors for the dark/ios/size matrix.
.module-spinner__container--small {
height: 24px;
width: 24px;
}
.module-spinner__circle--small {
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
-webkit-mask-size: 100%;
height: 24px;
width: 24px;
}
.module-spinner__arc--small {
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
-webkit-mask-size: 100%;
height: 24px;
width: 24px;
}
.module-spinner__container--mini {
height: 14px;
width: 14px;
}
.module-spinner__circle--mini {
-webkit-mask: url('../images/spinner-track-24.svg') no-repeat center;
-webkit-mask-size: 100%;
height: 14px;
width: 14px;
}
.module-spinner__arc--mini {
-webkit-mask: url('../images/spinner-24.svg') no-repeat center;
-webkit-mask-size: 100%;
height: 14px;
width: 14px;
}
.module-spinner__circle--incoming {
background-color: $color-white-04;
}
.module-spinner__arc--incoming {
background-color: $color-white;
}
// Module: Highlighted Message Body
.module-message-body__highlight {
font-weight: bold;
}
// Module: Search Results
.module-search-results {
overflow-y: scroll;
max-height: 100%;
}
.module-search-results__conversations-header {
height: 36px;
line-height: 36px;
margin-left: 16px;
font-size: 14px;
font-weight: 300;
letter-spacing: 0;
}
.module-search-results__no-results {
margin-top: 27px;
width: 100%;
text-align: center;
}
.module-search-results__contacts-header {
height: 36px;
line-height: 36px;
margin-left: 16px;
font-size: 14px;
font-weight: 300;
letter-spacing: 0;
}
.module-search-results__messages-header {
height: 36px;
line-height: 36px;
margin-left: 16px;
font-size: 14px;
font-weight: 300;
letter-spacing: 0;
}
// Module: Message Search Result
.module-message-search-result {
padding: 8px;
padding-left: 16px;
padding-right: 16px;
min-height: 64px;
max-width: 300px;
display: flex;
flex-direction: row;
align-items: flex-start;
cursor: pointer;
&:hover {
background-color: $color-gray-05;
}
}
.module-message-search-result--is-selected {
background-color: $color-gray-05;
}
.module-message-search-result__text {
flex-grow: 1;
margin-left: 12px;
// parent - 48px (for avatar) - 16px (our right margin)
max-width: calc(100% - 64px);
display: inline-flex;
flex-direction: column;
align-items: stretch;
}
.module-message-search-result__header {
display: flex;
flex-direction: row;
align-items: center;
}
.module-message-search-result__header__from {
flex-grow: 1;
flex-shrink: 1;
font-size: 14px;
line-height: 18px;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: $color-gray-90;
}
.module-message-search-result__header__timestamp {
flex-shrink: 0;
margin-left: 6px;
font-size: 11px;
line-height: 16px;
letter-spacing: 0.3px;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-transform: uppercase;
color: $color-gray-60;
}
.module-message-search-result__header__name {
font-weight: 300;
}
.module-mesages-search-result__header__group {
font-weight: 300;
}
.module-message-search-result__body {
margin-top: 1px;
flex-grow: 1;
flex-shrink: 1;
font-size: 13px;
color: $color-gray-60;
max-height: 3.6em;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
// Note: -webkit-line-clamp doesn't work for RTL text, and it forces you to use
// ... as the truncation indicator. That's not a solution that works well for
// all languages. More resources:
// - http://hackingui.com/front-end/a-pure-css-solution-for-multiline-text-truncation/
// - https://medium.com/mofed/css-line-clamp-the-good-the-bad-and-the-straight-up-broken-865413f16e5
}
// Module: Left Pane
.module-left-pane {
background-color: $color-gray-02;
border-right: 1px solid $color-gray-15;
display: inline-flex;
flex-direction: column;
width: 300px;
height: 100%;
}
.module-left-pane__header {
flex-shrink: 0;
flex-grow: 0;
}
.module-left-pane__archive-header {
height: 48px;
width: 100%;
display: inline-flex;
flex-direction: row;
align-items: center;
border-bottom: 1px solid $color-gray-15;
}
.module-left-pane__to-inbox-button {
margin-left: 2px;
width: 35px;
height: 35px;
cursor: pointer;
@include color-svg('../images/back.svg', $color-gray-60);
}
.module-left-pane__archive-header-text {
color: $color-gray-90;
font-size: 16px;
font-weight: 300px;
}
.module-left-pane__archive-helper-text {
flex-grow: 0;
flex-shrink: 0;
padding: 1em;
font-size: 12px;
color: $color-gray-60;
background-color: $color-gray-05;
}
.module-left-pane__list {
flex-grow: 1;
flex-shrink: 1;
}
.module-left-pane__virtual-list {
outline: none;
}
.module-left-pane__archived-button {
font-size: 14px;
height: 64px;
line-height: 64px;
text-align: center;
font-weight: 300;
color: $color-gray-60;
cursor: pointer;
&:hover {
background-color: $color-gray-05;
}
}
.module-left-pane__archived-button__archived-count {
font-size: 12px;
font-weight: 300;
color: $color-gray-60;
background-color: $color-gray-05;
padding: 6px;
padding-top: 1px;
padding-bottom: 1px;
border-radius: 10px;
}
// Module: Start New Conversation
.module-start-new-conversation {
display: flex;
flex-direction: row;
align-items: center;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 16px;
cursor: pointer;
&:hover {
background-color: $color-gray-05;
}
}
.module-start-new-conversation__content {
margin-left: 12px;
}
.module-start-new-conversation__number {
font-weight: 300;
}
.module-start-new-conversation__text {
margin-top: 3px;
font-style: italic;
color: $color-gray-60;
font-size: 13px;
}
// Module: Timeline
.module-timeline {
height: 100%;
}
.module-timeline__message-container {
padding-top: 10px;
}
.ReactVirtualized__List {
outline: none;
}
// Module: CompositionPopper
%module-composition-popper {
width: 332px;
border-radius: 8px;
margin-bottom: 6px;
z-index: 2;
user-select: none;
overflow: hidden;
@include popper-shadow();
@include light-theme {
background: $color-gray-02;
::-webkit-scrollbar-thumb {
border: 2px solid $color-gray-02;
}
}
@include dark-theme {
background: $color-gray-75;
::-webkit-scrollbar-thumb {
border: 2px solid $color-gray-75;
}
}
}
// Module: StickerPicker
.module-sticker-picker {
@extend %module-composition-popper;
height: 400px;
display: grid;
grid-template-rows: 44px 1fr;
grid-template-columns: 1fr;
}
.module-sticker-picker__header {
display: flex;
flex-direction: row;
padding: 0 8px;
justify-content: flex-start;
align-items: center;
}
.module-sticker-picker__header__packs {
width: 288px;
overflow: hidden;
position: relative;
&__slider {
display: flex;
flex-direction: row;
transform: translateX(0);
transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
}
.module-sticker-picker__header__button {
width: 28px;
height: 28px;
border: 0;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
background: none;
margin-right: 4px;
&:active,
&:focus {
outline: none;
}
&--selected {
@include light-theme {
background: $color-gray-10;
}
@include dark-theme {
background: $color-gray-60;
}
}
&--recents,
&--add-pack {
&::after {
content: '';
display: block;
min-width: 20px;
min-height: 20px;
}
}
&--recents {
&::after {
@include light-theme {
@include color-svg('../images/recent-outline.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/recent-outline.svg', $color-gray-25);
}
}
}
&--add-pack {
&::after {
@include light-theme {
@include color-svg('../images/plus-20.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/plus-20.svg', $color-gray-25);
}
}
}
&--prev-page,
&--next-page {
top: 0;
margin: 0;
border-radius: 0;
&::after {
content: '';
display: block;
min-width: 12px;
min-height: 12px;
}
@include light-theme {
background: $color-gray-02;
}
@include dark-theme {
background: $color-gray-75;
}
}
&--prev-page {
position: absolute;
left: 0;
&::after {
@include light-theme {
@include color-svg('../images/chevron-left-12.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/chevron-left-12.svg', $color-gray-25);
}
}
}
&--next-page {
position: absolute;
right: 0;
&::after {
@include light-theme {
@include color-svg('../images/chevron-right-12.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/chevron-right-12.svg', $color-gray-25);
}
}
}
&--error {
position: relative;
&::before {
display: block;
content: '';
width: 12px;
height: 12px;
position: absolute;
left: 14px;
top: 2px;
@include color-svg('../images/error-filled.svg', $color-core-red);
}
}
&--hint {
position: relative;
&::before {
display: block;
content: '';
position: absolute;
top: 0;
right: 0;
width: 14px;
height: 14px;
border-radius: 7px;
background: $color-signal-blue;
}
}
}
.module-sticker-picker__header__button__image {
min-width: 20px;
min-height: 20px;
max-width: 20px;
max-height: 20px;
}
.module-sticker-picker__header__button__image--placeholder {
min-width: 20px;
min-height: 20px;
max-width: 20px;
max-height: 20px;
background-color: $color-gray-10;
}
.module-sticker-picker__body {
position: relative;
&__content {
width: 332px;
height: 356px;
padding: 8px 20px 16px 16px;
overflow-y: auto;
display: grid;
grid-gap: 8px;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 68px;
&--under-text {
height: 320px;
}
&--under-long-text {
height: 304px;
}
}
&__cell {
border: none;
background: none;
padding: 0;
width: 68px;
height: 68px;
display: flex;
justify-content: center;
align-items: center;
&__image,
&__placeholder {
width: 100%;
height: 100%;
}
&__placeholder {
border-radius: 4px;
@include light-theme() {
background-color: $color-gray-05;
}
@include dark-theme() {
background-color: $color-gray-60;
}
}
}
&--empty {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
&__text {
font-family: Roboto;
font-weight: 300;
font-size: 14px;
text-align: center;
padding: 8px 16px 12px 0;
@include light-theme() {
color: $color-gray-60;
}
@include dark-theme() {
color: $color-gray-25;
}
&:only-child {
padding: 0 0 28px 0; // header height to offset the text so it is centered in the whole picker
}
&--error {
@include light-theme() {
color: $color-core-red;
}
@include dark-theme() {
color: $color-core-red;
}
}
&--hint {
@include light-theme() {
color: $color-signal-blue;
}
@include dark-theme() {
color: $color-signal-blue;
}
}
&--pin {
padding: 8px 16px 12px 0px;
position: absolute;
top: 0;
}
}
}
// Module: StickerManager
.module-sticker-manager {
padding: 0 16px;
}
.module-sticker-manager__text {
height: 18px;
font-size: 13px;
font-weight: normal;
font-family: Roboto;
letter-spacing: 0px;
line-height: 18px;
@include light-theme() {
color: $color-gray-60;
}
@include dark-theme() {
color: $color-gray-25;
}
&--heading {
font-size: 14px;
font-weight: 300;
@include light-theme() {
color: $color-gray-90;
}
@include dark-theme() {
color: $color-gray-05;
}
}
}
.module-sticker-manager__empty {
display: flex;
justify-content: center;
align-items: center;
height: 64px;
border-radius: 8px;
font-family: Roboto-Light;
font-size: 13px;
@include light-theme {
background: $color-gray-02;
color: $color-gray-60;
}
@include dark-theme {
background: $color-gray-90;
color: $color-gray-25;
}
}
.module-sticker-manager__pack-row {
display: flex;
flex-direction: row;
padding: 16px 0;
&:hover {
cursor: pointer;
}
& + & {
border-top: 1px solid $color-gray-15;
}
&__cover {
width: 48px;
height: 48px;
}
&__cover-placeholder {
width: 48px;
height: 48px;
background: $color-gray-10;
}
&__meta {
flex-grow: 1;
display: flex;
flex-direction: column;
&:not(:first-child) {
padding: 0 12px;
}
&__title {
flex: 1;
}
&__author {
flex: 1;
font-family: Roboto-Light;
font-size: 13px;
@include light-theme() {
color: $color-gray-60;
}
@include dark-theme() {
color: $color-gray-25;
}
}
&__blessed-icon {
height: 16px;
width: 16px;
display: inline-block;
margin-left: 3px;
vertical-align: top;
background-image: url('../images/check-circle-filled-16.svg');
}
}
&__controls {
flex-shrink: 1;
display: flex;
justify-content: center;
align-items: center;
&__button {
background: none;
border: 0;
&--menu {
&:after {
content: '';
display: block;
min-width: 24px;
min-height: 24px;
@include light-theme {
@include color-svg('../images/more-h.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/more-h.svg', $color-gray-25);
}
}
}
}
}
}
.module-sticker-manager__install-button {
background: none;
border: 0;
font-family: Roboto;
color: $color-gray-90;
font-weight: 300;
font-size: 13px;
height: 24px;
background: $color-gray-05;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 12px;
@include dark-theme {
color: $color-gray-05;
background: $color-gray-75;
}
&--blue {
@include light-theme {
background: $color-signal-blue;
color: $color-white;
}
@include dark-theme {
background: $color-signal-blue;
color: $color-white;
}
}
}
.module-sticker-manager__preview-modal {
&__overlay {
background: rgba(0, 0, 0, 0.4);
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
z-index: 5;
}
&__container {
position: relative;
border-radius: 8px;
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
width: 440px;
height: 360px;
overflow: hidden;
display: flex;
flex-direction: column;
@include light-theme {
background: $color-white;
}
@include dark-theme {
background: $color-gray-75;
}
&__error {
color: $color-core-red;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width: 100%;
height: 100%;
padding: 0 80px 30px 80px;
font-family: Roboto;
font-weight: 300;
}
&__header {
display: flex;
flex-direction: row;
flex-shrink: 0;
height: 36px;
padding: 0 8px 0 16px;
justify-content: space-between;
align-items: center;
&__text {
font-weight: 300;
font-size: 14px;
color: $color-gray-90;
@include dark-theme {
color: $color-gray-05;
}
}
&__close-button {
border: none;
width: 20px;
height: 20px;
@include light-theme {
@include color-svg('../images/x.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/x.svg', $color-gray-05);
}
}
}
&__sticker-grid {
width: 100%;
display: grid;
grid-gap: 8px;
grid-template-columns: repeat(4, 1fr);
overflow-y: auto;
padding: 0 16px 80px 16px;
&__cell {
width: 96px;
height: 96px;
&__image {
width: 100%;
height: 100%;
}
&--placeholder {
border-radius: 4px;
@include light-theme() {
background: $color-gray-05;
}
@include dark-theme() {
background: $color-gray-60;
}
}
}
}
&__meta-overlay {
border-radius: 4px;
width: 408px;
height: 52px;
position: absolute;
left: 16px;
bottom: 16px;
padding: 0 12px;
display: flex;
flex-direction: row;
align-items: center;
@include light-theme {
background: $color-gray-05;
}
@include dark-theme {
background: $color-gray-60;
}
&__info {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
&__title {
margin: 0;
font-size: 16px;
font-weight: 300;
height: 20px;
line-height: 20px;
@include light-theme {
color: $color-gray-90;
}
@include dark-theme {
color: $color-gray-05;
}
}
&__author {
margin: 0;
font-family: Roboto-Light;
font-size: 13px;
height: 18px;
line-height: 18px;
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
}
&__blessed-icon {
height: 16px;
width: 16px;
display: inline-block;
margin-left: 3px;
vertical-align: top;
@include light-theme {
background-image: url('../images/check-circle-filled-16.svg');
}
@include dark-theme {
background-image: url('../images/check-circle-filled-16.svg');
}
}
}
&__install {
flex-shrink: 1;
}
}
}
}
// Module: Sticker button (launches the sticker picker)
.sticker-button-wrapper {
height: 36px;
display: flex;
justify-content: center;
align-items: center;
margin-left: 6px;
}
.module-sticker-button__button {
border: 0;
background: none;
width: 32px;
height: 32px;
border-radius: 16px;
display: flex;
justify-content: center;
align-items: center;
opacity: 0.5;
&:hover {
opacity: 1;
}
&:after {
display: block;
content: '';
width: 24px;
height: 24px;
flex-shrink: 0;
@include light-theme {
@include color-svg('../images/sticker-filled.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/sticker-filled.svg', $color-gray-25);
}
}
&--active {
@include light-theme() {
background: $color-gray-10;
}
@include dark-theme() {
background: $color-gray-75;
}
opacity: 1;
}
}
.module-sticker-button__tooltip {
height: 34px;
display: flex;
justify-content: center;
align-items: center;
padding: 7px 12px;
border-radius: 8px;
margin-bottom: 6px;
z-index: 1;
@include light-theme {
background: $color-white;
}
@include dark-theme {
background: $color-gray-75;
}
@include popper-shadow();
&__triangle {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 8px 8px 0 8px;
@include light-theme {
border-color: $color-white transparent transparent transparent;
}
@include dark-theme {
border-color: $color-gray-75 transparent transparent transparent;
}
&--top-end {
top: 34px;
}
&--introduction {
top: 72px;
}
}
&__image {
width: 20px;
height: 20px;
}
&__image-placeholder {
width: 20px;
height: 20px;
background-color: $color-gray-10;
}
&__text {
margin-left: 4px;
font-size: 14px;
cursor: default;
@include light-theme {
color: $color-gray-90;
}
@include dark-theme {
color: $color-gray-05;
}
&__title {
font-weight: 300;
}
}
&--introduction {
width: 420px;
height: 72px;
display: flex;
flex-direction: row;
// &__image {
// width: 52px;
// height: 52px;
// background: $color-gray-10;
// }
&__meta {
flex-grow: 1;
padding: 0 12px;
display: flex;
flex-direction: column;
justify-content: center;
@include light-theme {
color: $color-gray-90;
}
@include dark-theme {
color: $color-gray-05;
}
&__title {
margin: 0;
font-size: 14px;
font-weight: 300;
height: 16px;
line-height: 20px;
}
&__subtitle {
margin-top: 3px;
font-size: 14px;
height: 16px;
}
}
&__close {
flex-shrink: 1;
height: 100%;
&__button {
width: 20px;
height: 20px;
border: none;
@include light-theme {
@include color-svg('../images/x.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/x.svg', $color-gray-05);
}
}
}
}
}
// Module: confirmation dialog
.module-confirmation-dialog {
&__overlay {
background: rgba(0, 0, 0, 0.4);
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
z-index: 5;
}
&__container {
width: 360px;
padding: 12px 16px;
border-radius: 8px;
@include popper-shadow();
@include light-theme() {
background: $color-white;
color: $color-gray-90;
}
@include dark-theme() {
background: $color-gray-75;
color: $color-gray-05;
}
&__content {
margin-bottom: 20px;
}
&__buttons {
display: flex;
flex-direction: row;
justify-content: flex-end;
&__button {
margin-left: 4px;
border-radius: 14px;
height: 28px;
padding: 5px 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 13px;
font-weight: 500;
font-family: Roboto;
@include light-theme() {
background: $color-white;
color: $color-gray-60;
border: 1px solid $color-gray-60;
}
@include dark-theme() {
background: $color-gray-75;
color: $color-gray-25;
border: 1px solid $color-gray-25;
}
&--negative {
@include light-theme() {
border: none;
background: $color-core-red;
color: $color-white;
}
@include dark-theme() {
border: none;
background: $color-core-red;
color: $color-white;
}
}
&--affirmative {
@include light-theme() {
border: none;
background: $color-core-green;
color: $color-white;
}
@include dark-theme() {
border: none;
background: $color-core-green;
color: $color-white;
}
}
}
}
}
}
// Module: Emoji Picker
%module-emoji-picker--ribbon {
height: 44px;
display: flex;
flex-direction: row;
align-items: center;
}
.module-emoji-picker {
@extend %module-composition-popper;
height: 428px;
display: grid;
grid-template-rows: 44px 1fr;
grid-template-columns: 1fr;
&__header {
@extend %module-emoji-picker--ribbon;
justify-content: space-between;
margin: 0 12px;
&__search-field {
flex-grow: 1;
margin-left: 8px;
position: relative;
&::after {
display: block;
content: '';
width: 16px;
height: 16px;
position: absolute;
left: 8px;
top: 6px;
@include light-theme {
@include color-svg('../images/search.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/search.svg', $color-gray-25);
}
}
&__input {
width: 100%;
height: 28px;
line-height: 28px;
font-size: 14px;
border-radius: 17px;
border-width: 1px;
border-style: solid;
padding: 0 8px 0 30px;
&:focus {
outline: none;
}
@include light-theme {
background: $color-white;
color: $color-gray-90;
border-color: $color-gray-60;
&:focus {
border-color: $color-signal-blue;
}
&::placeholder {
color: $color-gray-45;
}
}
@include dark-theme {
border-color: $color-gray-25;
background: $color-gray-75;
color: $color-gray-05;
&:focus {
border-color: $color-signal-blue;
}
&::placeholder {
color: $color-gray-45;
}
}
}
}
}
&__footer {
@extend %module-emoji-picker--ribbon;
justify-content: center;
}
&__button {
width: 28px;
height: 28px;
border: none;
border-radius: 8px;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background: none;
&--footer {
&:not(:first-of-type) {
margin-left: 4px;
}
}
&--selected {
@include light-theme {
background: $color-gray-10;
}
@include dark-theme {
background: $color-gray-60;
}
}
&--icon {
display: flex;
justify-content: center;
align-items: center;
&::after {
display: block;
content: '';
width: 20px;
height: 20px;
}
&--search {
&::after {
@include light-theme {
@include color-svg('../images/search.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/search.svg', $color-gray-25);
}
}
}
&--close {
&::after {
@include light-theme {
@include color-svg('../images/x.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/x.svg', $color-gray-25);
}
}
}
&--recents {
&::after {
@include light-theme {
@include color-svg(
'../images/recent-outline-20.svg',
$color-gray-60
);
}
@include dark-theme {
@include color-svg(
'../images/recent-outline-20.svg',
$color-gray-25
);
}
}
}
&--emoji {
&::after {
@include light-theme {
@include color-svg(
'../images/emoji-outline-20.svg',
$color-gray-60
);
}
@include dark-theme {
@include color-svg('../images/emoji-filled-20.svg', $color-gray-25);
}
}
}
$categories: animal food activity travel object symbol flag;
@each $cat in $categories {
&--#{$cat} {
&::after {
@include light-theme {
@include color-svg(
'../images/emoji-#{$cat}-outline-20.svg',
$color-gray-60
);
}
@include dark-theme {
@include color-svg(
'../images/emoji-#{$cat}-filled-20.svg',
$color-gray-25
);
}
}
}
}
}
}
&__body {
padding: 8px 16px 0 12px;
&__emoji-cell {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
}
&--empty {
display: flex;
padding: 0;
justify-content: center;
align-items: center;
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
}
}
}
// Module: EmojiButton
.emoji-button-wrapper {
height: 36px;
display: flex;
justify-content: center;
align-items: center;
margin: 0 6px;
padding-top: 4px;
}
.module-emoji-button__button {
border: 0;
background: none;
width: 32px;
height: 32px;
border-radius: 16px;
display: flex;
justify-content: center;
align-items: center;
opacity: 0.5;
&:hover {
opacity: 1;
}
&:after {
display: block;
content: '';
width: 24px;
height: 24px;
flex-shrink: 0;
@include light-theme {
@include color-svg('../images/smile.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/smile.svg', $color-gray-25);
}
}
&--active {
@include light-theme() {
background: $color-gray-10;
}
@include dark-theme() {
background: $color-gray-75;
}
opacity: 1;
}
}
// Module: Emoji
@mixin emoji-size($size, $emoji-sheet-columns: 52) {
&--#{$size} {
width: $size;
height: $size;
background-size: $emoji-sheet-columns * $size;
}
}
.module-emoji {
display: block;
background-image: url('../node_modules/emoji-datasource-apple/img/apple/sheets-256/64.png');
@include emoji-size(16px);
@include emoji-size(20px);
@include emoji-size(28px);
@include emoji-size(32px);
@include emoji-size(64px);
@include emoji-size(66px);
&--inline {
display: inline-block;
}
}
// Module: Unsupported Message
.module-unsupported-message {
margin-top: 14px;
text-align: center;
}
.module-unsupported-message__icon {
height: 24px;
width: 24px;
margin-left: auto;
margin-right: auto;
margin-bottom: 7px;
@include light-theme {
@include color-svg('../images/error.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/error.svg', $color-dark-30);
}
}
.module-unsupported-message__icon--can-process {
@include light-theme {
@include color-svg('../images/check-circle-outline.svg', $color-gray-60);
}
@include dark-theme {
@include color-svg('../images/check-circle-outline.svg', $color-dark-30);
}
}
.module-unsupported-message__text {
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
max-width: 396px;
margin-left: auto;
margin-right: auto;
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-dark-30;
}
}
.module-unsupported-message__contact {
font-weight: 300;
}
.module-unsupported-message__button {
margin-top: 5px;
display: inline-block;
cursor: pointer;
font-size: 13px;
font-weight: 300;
line-height: 18px;
padding: 12px;
border-radius: 4px;
@include light-theme {
color: $color-signal-blue;
background-color: $color-light-02;
}
@include dark-theme {
color: $color-signal-blue;
background-color: $color-gray-75;
}
}
// Third-party module: react-contextmenu
.react-contextmenu {
background-color: $color-light-02;
border-radius: 4px;
min-width: 160px;
padding: 0px;
padding-top: 8px;
padding-bottom: 8px;
border: 1px solid $color-dark-05;
opacity: 0;
user-select: none;
}
.react-contextmenu--visible {
z-index: 1000;
opacity: 1;
}
.react-contextmenu-item {
color: $color-gray-90;
cursor: pointer;
font-size: 13px;
line-height: 18px;
white-space: nowrap;
padding-left: 16px;
padding-top: 3px;
padding-bottom: 2px;
padding-right: 16px;
}
.react-contextmenu-item--checked:before {
content: '';
display: inline-block;
position: absolute;
right: 7px;
color: $color-gray-90;
}
.react-contextmenu-item.react-contextmenu-submenu {
padding: 0;
}
.react-contextmenu-item.react-contextmenu-submenu > .react-contextmenu-item {
padding-right: 36px;
}
.react-contextmenu-item.react-contextmenu-submenu
> .react-contextmenu-item:after {
content: '\25B6';
display: inline-block;
position: absolute;
right: 7px;
color: $color-gray-90;
}
.react-contextmenu-item.react-contextmenu-item--active,
.react-contextmenu-item.react-contextmenu-item--selected {
color: $color-white;
background-color: $color-light-35;
}
.react-contextmenu-item.react-contextmenu-item--active.react-contextmenu-item--checked:before,
.react-contextmenu-item.react-contextmenu-item--selected.react-contextmenu-item--checked:before {
color: $color-white;
}
.react-contextmenu-item.react-contextmenu-submenu
> .react-contextmenu-item.react-contextmenu-item--active:after,
.react-contextmenu-item.react-contextmenu-submenu
> .react-contextmenu-item.react-contextmenu-item--selected:after {
color: $color-white;
}
// All media query widths have 300px added to account for the left pane
// And have been tweaked for smoother transitions
// To hide in small breakpoints
.module-message__buttons__download {
display: none;
}
.module-message__buttons__reply {
display: none;
}
// To limit messages with things forcing them wider, like long attachment names
.module-message__container {
max-width: 300px;
}
/* Spec: container > 438px and container < 593px*/
@media (min-width: 800px) and (max-width: 925px) {
.module-message {
max-width: 374px;
}
.module-message__container {
max-width: 100%;
}
// Spec: container < 438px
.module-message--incoming {
margin-left: 0;
margin-right: auto;
}
.module-message--outgoing {
margin-right: 0;
margin-left: auto;
}
// To hide in small breakpoints
.module-message__buttons__download {
display: inline-block;
}
.module-message__buttons__reply {
display: inline-block;
}
// To hide in larger breakpoints
.module-message__context__download {
display: none;
}
.module-message__context__reply {
display: none;
}
}
// Spec: container > 593px
@media (min-width: 926px) {
.module-message {
max-width: 66%;
}
.module-message__container {
max-width: 100%;
}
.module-message--incoming {
margin-left: 0;
margin-right: auto;
}
.module-message--outgoing {
margin-right: 0;
margin-left: auto;
}
// To hide in small breakpoints
.module-message__buttons__download {
display: inline-block;
}
.module-message__buttons__reply {
display: inline-block;
}
// To hide in larger breakpoints
.module-message__context__download {
display: none;
}
.module-message__context__reply {
display: none;
}
}