Skip to content

Commit

Permalink
[less/print] Finetune print layout
Browse files Browse the repository at this point in the history
Closes G-Node#508

A print specific stylesheet ensures that abstracts prints
are usefully rendered.
  • Loading branch information
mpsonntag committed Oct 19, 2020
1 parent 9b3153a commit 5995bd3
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions app/assets/stylesheets/custom/bootstrap/_custom-print.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,57 @@
.navbar, .footer, .hidden-data, .nav, .jumbo-small, .callout, .pager, .alert {
display: none;
}

// Display the conference name but do not display the local link in the print view
.page-header {
h1 {
a[href]:after {
display: none;
}
}
}

.affiliations, .abstract-text, .acknowledgements, .references {
margin: 0.5em;
padding: 0.5em;
}

// Required to properly display abstract authors in the print view
.authors {
padding: 0;
margin: 0;
margin-top: 0.2em;
list-style: none;
display: inline-block;
font-size: 14px;

ul {
padding: 0;
margin: 0;
list-style: none;
display: inline-block;
font-size: large;
}

li {
display: inline-block;

span:after {
content: " ";
}
}

li:after {
content: ", ";
}

li:last-child:after {
content: "" !important;
}
}

// Required to properly display abstract copyright text in the print view
.foot-info ul {
list-style-type: none;
padding-left: 0px;
}

0 comments on commit 5995bd3

Please sign in to comment.