Merge pull request #3747 from ssilvert/otp-scrollbar

KEYCLOAK-3884: OTP login page cutoff under weird sizes
This commit is contained in:
Stan Silvert 2017-01-12 16:37:43 -05:00 committed by GitHub
commit c4cce147e2
2 changed files with 13 additions and 14 deletions

View file

@ -11,7 +11,7 @@
</li>
<li>
<p>${msg("loginTotpStep2")}</p>
<img src="data:image/png;base64, ${totp.totpSecretQrCode}" alt="Figure: Barcode"><br/>
<img id="kc-totp-secret-qr-code" src="data:image/png;base64, ${totp.totpSecretQrCode}" alt="Figure: Barcode"><br/>
<span class="code">${totp.totpSecretEncoded}</span>
</li>
<li>

View file

@ -152,6 +152,11 @@ ol#kc-totp-settings li:first-of-type {
margin-top: 0;
}
#kc-totp-secret-qr-code {
max-width:150px;
max-height:150px;
}
/* OAuth */
#kc-oauth h3 {
@ -244,18 +249,6 @@ ol#kc-totp-settings li:first-of-type {
.zocial.microsoft {background-color: #0052a4; color: #fff;}
.zocial.microsoft:before { content: "\f15d"; }
@media (min-width: 1281px) {
#kc-container-wrapper {
bottom: 13%;
}
#kc-logo-wrapper {
position: absolute;
top: 50px;
right: 50px;
}
}
@media (min-width: 768px) {
#kc-container-wrapper {
position: absolute;
@ -326,7 +319,13 @@ ol#kc-totp-settings li:first-of-type {
}
}
@media (max-height: 500px) {
@media (min-height: 621px) {
#kc-container-wrapper {
bottom: 12%;
}
}
@media (max-height: 620px) {
#kc-container-wrapper {
}
}