next-ucap-messenger/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.scss

136 lines
2.3 KiB
SCSS
Raw Normal View History

2019-10-10 01:03:25 +00:00
@charset 'utf-8';
2019-10-21 04:20:14 +00:00
2019-10-24 01:07:30 +00:00
$font-dark: #212121;
$font-mid: #666666;
$font-light: #848d95;
$font-white: #ffffff;
$line-basic:1px solid #dddddd;
$bg-list-item-msg: #f0f4f6;
$bg-list-hover: #efefef;
$listH-row2: 80px;
$presence-size: 8px;
$thumbnail-msize: 40px;
@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;
}
}
2019-10-10 01:03:25 +00:00
%list-item {
position: relative;
display: flex;
align-items: center;
width: 100%;
2019-10-10 06:37:18 +00:00
height: $listH-row2;
2019-10-21 04:20:14 +00:00
border-bottom: $line-basic;
padding: 20px;
2019-10-10 01:03:25 +00:00
}
2019-10-24 01:07:30 +00:00
2019-10-10 06:37:18 +00:00
%msg-status {
display: inline-block;
height: 40px;
background-color: $bg-list-item-msg;
font-size: 11px;
padding: 2px 6px;
vertical-align: middle;
align-items: center;
2019-10-21 04:20:14 +00:00
@include ellipsis(2);
2019-10-24 01:07:30 +00:00
border-radius: 4px;
2019-10-10 06:37:18 +00:00
}
2019-10-10 01:03:25 +00:00
.list-item {
@extend %list-item;
&:hover {
background-color: $bg-list-hover;
}
.mat-checkbox {
padding-left: 10px;
}
}
.item-default {
display: flex;
width: 100%;
2019-10-21 04:20:14 +00:00
dt{
flex:none;
.thumbnail {
width: $thumbnail-msize;
height: $thumbnail-msize;
margin-right: 16px;
2019-10-24 01:07:30 +00:00
border-radius: 50%;
2019-10-21 04:20:14 +00:00
}
2019-10-10 01:03:25 +00:00
}
2019-10-21 04:20:14 +00:00
.info{
2019-10-10 06:37:18 +00:00
position: relative;
2019-10-10 01:03:25 +00:00
display: inline-block;
margin: 0;
padding: 0;
2019-10-10 06:37:18 +00:00
width: calc(100% - 50px);
2019-10-21 04:20:14 +00:00
.detail{
flex-flow: column;
2019-10-10 06:37:18 +00:00
.name {
2019-10-21 04:20:14 +00:00
font-size: 13px;
2019-10-10 06:37:18 +00:00
margin-bottom: 2px;
2019-10-21 04:20:14 +00:00
color: $font-dark;
2019-10-10 01:03:25 +00:00
@include ellipsis(1);
2019-10-10 06:37:18 +00:00
b {
2019-10-21 04:20:14 +00:00
font-size: 16px;
font-weight: 600;
2019-10-10 06:37:18 +00:00
}
2019-10-10 01:03:25 +00:00
}
2019-10-10 06:37:18 +00:00
.dept {
font-size: 12px;
2019-10-21 04:20:14 +00:00
color: $font-mid;
2019-10-10 06:37:18 +00:00
@include ellipsis(1);
2019-10-10 01:03:25 +00:00
}
2019-10-21 04:20:14 +00:00
.msg-status {
display: inline-block;
float: right;
@extend %msg-status;
}
2019-10-10 06:37:18 +00:00
}
2019-10-10 01:03:25 +00:00
}
}
2019-10-10 06:37:18 +00:00
//가변에 따른 list-item width값 변경
2019-10-10 01:03:25 +00:00
.list-item {
2019-10-10 06:37:18 +00:00
.presence {
2019-10-10 01:03:25 +00:00
+ .item-default {
width: calc(100% - 20px);
}
}
&.checkbox {
2019-10-10 06:37:18 +00:00
.presence {
+ .item-default {
width: calc(100% - 50px);
}
}
2019-10-10 01:03:25 +00:00
.item-default {
width: calc(100% - 30px);
2019-10-10 06:37:18 +00:00
.info {
.detail {
width: 100%;
}
.msg-status {
2019-10-24 01:07:30 +00:00
display:none;
2019-10-10 06:37:18 +00:00
}
}
2019-10-10 01:03:25 +00:00
}
}
}
2019-10-24 01:07:30 +00:00
.org{
.list-item{
height:70px;
}
}