overleaf/services/web/frontend/stylesheets/app/homepage.less

292 lines
5.8 KiB
Text
Raw Normal View History

@register-v-spacing: 20px;
.deprecated-sl-masthead {
display: inline-block;
margin-top: @header-height;
width: 100%;
text-align: center;
h1 {
font-size: 3.3rem;
line-height: 5rem;
margin-bottom: 0;
margin-top: @line-height-computed;
}
.img {
max-width: 420px;
background-image: url('/img/ol_plus_sl.png');
background-size: 100%;
background-repeat: no-repeat;
2018-08-10 05:53:46 -04:00
margin: 20px auto 0;
height: 197px;
}
}
2018-08-10 05:53:46 -04:00
.deprecated-sl-login-buttons {
margin: 35px 0;
}
2018-08-22 05:51:57 -04:00
.deprecated-sl-msg {
width: 80%;
margin: 35px auto 0;
2018-08-22 05:51:57 -04:00
}
2018-08-10 05:53:46 -04:00
.deprecated-sl-long-cta {
2018-08-24 05:39:30 -04:00
padding-top: 12.5px;
padding-bottom: 93px;
2018-08-10 05:53:46 -04:00
.card {
2018-08-24 05:39:30 -04:00
margin-top: 12.5px;
2018-09-05 06:00:30 -04:00
min-height: 397px;
}
2018-08-10 05:53:46 -04:00
h3 {
margin-top: 0;
}
}
2014-06-20 12:17:24 -04:00
.masthead {
background-image: -webkit-linear-gradient(to left, rgba(79,156,69,1.0), rgba(28,91,38,1.0));
background-image: linear-gradient(to left, rgba(79,156,69,1.0), rgba(28,91,38,1.0));
2014-06-20 12:17:24 -04:00
position: relative;
text-align: center;
overflow: hidden;
padding-top: @header-height;
2014-10-21 08:39:47 -04:00
h1, p, label {
2014-06-20 12:17:24 -04:00
color: white;
text-align: center;
}
h1 {
font-size: 4.75rem;
2014-07-21 12:56:20 -04:00
line-height: 6.25rem;
margin-bottom: 0;
2014-07-22 06:50:15 -04:00
margin-top: @line-height-computed;
2014-06-20 12:17:24 -04:00
text-shadow: 0 1px 3px rgba(0,0,0,0.42);
span {
2014-07-21 12:56:20 -04:00
font-family: @font-family-sans-serif;
2014-06-20 12:17:24 -04:00
font-weight: 100;
2014-07-21 12:56:20 -04:00
letter-spacing: 5px;
2014-06-20 12:17:24 -04:00
}
}
p:first-of-type {
font-size: @line-height-computed;
font-weight: 200;
margin-top: 0;
text-rendering: auto;
2014-07-22 06:50:15 -04:00
margin-bottom: @line-height-computed;
2014-06-20 12:17:24 -04:00
}
label {
display: block;
}
2014-07-21 12:56:20 -04:00
.register-banner {
2014-06-20 12:17:24 -04:00
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: @register-v-spacing 0;
2014-07-22 06:50:15 -04:00
position: absolute;
bottom: 0;
width: 100%;
2014-07-21 12:56:20 -04:00
h2 {
color: white;
margin-top: 0;
font-family: @font-family-sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin-bottom: @register-v-spacing;
2014-07-21 12:56:20 -04:00
}
.form-group {
margin-left: @line-height-computed / 2;
}
.input-lg {
border-radius: 9999px;
}
2014-06-20 12:17:24 -04:00
}
2018-10-04 10:49:42 -04:00
.hp-register-password-error {
margin-bottom: 9px;
2018-10-04 10:49:42 -04:00
}
2018-10-04 10:22:25 -04:00
.register-banner__password-error {
2018-10-05 05:19:04 -04:00
padding: 5px 9px;
border: none;
border-radius: @btn-border-radius-base;
2018-10-04 10:22:25 -04:00
}
2014-07-22 06:50:15 -04:00
.screenshot {
height: 600px;
2014-10-21 08:39:47 -04:00
margin: auto;
margin-bottom: -50px;
2014-07-22 06:50:15 -04:00
overflow-y: hidden;
2014-10-21 08:39:47 -04:00
box-shadow: 0 0 50px rgba(0,0,0,.67);
max-width: 960px;
2014-07-24 10:02:23 -04:00
.img {
max-width: 960px;
background-image: url('/img/homepage.png');
2014-07-24 10:02:23 -04:00
background-size: 100%;
background-repeat: no-repeat;
margin: auto;
height: 672px;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
.img {
background-image: url('/img/homepage@2x.png');
2014-07-24 10:02:23 -04:00
}
2014-07-22 06:50:15 -04:00
}
2014-06-20 12:17:24 -04:00
}
}
.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%;
& > .checkbox-newsletter {
text-align: left;
@media only screen and (min-width: @screen-sm-min) {
text-align: center;
}
}
}
.hp-login-btn when (@is-overleaf = true) {
.login-btn;
min-width: 220px;
background-color: @ol-blue-gray-3;
&:hover, &:focus, &:active {
background-color: darken(@ol-blue-gray-3, 8%);
}
}
.hp-register-form-email-pwd {
position: relative;
2014-06-20 12:17:24 -04:00
}
.hp-register-form-email-pwd-btn-container.form-group {
display: block;
margin-top: (@register-v-spacing / 2);
@media only screen and (min-width: @screen-md-min) {
position: absolute;
display: inline-block;
height: 100%;
top: -(@register-v-spacing / 2);
& > .btn-hero {
height: 100%;
}
2018-09-20 17:48:47 -04:00
}
}
2014-06-20 12:17:24 -04:00
.universities-container {
border-bottom: 1px solid @gray-lighter;
}
.universities {
2014-06-20 12:17:24 -04:00
text-align: center;
.uni-logo {
display: inline-block;
padding: 0 @padding-md;
width: 20%;
2014-06-20 12:17:24 -04:00
}
}
.pattern-container {
background: url('/img/pattern-home.png') repeat #f1f1f1;
border-top: 1px solid @gray-lightest;
border-bottom: 1px solid @gray-lightest;
2014-06-20 12:17:24 -04:00
}
2014-07-24 12:38:18 -04:00
.pattern-grid {
background: url('/img/grid.png') repeat @content-alt-bg-color;
border-top: 1px solid @gray-lighter;
border-bottom: 1px solid @gray-lighter;
}
2014-07-24 12:38:18 -04:00
.real-time-example {
.cursor {
background-color: hsl(200, 70%, 70%);
display: inline-block;
width: 2px;
color: transparent;
line-height: 1.4;
position: relative;
&:after {
content: "Joe";
top: 22px;
right: 0;
position: absolute;
display: block;
background-color: hsl(200, 70%, 70%);
padding: (@line-height-computed / 4) (@line-height-computed / 2);
font-size: 0.8rem;
z-index: 100;
font-family: @font-family-sans-serif;
color: white;
font-weight: 700;
}
}
}
.track-changes-example {
.removed, .added {
color: #333;
2014-07-25 07:49:23 -04:00
margin: 0 -1px;
2014-07-24 12:38:18 -04:00
padding: 0 3px;
}
.added {
2014-07-25 07:49:23 -04:00
background-color: hsl(200, 70%, 80%);
2014-07-24 12:38:18 -04:00
}
.removed {
background-color: hsl(200, 70%, 95%);
position: relative;
&:after {
content: " ";
position: absolute;
2014-07-25 09:14:27 -04:00
top: 50%;
2014-07-24 12:38:18 -04:00
left: 0;
right: 0;
border-top: 1px solid hsl(200, 70%, 40%);
}
}
}
2014-07-25 09:14:27 -04:00
.real-time-example-code {
2014-07-25 09:33:46 -04:00
border-radius: 3px;
2014-07-25 09:14:27 -04:00
border-left: 42px solid @gray-lighter;
background-color: white;
padding: 12px;
font-family: @font-family-monospace;
.highlight {
color: @blue;
}
2014-07-25 09:33:46 -04:00
box-shadow: 0 3px 5px rgba(0,0,0,.3);
2014-07-25 09:14:27 -04:00
}
@media only screen and (max-width: @screen-sm-max) {
.doc-history-example {
margin-bottom: @margin-md;
}
.universities {
.uni-logo {
padding: @padding-md;
width: 50%;
}
}
}