imeeting/frontend/src/pages/profile/AvatarCropDialog.css

119 lines
2.1 KiB
CSS

.avatar-crop-modal .ant-modal-content {
overflow: hidden;
border-radius: 4px;
}
.avatar-crop-modal .ant-modal-body {
padding: 0;
}
.avatar-crop-modal__layout {
display: grid;
grid-template-columns: minmax(0, 1.2fr) 320px;
min-height: 540px;
}
.avatar-crop-modal__stage {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 30px;
padding: 32px;
background: #f9fafe;
border-right: 1px solid #e6e6e6;
}
.avatar-crop-modal__stage-head {
width: 100%;
color: #606775;
text-align: center;
}
.avatar-crop-modal__stage-head h3 {
margin: 0 0 8px;
color: #333333;
font-size: 20px;
font-weight: 600;
letter-spacing: 0;
}
.avatar-crop-modal__stage-head p {
margin: 0;
color: #606775;
font-size: 13px;
line-height: 1.6;
}
.avatar-crop-modal__viewport {
position: relative;
width: 300px;
height: 300px;
border-radius: 50%;
background: #ffffff;
box-shadow: none;
border: 1px solid #d8e3ff;
overflow: hidden;
cursor: grab;
touch-action: none;
}
.avatar-crop-modal__viewport.is-dragging {
cursor: grabbing;
}
/* Added inner shadow to make border clearer on dark image */
.avatar-crop-modal__viewport::before {
content: "";
position: absolute;
inset: 0;
border: 1px solid rgba(60, 112, 245, 0.28);
border-radius: 50%;
pointer-events: none;
z-index: 10;
}
.avatar-crop-modal__image {
position: absolute;
top: 50%;
left: 50%;
transform-origin: center;
max-width: none;
pointer-events: none;
}
.avatar-crop-modal__sidebar {
display: flex;
flex-direction: column;
background: #ffffff;
}
.avatar-crop-modal__sidebar-card {
padding: 32px 28px;
border-bottom: 1px solid #e6e6e6;
}
.avatar-crop-modal__sidebar-card h4 {
margin: 0 0 8px;
color: #10233f;
font-size: 16px;
font-weight: 700;
}
.avatar-crop-modal__sidebar-card p {
margin: 0;
color: #5b6b84;
font-size: 13px;
line-height: 1.6;
}
.avatar-crop-modal__footer {
margin-top: auto;
padding: 24px 28px;
display: flex;
justify-content: flex-end;
gap: 12px;
background: #f8fafc;
border-top: 1px solid #e6e6e6;
}