Fixes login table style

This commit is contained in:
apapachristou 2019-10-29 18:17:04 +02:00
parent b8058f17f6
commit bb91873194
2 changed files with 113 additions and 54 deletions

View File

@ -7,32 +7,45 @@
<button *ngIf="hasGoogleOauth()" mat-icon-button id="googleSignInButton" class="login-social-button"> <button *ngIf="hasGoogleOauth()" mat-icon-button id="googleSignInButton" class="login-social-button">
<i class="fa fa-google"></i> <i class="fa fa-google"></i>
</button> </button>
</div>
<div class="col">
<button *ngIf="hasLinkedInOauth()" mat-icon-button class="login-social-button"> <button *ngIf="hasLinkedInOauth()" mat-icon-button class="login-social-button">
<i class="fa fa-linkedin" (click)="linkedInLogin()"></i> <i class="fa fa-linkedin" (click)="linkedInLogin()"></i>
</button> </button>
</div>
<div class="col">
<button *ngIf="hasFacebookOauth()" mat-icon-button (click)="facebookLogin()" class="login-social-button"> <button *ngIf="hasFacebookOauth()" mat-icon-button (click)="facebookLogin()" class="login-social-button">
<i class="fa fa-facebook-square"></i> <i class="fa fa-facebook-square"></i>
</button> </button>
</div>
<div class="col">
<button *ngIf="hasTwitterOauth()" mat-icon-button (click)="twitterLogin()" class="login-social-button"> <button *ngIf="hasTwitterOauth()" mat-icon-button (click)="twitterLogin()" class="login-social-button">
<i class="fa fa-twitter"></i> <i class="fa fa-twitter"></i>
</button> </button>
</div> </div>
</div> </div>
<div class="row mt-2 accesss-methods"> <div class="w-100"></div>
<div class="col justify-content-center"> <div class="row pt-2 mb-4 accesss-methods">
<!-- <div class="col justify-content-center"> -->
<div class="col-auto logo">
<button *ngIf="hasB2AccessOauth()" class="b2access-button" mat-icon-button (click)="b2AccessLogin()" class="login-social-button"> <button *ngIf="hasB2AccessOauth()" class="b2access-button" mat-icon-button (click)="b2AccessLogin()" class="login-social-button">
<span class="iconmedium"></span> <span class="iconmedium"></span>
<!-- <span></span> --> <!-- <span></span> -->
</button> </button>
</div>
<div class="col-auto orcid-logo">
<button *ngIf="hasOrcidOauth()" class="orcid-button" mat-icon-button (click)="orcidLogin()" class="login-social-button"> <button *ngIf="hasOrcidOauth()" class="orcid-button" mat-icon-button (click)="orcidLogin()" class="login-social-button">
<span class="orcidIconMedium"></span> <span class="orcidIconMedium"></span>
<!-- <span></span> --> <!-- <span></span> -->
</button> </button>
</div>
<div class="col-auto openaire-logo">
<button *ngIf="hasOpenAireOauth()" class="openaire-button" mat-icon-button (click)="openaireLogin()" class="login-social-button"> <button *ngIf="hasOpenAireOauth()" class="openaire-button" mat-icon-button (click)="openaireLogin()" class="login-social-button">
<span class="openaireIcon"></span> <span class="openaireIcon"></span>
<!-- <span></span> --> <!-- <span></span> -->
</button> </button>
</div> </div>
<!-- </div> -->
</div> </div>
</div> </div>
<div class="card-footer"> <div class="card-footer">

View File

@ -28,36 +28,32 @@
margin-top: 40px; margin-top: 40px;
} }
@media (min-width: 1200px) {
.container {
width: 100%;
}
}
@media (min-width: 992px) {
.container {
width: 100%;
}
}
@media (min-width: 768px) {
.container {
width: 100%;
}
}
// @media (max-width: 438px) {
// .social-btns i {
// padding: 0.4em !important;
// }
// }
.container { .container {
height: 100%; height: 100%;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
@-webkit-keyframes card {
from {
top: -40px;
}
to {
top: 0;
}
}
@keyframes card {
from {
top: -40px;
}
to {
top: 0;
}
}
.card { .card {
position: relative; position: relative;
padding: 20px; padding: 20px;
@ -80,26 +76,6 @@
animation-fill-mode: forwards; animation-fill-mode: forwards;
} }
@-webkit-keyframes card {
from {
top: -40px;
}
to {
top: 0;
}
}
@keyframes card {
from {
top: -40px;
}
to {
top: 0;
}
}
.card-header { .card-header {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@ -124,6 +100,7 @@
.social-btns { .social-btns {
height: 6em; height: 6em;
justify-content: center;
} }
.social-btns i { .social-btns i {
@ -132,10 +109,44 @@
color: #fff; color: #fff;
} }
// .social-btns:hover { .social-btns .col {
// background-color: #f5f5f5; flex-grow: 0;
// border-radius: 1em; }
// }
.social-btns i:hover {
background-color: #f5f5f51c;
border-radius: 60%;
}
.accesss-methods {
height: 5em;
justify-content: center;
}
.accesss-methods .col-auto:hover {
background-color: #f5f5f51c;
border-radius: 100%;
}
.accesss-methods .logo {
flex-grow: 0;
padding-top: 21px;
padding-bottom: 21px;
}
.accesss-methods .openaire-logo {
flex-grow: 0;
padding-top: 21px;
padding-bottom: 21px;
margin-top: 5px;
height: 90px;
}
.accesss-methods .orcid-logo {
height: 75px;
padding-top: 8px;
margin-top: 13px;
}
.tip { .tip {
margin-top: -20px; margin-top: -20px;
@ -196,7 +207,7 @@ span.orcidIconMedium {
background: url(img/ORCIDiD_medium.png) no-repeat; background: url(img/ORCIDiD_medium.png) no-repeat;
background-position: center; background-position: center;
float: right; float: right;
width: 100px; width: 56px;
height: 56px; height: 56px;
// margin-left: 1em; // margin-left: 1em;
// margin-right: 1em; // margin-right: 1em;
@ -206,7 +217,7 @@ span.openaireIcon {
background: url(img/openaire_small.png) no-repeat; background: url(img/openaire_small.png) no-repeat;
background-position: center; background-position: center;
float: right; float: right;
width: 100px; width: 80px;
height: 56px; height: 56px;
// margin-left: 1em; // margin-left: 1em;
// margin-right: 1em; // margin-right: 1em;
@ -244,6 +255,41 @@ span.openaireIcon {
height: auto; height: auto;
} }
.accesss-methods { @media (min-width: 1200px) {
height: 5em; .container {
width: 100%;
}
}
@media (min-width: 992px) {
.container {
width: 100%;
}
}
@media (min-width: 768px) {
.container {
width: 100%;
}
}
@media (min-width: 401px) and (max-width: 560px) {
.social-btns i {
padding: 0.4em !important;
}
.accesss-methods {
padding-top: 1em;
}
}
@media (min-width: 0px) and (max-width: 400px) {
.social-btns i {
padding: 0.4em !important;
}
.card-header {
height: 350px !important;
}
.accesss-methods {
padding-top: 1em;
}
} }