Files
khb_microservices/deploy/infra/keycloak-theme-khb/login/resources/css/khb-v3.css
Yuri Yaryshev 8e747bca20
All checks were successful
ci / deploy (push) Successful in 2m24s
ci / test (push) Successful in 52s
Keycloak тема: Google над формой с отступами, имя css с версией (кэш 30 дней)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 14:49:35 +03:00

52 lines
2.8 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Тема входа KH Build: кнопка Google сверху, крупная, с пульсирующей рамкой (логин и пароль нужны редко). */
.pf-v5-c-login__main-body { display: flex; flex-direction: column; }
#kc-form { order: 1; }
.pf-v5-c-login__main-body > .pf-v5-c-login__main-footer { order: 0; }
.pf-v5-c-login__main-footer-band { display: none; }
#kc-social-providers { margin-top: 1.5rem; margin-bottom: 1.5rem; }
#kc-social-providers li { padding-bottom: 0; }
#social-google {
position: relative;
min-height: 9rem; /* примерно в 4 раза выше обычной кнопки */
gap: 1.25rem;
padding: 1rem 1.5rem;
justify-content: flex-start;
border: 3px solid #4285f4;
border-radius: 12px;
font-size: 1.5rem;
font-weight: 600;
animation: khb-pulse 1.6s ease-in-out infinite;
}
#social-google svg.google { width: 5rem; height: 5rem; flex: none; } /* значок крупнее вместе с кнопкой */
#social-google .pf-v5-u-m-auto { margin: 0 !important; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
#social-google .pf-v5-u-m-auto::after {
content: "Click here if you don't know";
font-size: 1rem;
font-weight: 400;
color: #6a6e73;
}
@keyframes khb-pulse {
0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, .65); }
70% { box-shadow: 0 0 0 16px rgba(66, 133, 244, 0); }
100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
}
@media (prefers-reduced-motion: reduce) { #social-google { animation: none; box-shadow: 0 0 0 4px rgba(66, 133, 244, .4); } }
/* Фирменный стиль KH Build: тёмный фон, золотой акцент (цвета сайта khbuild.pro), логотип над формой */
:root { --khb-gold: #a98146; --khb-gold-light: #e9c79a; --khb-dark: #151005; }
body#keycloak-bg, .pf-v5-c-login { background: radial-gradient(ellipse at top, #2e2210 0%, var(--khb-dark) 70%) !important; }
.pf-v5-c-login__main { border-top: 4px solid var(--khb-gold); border-radius: 8px; }
#kc-header-wrapper {
display: flex; flex-direction: column; align-items: center; gap: .75rem;
color: var(--khb-gold-light); font-size: 2rem; font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
}
#kc-header-wrapper::before {
content: ""; width: 96px; height: 96px; border-radius: 18px; background: #fff url("../img/logo.svg") center / 72px no-repeat;
box-shadow: 0 0 0 3px var(--khb-gold);
}
#kc-header-wrapper::after { content: "Services"; font-size: .9rem; letter-spacing: .5em; color: var(--khb-gold); }
.pf-v5-c-title { color: var(--khb-dark); }
.pf-v5-c-button.pf-m-primary { background-color: var(--khb-gold); color: #fff; }
.pf-v5-c-button.pf-m-primary:hover, .pf-v5-c-button.pf-m-primary:focus { background-color: #8c6a37; }