250 lines
5.7 KiB
CSS
250 lines
5.7 KiB
CSS
.recovery-code-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--pm-border-color);
|
|
border-radius: var(--pm-radius-sm);
|
|
background: var(--pm-bg-secondary);
|
|
}
|
|
|
|
.recovery-code-summary > div {
|
|
display: grid;
|
|
gap: 3px;
|
|
}
|
|
|
|
.summary-label {
|
|
color: var(--pm-text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.recovery-code-description {
|
|
margin: 16px 0 0;
|
|
color: var(--pm-text-secondary);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.recovery-code-result {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.result-title {
|
|
display: grid;
|
|
gap: 4px;
|
|
color: var(--el-color-warning-dark-2);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.result-title span {
|
|
color: var(--pm-text-secondary);
|
|
}
|
|
|
|
.recovery-code-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.recovery-code-grid code {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
min-height: 44px;
|
|
box-sizing: border-box;
|
|
padding: 10px 4px;
|
|
border: 1px solid var(--pm-border-color);
|
|
border-radius: var(--pm-radius-sm);
|
|
background: var(--pm-bg-secondary);
|
|
color: var(--pm-text-primary);
|
|
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1.5;
|
|
letter-spacing: 0;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
user-select: all;
|
|
}
|
|
|
|
.copy-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 32px;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
vertical-align: middle;
|
|
justify-self: end;
|
|
}
|
|
|
|
.dialog-feedback.error {
|
|
margin: 12px 0 0;
|
|
padding: 9px 12px;
|
|
border-radius: var(--pm-radius-sm);
|
|
color: var(--el-color-danger-dark-2);
|
|
background: var(--el-color-danger-light-9);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.recovery-dialog-actions {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
flex-flow: row nowrap !important;
|
|
align-items: center;
|
|
align-content: center;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
min-width: max-content;
|
|
min-height: 36px;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
:global(.recovery-code-dialog .el-dialog__footer) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.recovery-dialog-actions :deep(.el-button + .el-button) {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.recovery-dialog-actions :deep(.el-button) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
height: 36px;
|
|
min-height: 36px;
|
|
box-sizing: border-box;
|
|
padding: 8px 12px;
|
|
margin-top: 0;
|
|
margin-right: 0;
|
|
margin-bottom: 0;
|
|
margin-left: 0 !important;
|
|
line-height: 1.25;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.recovery-code-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.recovery-code-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.recovery-dialog-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.recovery-code-dialog .recovery-dialog-actions {
|
|
display: flex !important;
|
|
flex-flow: row nowrap !important;
|
|
align-items: center !important;
|
|
align-content: center !important;
|
|
justify-content: flex-end !important;
|
|
gap: 10px !important;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 36px;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
box-sizing: border-box;
|
|
white-space: nowrap;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.recovery-code-dialog .recovery-dialog-actions > :deep(.el-button) {
|
|
display: inline-flex !important;
|
|
flex: 0 0 auto !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
width: max-content;
|
|
min-width: max-content;
|
|
height: 36px !important;
|
|
max-height: 36px;
|
|
box-sizing: border-box;
|
|
margin: 0 !important;
|
|
padding: 0 14px !important;
|
|
line-height: 1 !important;
|
|
white-space: nowrap !important;
|
|
word-break: keep-all !important;
|
|
overflow-wrap: normal !important;
|
|
writing-mode: horizontal-tb !important;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
:global(.recovery-code-dialog .el-dialog__footer) {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: flex-end !important;
|
|
min-height: 52px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.recovery-code-dialog .recovery-dialog-actions {
|
|
display: flex !important;
|
|
flex-flow: row nowrap !important;
|
|
justify-content: flex-start !important;
|
|
}
|
|
}
|
|
|
|
/* 弹窗底部操作按钮统一为单行、等高、垂直居中。 */
|
|
.recovery-code-dialog .recovery-dialog-actions {
|
|
display: flex !important;
|
|
flex-direction: row !important;
|
|
flex-wrap: nowrap !important;
|
|
align-items: center !important;
|
|
align-content: center !important;
|
|
justify-content: flex-end !important;
|
|
gap: 10px !important;
|
|
min-height: 36px !important;
|
|
overflow-x: auto !important;
|
|
overflow-y: hidden !important;
|
|
white-space: nowrap !important;
|
|
}
|
|
|
|
.recovery-code-dialog .recovery-dialog-actions > :deep(.el-button) {
|
|
display: inline-flex !important;
|
|
flex: 0 0 auto !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
height: 36px !important;
|
|
min-height: 36px !important;
|
|
max-height: 36px !important;
|
|
box-sizing: border-box !important;
|
|
margin: 0 !important;
|
|
padding: 0 14px !important;
|
|
line-height: 1 !important;
|
|
white-space: nowrap !important;
|
|
word-break: keep-all !important;
|
|
overflow-wrap: normal !important;
|
|
writing-mode: horizontal-tb !important;
|
|
vertical-align: middle !important;
|
|
}
|
|
|
|
.recovery-code-dialog .recovery-dialog-actions > :deep(.el-button > span) {
|
|
display: inline-flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
height: 100% !important;
|
|
white-space: nowrap !important;
|
|
line-height: 1 !important;
|
|
}
|