265 lines
5.1 KiB
SCSS
Raw Normal View History

2019-11-13 17:46:25 +09:00
@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-11-29 18:24:51 +09:00
::ng-deep .mat-card-header-text {
.mat-card-subtitle {
2019-11-13 17:46:25 +09:00
color: rgb(256, 256, 256, 0.7) !important;
}
}
2019-11-08 13:35:39 +09:00
.example-card {
2019-12-23 17:48:28 +09:00
display: flex;
flex-flow: row;
flex: 0 0 auto;
width: 700px;
2019-12-24 15:06:22 +09:00
height: 450px;
2019-11-13 17:46:25 +09:00
position: relative;
2019-12-23 17:48:28 +09:00
padding: 0;
2019-11-29 18:24:51 +09:00
.mat-card-header {
2019-12-23 17:48:28 +09:00
position: relative;
justify-content: flex-start;
flex-flow: column;
width: 260px;
height: 100%;
background: #64cddf;
2019-11-13 17:46:25 +09:00
color: #ffffff;
2019-12-23 17:48:28 +09:00
padding: 20px;
2019-11-29 18:24:51 +09:00
.profile-img {
2019-12-23 17:48:28 +09:00
position: absolute;
2019-11-29 18:24:51 +09:00
display: flex;
2019-12-23 17:48:28 +09:00
flex-flow: row;
align-items: flex-end;
top: 20px;
2019-12-24 15:06:22 +09:00
margin-bottom: 12px;
2019-12-23 17:48:28 +09:00
&-mask {
width: 80px;
2019-11-13 17:46:25 +09:00
height: 80px;
border-radius: 50%;
2019-12-23 17:48:28 +09:00
overflow: hidden;
2019-11-29 18:24:51 +09:00
border: 2px solid #ffffff;
2019-12-23 17:48:28 +09:00
margin-right: 10px;
img {
width: 80px;
height: auto;
background-color: #efefef;
}
}
2019-12-23 19:12:22 +09:00
2019-12-23 17:48:28 +09:00
.work-status {
display: inline-flex;
height: 24px;
border: 1px solid #ffffff;
2019-12-23 17:48:28 +09:00
padding: 4px 14px;
border-radius: 100px;
font-size: 13px;
justify-content: center;
align-items: center;
color: #ffffff;
&.morning-off {
background-color: #11845d;
}
&.afternoon-off {
background-color: #875acb;
}
&.day-off {
background-color: #2b98eb;
}
&.long-time {
background-color: #c72f20;
}
&.leave-of-absence {
background-color: #e7853e;
}
2019-11-29 18:24:51 +09:00
}
2019-12-23 17:48:28 +09:00
}
2019-12-23 19:12:22 +09:00
2019-12-23 17:48:28 +09:00
.mat-card-title {
display: flex;
2019-12-23 19:12:22 +09:00
flex-flow: column;
2019-12-23 17:48:28 +09:00
margin-top: 120px;
span {
@include ellipsis(1);
2020-01-06 11:17:01 +09:00
&.name {
font-size: 1.2em;
line-height: 1.4em;
}
2019-12-23 19:12:22 +09:00
&.number {
font-size: 0.8em;
}
2019-11-13 17:46:25 +09:00
}
}
2019-12-23 17:48:28 +09:00
.mat-card-subtitle {
margin-left: -16px;
2019-12-23 19:12:22 +09:00
font-size: 1.1em;
flex-flow: column;
span {
@include ellipsis(1);
&.deptName {
font-size: 1.2em;
2020-01-06 11:17:01 +09:00
line-height: 1.4em;
2019-12-23 19:12:22 +09:00
}
}
2019-12-23 17:48:28 +09:00
}
.intro {
@include ellipsis(3);
}
2019-11-29 18:24:51 +09:00
.profile-option {
2019-12-23 17:48:28 +09:00
position: absolute;
bottom: 20px;
2019-11-29 18:24:51 +09:00
display: flex;
2019-12-23 17:48:28 +09:00
flex-flow: row;
2019-11-29 18:24:51 +09:00
.btn-favorite {
2019-11-13 17:46:25 +09:00
cursor: pointer;
2019-11-29 18:24:51 +09:00
.on {
fill: yellow;
2019-11-13 17:46:25 +09:00
}
}
2019-11-29 18:24:51 +09:00
.btn-groupadd {
2019-12-23 17:48:28 +09:00
margin-left: 20px;
2019-11-13 17:46:25 +09:00
cursor: pointer;
2019-11-29 18:24:51 +09:00
svg {
display: none;
&.on {
display: block;
2019-11-13 17:46:25 +09:00
}
}
}
}
2019-12-23 17:48:28 +09:00
.profile-edit {
position: absolute;
bottom: 20px;
width: 20px;
height: 20px;
svg {
fill: #ffffff;
}
}
}
.mat-card-content {
position: relative;
width: 440px;
height: 100%;
2019-12-24 15:06:22 +09:00
padding: 10px 0;
2019-12-23 17:48:28 +09:00
margin-left: 30px;
2019-11-29 18:24:51 +09:00
ul {
display: flex;
2019-11-13 17:46:25 +09:00
flex-flow: column;
2019-11-29 18:24:51 +09:00
li {
2019-12-23 17:48:28 +09:00
display: flex;
flex-direction: row;
2019-11-29 18:24:51 +09:00
height: 30px;
2019-11-13 17:46:25 +09:00
align-items: center;
2019-11-29 18:24:51 +09:00
flex-flow: row;
2019-12-24 15:06:22 +09:00
margin-bottom: 14px;
2019-12-23 17:48:28 +09:00
dt {
2019-12-24 15:06:22 +09:00
width: 100px;
2019-12-23 17:48:28 +09:00
font-weight: 800;
@include ellipsis(1);
}
dd {
2019-12-24 15:06:22 +09:00
width: 260px;
2019-12-23 19:12:22 +09:00
margin-right: 20px;
2019-12-23 17:48:28 +09:00
@include ellipsis(1);
}
}
}
.mat-card-actions {
position: absolute;
width: 100%;
bottom: 0;
border-top: 1px solid #dddddd;
padding-top: 14px;
margin-top: auto;
}
}
}
2019-11-13 17:46:25 +09:00
2019-12-23 19:12:22 +09:00
::ng-deep .btn-upload-profile-image {
display: flex;
margin-left: -26px;
margin-right: 10px;
width: 36px;
height: 36px;
line-height: 36px;
justify-content: center;
justify-content: center;
&.mat-mini-fab {
.mat-button-wrapper {
display: flex;
justify-content: center;
justify-items: center;
padding: 0;
}
}
}
2019-12-23 17:48:28 +09:00
::ng-deep .userInfo-call {
position: relative;
display: flex;
flex: 0 0 auto;
width: 34px;
height: 34px;
line-height: 34px;
justify-content: center;
justify-items: center;
.mat-button-wrapper {
padding: 0;
width: 20px;
height: 20px;
justify-content: center;
text-align: center;
svg {
fill: #ffffff;
display: flex;
}
}
}
::ng-deep .button-text-item {
display: flex;
button {
justify-content: center;
justify-items: center;
flex-flow: row;
&.mat-mini-fab {
position: relative;
display: flex;
width: 40px;
height: 40px;
//line-height: 40px;
2019-12-23 17:48:28 +09:00
.mat-button-wrapper {
padding: 0;
fill: #ffffff;
width: 20px;
height: 20px;
display: inline-flex;
justify-content: center;
text-align: center;
2019-11-29 18:24:51 +09:00
svg {
2019-12-23 17:48:28 +09:00
display: flex;
width: 100%;
height: 100%;
2019-11-13 17:46:25 +09:00
}
}
}
}
2019-12-23 17:48:28 +09:00
.button-text {
justify-content: center;
align-self: center;
margin-left: 8px;
}
2019-11-08 13:35:39 +09:00
}