Merge pull request #2990 from coreos-inc/joseph.schorr/QUAY-806/oidc-icon
Change positioning and sizing of external login buttons to be nicer looking, using flex box
This commit is contained in:
commit
9cd7093130
3 changed files with 22 additions and 14 deletions
|
@ -1,4 +1,11 @@
|
|||
.external-login-button i.fa,
|
||||
.external-login-button i.fa {
|
||||
margin-right: 4px;
|
||||
width: 24px;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.external-login-button img {
|
||||
margin-right: 4px;
|
||||
width: 24px;
|
||||
|
|
|
@ -45,14 +45,18 @@
|
|||
}
|
||||
|
||||
.signin-form-element .external-logins {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signin-form-element .external-login-button {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
padding: 6px;
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 10px;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.signin-form-element .external-login-button a {
|
||||
|
@ -65,16 +69,13 @@
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
.signin-form-element .external-logins.smaller .external-login-button .login-text .prefix {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.signin-form-element .external-logins.larger .external-login-button .login-text .suffix {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
.signin-form-element .external-login-button i.fa {
|
||||
font-size: 46px;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.signin-form-element .external-login-button img {
|
||||
width: 50% !important;
|
||||
max-width: 80px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Login via service
|
||||
</h4>
|
||||
|
||||
<div class="external-logins" quay-show="EXTERNAL_LOGINS.length" ng-class="EXTERNAL_LOGINS.length > 2 ? 'smaller': 'larger'">
|
||||
<div class="external-logins" quay-show="EXTERNAL_LOGINS.length">
|
||||
<div class="external-login-button" provider="provider" redirect-url="redirectUrl"
|
||||
sign-in-started="markStarted()" ng-repeat="provider in EXTERNAL_LOGINS" is-link="true"></div>
|
||||
</div>
|
||||
|
|
Reference in a new issue