initial styling of the print stylesheet. Needs working.
[theme-danix.xyz.git] / assets / sass / print.scss
diff --git a/assets/sass/print.scss b/assets/sass/print.scss
new file mode 100644 (file)
index 0000000..f625709
--- /dev/null
@@ -0,0 +1,72 @@
+@import 'libs/vars';
+@import 'libs/functions';
+@import 'libs/my-mixins';
+
+body {
+       margin: 0;
+       padding: 0;
+       font: 12pt Georgia, "Times New Roman", Times, serif;
+       line-height: 1.3;
+       background: #fff !important;
+       color: #000;
+}
+#wrapper {
+       width: 100%;
+       margin: 0;
+       float: none;
+}
+figure.image {
+       &.shadow {
+               img {
+                       box-shadow: none;
+               }
+       }
+       figcaption {
+               @include hide-visually;
+       }
+}
+header#header,
+#backtotop,
+footer#footer {
+       @include hide-visually;
+}
+div#main {
+       margin-left: 2cm;
+       margin-right: 1cm;
+}
+H3#danilo-macrì {
+       font-size: 24pt;
+}
+h2, h3, h4 {
+       font-size: 14pt;
+}
+/* Defining all page breaks */
+a {
+    page-break-inside:avoid
+}
+blockquote {
+    page-break-inside: avoid;
+}
+h1, h2, h3, h4, h5, h6 { 
+       page-break-after:avoid; 
+       page-break-inside:avoid
+ }
+img {
+       page-break-inside:avoid; 
+    page-break-after:avoid;
+}
+table, pre {
+       page-break-inside:avoid
+}
+p, ul, ol, dl  {
+       page-break-before:avoid;
+       page-break-inside: avoid;
+}
+div.col-8 {
+       h4 {
+               page-break-after: avoid;
+       }
+       strong {
+               page-break-before: avoid;
+       }
+}