135 lines
2.3 KiB
SCSS
Raw Normal View History

2019-10-10 10:03:25 +09:00
@charset 'utf-8';
2019-10-21 13:20:14 +09:00
2019-10-24 10:07:30 +09:00
$font-dark: #212121;
$font-mid: #666666;
$font-light: #848d95;
$font-white: #ffffff;
2019-12-23 17:48:28 +09:00
$line-basic: 1px solid #dddddd;
2019-10-24 10:07:30 +09:00
$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;
}
}
2019-10-10 10:03:25 +09:00
%list-item {
position: relative;
display: flex;
align-items: center;
width: 100%;
2019-10-10 15:37:18 +09:00
height: $listH-row2;
2019-10-21 13:20:14 +09:00
border-bottom: $line-basic;
padding: 20px;
2019-10-10 10:03:25 +09:00
}
2019-10-24 10:07:30 +09:00
2019-10-10 15:37:18 +09: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 13:20:14 +09:00
@include ellipsis(2);
2019-10-24 10:07:30 +09:00
border-radius: 4px;
2019-10-10 15:37:18 +09:00
}
2019-10-10 10:03:25 +09:00
.list-item {
@extend %list-item;
&:hover {
background-color: $bg-list-hover;
}
.mat-checkbox {
padding-left: 10px;
}
}
.item-default {
display: flex;
width: 100%;
2019-12-23 17:48:28 +09:00
dt {
flex: none;
2019-10-21 13:20:14 +09:00
.thumbnail {
width: $thumbnail-msize;
2019-12-23 17:48:28 +09:00
height: auto;
2019-10-21 13:20:14 +09:00
}
2019-10-10 10:03:25 +09:00
}
2019-10-21 13:20:14 +09:00
2019-12-23 17:48:28 +09:00
.info {
2019-10-10 15:37:18 +09:00
position: relative;
2019-10-10 10:03:25 +09:00
display: inline-block;
margin: 0;
padding: 0;
2019-10-10 15:37:18 +09:00
width: calc(100% - 50px);
2019-12-23 17:48:28 +09:00
.detail {
2019-10-21 13:20:14 +09:00
flex-flow: column;
2019-10-10 15:37:18 +09:00
.name {
2019-10-21 13:20:14 +09:00
font-size: 13px;
2019-10-10 15:37:18 +09:00
margin-bottom: 2px;
2019-10-21 13:20:14 +09:00
color: $font-dark;
2019-10-10 10:03:25 +09:00
@include ellipsis(1);
2019-10-10 15:37:18 +09:00
b {
2019-10-21 13:20:14 +09:00
font-size: 16px;
font-weight: 600;
2019-10-10 15:37:18 +09:00
}
2019-10-10 10:03:25 +09:00
}
2019-10-10 15:37:18 +09:00
.dept {
font-size: 12px;
2019-10-21 13:20:14 +09:00
color: $font-mid;
2019-10-10 15:37:18 +09:00
@include ellipsis(1);
2019-10-10 10:03:25 +09:00
}
2019-10-21 13:20:14 +09:00
.msg-status {
display: inline-block;
float: right;
@extend %msg-status;
}
2019-10-10 15:37:18 +09:00
}
2019-10-10 10:03:25 +09:00
}
}
2019-10-10 15:37:18 +09:00
//가변에 따른 list-item width값 변경
2019-10-10 10:03:25 +09:00
.list-item {
2019-10-10 15:37:18 +09:00
.presence {
2019-10-10 10:03:25 +09:00
+ .item-default {
width: calc(100% - 20px);
}
}
&.checkbox {
2019-10-10 15:37:18 +09:00
.presence {
+ .item-default {
width: calc(100% - 50px);
}
}
2019-10-10 10:03:25 +09:00
.item-default {
width: calc(100% - 30px);
2019-10-10 15:37:18 +09:00
.info {
.detail {
width: 100%;
}
.msg-status {
2019-12-23 17:48:28 +09:00
display: none;
2019-10-10 15:37:18 +09:00
}
}
2019-10-10 10:03:25 +09:00
}
}
}
2019-10-24 10:07:30 +09:00
2019-12-23 17:48:28 +09:00
.org {
.list-item {
height: 70px;
2019-10-24 10:07:30 +09:00
}
2019-12-23 17:48:28 +09:00
}