next-ucap-messenger/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.scss

80 lines
1.6 KiB
SCSS
Raw Normal View History

2019-10-21 04:20:14 +00:00
@charset 'utf-8';
$line-basic: 1px solid #dddddd;
2019-10-24 01:07:30 +00:00
@mixin ellipsis($row) {
overflow: hidden;
text-overflow: ellipsis;
@if $row == 1 {
display: block;
white-space: nowrap;
word-wrap: normal;
} @else if $row >= 2 {
display: -webkit-box;
-webkit-line-clamp: $row;
-webkit-box-orient: vertical;
word-wrap: break-word;
}
}
:host {
display: flex;
2019-09-26 05:38:21 +00:00
width: 100%;
height: 100%;
flex: 1;
.container {
width: 100%;
height: 100%;
.chat-toolbar {
2019-10-21 04:20:14 +00:00
height: 70px;
min-height: 70px;
border-bottom: $line-basic;
background-color: #ffffff;
.chat-header {
width: 100%;
2019-10-21 04:20:14 +00:00
.responsive-chats-button {
padding: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #252525;
color: #efefef;
font-size: 16px;
font-weight: 100;
line-height: 40px;
}
.room-name {
font-size: 16px;
padding: 0 10px;
@include ellipsis(1);
2019-10-21 04:20:14 +00:00
}
.room-option {
width: 100px;
margin-left: auto;
2019-10-21 04:20:14 +00:00
}
}
}
2019-09-26 05:38:21 +00:00
.chat-content {
background: transparent;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
2019-10-21 04:36:58 +00:00
.file-drop-zone-container {
position: relative;
2019-10-21 04:36:58 +00:00
.file-drop-zone {
position: absolute;
border: 2px solid gray;
background-color: white;
width: 600px;
height: 150px;
bottom: 0px;
margin: auto;
left: 0px;
right: 0px;
2019-10-21 04:36:58 +00:00
}
}
}
}