diff --git a/app/assets/stylesheets/credentials.css b/app/assets/stylesheets/credentials.css index 64e39005b..bb6db0b37 100644 --- a/app/assets/stylesheets/credentials.css +++ b/app/assets/stylesheets/credentials.css @@ -1,29 +1,34 @@ @layer components { - .passkey-icon--dark { - display: none; + .credential { + border-block-start: var(--border); + list-style: none; + + &:last-child { + border-block-end: var(--border); + } } - .passkey-icon--light { - html[data-theme="dark"] & { - display: none; - } + .credential__link { + align-items: center; + block-size: 1.75lh; + color: currentcolor; + display: flex; + gap: 1ch; + padding-inline: 1ch; - @media (prefers-color-scheme: dark) { - html:not([data-theme]) & { - display: none; + @media (any-hover: hover) { + &:hover { + background: var(--color-ink-lightest); + + .credential__arrow { + opacity: 0.66; + } } } } - .passkey-icon--dark { - html[data-theme="dark"] & { - display: inline; - } - - @media (prefers-color-scheme: dark) { - html:not([data-theme]) & { - display: inline; - } - } + .credential__arrow { + margin-inline-start: auto; + opacity: 0; } } diff --git a/app/assets/stylesheets/utilities.css b/app/assets/stylesheets/utilities.css index 53837034c..2aa07029c 100644 --- a/app/assets/stylesheets/utilities.css +++ b/app/assets/stylesheets/utilities.css @@ -31,9 +31,10 @@ .txt-capitalize-first-letter::first-letter { text-transform: capitalize; } .txt-link { color: var(--color-link); text-decoration: underline; } - .font-weight-normal { font-weight: normal; } + .font-weight-normal { font-weight: 400; } + .font-weight-medium { font-weight: 500; } .font-weight-semibold { font-weight: 600; } - .font-weight-bold { font-weight: bold; } + .font-weight-bold { font-weight: 700; } .font-weight-black { font-weight: 900; } /* Flexbox and Grid */ @@ -283,4 +284,28 @@ display: none; } } + + .hide-on-dark-mode { + html[data-theme="dark"] & { + display: none; + } + + html:not([data-theme]) & { + @media (prefers-color-scheme: dark) { + display: none; + } + } + } + + .hide-on-light-mode { + html[data-theme="light"] & { + display: none; + } + + html:not([data-theme]) & { + @media (prefers-color-scheme: light) { + display: none; + } + } + } } diff --git a/app/views/users/credentials/_credential.html.erb b/app/views/users/credentials/_credential.html.erb index 38fe5cb0e..fa1e733e6 100644 --- a/app/views/users/credentials/_credential.html.erb +++ b/app/views/users/credentials/_credential.html.erb @@ -1,10 +1,9 @@ -
Passkeys let you sign in securely without a password or email code.
+Passkeys let you sign in securely without a password or email code.
<% if @credentials.any? %> -Your browser will prompt you to create a passkey - using your device's biometrics, PIN, or security key
+