kgroad-frontend2/src/features/ProfileAvatar/ProfileAvatar.scss

156 lines
2.7 KiB
SCSS

.profile-avatar {
margin-bottom: 25px;
position: relative;
width: 135px;
height: 135px;
&__image {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
&__change-btn {
position: absolute;
bottom: 0;
right: 0;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.1);
background: rgb(255, 255, 255);
border-radius: 50%;
cursor: pointer;
img {
width: 22px;
height: 22px;
}
}
&__modal {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.5);
}
&__wrapper {
position: relative;
max-width: 400px;
padding: 24px;
display: flex;
flex-direction: column;
align-items: center;
background-color: white;
border-radius: 15px;
box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.15);
}
&__text {
div {
display: flex;
align-items: center;
justify-content: space-between;
h4 {
font-size: 18px;
font-weight: 500;
line-height: 28px;
color: rgb(51, 65, 85);
}
button {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgb(226, 232, 240);
border-radius: 50%;
}
}
p {
width: 90%;
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: rgb(100, 116, 139);
}
}
&__user-img {
margin: 24px 0;
width: 130px;
height: 130px;
border-radius: 50%;
object-fit: cover;
}
input[type="file"] {
display: none;
}
&__btns {
display: flex;
align-items: center;
gap: 8px;
button,
label {
min-width: 110px;
padding: 8px 16px;
margin-top: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
line-height: 20px;
border-radius: 8px;
cursor: pointer;
}
}
&__blue-btn {
color: white;
background-color: rgb(72, 159, 225);
}
&__gray-btn {
color: rgb(51, 65, 85);
border: 1px solid rgb(226, 232, 240);
background: rgb(255, 255, 255);
}
&__message {
position: absolute;
bottom: 32px;
padding: 8px;
width: 302px;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 3px;
background-color: rgb(0, 0, 0);
font-size: 14px;
font-weight: 500;
line-height: 20px;
color: rgb(255, 255, 255);
button {
font-size: 0;
}
}
}