session-desktop/stylesheets/_session_conversation.scss

257 lines
4.7 KiB
SCSS
Raw Permalink Normal View History

2020-02-28 01:48:21 +01:00
@keyframes toShadow {
from {
opacity: 1;
}
2020-02-28 01:48:21 +01:00
to {
opacity: 0.25;
}
}
2020-02-28 01:48:21 +01:00
@keyframes fromShadow {
from {
opacity: 0.25;
}
2020-02-28 01:48:21 +01:00
to {
opacity: 1;
}
}
.conversation-item__options-pane {
position: absolute;
2020-02-19 02:05:48 +01:00
height: 100%;
right: 0vw;
2020-03-12 07:15:02 +01:00
2021-07-14 05:48:59 +02:00
transition: transform 0.3s ease-in-out;
transform: translateX(100%);
will-change: transform;
width: 25vw;
z-index: 5;
2020-02-28 01:48:21 +01:00
background-color: var(--background-primary-color);
border-left: 1px solid var(--border-color);
&.show {
transform: none;
2021-07-14 05:48:59 +02:00
transition: transform 0.3s ease-in-out;
z-index: 3;
2020-03-17 08:29:17 +01:00
}
2020-02-28 01:48:21 +01:00
}
.conversation-header {
2020-03-12 07:15:02 +01:00
&--items-wrapper {
2020-02-28 01:48:21 +01:00
display: flex;
flex-grow: 1;
align-items: center;
justify-content: center;
width: 100%;
2020-02-28 01:48:21 +01:00
}
.message-selection-overlay {
position: absolute;
display: flex;
left: 0px;
right: 0px;
padding: 0px var(--margins-md);
2020-02-28 01:48:21 +01:00
align-items: center;
justify-content: space-between;
height: var(--main-view-header-height);
background: var(--background-primary-color);
2020-03-12 07:15:02 +01:00
2020-02-28 01:48:21 +01:00
.close-button {
float: left;
}
2020-03-12 07:15:02 +01:00
.session-button.danger {
2020-02-28 01:48:21 +01:00
display: flex;
}
}
2020-02-28 01:48:21 +01:00
.message-selection-overlay div[role='button'] {
display: inline-block;
}
2020-03-12 07:15:02 +01:00
2020-02-28 01:48:21 +01:00
.message-selection-overlay .button-group {
2021-10-25 08:04:51 +02:00
display: flex;
2020-02-28 01:48:21 +01:00
}
}
2020-11-13 04:29:59 +01:00
.session-conversation {
position: relative;
2020-11-13 04:29:59 +01:00
flex-grow: 1;
display: flex;
flex-direction: column;
max-width: calc(100vw - 380px);
height: 100%;
.selection-mode {
.messages-container > *:not(.message-selected) {
animation: toShadow var(--default-duration);
opacity: 0.3;
}
}
}
2020-07-20 09:30:26 +02:00
.conversation-content {
display: flex;
flex-grow: 1;
flex-direction: column;
position: relative;
2020-07-21 06:43:46 +02:00
outline: none;
2020-07-20 09:30:26 +02:00
.conversation-messages {
display: flex;
flex-direction: column;
flex-grow: 1;
width: 100%;
2020-07-21 06:43:46 +02:00
height: 0;
2020-07-20 09:30:26 +02:00
background-color: inherit;
2020-07-21 06:43:46 +02:00
outline: none;
2020-07-21 08:40:17 +02:00
position: relative;
background-color: var(--background-secondary-color);
border-top: 1px solid var(--border-color);
2020-07-20 09:30:26 +02:00
}
.conversation-info-panel {
position: absolute;
justify-content: flex-start;
flex-direction: column;
align-items: center;
height: 100%;
width: 100%;
z-index: 5; // to be sure to hide the borders of images in messages
2020-07-20 09:30:26 +02:00
background-color: inherit;
display: none;
padding: 20px;
&.show {
display: flex;
background: var(--background-primary-color);
2020-07-20 09:30:26 +02:00
}
}
}
.composition-container {
2020-02-19 02:05:48 +01:00
display: flex;
justify-content: center;
align-items: center;
padding: 0px var(--margins-md);
2020-02-27 02:01:08 +01:00
min-height: min-content;
border-top: 1px solid var(--border-color);
z-index: 1;
2020-02-19 02:05:48 +01:00
2021-08-05 03:32:55 +02:00
.session-icon-button {
2020-02-27 06:29:01 +01:00
display: flex;
justify-content: center;
align-items: center;
margin-right: var(--margins-sm);
2020-02-19 02:05:48 +01:00
.send {
padding: var(--margins-xs);
2020-02-19 02:05:48 +01:00
border-radius: 50%;
height: 30px;
width: 30px;
}
}
}
.send-message-button {
animation: fadein var(--default-duration);
&---scale {
animation: scaling 2s ease-in-out;
@keyframes scaling {
0% {
transform: scale(1);
}
80% {
transform: scale(1.3);
}
100% {
transform: scale(1);
}
}
}
}
2020-02-27 06:29:01 +01:00
.session-recording {
height: var(--composition-container-height);
2020-02-27 06:29:01 +01:00
display: flex;
justify-content: space-between;
align-items: center;
flex-grow: 1;
2020-03-12 04:11:15 +01:00
outline: none;
2020-02-27 06:29:01 +01:00
$actions-element-size: 30px;
2020-02-27 06:29:01 +01:00
&--actions {
display: flex;
align-items: center;
width: $actions-element-size;
height: $actions-element-size;
border-radius: 50%;
.session-button {
animation: fadein var(--default-duration);
}
2020-02-27 06:29:01 +01:00
.session-icon-button {
animation: fadein var(--default-duration);
2020-02-27 06:29:01 +01:00
border-radius: 50%;
width: $actions-element-size;
height: $actions-element-size;
.play {
margin-left: 4px;
}
}
}
2020-02-28 03:15:00 +01:00
&--visualisation {
z-index: 2;
2020-02-28 03:15:00 +01:00
width: 100%;
2020-03-03 05:07:48 +01:00
display: flex;
align-items: center;
justify-content: center;
2020-03-06 05:03:07 +01:00
position: relative;
2020-03-03 05:34:02 +01:00
canvas {
2020-03-06 05:03:07 +01:00
position: absolute;
2020-03-03 06:00:54 +01:00
width: 100%;
padding: 0px var(--margins-lg);
2020-03-03 05:34:02 +01:00
}
2020-02-28 03:15:00 +01:00
}
2020-03-05 00:43:48 +01:00
&--timer {
display: inline-flex;
align-items: center;
font-family: var(--font-default);
2020-03-05 00:43:48 +01:00
font-weight: bold;
font-size: 14px;
flex-shrink: 0;
2020-03-05 00:43:48 +01:00
2020-03-12 04:11:15 +01:00
&.playback-timer {
animation: fadein var(--default-duration);
@media (-webkit-min-device-pixel-ratio: 1.6) {
margin-left: auto;
}
2020-03-12 04:11:15 +01:00
}
2020-03-12 07:15:02 +01:00
&-light {
height: var(--margins-sm);
width: var(--margins-sm);
2020-03-05 00:43:48 +01:00
border-radius: 50%;
2022-09-28 09:15:06 +02:00
background-color: var(--danger-color);
margin: 0 var(--margins-sm);
2020-03-05 07:03:22 +01:00
2022-09-28 09:15:06 +02:00
@include pulse-color(var(--danger-color), 1s, infinite);
2020-02-27 06:29:01 +01:00
}
}
2020-03-12 04:11:15 +01:00
}