Add styles for homepage too; add alternative versions of the register buttons.

This commit is contained in:
Paulo Reis 2018-09-20 17:17:24 +01:00 committed by James Allen
parent 70e99d4001
commit be9045c7ed
4 changed files with 80 additions and 6 deletions

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 510.2"><title>Shape-Copy</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path id="Shape-Copy" d="M254.85,303.57v-94.9H493.62C497.19,224.74,500,239.8,500,261c0,145.66-97.7,249.23-244.9,249.23C114.29,510.2,0,395.92,0,255.1S114.29,0,255.1,0C324,0,381.63,25.26,425.77,66.58L353.32,137c-18.37-17.35-50.51-37.76-98.21-37.76-84.44,0-153.32,70.15-153.32,156.12S170.66,411.48,255.1,411.48c97.7,0,133.67-67.6,140.31-107.65H254.85Z" fill="#4885ED"/></g></g></svg>

After

Width:  |  Height:  |  Size: 543 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><title>Asset 1</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path d="M289.06,181.64H242.77V336.72h47.85c68.16,0,83.79-51.76,83.79-77.54C374.41,217.19,347.66,181.64,289.06,181.64Z" fill="#95ba2e"/><path d="M250,0C111.91,0,0,111.91,0,250S111.91,500,250,500,500,388.09,500,250,388.09,0,250,0ZM168.55,249V363.67H138.48V154.49h30.08Zm-15-118.36a19.73,19.73,0,1,1,19.73-19.73A19.8,19.8,0,0,1,153.52,130.66Zm140.82,233.2H212.7V154.49h81.25c77.34,0,111.33,55.27,111.33,104.69C405.27,312.89,363.28,363.87,294.34,363.87Z" fill="#95ba2e"/></g></g></svg>

After

Width:  |  Height:  |  Size: 640 B

View file

@ -1,3 +1,5 @@
@register-v-spacing: 20px;
.deprecated-sl-masthead {
display: inline-block;
margin-top: @header-height;
@ -73,7 +75,7 @@
.register-banner {
background-image: -webkit-linear-gradient(top,rgba(0,0,0,0.7),rgba(0,0,0,0.9));
background-image: linear-gradient(to bottom,rgba(0,0,0,0.7),rgba(0,0,0,0.9));
padding: @line-height-computed 0;
padding: @register-v-spacing 0;
position: absolute;
bottom: 0;
width: 100%;
@ -83,13 +85,17 @@
font-family: @font-family-sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin-bottom: @register-v-spacing;
}
.form-group {
margin-left: @line-height-computed / 2;
}
.input-lg {
border-radius: 9999px;
}
}
.screenshot {
height: 550px;
height: 600px;
margin: auto;
margin-bottom: -50px;
overflow-y: hidden;
@ -119,6 +125,39 @@
float: left;
}
}
.hp-register-external-separator {
margin: 0 0 (@register-v-spacing / 2);
color: #FFF;
}
.hp-register-external-separator-or {
vertical-align: middle;
&::before,
&::after {
content: "";
display: inline-block;
vertical-align: middle;
width: 5em;
height: 1px;
background-color: rgba(255, 255, 255, .3);
}
&::before {
margin-right: 1.25em;
}
&::after {
margin-left: 1.25em;
}
}
.hp-register-newsletter-checkbox {
font-size: 90%;
}
.hp-login-btn {
min-width: 220px;
}
@media only screen and (max-width: @screen-sm-max) {
.masthead {
.btn-hero {

View file

@ -4,15 +4,34 @@
@brand-orcid-color : #A6CE39;
@brand-sharelatex-color : #A93529;
.make-login-register-brand-btn(@color) {
background-color: @color;
.make-login-register-brand-btn(@bg-color) {
background-color: @bg-color;
text-indent: -10px;
padding-left: 0;
padding-right: 0;
&:focus,
&:hover {
background-color: darken(@color, 8%);
background-color: darken(@bg-color, 8%);
}
&:active {
background-color: darken(@color, 16%);
background-color: darken(@bg-color, 16%);
}
}
.make-login-register-brand-btn-alt(@color) {
background-color: #FFF;
color: @color;
text-indent: -10px;
padding-left: 0;
padding-right: 0;
&:focus,
&:hover {
background-color: #FFF;
color: darken(@color, 8%);
}
&:active {
background-color: #FFF;
color: darken(@color, 16%);
}
}
@ -109,6 +128,10 @@
.make-login-register-brand-btn(@brand-google-color);
}
.login-btn-google-alt {
.make-login-register-brand-btn-alt(@brand-google-color);
}
.login-btn-twitter {
.make-login-register-brand-btn(@brand-twitter-color);
}
@ -117,6 +140,10 @@
.make-login-register-brand-btn(@brand-orcid-color);
}
.login-btn-orcid-alt {
.make-login-register-brand-btn-alt(darken(@brand-orcid-color, 6%));
}
.login-btn-sharelatex {
.make-login-register-brand-btn(@brand-sharelatex-color);
}
@ -137,12 +164,18 @@
.login-btn-icon-google {
background-image: url(/img/other-brands/logo_google.svg);
}
.login-btn-icon-google-alt {
background-image: url(/img/other-brands/logo_google_alt.svg);
}
.login-btn-icon-twitter {
background-image: url(/img/other-brands/logo_twitter.svg);
}
.login-btn-icon-orcid {
background-image: url(/img/other-brands/logo_orcid.svg);
}
.login-btn-icon-orcid-alt {
background-image: url(/img/other-brands/logo_orcid_alt.svg);
}
.login-btn-icon-sharelatex {
background-image: url(/img/other-brands/logo_sharelatex.svg);
}