统一安全码按钮水平对齐与垂直居中
This commit is contained in:
parent
edadf922eb
commit
9f1ca71ede
@ -529,4 +529,143 @@
|
|||||||
overflow-y: hidden !important;
|
overflow-y: hidden !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* 安全码操作区最终布局:桌面端保持单行、等高和垂直居中。 */
|
||||||
|
.security-settings-card .security-key-header {
|
||||||
|
display: grid !important;
|
||||||
|
grid-template-columns: minmax(0, 1fr) max-content !important;
|
||||||
|
grid-template-rows: auto auto !important;
|
||||||
|
grid-template-areas:
|
||||||
|
"title actions"
|
||||||
|
"description description";
|
||||||
|
align-items: center !important;
|
||||||
|
column-gap: 16px !important;
|
||||||
|
row-gap: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child {
|
||||||
|
display: contents !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > h3 {
|
||||||
|
grid-area: title !important;
|
||||||
|
align-self: center !important;
|
||||||
|
min-width: 0;
|
||||||
|
margin: 0 !important;
|
||||||
|
line-height: 1.4 !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > .settings-desc {
|
||||||
|
grid-area: description !important;
|
||||||
|
min-width: 0;
|
||||||
|
margin: 0 !important;
|
||||||
|
line-height: 1.5 !important;
|
||||||
|
white-space: normal !important;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions {
|
||||||
|
display: flex !important;
|
||||||
|
grid-area: actions !important;
|
||||||
|
flex: 0 0 auto !important;
|
||||||
|
flex-flow: row nowrap !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: flex-end !important;
|
||||||
|
align-self: center !important;
|
||||||
|
justify-self: end !important;
|
||||||
|
gap: 8px !important;
|
||||||
|
width: max-content !important;
|
||||||
|
min-width: max-content !important;
|
||||||
|
max-width: none !important;
|
||||||
|
height: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions > .el-button {
|
||||||
|
display: inline-flex !important;
|
||||||
|
flex: 0 0 auto !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
width: max-content !important;
|
||||||
|
min-width: max-content !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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions > .el-button > span {
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
max-width: none !important;
|
||||||
|
height: 100% !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
line-height: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@container settings-content (max-width: 560px) {
|
||||||
|
.security-settings-card .security-key-header {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
|
align-items: stretch !important;
|
||||||
|
gap: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > h3 {
|
||||||
|
margin: 0 0 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions {
|
||||||
|
align-self: stretch !important;
|
||||||
|
justify-content: flex-start !important;
|
||||||
|
width: 100% !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
overflow-x: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.security-settings-card .security-key-header {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
|
align-items: stretch !important;
|
||||||
|
gap: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > h3 {
|
||||||
|
margin: 0 0 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions {
|
||||||
|
align-self: stretch !important;
|
||||||
|
justify-content: flex-start !important;
|
||||||
|
width: 100% !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
overflow-x: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user