mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 08:22:14 +00:00
Merge pull request #1528 from sharelatex/jel-portal-print
Update portals for printing GitOrigin-RevId: ad3861b8464f0e5a8d8e70daa0166ebcf7d2312d
This commit is contained in:
parent
0df9c6440b
commit
b8bb118fe3
3 changed files with 31 additions and 9 deletions
|
@ -18,16 +18,16 @@ mixin linkAdvisors(linkText, linkClass, track)
|
|||
| #{linkText ? linkText : 'advisor programme'}
|
||||
|
||||
mixin linkBenefits(linkText, linkClass)
|
||||
a(href="/for/authors" class=linkClass ? linkClass : '')
|
||||
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/authors" class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'benefits'}
|
||||
|
||||
mixin linkBlog(linkText, linkClass, slug)
|
||||
if slug
|
||||
a(href="/blog/#{slug}" class=linkClass ? linkClass : '')
|
||||
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/blog/" + slug class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'blog'}
|
||||
|
||||
mixin linkContact(linkText, linkClass)
|
||||
a(href="/contact" class=linkClass ? linkClass : '')
|
||||
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/contact" class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'contact'}
|
||||
|
||||
mixin linkDash(linkText, linkClass)
|
||||
|
@ -35,13 +35,12 @@ mixin linkDash(linkText, linkClass)
|
|||
| #{linkText ? linkText : 'project dashboard'}
|
||||
|
||||
mixin linkEducation(linkText, linkClass)
|
||||
a(href="/for/edu" class=linkClass ? linkClass : '')
|
||||
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/edu" class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'teaching toolkit'}
|
||||
|
||||
mixin linkEmail(linkText, linkClass, email)
|
||||
//- To Do: env var?
|
||||
- var emailDomain = 'overleaf.com'
|
||||
a(href="mailto:#{email ? email : 'contact'}@#{emailDomain}" class=linkClass ? linkClass : '')
|
||||
- var emailAddress = email ? email : 'contact'
|
||||
a(href="mailto:" + emailAddress + "@overleaf.com" class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'email'}
|
||||
|
||||
mixin linkInvite(linkText, linkClass, track)
|
||||
|
@ -118,5 +117,5 @@ mixin linkTweet(linkText, linkClass, tweetText, track)
|
|||
) #{linkText ? linkText : 'tweet'}
|
||||
|
||||
mixin linkUniversities(linkText, linkClass)
|
||||
a(href="/for/universities" class=linkClass ? linkClass : '')
|
||||
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/universities" class=linkClass ? linkClass : '')
|
||||
| #{linkText ? linkText : 'universities'}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
footer.site-footer
|
||||
.site-footer-content
|
||||
.site-footer-content.hidden-print
|
||||
.row
|
||||
ul.col-md-9
|
||||
|
||||
|
|
|
@ -98,9 +98,32 @@
|
|||
Begin Print
|
||||
*/
|
||||
.print {
|
||||
.basic-metrics {
|
||||
margin-bottom: 50px; /* get Departments header on next page */
|
||||
}
|
||||
.container {
|
||||
width: auto;
|
||||
}
|
||||
.custom-donut-container svg {
|
||||
max-width: 570px; /* safe width for printing */
|
||||
}
|
||||
.hidden-print {
|
||||
display: none;
|
||||
}
|
||||
.portal-col {
|
||||
/* for firefox */
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.portal-name {
|
||||
padding: 0;
|
||||
}
|
||||
.visible-print {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
@media print and (color) {
|
||||
&:extend(.print);
|
||||
}
|
||||
// End Print
|
||||
|
||||
|
|
Loading…
Reference in a new issue