125 lines
1.9 KiB
Plaintext
125 lines
1.9 KiB
Plaintext
@import '~styles/variables.less';
|
|
|
|
.TeamMember {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
margin: 0 auto 1rem;
|
|
border-radius: 2px;
|
|
background: #FFF;
|
|
box-shadow: 0 1px 2px rgba(#000, 0.2);
|
|
|
|
&.is-editing {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
&-avatar {
|
|
position: relative;
|
|
height: 7.5rem;
|
|
width: 7.5rem;
|
|
margin-right: 1.25rem;
|
|
|
|
&-img {
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
&-change {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateY(1rem) translateX(-50%);
|
|
}
|
|
}
|
|
|
|
&-info {
|
|
flex: 1;
|
|
|
|
// Read only view
|
|
&-name {
|
|
font-size: 1.6rem;
|
|
font-weight: 300;
|
|
}
|
|
|
|
&-title {
|
|
font-size: 1rem;
|
|
opacity: 0.7;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
&-social {
|
|
display: flex;
|
|
|
|
&-icon {
|
|
position: relative;
|
|
height: 1.3rem;
|
|
font-size: 1.3rem;
|
|
margin-right: 1rem;
|
|
opacity: 0.2;
|
|
|
|
&.is-active {
|
|
opacity: 1;
|
|
}
|
|
|
|
&:last-child {
|
|
margin: 0;
|
|
}
|
|
|
|
&-check {
|
|
position: absolute;
|
|
font-size: 0.8rem;
|
|
bottom: 0;
|
|
right: 0;
|
|
transform: translate(50%, 50%);
|
|
color: @success-color;
|
|
background: #FFF;
|
|
border: 1px solid #FFF;
|
|
border-radius: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-edit {
|
|
position: absolute;
|
|
bottom: 1.5rem;
|
|
right: 1rem;
|
|
opacity: 0.5;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&-remove {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 1rem;
|
|
font-size: 1rem;
|
|
opacity: 0.3;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
// Edit form
|
|
.ant-form-item {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.ant-btn {
|
|
margin-right: 0.5rem;
|
|
|
|
&:last-child {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} |