element-web/res/css/views/messages/_CallEvent.scss

96 lines
2.7 KiB
SCSS
Raw Normal View History

/*
Copyright 2021 Šimon Brandner <simon.bra.ag@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_CallEvent {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
background-color: $dark-panel-bg-color;
padding: 12px 16px 12px 12px;
border-radius: 8px;
margin: 10px auto;
max-width: 75%;
box-sizing: border-box;
.mx_CallEvent_info {
display: flex;
flex-direction: row;
align-items: center;
.mx_CallEvent_info_basic {
display: flex;
flex-direction: column;
margin-left: 10px; // To match mx_CallEvent
.mx_CallEvent_sender {
font-weight: 600;
font-size: 1.5rem;
line-height: 1.8rem;
}
.mx_CallEvent_type {
font-weight: 400;
color: $secondary-fg-color;
font-size: 1.2rem;
line-height: 1.5rem;
display: flex;
align-items: center;
.mx_CallEvent_type_icon {
height: 13px;
width: 13px;
margin-right: 5px;
&::before {
content: '';
position: absolute;
height: 13px;
width: 13px;
background-color: $tertiary-fg-color;
mask-repeat: no-repeat;
mask-size: contain;
}
}
.mx_CallEvent_type_icon_voice::before {
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
}
.mx_CallEvent_type_icon_video::before {
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
}
}
}
}
.mx_CallEvent_content {
display: flex;
flex-direction: row;
align-items: center;
color: $secondary-fg-color;
.mx_CallEvent_content_callBack {
margin-left: 10px; // To match mx_callEvent
}
.mx_CallEvent_content_tooltip {
margin-right: 5px;
}
}
}