mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
UX: show the SSO options when creating an account on mobile (#25260)
This commit is contained in:
parent
c177c198c5
commit
d5f527ee37
|
@ -281,7 +281,11 @@
|
|||
{{loading-spinner size="large"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if (and this.hasAtLeastOneLoginButton this.site.desktopView)}}
|
||||
|
||||
{{#if this.hasAtLeastOneLoginButton}}
|
||||
{{#if this.site.mobileView}}
|
||||
<div class="login-or-separator"><span>
|
||||
{{i18n "login.or"}}</span></div>{{/if}}
|
||||
<div class="login-right-side">
|
||||
<LoginButtons
|
||||
@externalLogin={{this.externalLogin}}
|
||||
|
|
|
@ -25,6 +25,29 @@
|
|||
padding: 1rem;
|
||||
}
|
||||
|
||||
.login-right-side {
|
||||
padding: 1rem 0 0;
|
||||
background: unset;
|
||||
}
|
||||
|
||||
.login-or-separator {
|
||||
border-top: 1px solid var(--primary-low);
|
||||
position: relative;
|
||||
margin-block: 1rem;
|
||||
|
||||
span {
|
||||
transform: translate(-50%, -50%);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
background: var(--secondary);
|
||||
padding-inline: 0.5rem;
|
||||
color: var(--primary-medium);
|
||||
font-size: var(--font-down-1-rem);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
#login-buttons {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
|
Loading…
Reference in New Issue
Block a user