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

99 lines
1.8 KiB
SCSS
Raw Normal View History

2019-10-10 01:03:25 +00:00
@charset 'utf-8';
@import '../../../../ucap-webmessenger-app/src/assets/scss/global/common.scss';
%list-item {
position: relative;
display: flex;
align-items: center;
width: 100%;
height: $listH-row3;
border-bottom: 1px solid #dddddd;
padding: 14px;
}
%presence {
display: inline-block;
width: $presence-size;
height: $presence-size;
vertical-align: middle;
margin-top: position-m($thumbnail-msize, $presence-size, 0) * -1;
text-indent: -10000000px;
margin-right: 10px;
border-radius: 100px;
}
.list-item {
@extend %list-item;
&:hover {
background-color: $bg-list-hover;
}
.presence {
&-pcOn {
@extend %presence;
@include presence-status(pcOn);
}
&-pcOut {
@extend %presence;
@include presence-status(pcOut);
}
&-pcOff {
@extend %presence;
@include presence-status(pcOff);
}
&-pcOther {
@extend %presence;
@include presence-status(pcOther);
}
}
.mat-checkbox {
padding-left: 10px;
}
}
.item-default {
display: flex;
width: 100%;
.thumbnail {
width: $thumbnail-msize;
height: $thumbnail-msize;
margin-right: 12px;
@include border-radius(100px);
}
.info {
display: inline-block;
margin: 0;
padding: 0;
width: calc(100% - 62px);
li {
margin-bottom: 4px;
@include ellipsis(1);
&.name {
display: block;
font-size: 15px;
font-weight: bold;
@include ellipsis(1);
}
&.dept {
display: block;
font-size: 13px;
}
&.record {
//@include visible(none);
}
}
}
}
.list-item {
span[class*='presence'] {
+ .item-default {
width: calc(100% - 20px);
}
}
&.checkbox {
.item-default {
width: calc(100% - 30px);
}
}
}