464 lines
7.6 KiB
CSS
464 lines
7.6 KiB
CSS
.speaker-reg-page {
|
|
padding: 8px;
|
|
min-width: 0;
|
|
background: #f5f6fa;
|
|
}
|
|
|
|
.speaker-reg-page > .page-container__body {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.speaker-reg-section-content {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.speaker-reg-layout {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(430px, 0.92fr) minmax(480px, 1.08fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.speaker-reg-card.ant-card {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 4px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.speaker-reg-card > .ant-card-head {
|
|
min-height: 46px;
|
|
padding: 0 14px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.speaker-reg-card > .ant-card-head .ant-card-head-title {
|
|
color: #333;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.speaker-reg-card > .ant-card-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.speaker-reg-card-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
border: 1px solid #b7cdfd;
|
|
background: #f3f6ff;
|
|
color: #3c70f5;
|
|
}
|
|
|
|
.speaker-reg-form .ant-form-item {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.speaker-reg-tabs {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.speaker-reg-tabs .ant-tabs-nav {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.recording-area {
|
|
padding: 12px;
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
|
|
.script-box {
|
|
margin-bottom: 10px;
|
|
padding: 10px 12px;
|
|
border-left: 4px solid #3c70f5;
|
|
border-radius: 0 4px 4px 0;
|
|
background: #f9fafe;
|
|
}
|
|
|
|
.script-box__label.ant-typography {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: #9095a1;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.script-box__content {
|
|
color: #333;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.record-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-record {
|
|
width: 40px;
|
|
height: 32px;
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.btn-record .anticon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-record.idle {
|
|
background: #ff4d4f;
|
|
}
|
|
|
|
.btn-record.idle:hover {
|
|
background: #d9363e;
|
|
}
|
|
|
|
.btn-record.recording {
|
|
background: #3c70f5;
|
|
}
|
|
|
|
.btn-record.recording:hover {
|
|
background: #2458d9;
|
|
}
|
|
|
|
.btn-record:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.record-progress {
|
|
flex: 1;
|
|
max-width: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
.record-progress__head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.record-progress__head .is-recording {
|
|
color: #3c70f5;
|
|
}
|
|
|
|
.speaker-reg-upload,
|
|
.speaker-reg-upload .ant-upload {
|
|
width: 100%;
|
|
}
|
|
|
|
.upload-compact {
|
|
width: 100%;
|
|
min-height: 104px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 18px 16px;
|
|
border: 1px dashed #b7cdfd;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.upload-compact:hover {
|
|
border-color: #3c70f5;
|
|
background: #f9fafe;
|
|
}
|
|
|
|
.upload-compact__icon {
|
|
margin-bottom: 8px;
|
|
color: #3c70f5;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.upload-compact__title {
|
|
margin-bottom: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.speaker-reg-audio-ready {
|
|
margin-top: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid #b7cdfd;
|
|
border-radius: 4px;
|
|
background: #f9fafe;
|
|
}
|
|
|
|
.speaker-reg-audio-ready__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.speaker-reg-audio-ready__head .anticon {
|
|
color: #52c41a;
|
|
}
|
|
|
|
.speaker-reg-audio-ready audio,
|
|
.speaker-card audio {
|
|
width: 100%;
|
|
height: 32px;
|
|
}
|
|
|
|
.speaker-reg-submit-area {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.speaker-reg-submit-area .ant-btn {
|
|
height: 34px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.info-strip {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 4px;
|
|
border: 1px solid #e6e6e6;
|
|
background: #f9fafe;
|
|
color: #596275;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.info-strip .anticon {
|
|
flex: 0 0 auto;
|
|
margin-top: 2px;
|
|
color: #3c70f5;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.speaker-reg-library > .ant-card-body {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.speaker-reg-library__tools .ant-input-search {
|
|
width: 220px;
|
|
}
|
|
|
|
.speaker-reg-library__tools .ant-badge-count {
|
|
background: #3c70f5;
|
|
}
|
|
|
|
.speaker-reg-library__hint.ant-typography {
|
|
flex-shrink: 0;
|
|
margin-bottom: 8px;
|
|
color: #9095a1;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.speaker-list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
|
|
.speaker-card {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 0.9fr) minmax(240px, 1.1fr) minmax(150px, 0.7fr);
|
|
align-items: center;
|
|
gap: 10px 14px;
|
|
padding: 10px 12px;
|
|
border: 0;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
border-radius: 0;
|
|
background: #fff;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.speaker-card + .speaker-card {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.speaker-card:hover {
|
|
border-color: #f0f0f0;
|
|
background: #f9fafe;
|
|
}
|
|
|
|
.speaker-card__head {
|
|
grid-column: 1;
|
|
grid-row: 1 / span 2;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.speaker-card__identity {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.speaker-card__identity > .ant-typography {
|
|
display: block;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.speaker-card__meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.speaker-card__meta .ant-tag {
|
|
margin: 0;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.speaker-card__meta .ant-typography {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.speaker-card__remark {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
margin-bottom: 0;
|
|
padding: 6px 8px;
|
|
border-radius: 4px;
|
|
background: #f9fafe;
|
|
color: #596275;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.speaker-card > audio {
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
}
|
|
|
|
.speaker-card--no-remark > audio {
|
|
grid-row: 1 / span 2;
|
|
}
|
|
|
|
.speaker-card__footer {
|
|
grid-column: 3;
|
|
grid-row: 1 / span 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
margin-top: 0;
|
|
color: #9095a1;
|
|
font-size: 11px;
|
|
text-align: right;
|
|
}
|
|
|
|
.speaker-reg-empty {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.speaker-reg-library .app-pagination-container {
|
|
flex-shrink: 0;
|
|
margin-top: 12px;
|
|
border-top: 1px solid #f0f0f0;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.speaker-reg-section-content {
|
|
overflow: auto;
|
|
}
|
|
|
|
.speaker-reg-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: visible;
|
|
}
|
|
|
|
.speaker-reg-card.ant-card {
|
|
min-height: 420px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.speaker-reg-card > .ant-card-head {
|
|
align-items: flex-start;
|
|
padding: 12px;
|
|
}
|
|
|
|
.speaker-reg-card > .ant-card-head .ant-card-head-wrapper {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.speaker-reg-card > .ant-card-head .ant-card-extra,
|
|
.speaker-reg-library__tools,
|
|
.speaker-reg-library__tools .ant-input-search {
|
|
width: 100%;
|
|
}
|
|
|
|
.record-controls {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.record-progress {
|
|
max-width: none;
|
|
}
|
|
|
|
.speaker-card {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.speaker-card__head,
|
|
.speaker-card__remark,
|
|
.speaker-card > audio,
|
|
.speaker-card__footer,
|
|
.speaker-card--no-remark > audio {
|
|
grid-column: auto;
|
|
grid-row: auto;
|
|
}
|
|
|
|
.speaker-card__footer {
|
|
align-items: flex-start;
|
|
text-align: left;
|
|
}
|
|
}
|