Add QR code login
This commit is contained in:
@@ -135,6 +135,16 @@ button {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.login-tabs {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.login-tabs button {
|
||||
min-width: 0;
|
||||
padding: 0 6px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.code-row {
|
||||
grid-template-columns: minmax(0, 1fr) 112px;
|
||||
}
|
||||
@@ -308,6 +318,89 @@ button {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.qr-login-card {
|
||||
position: relative;
|
||||
width: min(248px, 100%);
|
||||
aspect-ratio: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
justify-self: center;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.qr-code-button {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 18px;
|
||||
border: 0;
|
||||
background: #fff;
|
||||
color: var(--muted);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.qr-code-button:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.qr-code-button img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.qr-login-card.scanned .qr-code-button,
|
||||
.qr-login-card.expired .qr-code-button,
|
||||
.qr-login-card.error .qr-code-button {
|
||||
opacity: 0.22;
|
||||
}
|
||||
|
||||
.qr-scan-user {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: rgba(255, 255, 255, 0.76);
|
||||
}
|
||||
|
||||
.qr-scan-user img,
|
||||
.qr-scan-user span {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 8px;
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.qr-login-status {
|
||||
min-height: 48px;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.qr-login-status strong {
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.qr-login-status span {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.primary-action,
|
||||
.primary-inline-action,
|
||||
.send-button {
|
||||
Reference in New Issue
Block a user