From 492e9645457763b55e573089693760c2081caa1f 2014-12-18 23:19:35 From: Bussonnier Matthias Date: 2014-12-18 23:19:35 Subject: [PATCH] no shadow on print media Also hide celltoolbars --- diff --git a/IPython/html/static/notebook/less/celltoolbar.less b/IPython/html/static/notebook/less/celltoolbar.less index 295aaf1..c930f54 100644 --- a/IPython/html/static/notebook/less/celltoolbar.less +++ b/IPython/html/static/notebook/less/celltoolbar.less @@ -12,8 +12,12 @@ padding-right: 4px; .hbox(); .end(); + @media print{ + display: none; + } } + .ctb_hideshow { display:none; vertical-align:bottom; diff --git a/IPython/html/static/notebook/less/notebook.less b/IPython/html/static/notebook/less/notebook.less index dd9aaae..35ed290 100644 --- a/IPython/html/static/notebook/less/notebook.less +++ b/IPython/html/static/notebook/less/notebook.less @@ -36,11 +36,13 @@ div#notebook { } #notebook-container{ - padding-right:80px; - padding-top:10px; - border-color: @body-bg; - background-color : @body-bg; - box-shadow: 0px 0px 12px 1px rgba(87,87,87,0.2); + @media not print{ + padding-right:80px; + padding-top:10px; + border-color: @body-bg; + background-color : @body-bg; + box-shadow: 0px 0px 12px 1px rgba(87,87,87,0.2); + } } div.ui-widget-content { diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 2387b71..92aa5d3 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -9494,12 +9494,14 @@ div#notebook { -webkit-box-sizing: border-box; background-color: #eeeeee; } -#notebook-container { - padding-right: 80px; - padding-top: 10px; - border-color: #ffffff; - background-color: #ffffff; - box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); +@media not print { + #notebook-container { + padding-right: 80px; + padding-top: 10px; + border-color: #ffffff; + background-color: #ffffff; + box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); + } } div.ui-widget-content { border: 1px solid #ababab; @@ -9573,6 +9575,11 @@ p { /* Modern browsers */ justify-content: flex-end; } +@media print { + .celltoolbar { + display: none; + } +} .ctb_hideshow { display: none; vertical-align: bottom;