color: var(--color-main-text);
background-color: var(--color-main-background);
padding: $guest-container-padding;
- border-radius: var(--border-radius-large);
+ border-radius: var(--body-container-radius);
box-shadow: 0 0 10px var(--color-box-shadow);
display: inline-block;
}
<template>
<div class="guest-box login-box">
- <div v-if="!hideLoginForm || directLogin">
+ <template v-if="!hideLoginForm || directLogin">
<transition name="fade" mode="out-in">
<div v-if="!passwordlessLogin && !resetPassword && resetPasswordTarget === ''">
<LoginForm :username.sync="user"
@done="passwordResetFinished" />
</div>
</transition>
- </div>
- <div v-else>
+ </template>
+ <template v-else>
<transition name="fade" mode="out-in">
<NcNoteCard type="warning" :title="t('core', 'Login form is disabled.')">
{{ t('core', 'Please contact your administrator.') }}
</NcNoteCard>
</transition>
- </div>
+ </template>
<div id="alternative-logins" class="alternative-logins">
<NcButton v-for="(alternativeLogin, index) in alternativeLogins"
}
.login-box {
- width: 300px;
+ // Same size as dashboard panels
+ width: 320px;
+ box-sizing: border-box;
&__link {
display: block;
font-weight: normal !important;
}
}
+
+// Same look like a dashboard panel
+.login-box.guest-box, footer {
+ color: var(--color-main-text);
+ background-color: var(--color-main-background-blur);
+ -webkit-backdrop-filter: var(--filter-background-blur);
+ backdrop-filter: var(--filter-background-blur);
+}
+
+footer {
+ // Usually the same size as the login box, but allow longer texts
+ min-width: 320px;
+ box-sizing: border-box;
+ // align with login box
+ box-shadow: 0 0 10px var(--color-box-shadow);
+ // set border to pill style and adjust padding for it
+ border-radius: var(--border-radius-pill);
+ padding: 6px 24px;
+ // always show above bottom
+ margin-bottom: 1rem;
+ min-height: unset;
+
+ // reset margin to reduce height of pill
+ p.info {
+ margin: auto 0px;
+ }
+}
+
.fade-enter-active, .fade-leave-active {
transition: opacity .3s;
}