Keycloak: тема входа khb (крупная пульсирующая кнопка Google сверху)
All checks were successful
ci / deploy (push) Successful in 2m23s
ci / test (push) Successful in 55s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:31:41 +03:00
parent 8a1daa131b
commit d79ebfda10
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
/* Тема входа KH Build: кнопка Google сверху, крупная, с пульсирующей рамкой (логин и пароль нужны редко). */
.pf-v5-c-login__main { display: flex; flex-direction: column; }
.pf-v5-c-login__main-header { order: -2; }
.pf-v5-c-login__main-footer { order: -1; }
.pf-v5-c-login__main-footer-band { display: none; }
#kc-social-providers { 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); } }

View File

@@ -0,0 +1,2 @@
parent=keycloak.v2
styles=css/styles.css css/khb.css