Merge pull request #7147 from jdfreder/print

Meta-p for print
This commit is contained in:
Jonathan Frederic 2014-12-10 12:35:55 -08:00
commit b1b88a7855
5 changed files with 70 additions and 0 deletions

View File

@ -37,11 +37,19 @@ div#header {
height: 0px;
border-bottom: 1px solid @navbar-default-border;
}
@media print {
display: none !important;
}
}
#header-spacer {
width: 100%;
visibility: hidden;
@media print {
display: none;
}
}
#ipython_notebook {

View File

@ -8,10 +8,18 @@ div.cell {
&.selected {
border-color: @border_color;
/* Don't border the cells when printing */
@media print {
border-color: transparent;
}
}
&.edit_mode {
border-color: green;
/* Don't border the cells when printing */
@media print {
border-color: transparent;
}
}
width: 100%;

View File

@ -1,4 +1,8 @@
div.code_cell {
/* avoid page breaking on code cells when printing */
@media print {
page-break-inside: avoid;
}
}
/* any special styling for code cells that are currently running goes here */

View File

@ -363,9 +363,21 @@ div.cell {
}
div.cell.selected {
border-color: #ababab;
/* Don't border the cells when printing */
}
@media print {
div.cell.selected {
border-color: transparent;
}
}
div.cell.edit_mode {
border-color: green;
/* Don't border the cells when printing */
}
@media print {
div.cell.edit_mode {
border-color: transparent;
}
}
div.prompt {
/* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
@ -457,6 +469,14 @@ div.unrecognized_cell .inner_cell a:hover {
display: none;
}
}
div.code_cell {
/* avoid page breaking on code cells when printing */
}
@media print {
div.code_cell {
page-break-inside: avoid;
}
}
/* any special styling for code cells that are currently running goes here */
div.input {
page-break-inside: avoid;

View File

@ -7768,10 +7768,20 @@ div#header .header-bar {
height: 0px;
border-bottom: 1px solid #e7e7e7;
}
@media print {
div#header {
display: none !important;
}
}
#header-spacer {
width: 100%;
visibility: hidden;
}
@media print {
#header-spacer {
display: none;
}
}
#ipython_notebook {
padding-left: 0px;
padding-top: 3px;
@ -8226,9 +8236,21 @@ div.cell {
}
div.cell.selected {
border-color: #ababab;
/* Don't border the cells when printing */
}
@media print {
div.cell.selected {
border-color: transparent;
}
}
div.cell.edit_mode {
border-color: green;
/* Don't border the cells when printing */
}
@media print {
div.cell.edit_mode {
border-color: transparent;
}
}
div.prompt {
/* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
@ -8320,6 +8342,14 @@ div.unrecognized_cell .inner_cell a:hover {
display: none;
}
}
div.code_cell {
/* avoid page breaking on code cells when printing */
}
@media print {
div.code_cell {
page-break-inside: avoid;
}
}
/* any special styling for code cells that are currently running goes here */
div.input {
page-break-inside: avoid;