The logo replaces the plain-text title on the sign-in card and in the sidebar (and the top bar on phones). The picture's empty margin is trimmed with CSS so the logo fills the space; an environment badge, when set, sits beside or under it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
93 lines
2.0 KiB
CSS
93 lines
2.0 KiB
CSS
.loading-screen {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
color: var(--tblr-secondary);
|
|
}
|
|
|
|
.login-screen {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background: var(--tblr-bg-surface-secondary, #f4f6fb);
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 22rem;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
background: var(--tblr-bg-surface, #fff);
|
|
border-radius: var(--tblr-border-radius, 4px);
|
|
box-shadow: var(--tblr-box-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.1));
|
|
}
|
|
|
|
.login-card h1 {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* The logo stands in for the heading; an environment badge, when there is one, sits under it. */
|
|
.login-logo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
margin: -0.5rem 0 0.75rem;
|
|
}
|
|
|
|
/* The picture has empty margin around the logo itself; this trims it so the logo fills the card. */
|
|
.logo-frame {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.logo-frame img {
|
|
display: block;
|
|
width: 122%;
|
|
max-width: none;
|
|
height: auto;
|
|
margin: -16% -11%;
|
|
}
|
|
|
|
.login-card p {
|
|
color: var(--tblr-secondary);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* The logo in the sidebar, in place of the name. */
|
|
.navbar-brand .logo-frame {
|
|
width: 11rem;
|
|
}
|
|
|
|
.navbar-brand a {
|
|
display: block;
|
|
}
|
|
|
|
/* An installation told to look different (ENVIRONMENT_NAME / ENVIRONMENT_COLOR on the server), so a dev copy can't be taken for production. */
|
|
html[data-env] .navbar-vertical {
|
|
background-color: var(--hlm-env-color) !important;
|
|
}
|
|
|
|
.env-badge {
|
|
background-color: #fff;
|
|
color: var(--hlm-env-color, #000);
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.login-card-env {
|
|
border-top: 4px solid var(--hlm-env-color);
|
|
}
|
|
|
|
/* Sidebar submenus: a little tighter than Tabler's dropdown rows, so several open groups still fit on one screen. */
|
|
.navbar-vertical .dropdown-menu .dropdown-item {
|
|
padding-top: 0.3rem;
|
|
padding-bottom: 0.3rem;
|
|
}
|