Clean up style when both oAuth2 and account approval are enabled

This commit is contained in:
Kris 2019-03-26 20:47:06 -04:00
parent 095ee6ac96
commit f177567cee
2 changed files with 20 additions and 2 deletions

View File

@ -238,6 +238,11 @@
background: lighten($github, 20%); background: lighten($github, 20%);
} }
} }
&.oauth2_basic {
.d-icon {
display: none;
}
}
} }
// Button Sizes // Button Sizes

View File

@ -8,8 +8,7 @@
flex: 0; flex: 0;
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
min-height: 175px; min-height: 75px;
border-left: 1px solid $primary-low;
padding: s(0 6); padding: s(0 6);
order: 2; order: 2;
@ -21,6 +20,14 @@
&:lang(zh_CN) { &:lang(zh_CN) {
min-width: 200px; min-width: 200px;
} }
&:first-of-type:last-of-type {
&.oauth2_basic {
// Handles a strange fringe case where OAuth2 and account approval are enabled
margin-left: auto;
margin-right: auto;
justify-content: center;
}
}
} }
} }
@ -50,6 +57,9 @@
#login-buttons:not(.hidden) { #login-buttons:not(.hidden) {
justify-content: flex-start; justify-content: flex-start;
padding-top: 2.7em; padding-top: 2.7em;
+ .login-form {
border-right: 1px solid $primary-low; // Only show border when login-form is present
}
} }
} }
@ -57,6 +67,9 @@
box-sizing: border-box; box-sizing: border-box;
flex: 1 0 auto; flex: 1 0 auto;
padding: s(0 6); padding: s(0 6);
+ #login-buttons {
border-left: 1px solid $primary-low; // Only show border when login-form is present
}
} }
tr:not(.instructions) { tr:not(.instructions) {