306 lines
5.7 KiB
SCSS
Raw Normal View History

2020-02-06 09:57:34 +09:00
$desktop-l-width: 1440px;
$tablet-l-width: 1024px;
$tablet-s-width: 768px;
$mob-l-width: 640px;
$login-max-height: 800px;
// 태블릿
@mixin tab {
@media screen and (max-width: #{$tablet-l-width}) {
@content;
}
}
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;
}
}
.mat-card-header-text {
2019-11-29 18:24:51 +09:00
.mat-card-subtitle {
2019-11-13 17:46:25 +09:00
color: rgb(256, 256, 256, 0.7) !important;
}
}
.mat-card.profile {
2019-12-23 17:48:28 +09:00
display: flex;
min-width: 600px;
2019-12-23 17:48:28 +09:00
flex-flow: row;
flex: 0 0 auto;
2020-02-06 09:57:34 +09:00
width: 100%;
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;
2020-02-07 14:34:09 +09:00
width: 40%;
2019-12-23 17:48:28 +09:00
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;
margin-left: 20px;
2019-12-23 17:48:28 +09:00
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;
align-items: flex-start;
height: 80px;
2019-12-23 17:48:28 +09:00
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 {
2019-12-23 19:12:22 +09:00
font-size: 1.1em;
flex-flow: column;
span {
@include ellipsis(1);
font-size: 1em;
margin-bottom: 8px;
&.company {
font-weight: 600;
font-size: 1.1em;
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;
2020-02-07 14:34:09 +09:00
width: 60%;
2019-12-23 17:48:28 +09:00
height: 100%;
2020-02-06 09:57:34 +09:00
padding-bottom: 10px;
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;
height: calc(100% - 80px);
overflow-y: auto;
2019-11-29 18:24:51 +09:00
li {
2019-12-23 17:48:28 +09:00
display: flex;
flex-direction: row;
height: 26px;
2019-11-13 17:46:25 +09:00
align-items: center;
2019-11-29 18:24:51 +09:00
flex-flow: row;
margin-bottom: 10px;
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);
display: inline-flex;
flex: 0 0 auto;
2019-12-23 17:48:28 +09:00
}
dd {
2019-12-23 19:12:22 +09:00
margin-right: 20px;
width: 100%;
2019-12-23 17:48:28 +09:00
@include ellipsis(1);
&.phone-number {
width: calc(100% - 100px);
}
2019-12-23 17:48:28 +09:00
}
}
}
.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
2020-02-13 20:03:24 +09:00
.btn-upload-profile-image {
2019-12-23 19:12:22 +09:00
display: flex;
margin-left: -26px;
margin-right: 10px;
width: 36px;
height: 36px;
line-height: 36px;
2020-02-13 20:03:24 +09:00
font-size: 20px;
2019-12-23 19:12:22 +09:00
justify-content: center;
justify-content: center;
2020-02-13 20:03:24 +09:00
i {
display: inline-block;
margin-top: -8px;
2019-12-23 19:12:22 +09:00
}
}
.btn-elephane {
position: absolute;
background-color: #ffffff !important;
justify-content: center;
align-items: center;
left: 60px;
top: 46px;
svg {
width: 30px;
height: 30px;
}
&:hover {
background-color: #98d7e2 !important;
opacity: 1;
svg {
fill: #ffffff;
}
}
}
.userInfo-call {
2019-12-23 17:48:28 +09:00
position: relative;
display: flex;
flex: 0 0 26px;
width: 26x;
height: 26px;
line-height: 26px;
2019-12-23 17:48:28 +09:00
justify-content: center;
justify-items: center;
svg {
2019-12-23 17:48:28 +09:00
padding: 0;
margin-top: -4px;
width: 18px;
height: 18px;
fill: #ffffff;
display: flex;
2019-12-23 17:48:28 +09:00
}
}
.button-text-item {
2019-12-23 17:48:28 +09:00
display: flex;
button {
justify-content: center;
justify-items: center;
flex-flow: row;
&.mat-mini-fab {
position: relative;
display: flex;
width: 36px;
height: 36px;
flex: 0 0 36px;
svg {
2019-12-23 17:48:28 +09:00
padding: 0;
fill: #ffffff;
width: 20px;
height: 20px;
display: flex;
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: 4px;
2020-02-06 09:57:34 +09:00
display: inline-flex;
@media screen and (max-width: #{$tablet-s-width}) {
display: none;
}
2019-12-23 17:48:28 +09:00
}
2019-11-08 13:35:39 +09:00
}
.btn-dialog-close {
2020-02-06 09:57:34 +09:00
margin-left: auto;
}