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

132 lines
2.4 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%;
2019-10-10 06:37:18 +00:00
height: $listH-row2;
2019-10-10 01:03:25 +00:00
border-bottom: 1px solid #dddddd;
2019-10-10 06:37:18 +00:00
padding: 0 10px;
2019-10-10 01:03:25 +00:00
}
%presence {
display: inline-block;
width: $presence-size;
height: $presence-size;
2019-10-10 06:37:18 +00:00
//margin-top: position-m($listH-row2, $presence-size, 0);
align-items: center;
2019-10-10 01:03:25 +00:00
text-indent: -10000000px;
2019-10-10 06:37:18 +00:00
margin-right: 8px;
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;
@include ellipsis(20);
@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%;
.thumbnail {
width: $thumbnail-msize;
height: $thumbnail-msize;
margin-right: 12px;
@include border-radius(100px);
}
.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);
.detail {
display: inline-block;
float: left;
.name {
font-size: 14px;
margin-bottom: 2px;
2019-10-10 01:03:25 +00:00
@include ellipsis(1);
2019-10-10 06:37:18 +00:00
b {
font-weight: bold;
}
2019-10-10 01:03:25 +00:00
}
2019-10-10 06:37:18 +00:00
.dept {
font-size: 12px;
@include ellipsis(1);
2019-10-10 01:03:25 +00:00
}
}
2019-10-10 06:37:18 +00:00
.msg-status {
display: inline-block;
float: right;
@extend %msg-status;
}
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
.item-default {
.detail {
width: 60%;
}
.msg-status {
width: 38%;
}
}
.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
}
}
}