diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css
index e3fd860..8fd97a0 100644
--- a/IPython/html/static/style/ipython.min.css
+++ b/IPython/html/static/style/ipython.min.css
@@ -363,14 +363,20 @@ 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 */
}
-/* Don't border the cells when printing */
@media print {
- div.cell {
- border-color: transparent !important;
+ div.cell.edit_mode {
+ border-color: transparent;
}
}
div.prompt {
@@ -463,7 +469,9 @@ div.unrecognized_cell .inner_cell a:hover {
display: none;
}
}
-/* avoid page breaking on code cells when printing */
+div.code_cell {
+ /* avoid page breaking on code cells when printing */
+}
@media print {
div.code_cell {
page-break-inside: avoid;
diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css
index eec705e..17878a0 100644
--- a/IPython/html/static/style/style.min.css
+++ b/IPython/html/static/style/style.min.css
@@ -8203,14 +8203,20 @@ 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 */
}
-/* Don't border the cells when printing */
@media print {
- div.cell {
- border-color: transparent !important;
+ div.cell.edit_mode {
+ border-color: transparent;
}
}
div.prompt {
@@ -8303,7 +8309,9 @@ div.unrecognized_cell .inner_cell a:hover {
display: none;
}
}
-/* avoid page breaking on code cells when printing */
+div.code_cell {
+ /* avoid page breaking on code cells when printing */
+}
@media print {
div.code_cell {
page-break-inside: avoid;
@@ -9504,11 +9512,15 @@ p {
-webkit-box-shadow: 1px 4px 9px -6px rgba(0, 0, 0, 0.25);
box-shadow: 1px 4px 9px -6px rgba(0, 0, 0, 0.25);
}
+@media print {
+ .notebook_app #header {
+ display: none;
+ }
+}
/* Hide the header when printing */
@media print {
- #header,
#header-spacer {
- display: none !important;
+ display: none;
}
}
/* CSS for the cell toolbar */