Change positioning and sizing of external login buttons to be nicer looking, using flex box
Fixes https://jira.coreos.com/browse/QUAY-806
This commit is contained in:
parent
5e82538fd5
commit
868a3df2d8
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 {
|
.external-login-button img {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|
|
@ -45,14 +45,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.signin-form-element .external-logins {
|
.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 {
|
.signin-form-element .external-login-button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
margin-left: 15px;
|
margin-bottom: 10px;
|
||||||
margin-right: 15px;
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.signin-form-element .external-login-button a {
|
.signin-form-element .external-login-button a {
|
||||||
|
@ -65,16 +69,13 @@
|
||||||
font-size: 14px;
|
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 {
|
.signin-form-element .external-login-button i.fa {
|
||||||
font-size: 46px;
|
font-size: 46px;
|
||||||
width: auto !important;
|
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
|
Login via service
|
||||||
</h4>
|
</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"
|
<div class="external-login-button" provider="provider" redirect-url="redirectUrl"
|
||||||
sign-in-started="markStarted()" ng-repeat="provider in EXTERNAL_LOGINS" is-link="true"></div>
|
sign-in-started="markStarted()" ng-repeat="provider in EXTERNAL_LOGINS" is-link="true"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue