@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-row2; border-bottom: 1px solid #dddddd; padding: 0 10px; } %presence { display: inline-block; width: $presence-size; height: $presence-size; //margin-top: position-m($listH-row2, $presence-size, 0); align-items: center; text-indent: -10000000px; margin-right: 8px; border-radius: 100px; } %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); } .list-item { @extend %list-item; &:hover { background-color: $bg-list-hover; } .presence { @extend %presence; &.pcOn { @include presence-status(pcOn); } &.pcOut { @include presence-status(pcOut); } &.pcOff { @include presence-status(pcOff); } &.pcOther { @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 { position: relative; display: inline-block; margin: 0; padding: 0; width: calc(100% - 50px); .detail { display: inline-block; float: left; .name { font-size: 14px; margin-bottom: 2px; @include ellipsis(1); b { font-weight: bold; } } .dept { font-size: 12px; @include ellipsis(1); } } .msg-status { display: inline-block; float: right; @extend %msg-status; } } } //가변에 따른 list-item width값 변경 .list-item { .item-default { .detail { width: 60%; } .msg-status { width: 38%; } } .presence { + .item-default { width: calc(100% - 20px); } } &.checkbox { .presence { + .item-default { width: calc(100% - 50px); } } .item-default { width: calc(100% - 30px); .info { .detail { width: 100%; } .msg-status { @include visible(none); } } } } }