Browse Source

[notebook] Updated print CSS

Enrico Berti 10 years ago
parent
commit
ad344560ff

+ 31 - 4
desktop/libs/notebook/src/notebook/static/notebook/css/notebook.css

@@ -432,13 +432,40 @@ h1.empty {
   font-style: normal !important;
   font-style: normal !important;
 }
 }
 
 
+.print-logo {
+  display: none;
+}
+
+.print-logo img {
+  width: 24px;
+  height: 24px;
+}
+
 @media print {
 @media print {
-  .navigator, .assist-container, .result-settings, .left-panel, a.btn, button, .CodeMirror-gutters, .add-snippet {
+  .navigator, .assist-container, .result-settings, .left-panel, a.btn, button, .add-snippet, .card-heading.simple, .hover-actions, .alert, .show-assist, .snippet-footer-actions-bar, .player-toolbar h4, .player-toolbar div {
     display: none !important;
     display: none !important;
   }
   }
-
-  .CodeMirror {
-    border: none;
+  .right-panel {
+    width: 100%!important;
+    left: 0px!important;
+  }
+  * {
+    border: none!important;
+  }
+  .editable {
+    font-size: 20px;
+    font-weight: bold;
+    border-bottom: 2px solid #CCC!important;
+  }
+  .tab-content, .right-panel {
+    overflow: visible;
+  }
+  .ace_scroller {
+    border-left: 4px solid #DDD!important;
+    padding-left: 10px;
+  }
+  .print-logo {
+    display: block;
   }
   }
 }
 }
 
 

+ 4 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -111,6 +111,10 @@ from desktop.views import _ko
 % endif
 % endif
 </style>
 </style>
 
 
+<div class="print-logo">
+  <img class="pull-right" src="${ static('desktop/art/icon_hue_48.png') }" />
+</div>
+
 <div class="search-bar" data-bind="visible: ! $root.isPlayerMode()">
 <div class="search-bar" data-bind="visible: ! $root.isPlayerMode()">
   <div class="pull-right" style="padding-right:50px">
   <div class="pull-right" style="padding-right:50px">
     <!-- ko if: $root.selectedNotebook() && $root.selectedNotebook().snippets().length > 0 -->
     <!-- ko if: $root.selectedNotebook() && $root.selectedNotebook().snippets().length > 0 -->