136 lines
2.3 KiB
SCSS
136 lines
2.3 KiB
SCSS
@charset 'utf-8';
|
|
|
|
$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;
|
|
}
|
|
}
|
|
|
|
%list-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: $listH-row2;
|
|
border-bottom: $line-basic;
|
|
padding: 20px;
|
|
}
|
|
|
|
%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(2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.list-item {
|
|
@extend %list-item;
|
|
&:hover {
|
|
background-color: $bg-list-hover;
|
|
}
|
|
.mat-checkbox {
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
|
|
.item-default {
|
|
display: flex;
|
|
width: 100%;
|
|
dt{
|
|
flex:none;
|
|
.thumbnail {
|
|
width: $thumbnail-msize;
|
|
height: $thumbnail-msize;
|
|
margin-right: 16px;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.info{
|
|
position: relative;
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: calc(100% - 50px);
|
|
.detail{
|
|
flex-flow: column;
|
|
.name {
|
|
font-size: 13px;
|
|
margin-bottom: 2px;
|
|
color: $font-dark;
|
|
@include ellipsis(1);
|
|
b {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
.dept {
|
|
font-size: 12px;
|
|
color: $font-mid;
|
|
@include ellipsis(1);
|
|
}
|
|
.msg-status {
|
|
display: inline-block;
|
|
float: right;
|
|
@extend %msg-status;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//가변에 따른 list-item width값 변경
|
|
.list-item {
|
|
.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 {
|
|
display:none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.org{
|
|
.list-item{
|
|
height:70px;
|
|
}
|
|
} |