##// END OF EJS Templates
fix print css less
Bussonnier Matthias -
Show More
@@ -184,6 +184,7 b' class AuthenticatedHandler(RequestHandler):'
184 """
184 """
185 return self.application.read_only
185 return self.application.read_only
186
186
187 @property
187 def use_less(self):
188 def use_less(self):
188 """Use less instead of css in templates"""
189 """Use less instead of css in templates"""
189 return self.application.use_less
190 return self.application.use_less
@@ -188,6 +188,7 b' class NotebookWebApplication(web.Application):'
188 self.ipython_app = ipython_app
188 self.ipython_app = ipython_app
189 self.read_only = self.ipython_app.read_only
189 self.read_only = self.ipython_app.read_only
190 self.config = self.ipython_app.config
190 self.config = self.ipython_app.config
191 self.use_less = self.ipython_app.use_less
191 self.log = log
192 self.log = log
192 self.jinja2_env = Environment(loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "templates")))
193 self.jinja2_env = Environment(loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "templates")))
193
194
@@ -66,13 +66,7 b' p.dialog{padding:0.2em;}'
66 pre,code,kbd,samp{white-space:pre-wrap;}
66 pre,code,kbd,samp{white-space:pre-wrap;}
67 #fonttest{font-family:monospace;}
67 #fonttest{font-family:monospace;}
68 .js-error{color:darkred;}
68 .js-error{color:darkred;}
69 body{overflow:visible !important;}
69 @media print{body{overflow:visible !important;} div#notebook{overflow:visible !important;} .ui-widget-content{border:0px;} #save_widget{margin:0px !important;} #header,#pager,#pager_splitter,#menubar,#toolbar{display:none !important;} .cell{border:none !important;}}.rendered_html{color:black;}
70 div#notebook{overflow:visible !important;}
71 .ui-widget-content{border:0px;}
72 #save_widget{margin:0px !important;}
73 #header,#pager,#pager_splitter,#menubar,#toolbar{display:none !important;}
74 .cell{border:none !important;}
75 .rendered_html{color:black;}
76 .rendered_html em{font-style:italic;}
70 .rendered_html em{font-style:italic;}
77 .rendered_html strong{font-weight:bold;}
71 .rendered_html strong{font-weight:bold;}
78 .rendered_html u{text-decoration:underline;}
72 .rendered_html u{text-decoration:underline;}
@@ -1,7 +1,10 b''
1 body { overflow: visible !important; }
1 @media print {
2 div#notebook { overflow: visible !important; }
2 body { overflow: visible !important; }
3 .ui-widget-content { border: 0px; }
3 div#notebook { overflow: visible !important; }
4 #save_widget {margin: 0px !important;}
4 .ui-widget-content { border: 0px; }
5 #header,#pager,#pager_splitter,#menubar,#toolbar {display: none !important;}
5 #save_widget {margin: 0px !important;}
6 .cell { border:none !important}
6 #header,#pager,#pager_splitter,#menubar,#toolbar {display: none !important;}
7 .cell { border:none !important}
8
9 }
7
10
General Comments 0
You need to be logged in to leave comments. Login now