浏览代码

add css to break pages when creating pdfs

David 8 年之前
父节点
当前提交
4400cc9948
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      styles.css

+ 16 - 0
styles.css

@@ -1,3 +1,6 @@
+* {
+  overflow: visible !important;
+}
 body {
   margin: 0;
   font-family: 'Raleway', sans-serif;
@@ -139,3 +142,16 @@ h6.skill-class {
   margin-top: 10px;
   margin-bottom: 5px;
 }
+
+@media print {
+  .new-page {
+    page-break-before: always;
+    page-break-after: always;
+    page-break-inside: always;
+  }
+  .experience-wrapper {
+    page-break-before: avoid;
+    page-break-after: avoid;
+    page-break-inside: avoid;
+  }
+}