mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-05 11:38:00 +00:00
466f60ead5
* Switch to Compound icons to replace old icons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Apply same treatment to missed icons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove duplicated icon Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update icon Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in ImageView Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in ExtensionsCard Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in LegacyRoomListHeader Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in ImageSizePanel Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in LegacyRoomList Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove icon from CreateSecretStorageDialog title Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in LiveContentSummary Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in RoomCallBanner Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in NonUrgentEchoFailureToast Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in LegacyCallViewHeader Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Switch from css masks to rendering svg in CallEvent Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update screenshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace dark-light-mode.svg with Compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Draw stop icon using svg rather than square mask Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace masks in RoomSublist with SVG icons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace masks with SVG icons in LegacyCall views Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace masks with SVG icons in EventTile Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace masks with SVG icons in ForwardDialog Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove redundant css style The `::before` has no content so is never rendered Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright tests & screenshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove snapshot as it causes issues Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * More tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
121 lines
3.6 KiB
Plaintext
121 lines
3.6 KiB
Plaintext
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
.mx_VoiceRecordComposerTile_stop {
|
|
/* 20px + 4px padding + 2px border makes this a 32px square (as intended) */
|
|
width: 20px;
|
|
height: 20px;
|
|
padding: var(--cpd-space-1x);
|
|
border: 2px solid $voice-record-stop-border-color;
|
|
border-radius: 32px;
|
|
margin-right: 2px; /* between us and the waveform component */
|
|
|
|
svg {
|
|
width: inherit;
|
|
height: inherit;
|
|
color: $voice-record-stop-symbol-color;
|
|
}
|
|
}
|
|
|
|
.mx_VoiceRecordComposerTile_delete {
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: middle;
|
|
margin-right: 2px; /* distance from left edge of waveform container (container has some margin too) */
|
|
|
|
svg {
|
|
width: inherit;
|
|
height: inherit;
|
|
color: $voice-record-icon-color;
|
|
}
|
|
}
|
|
|
|
.mx_VoiceRecordComposerTile_uploadingState {
|
|
margin-right: 10px;
|
|
color: $secondary-content;
|
|
}
|
|
|
|
.mx_VoiceRecordComposerTile_failedState {
|
|
margin-right: 21px;
|
|
|
|
.mx_VoiceRecordComposerTile_uploadState_badge {
|
|
display: inline-block;
|
|
margin-right: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.mx_MessageComposer_row .mx_VoiceMessagePrimaryContainer {
|
|
/* Note: remaining class properties are in the PlayerContainer CSS. */
|
|
|
|
/* fixed height to reduce layout jumps with the play button appearing */
|
|
/* https://github.com/vector-im/element-web/issues/18431 */
|
|
height: 32px;
|
|
|
|
margin: 6px; /* force the composer area to put a gutter around us */
|
|
margin-right: 6px; /* isolate from stop/send button */
|
|
|
|
position: relative; /* important for the live circle */
|
|
|
|
&.mx_VoiceRecordComposerTile_recording {
|
|
/* We are putting the circle in this padding, so we need +10px from the regular */
|
|
/* padding on the left side. */
|
|
padding-left: 22px;
|
|
|
|
&::before {
|
|
animation: recording-pulse 2s infinite;
|
|
|
|
content: "";
|
|
background-color: $voice-record-live-circle-color;
|
|
width: 10px;
|
|
height: 10px;
|
|
position: absolute;
|
|
left: 12px; /* 12px from the left edge for container padding */
|
|
top: 17px; /* vertically center (middle align with clock) */
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_MessageComposer_wysiwyg .mx_VoiceMessagePrimaryContainer {
|
|
&.mx_VoiceRecordComposerTile_recording {
|
|
&::before {
|
|
top: 15px; /* vertically center (middle align with clock) */
|
|
}
|
|
}
|
|
}
|
|
|
|
/* The keyframes are slightly weird here to help make a ramping/punch effect */
|
|
/* for the recording dot. We start and end at 100% opacity to help make the */
|
|
/* dot feel a bit like a real lamp that is blinking: the animation ends up */
|
|
/* spending a lot of its time showing a steady state without a fade effect. */
|
|
/* This lamp effect extends into why the 0% opacity keyframe is not in the */
|
|
/* midpoint: lamps take longer to turn off than they do to turn on, and the */
|
|
/* extra frames give it a bit of a realistic punch for when the animation is */
|
|
/* ramping back up to 100% opacity. */
|
|
|
|
/* Target animation timings: steady for 1.5s, fade out for 0.3s, fade in for 0.2s */
|
|
/* (intended to be used in a loop for 2s animation speed) */
|
|
@keyframes recording-pulse {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
35% {
|
|
opacity: 0;
|
|
}
|
|
65% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.mx_VoiceMessagePrimaryContainer {
|
|
outline: 1px solid transparent;
|
|
}
|
|
}
|