You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
2.7 KiB
150 lines
2.7 KiB
$font: "Source Han Sans CN", "Noto Sans SC", system-ui, sans-serif;
|
|
|
|
.avatarCropModal {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1200;
|
|
background: rgba(151, 151, 151, 0.25);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.avatarCropModal__container {
|
|
width: 1255px;
|
|
height: 862px;
|
|
border-radius: 9px;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.avatarCropModal__header {
|
|
height: 111px;
|
|
background: #ffffff;
|
|
padding: 11px 22px 0;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.avatarCropModal__backBtn {
|
|
margin-top: 46px;
|
|
width: 79px;
|
|
height: 27px;
|
|
border: 1px solid #e5e6eb;
|
|
border-radius: 9px;
|
|
background: #ffffff;
|
|
padding: 0 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.avatarCropModal__backText {
|
|
font-family: $font;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 26px;
|
|
color: #333333;
|
|
}
|
|
|
|
.avatarCropModal__backIcon {
|
|
width: 15px;
|
|
height: 15px;
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.avatarCropModal__closeBtn {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
|
|
img {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.avatarCropModal__title {
|
|
margin: 50px 0 0;
|
|
font-family: $font;
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
line-height: 26px;
|
|
color: #333333;
|
|
}
|
|
|
|
.avatarCropModal__body {
|
|
flex: 1;
|
|
background: rgba(51, 51, 51, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.avatarCropModal__canvas {
|
|
width: 100% auto;
|
|
height: 100% auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.avatarCropModal__canvas .ReactCrop {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.avatarCropModal__canvas .ReactCrop__image {
|
|
max-width: 100%;
|
|
max-height: 491px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.avatarCropModal__canvas .ReactCrop__crop-selection {
|
|
border: 1px solid #5c3bc7;
|
|
}
|
|
|
|
.avatarCropModal__canvas .ReactCrop__drag-handle {
|
|
width: 10px;
|
|
height: 10px;
|
|
border: none;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.avatarCropModal__footer {
|
|
height: 100px;
|
|
background: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.avatarCropModal__uploadBtn {
|
|
width: min(885px, calc(100vw - 80px));
|
|
height: 37px;
|
|
border-radius: 9px;
|
|
border: none;
|
|
background: linear-gradient(90deg, #f0f0f0 0%, #d6ceef 100%);
|
|
font-family: $font;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 24px;
|
|
color: #333333;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.avatarCropModal__uploadBtn:disabled,
|
|
.avatarCropModal__backBtn:disabled,
|
|
.avatarCropModal__closeBtn:disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
}
|