2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-08-26 20:51:55 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
@mixin system-message-icon($light, $dark) {
|
|
|
|
@include light-theme {
|
|
|
|
-webkit-mask: url($light) no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
-webkit-mask: url($dark) no-repeat center;
|
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.SystemMessage {
|
|
|
|
@include font-body-2;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2021-09-07 19:55:03 +00:00
|
|
|
flex-direction: column;
|
2021-08-26 20:51:55 +00:00
|
|
|
justify-content: center;
|
2021-09-07 19:55:03 +00:00
|
|
|
line-height: 16px;
|
2022-03-08 14:32:42 +00:00
|
|
|
padding-bottom: 16px;
|
|
|
|
padding-top: 16px;
|
2021-08-26 20:51:55 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2021-09-07 19:55:03 +00:00
|
|
|
color: $color-gray-60;
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&__contents {
|
|
|
|
max-width: 400px;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
p {
|
|
|
|
display: block;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block-start: 0;
|
|
|
|
margin-block-end: 4px;
|
|
|
|
margin-inline-start: 0;
|
|
|
|
margin-inline-end: 0;
|
2021-08-26 20:51:55 +00:00
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&:first-child {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-block-end: 0;
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2021-09-07 19:55:03 +00:00
|
|
|
width: 16px;
|
2023-05-04 18:04:22 +00:00
|
|
|
vertical-align: text-top;
|
2021-08-26 20:51:55 +00:00
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-25;
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-audio-incoming::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-compact.svg',
|
|
|
|
'../images/icons/v3/phone/phone-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-audio-missed::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-compact.svg',
|
|
|
|
'../images/icons/v3/phone/phone-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-audio-outgoing::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-compact.svg',
|
|
|
|
'../images/icons/v3/phone/phone-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/group/group-compact.svg',
|
|
|
|
'../images/icons/v3/group/group-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-access::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/megaphone/megaphone-compact.svg',
|
|
|
|
'../images/icons/v3/megaphone/megaphone-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-add::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
|
|
|
'../images/icons/v2/member-added-16.svg',
|
|
|
|
'../images/icons/v2/member-added-solid-16.svg'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-approved::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
|
|
|
'../images/icons/v2/member-accepted-16.svg',
|
|
|
|
'../images/icons/v2/member-accepted-solid-16.svg'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-avatar::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/photo/photo-square-compact.svg',
|
|
|
|
'../images/icons/v3/photo/photo-square-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-decline::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
|
|
|
'../images/icons/v2/member-declined-16.svg',
|
|
|
|
'../images/icons/v2/member-declined-solid-16.svg'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-edit::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/edit/edit-compact.svg',
|
|
|
|
'../images/icons/v3/edit/edit-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-leave::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/leave/leave-compact.svg',
|
|
|
|
'../images/icons/v3/leave/leave-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-group-remove::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
|
|
|
'../images/icons/v2/member-remove-16.svg',
|
|
|
|
'../images/icons/v2/member-remove-solid-16.svg'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-12-06 21:12:57 +00:00
|
|
|
&--icon-group-summary::before {
|
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/info/info-compact.svg',
|
|
|
|
'../images/icons/v3/info/info-compact.svg'
|
2022-12-06 21:12:57 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-info::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/info/info-compact.svg',
|
|
|
|
'../images/icons/v3/info/info-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-phone::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-compact.svg',
|
|
|
|
'../images/icons/v3/phone/phone-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-profile::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/person/person-compact.svg',
|
|
|
|
'../images/icons/v3/person/person-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-safety-number::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number-compact.svg',
|
|
|
|
'../images/icons/v3/safety_number/safety_number-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-session-refresh::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/refresh/refresh.svg',
|
|
|
|
'../images/icons/v3/refresh/refresh.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-timer::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/timer/timer-compact.svg',
|
|
|
|
'../images/icons/v3/timer/timer-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-timer-disabled::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/timer/timer-slash-compact.svg',
|
|
|
|
'../images/icons/v3/timer/timer-slash-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-unsupported::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle-compact.svg',
|
|
|
|
'../images/icons/v3/error/error-circle-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
2021-09-07 19:55:03 +00:00
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-unsupported--can-process::before {
|
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-circle-compact.svg',
|
|
|
|
'../images/icons/v3/check/check-circle-compact.svg'
|
2021-09-07 19:55:03 +00:00
|
|
|
);
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-verified::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/check/check-compact.svg',
|
|
|
|
'../images/icons/v3/check/check-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-verified-not::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number-compact.svg',
|
|
|
|
'../images/icons/v3/safety_number/safety_number-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-video::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-compact.svg',
|
|
|
|
'../images/icons/v3/video/video-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-video-incoming::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-compact.svg',
|
|
|
|
'../images/icons/v3/video/video-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-video-missed::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-compact.svg',
|
|
|
|
'../images/icons/v3/video/video-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-video-outgoing::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-compact.svg',
|
|
|
|
'../images/icons/v3/video/video-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&--icon-warning::before {
|
2021-08-26 20:51:55 +00:00
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/error/error-circle-compact.svg',
|
|
|
|
'../images/icons/v3/error/error-circle-compact.svg'
|
2021-08-26 20:51:55 +00:00
|
|
|
);
|
|
|
|
}
|
2022-11-30 21:47:54 +00:00
|
|
|
|
|
|
|
&--icon-payment-event::before {
|
|
|
|
@include system-message-icon(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/payment/payment.svg',
|
|
|
|
'../images/icons/v3/payment/payment.svg'
|
2022-11-30 21:47:54 +00:00
|
|
|
);
|
|
|
|
}
|
2023-01-12 22:18:08 +00:00
|
|
|
|
|
|
|
&--icon-merge::before {
|
|
|
|
@include system-message-icon(
|
2023-05-23 21:14:47 +00:00
|
|
|
'../images/icons/v3/merge/merge-compact.svg',
|
|
|
|
'../images/icons/v3/merge/merge-compact.svg'
|
2023-01-12 22:18:08 +00:00
|
|
|
);
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
2023-01-12 23:33:22 +00:00
|
|
|
.SystemMessage__contents::before {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--danger {
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-accent-red;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-accent-red;
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
.SystemMessage__contents::before {
|
2023-01-12 23:33:22 +00:00
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
}
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-07 19:55:03 +00:00
|
|
|
&__button-container {
|
|
|
|
margin-top: 12px;
|
2021-08-26 20:51:55 +00:00
|
|
|
}
|
|
|
|
}
|