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

131 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
@import '../../../../ucap-webmessenger-app/src/assets/scss/global/common';
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
}
%presence {
display: inline-block;
width: $presence-size;
height: $presence-size;
2019-10-21 04:20:14 +00:00
align-self: flex-start;
2019-10-10 06:37:18 +00:00
align-items: center;
2019-10-10 01:03:25 +00:00
text-indent: -10000000px;
2019-10-21 04:20:14 +00:00
margin-right: 4px;
2019-10-10 01:03:25 +00:00
border-radius: 100px;
}
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-10 06:37:18 +00:00
@include border-radius(4px);
}
2019-10-10 01:03:25 +00:00
.list-item {
@extend %list-item;
&:hover {
background-color: $bg-list-hover;
}
.presence {
2019-10-10 06:37:18 +00:00
@extend %presence;
&.pcOn {
2019-10-10 01:03:25 +00:00
@include presence-status(pcOn);
}
2019-10-10 06:37:18 +00:00
&.pcOut {
2019-10-10 01:03:25 +00:00
@include presence-status(pcOut);
}
2019-10-10 06:37:18 +00:00
&.pcOff {
2019-10-10 01:03:25 +00:00
@include presence-status(pcOff);
}
2019-10-10 06:37:18 +00:00
&.pcOther {
2019-10-10 01:03:25 +00:00
@include presence-status(pcOther);
}
}
.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;
@include border-radius(50%);
}
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 {
@include visible(none);
}
}
2019-10-10 01:03:25 +00:00
}
}
}