SHA256
Улучшить ввод пароля при входе и регистрации
This commit is contained in:
@@ -898,6 +898,7 @@
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 12000;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
background: var(--surface);
|
||||
@@ -906,9 +907,12 @@
|
||||
}
|
||||
|
||||
|
||||
.secret-generation-overlay[hidden] { display: none; }
|
||||
|
||||
.secret-generation-card {
|
||||
width: min(100%, 290px);
|
||||
width: min(100%, 350px);
|
||||
place-items: center;
|
||||
gap: 16px;
|
||||
padding: 28px 24px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
border-radius: 20px;
|
||||
@@ -930,15 +934,16 @@
|
||||
|
||||
.secret-generation-title {
|
||||
color: var(--preauth-ivory, var(--text-primary));
|
||||
font-size: 18px;
|
||||
font-weight: 650;
|
||||
font-size: 21px;
|
||||
line-height: 1.3;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
.secret-generation-progress {
|
||||
min-height: 20px;
|
||||
color: var(--preauth-muted, var(--accent));
|
||||
font-size: 13px;
|
||||
.secret-generation-description {
|
||||
margin: 0;
|
||||
color: var(--preauth-muted, var(--text-secondary));
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
|
||||
@@ -1593,6 +1598,12 @@
|
||||
width: 100%;
|
||||
padding-right: 50px;
|
||||
}
|
||||
/* Keep input, eye button and mask aligned at 32 monospaced characters. */
|
||||
.auth-password-field--multiline {
|
||||
width: min(100%, calc(32ch + 64px));
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 16px;
|
||||
}
|
||||
.auth-password-field__toggle {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
@@ -1619,3 +1630,55 @@
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
}
|
||||
|
||||
/* Адаптивная парольная фраза: от одной до трёх строк, при любом количестве символов. */
|
||||
.auth-password-field > .input.auth-password-field__textarea {
|
||||
display: block;
|
||||
/* 32 characters when space allows; on narrow screens the field shrinks. */
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
height: auto;
|
||||
padding: 10px 50px 10px 12px;
|
||||
resize: none;
|
||||
overflow-y: auto;
|
||||
/* A scrollbar would steal one character column and misalign the bullet mirror. */
|
||||
scrollbar-width: none;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.auth-password-field__textarea::-webkit-scrollbar { display: none; }
|
||||
.auth-password-field__mask {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 12px;
|
||||
padding: 10px 50px 10px 12px;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
color: var(--text-primary);
|
||||
text-align: start;
|
||||
}
|
||||
.auth-password-field__mask[hidden] { display: none; }
|
||||
.auth-password-field--masked > .auth-password-field__textarea {
|
||||
color: transparent;
|
||||
-webkit-text-fill-color: transparent;
|
||||
caret-color: var(--accent);
|
||||
}
|
||||
.auth-password-field__textarea:focus + .auth-password-field__mask {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.auth-password-field > .auth-password-field__textarea + .auth-password-field__mask + .auth-password-field__toggle {
|
||||
top: 2px;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user