##// 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,3 +1,4 b''
1 @media print {
1 body { overflow: visible !important; }
2 body { overflow: visible !important; }
2 div#notebook { overflow: visible !important; }
3 div#notebook { overflow: visible !important; }
3 .ui-widget-content { border: 0px; }
4 .ui-widget-content { border: 0px; }
@@ -5,3 +6,5 b' div#notebook { overflow: visible !important; }'
5 #header,#pager,#pager_splitter,#menubar,#toolbar {display: none !important;}
6 #header,#pager,#pager_splitter,#menubar,#toolbar {display: none !important;}
6 .cell { border:none !important}
7 .cell { border:none !important}
7
8
9 }
10
General Comments 0
You need to be logged in to leave comments. Login now